SAP Function Modules

RSAP_INFOSOURCE_TRANSFER SAP Function module







RSAP_INFOSOURCE_TRANSFER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RSAP_INFOSOURCE_TRANSFER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RSAM
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM RSAP_INFOSOURCE_TRANSFER - RSAP INFOSOURCE TRANSFER





CALL FUNCTION 'RSAP_INFOSOURCE_TRANSFER' "
  EXPORTING
    i_isource =                 " rssis-isource
*   i_with_fields = 'X'         " rois-genflag
  IMPORTING
    e_s_isource =               " rssis
    e_s_rois =                  " rois
    e_s_roist =                 " roist
* TABLES
*   i_t_langu =                 " rslangusel
*   e_t_isourcet =              " rssist
*   e_t_tbfd =                  " rssisfield
*   e_t_tbfdt =                 " rssisfdtxt
*   e_t_roisiobj =              " roisiobj
  EXCEPTIONS
    ISOURCE_NOT_FOUND = 1       "
    INVALID_STRUCTURE = 2       "
    .  "  RSAP_INFOSOURCE_TRANSFER

ABAP code example for Function Module RSAP_INFOSOURCE_TRANSFER





The ABAP code below is a full code listing to execute function module RSAP_INFOSOURCE_TRANSFER including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_e_s_isource  TYPE RSSIS ,
ld_e_s_rois  TYPE ROIS ,
ld_e_s_roist  TYPE ROIST ,
it_i_t_langu  TYPE STANDARD TABLE OF RSLANGUSEL,"TABLES PARAM
wa_i_t_langu  LIKE LINE OF it_i_t_langu ,
it_e_t_isourcet  TYPE STANDARD TABLE OF RSSIST,"TABLES PARAM
wa_e_t_isourcet  LIKE LINE OF it_e_t_isourcet ,
it_e_t_tbfd  TYPE STANDARD TABLE OF RSSISFIELD,"TABLES PARAM
wa_e_t_tbfd  LIKE LINE OF it_e_t_tbfd ,
it_e_t_tbfdt  TYPE STANDARD TABLE OF RSSISFDTXT,"TABLES PARAM
wa_e_t_tbfdt  LIKE LINE OF it_e_t_tbfdt ,
it_e_t_roisiobj  TYPE STANDARD TABLE OF ROISIOBJ,"TABLES PARAM
wa_e_t_roisiobj  LIKE LINE OF it_e_t_roisiobj .


DATA(ld_i_isource) = some text here

SELECT single GENFLAG
FROM ROIS
INTO @DATA(ld_i_with_fields).


"populate fields of struture and append to itab
append wa_i_t_langu to it_i_t_langu.

"populate fields of struture and append to itab
append wa_e_t_isourcet to it_e_t_isourcet.

"populate fields of struture and append to itab
append wa_e_t_tbfd to it_e_t_tbfd.

"populate fields of struture and append to itab
append wa_e_t_tbfdt to it_e_t_tbfdt.

"populate fields of struture and append to itab
append wa_e_t_roisiobj to it_e_t_roisiobj. . CALL FUNCTION 'RSAP_INFOSOURCE_TRANSFER' EXPORTING i_isource = ld_i_isource * i_with_fields = ld_i_with_fields IMPORTING e_s_isource = ld_e_s_isource e_s_rois = ld_e_s_rois e_s_roist = ld_e_s_roist * TABLES * i_t_langu = it_i_t_langu * e_t_isourcet = it_e_t_isourcet * e_t_tbfd = it_e_t_tbfd * e_t_tbfdt = it_e_t_tbfdt * e_t_roisiobj = it_e_t_roisiobj EXCEPTIONS ISOURCE_NOT_FOUND = 1 INVALID_STRUCTURE = 2 . " RSAP_INFOSOURCE_TRANSFER
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_s_isource  TYPE RSSIS ,
ld_i_isource  TYPE RSSIS-ISOURCE ,
it_i_t_langu  TYPE STANDARD TABLE OF RSLANGUSEL ,
wa_i_t_langu  LIKE LINE OF it_i_t_langu,
ld_e_s_rois  TYPE ROIS ,
ld_i_with_fields  TYPE ROIS-GENFLAG ,
it_e_t_isourcet  TYPE STANDARD TABLE OF RSSIST ,
wa_e_t_isourcet  LIKE LINE OF it_e_t_isourcet,
ld_e_s_roist  TYPE ROIST ,
it_e_t_tbfd  TYPE STANDARD TABLE OF RSSISFIELD ,
wa_e_t_tbfd  LIKE LINE OF it_e_t_tbfd,
it_e_t_tbfdt  TYPE STANDARD TABLE OF RSSISFDTXT ,
wa_e_t_tbfdt  LIKE LINE OF it_e_t_tbfdt,
it_e_t_roisiobj  TYPE STANDARD TABLE OF ROISIOBJ ,
wa_e_t_roisiobj  LIKE LINE OF it_e_t_roisiobj.


ld_i_isource = some text here

"populate fields of struture and append to itab
append wa_i_t_langu to it_i_t_langu.

SELECT single GENFLAG
FROM ROIS
INTO ld_i_with_fields.


"populate fields of struture and append to itab
append wa_e_t_isourcet to it_e_t_isourcet.

"populate fields of struture and append to itab
append wa_e_t_tbfd to it_e_t_tbfd.

"populate fields of struture and append to itab
append wa_e_t_tbfdt to it_e_t_tbfdt.

"populate fields of struture and append to itab
append wa_e_t_roisiobj to it_e_t_roisiobj.

SAP Documentation for FM RSAP_INFOSOURCE_TRANSFER


Supplies a catalog of characteristics and key figures for one InfoCube This catalog is constructed from DDIC settings and contains technical ...See here for full SAP fm documentation




Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSAP_INFOSOURCE_TRANSFER or its description.