1. Home
  2. Dokumente
  3. SAP/ERP,S4/HANA V3 Adapter
  4. 8. Generic Use of Multit-Tab

8. Generic Use of Multit-Tab

This unit describes:-

How to use Skyvva MultiItab-Adapter in SAP Program/FM

Introduction:-

This document describes how data can be transferred to SFDC within your own Programs. The MultiItabAdapter allows you to transfer data of different RFC/BAPI or Structures(DDIC), which you have filled before in your own FM/Report, within one SKYVVA FM Call. The routing to the different Salesforce Objects is implemented with workflow in Skyvva-IntegrationSuite on SFDC.

1. SAP Implementation Part

1.1 Prerequisites

Please use repository based typing instead of program-internal types for the RFC/BAPI definition and Structure definition (DDIC). Otherwise the Adapter will have problems at runtime.

1.2 Implement a sender module for the transfer of Internal Tables (ITAB)

In this example a SenderModule : ZV3_MULTI_ITAB_DEMO has been implemented .
This Module is also used in salesforce for metadata provider in salesforce to create message type in salesforce on the Interface-definition of this module.

in the importing Parameter “IM_DEBITOR_NO” has data need to send  salesforce and the exporting parameter “EX_DEBITOR_DETAILS” has field or structure coming data back from salesforce in that format.

Here you can see an example for call skyvva interface in a synchronous mode and process the response.

 

Please define the following internal data types and call the skyvva function module “/SKYVVA/MULTI_ITAB_ADAPTER_V3” in you program.

DATA IM_MODE TYPE /SKYVVA/V3_MODE VALUE ‘Synchronous’.
DATA IM_INTEGRATION TYPE /SKYVVA/INTEGRATION_NAME VALUE ‘BAPIIntegrateSyncV3’.
DATA IM_IINTERFACE TYPE /SKYVVA/INTERFACE_NAME VALUE ‘IntegrateSyncV3_Multitab’.
DATA IM_ENDPOINT TYPE /SKYVVA/ENDPOINT_ID VALUE ‘V3_ADAPTER’.
DATA IM_RESP_PARAM_NAME TYPE PARAMETER.
DATA IM_REQ_PARAM_NAME TYPE PARAMETER.
DATA IM_BAPI_NAME TYPE FUNCNAME VALUE ‘ZV3_MULTI_ITAB_DEMO’.
DATA EX_RETURN TYPE BAPIRET2_T.

The importing Parameters
1. IM_MODE is the optional parameter in which we pass processing mode like Synchronous or asynchronous .
2. im_integration is the mandatory parameter in which we pass salesforce integration name
3. im_iinterface is the mandatory parameter in which we pass salesforce interface name.
4. im_endpoint is the mandatory parameter in which we pass salesforce endpoint name in endpoint we have maintain salesforce login details .
5. im_resp_param_name is the optional parameter in which we pass response param name which is exporting parameter of skyvva calling FM (Multi-tab).
6. im_req_param_name is the mandatory parameter in which we pass request param name which is importing parameter of skyvva calling FM .
7. im_req_data is the mandatory parameter in which we pass request data internal table which is importing parameter of skyvva calling FM
8. im_bapi_name is the optional parameter in which we pass FM name which is calling the skyvva calling.

The Exporting Parameter
1. EX_RETURN is the parameter which return error/success message .
2. IM_SF_RESPONSE is the parameter which return the response from salesforce which is the exporting parameter of calling skyvva FM.
The content of this Itabs is send via v3 adapter . The following lines are necessary for
passing the data to the MultiItabAdapter .
DATA IM_MODE TYPE /SKYVVA/V3_MODE VALUE ‘Synchronous’.
DATA IM_INTEGRATION TYPE /SKYVVA/INTEGRATION_NAME VALUE ‘BAPIIntegrateSyncV3’.
DATA IM_IINTERFACE TYPE /SKYVVA/INTERFACE_NAME VALUE ‘IntegrateSyncV3_Multitab’.
DATA IM_ENDPOINT TYPE /SKYVVA/ENDPOINT_ID VALUE ‘V3_ADAPTER’.
DATA IM_RESP_PARAM_NAME TYPE PARAMETER.
DATA IM_REQ_PARAM_NAME TYPE PARAMETER.
DATA IM_BAPI_NAME TYPE FUNCNAME VALUE ‘ZV3_MULTI_ITAB_DEMO’.
DATA EX_RETURN TYPE BAPIRET2_T.

CALL FUNCTION ‘/SKYVVA/MULTI_ITAB_ADAPTER_V3’
EXPORTING
IM_MODE = IM_MODE
im_integration = IM_INTEGRATION
im_iinterface = IM_IINTERFACE
im_endpoint = IM_ENDPOINT
im_resp_param_name = ‘EX_DEBITOR_DETAILS’
im_req_param_name = ‘IM_DEBITOR_NO’
im_req_data = IM_DEBITOR_NO
im_bapi_name = im_bapi_name
IMPORTING
EX_RETURN = ex_return
IM_SF_RESPONSE = EX_DEBITOR_DETAILS .

Remark: the importing/exporting structure must be used in salesforce as message type.

For call skyvva interface in a Asynchronous mode do not pass the response parameter “im_req_param_name” and exporting response parameter “IM_SF_RESPONSE” in skyvva Multi-tab FM.

Fandest du diesen Artikel hilfreich? Ja Nein

Wie können wir helfen?