SAP Function Modules

RSA1_OLTPSOURCE_GENERATE SAP Function module







RSA1_OLTPSOURCE_GENERATE 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 RSA1_OLTPSOURCE_GENERATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RSA1
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RSA1_OLTPSOURCE_GENERATE - RSA1 OLTPSOURCE GENERATE





CALL FUNCTION 'RSA1_OLTPSOURCE_GENERATE' "
  EXPORTING
*   i_content = ' '             " rsaot_flag
*   i_testmode = ' '            " rsaot_flag
*   i_save_despite_warning =    " rsaot_flag
    i_s_oltpsource =            " rsaot_s_osgen
    i_t_oltpsourcefields =      " rsaot_t_osgenfd
    i_t_ostext =                " rsaot_t_osgentext
*   i_t_ossegments =            " rsaot_t_ossegments
*   i_s_oshiecat =              " rsaot_s_ohiecat
*   i_t_ohiecom =               " rsaot_t_ohiecom
*   i_with_dynpro = RSAOT_C_FLAG-ON  " rsaot_flag
*   i_request =                 " rsaot_request
*   i_devclass =                " rsaot_devc
*   i_no_transport = RSAOT_C_FLAG-OFF  " rsaot_flag
*   i_no_authority = RSAOT_C_FLAG-ON  " rsaot_flag
*   i_objvers = 'A'             " rsaot_objvers
*   i_s_mddelta =               " rsaot_s_mddelta
*   i_s_gendelta =              " rsaot_s_gendelta
*   i_s_dd02v =                 " rsaot_s_dd02v
*   i_t_dd03p =                 " rsaot_t_dd03p
*   i_t_dd05m =                 " rsaot_t_dd05m
*   i_t_dd08v =                 " rsaot_t_dd08v
*   i_t_appfd =                 " rsaot_t_appfd
*   i_s_osesrhdmap =            " roesrhdmap
*   i_t_osesrfdmap =            " rotesrfdmap
  IMPORTING
    e_t_messages =              " rsaot_t_messages
    e_request =                 " rsaot_request
    e_devclass =                " rsaot_devc
    e_subrc =                   " sy-subrc
    e_s_osource =               " rsaot_s_osource
  EXCEPTIONS
    INTERNAL_ERROR = 1          "
    TRANSPORT_ERROR = 2         "
    LOCKED = 3                  "
    INCONSISTENT = 4            "
    CANCELLED = 5               "
    .  "  RSA1_OLTPSOURCE_GENERATE

ABAP code example for Function Module RSA1_OLTPSOURCE_GENERATE





The ABAP code below is a full code listing to execute function module RSA1_OLTPSOURCE_GENERATE 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_t_messages  TYPE RSAOT_T_MESSAGES ,
ld_e_request  TYPE RSAOT_REQUEST ,
ld_e_devclass  TYPE RSAOT_DEVC ,
ld_e_subrc  TYPE SY-SUBRC ,
ld_e_s_osource  TYPE RSAOT_S_OSOURCE .

DATA(ld_i_content) = 'Check type of data required'.
DATA(ld_i_testmode) = 'Check type of data required'.
DATA(ld_i_save_despite_warning) = 'Check type of data required'.
DATA(ld_i_s_oltpsource) = 'Check type of data required'.
DATA(ld_i_t_oltpsourcefields) = 'Check type of data required'.
DATA(ld_i_t_ostext) = 'Check type of data required'.
DATA(ld_i_t_ossegments) = 'Check type of data required'.
DATA(ld_i_s_oshiecat) = 'Check type of data required'.
DATA(ld_i_t_ohiecom) = 'Check type of data required'.
DATA(ld_i_with_dynpro) = 'Check type of data required'.
DATA(ld_i_request) = 'Check type of data required'.
DATA(ld_i_devclass) = 'Check type of data required'.
DATA(ld_i_no_transport) = 'Check type of data required'.
DATA(ld_i_no_authority) = 'Check type of data required'.
DATA(ld_i_objvers) = 'Check type of data required'.
DATA(ld_i_s_mddelta) = 'Check type of data required'.
DATA(ld_i_s_gendelta) = 'Check type of data required'.
DATA(ld_i_s_dd02v) = 'Check type of data required'.
DATA(ld_i_t_dd03p) = 'Check type of data required'.
DATA(ld_i_t_dd05m) = 'Check type of data required'.
DATA(ld_i_t_dd08v) = 'Check type of data required'.
DATA(ld_i_t_appfd) = 'Check type of data required'.
DATA(ld_i_s_osesrhdmap) = 'Check type of data required'.
DATA(ld_i_t_osesrfdmap) = 'Check type of data required'. . CALL FUNCTION 'RSA1_OLTPSOURCE_GENERATE' EXPORTING * i_content = ld_i_content * i_testmode = ld_i_testmode * i_save_despite_warning = ld_i_save_despite_warning i_s_oltpsource = ld_i_s_oltpsource i_t_oltpsourcefields = ld_i_t_oltpsourcefields i_t_ostext = ld_i_t_ostext * i_t_ossegments = ld_i_t_ossegments * i_s_oshiecat = ld_i_s_oshiecat * i_t_ohiecom = ld_i_t_ohiecom * i_with_dynpro = ld_i_with_dynpro * i_request = ld_i_request * i_devclass = ld_i_devclass * i_no_transport = ld_i_no_transport * i_no_authority = ld_i_no_authority * i_objvers = ld_i_objvers * i_s_mddelta = ld_i_s_mddelta * i_s_gendelta = ld_i_s_gendelta * i_s_dd02v = ld_i_s_dd02v * i_t_dd03p = ld_i_t_dd03p * i_t_dd05m = ld_i_t_dd05m * i_t_dd08v = ld_i_t_dd08v * i_t_appfd = ld_i_t_appfd * i_s_osesrhdmap = ld_i_s_osesrhdmap * i_t_osesrfdmap = ld_i_t_osesrfdmap IMPORTING e_t_messages = ld_e_t_messages e_request = ld_e_request e_devclass = ld_e_devclass e_subrc = ld_e_subrc e_s_osource = ld_e_s_osource EXCEPTIONS INTERNAL_ERROR = 1 TRANSPORT_ERROR = 2 LOCKED = 3 INCONSISTENT = 4 CANCELLED = 5 . " RSA1_OLTPSOURCE_GENERATE
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_t_messages  TYPE RSAOT_T_MESSAGES ,
ld_i_content  TYPE RSAOT_FLAG ,
ld_e_request  TYPE RSAOT_REQUEST ,
ld_i_testmode  TYPE RSAOT_FLAG ,
ld_e_devclass  TYPE RSAOT_DEVC ,
ld_i_save_despite_warning  TYPE RSAOT_FLAG ,
ld_e_subrc  TYPE SY-SUBRC ,
ld_i_s_oltpsource  TYPE RSAOT_S_OSGEN ,
ld_e_s_osource  TYPE RSAOT_S_OSOURCE ,
ld_i_t_oltpsourcefields  TYPE RSAOT_T_OSGENFD ,
ld_i_t_ostext  TYPE RSAOT_T_OSGENTEXT ,
ld_i_t_ossegments  TYPE RSAOT_T_OSSEGMENTS ,
ld_i_s_oshiecat  TYPE RSAOT_S_OHIECAT ,
ld_i_t_ohiecom  TYPE RSAOT_T_OHIECOM ,
ld_i_with_dynpro  TYPE RSAOT_FLAG ,
ld_i_request  TYPE RSAOT_REQUEST ,
ld_i_devclass  TYPE RSAOT_DEVC ,
ld_i_no_transport  TYPE RSAOT_FLAG ,
ld_i_no_authority  TYPE RSAOT_FLAG ,
ld_i_objvers  TYPE RSAOT_OBJVERS ,
ld_i_s_mddelta  TYPE RSAOT_S_MDDELTA ,
ld_i_s_gendelta  TYPE RSAOT_S_GENDELTA ,
ld_i_s_dd02v  TYPE RSAOT_S_DD02V ,
ld_i_t_dd03p  TYPE RSAOT_T_DD03P ,
ld_i_t_dd05m  TYPE RSAOT_T_DD05M ,
ld_i_t_dd08v  TYPE RSAOT_T_DD08V ,
ld_i_t_appfd  TYPE RSAOT_T_APPFD ,
ld_i_s_osesrhdmap  TYPE ROESRHDMAP ,
ld_i_t_osesrfdmap  TYPE ROTESRFDMAP .

ld_i_content = 'Check type of data required'.
ld_i_testmode = 'Check type of data required'.
ld_i_save_despite_warning = 'Check type of data required'.
ld_i_s_oltpsource = 'Check type of data required'.
ld_i_t_oltpsourcefields = 'Check type of data required'.
ld_i_t_ostext = 'Check type of data required'.
ld_i_t_ossegments = 'Check type of data required'.
ld_i_s_oshiecat = 'Check type of data required'.
ld_i_t_ohiecom = 'Check type of data required'.
ld_i_with_dynpro = 'Check type of data required'.
ld_i_request = 'Check type of data required'.
ld_i_devclass = 'Check type of data required'.
ld_i_no_transport = 'Check type of data required'.
ld_i_no_authority = 'Check type of data required'.
ld_i_objvers = 'Check type of data required'.
ld_i_s_mddelta = 'Check type of data required'.
ld_i_s_gendelta = 'Check type of data required'.
ld_i_s_dd02v = 'Check type of data required'.
ld_i_t_dd03p = 'Check type of data required'.
ld_i_t_dd05m = 'Check type of data required'.
ld_i_t_dd08v = 'Check type of data required'.
ld_i_t_appfd = 'Check type of data required'.
ld_i_s_osesrhdmap = 'Check type of data required'.
ld_i_t_osesrfdmap = 'Check type of data required'.

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 RSA1_OLTPSOURCE_GENERATE or its description.