Skip to end of metadata
Go to start of metadata

SAP Screen Personas - How to with Remote Enabled Function Module


 


Create: Regina Sheynblat

Error rendering macro 'page-info'

com.atlassian.confluence.user.ConfluenceUserPreferences.getDateFormatter(Lcom/atlassian/confluence/core/FormatSettingsManager;)Lcom/atlassian/confluence/core/DateFormatter;

Last Update: Regina Sheynblat

Error rendering macro 'page-info'

com.atlassian.confluence.user.ConfluenceUserPreferences.getDateFormatter(Lcom/atlassian/confluence/core/FormatSettingsManager;)Lcom/atlassian/confluence/core/DateFormatter;

How to Work with Remote Enabled Function Module


SAP Screen Personas- by Regina Sheynblat

Purpose

The purpose of these demo is to show how a Remote Enabled Function Module  can be integrated with SAP Screen Personas 3 0

Overview

The following two scenarios shows how to integrate a Remote Enbaled Function Module into a Flavor and how to integrate it into the HTML Viewer.

How to integrate a Customer BAPI

  

//define the customer number 
var cust=session.findById("wnd[0]/usr/txtPersonas_2").text;
//define the RFC from which we will be getting the data, the single brackets at the end 
//denotes the location of RFC since this RFC is on the system as our Personas we do 
//not need to include anything 
var rfc=session.createRFC("BAPI_CUSTOMER_GETDETAIL2",''); 
//we are putting in customer number 
rfc.setParameter("CUSTOMERNO",cust); 
//we are getting back 
rfc.requestResults(JSON.stringify(["CUSTOMERADDRESS"])); 
rfc.send(); 
//now we will parse the address to get the Name, City and Country 
var address=JSON.parse(rfc.getResult("CUSTOMERADDRESS"));
session.findById("wnd[0]/usr/lblPersonas_7").text=address.NAME; 
session.findById("wnd[0]/usr/lblPersonas_8").text=address.CITY; 
session.findById("wnd[0]/usr/lblPersonas_9").text=address.COUNTRY;

Related Content

Related Search Terms:

SAP Screen Personas, <PUT YOUR SEARCH TERMS HERE AS A COMMA SEPARATED LIST>

Related SAP Notes/KBAs

<PUT NOTE NUMBERS HERE, IDEALLY INCLUDING THEIR TITLE>

Please check back for more content in the future.

 

 

  • No labels