SAP Function Modules

RSSM_SDL_INFOPACKAGE_CREATE SAP Function module







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

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


Pattern for FM RSSM_SDL_INFOPACKAGE_CREATE - RSSM SDL INFOPACKAGE CREATE





CALL FUNCTION 'RSSM_SDL_INFOPACKAGE_CREATE' "
  EXPORTING
*   i_source =                  " rsldpio-source
*   i_typ =                     " rsldpio-typ
    i_oltpsource =              " rsldpio-oltpsource
*   i_oltptyp =                 " rsldpio-oltptyp
    i_logsys =                  " rsldpio-logsys
*   i_objvers = RS_C_OBJVERS-ACTIVE  " rsldpio-objvers
*   i_variant = RSSM_C_DEFAULT_VAR  " rsldpio-variant
*   i_namensraum = RSATR_C_CUSTOMER_OBJ  " rsatr_command
*   i_tp = SPACE                "
*   i_only_sel_oltpsource = SPACE  " char1
*   i_ods_ipak_generate = SPACE  " char1        Single-Character Flag
*   i_ods_ipak_text = SPACE     " rsldpiot-text  Long Description
  IMPORTING
    e_error =                   "
    e_text =                    "
    e_name =                    " rsldpio-logdpid
    .  "  RSSM_SDL_INFOPACKAGE_CREATE

ABAP code example for Function Module RSSM_SDL_INFOPACKAGE_CREATE





The ABAP code below is a full code listing to execute function module RSSM_SDL_INFOPACKAGE_CREATE 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_error  TYPE STRING ,
ld_e_text  TYPE STRING ,
ld_e_name  TYPE RSLDPIO-LOGDPID .


SELECT single SOURCE
FROM RSLDPIO
INTO @DATA(ld_i_source).


SELECT single TYP
FROM RSLDPIO
INTO @DATA(ld_i_typ).


SELECT single OLTPSOURCE
FROM RSLDPIO
INTO @DATA(ld_i_oltpsource).


SELECT single OLTPTYP
FROM RSLDPIO
INTO @DATA(ld_i_oltptyp).


SELECT single LOGSYS
FROM RSLDPIO
INTO @DATA(ld_i_logsys).


SELECT single OBJVERS
FROM RSLDPIO
INTO @DATA(ld_i_objvers).


SELECT single VARIANT
FROM RSLDPIO
INTO @DATA(ld_i_variant).

DATA(ld_i_namensraum) = 'Check type of data required'.
DATA(ld_i_tp) = 'some text here'.
DATA(ld_i_only_sel_oltpsource) = 'Check type of data required'.
DATA(ld_i_ods_ipak_generate) = 'Check type of data required'.

SELECT single TEXT
FROM RSLDPIOT
INTO @DATA(ld_i_ods_ipak_text).
. CALL FUNCTION 'RSSM_SDL_INFOPACKAGE_CREATE' EXPORTING * i_source = ld_i_source * i_typ = ld_i_typ i_oltpsource = ld_i_oltpsource * i_oltptyp = ld_i_oltptyp i_logsys = ld_i_logsys * i_objvers = ld_i_objvers * i_variant = ld_i_variant * i_namensraum = ld_i_namensraum * i_tp = ld_i_tp * i_only_sel_oltpsource = ld_i_only_sel_oltpsource * i_ods_ipak_generate = ld_i_ods_ipak_generate * i_ods_ipak_text = ld_i_ods_ipak_text IMPORTING e_error = ld_e_error e_text = ld_e_text e_name = ld_e_name . " RSSM_SDL_INFOPACKAGE_CREATE
IF SY-SUBRC EQ 0. "All OK 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_error  TYPE STRING ,
ld_i_source  TYPE RSLDPIO-SOURCE ,
ld_e_text  TYPE STRING ,
ld_i_typ  TYPE RSLDPIO-TYP ,
ld_e_name  TYPE RSLDPIO-LOGDPID ,
ld_i_oltpsource  TYPE RSLDPIO-OLTPSOURCE ,
ld_i_oltptyp  TYPE RSLDPIO-OLTPTYP ,
ld_i_logsys  TYPE RSLDPIO-LOGSYS ,
ld_i_objvers  TYPE RSLDPIO-OBJVERS ,
ld_i_variant  TYPE RSLDPIO-VARIANT ,
ld_i_namensraum  TYPE RSATR_COMMAND ,
ld_i_tp  TYPE STRING ,
ld_i_only_sel_oltpsource  TYPE CHAR1 ,
ld_i_ods_ipak_generate  TYPE CHAR1 ,
ld_i_ods_ipak_text  TYPE RSLDPIOT-TEXT .


SELECT single SOURCE
FROM RSLDPIO
INTO ld_i_source.


SELECT single TYP
FROM RSLDPIO
INTO ld_i_typ.


SELECT single OLTPSOURCE
FROM RSLDPIO
INTO ld_i_oltpsource.


SELECT single OLTPTYP
FROM RSLDPIO
INTO ld_i_oltptyp.


SELECT single LOGSYS
FROM RSLDPIO
INTO ld_i_logsys.


SELECT single OBJVERS
FROM RSLDPIO
INTO ld_i_objvers.


SELECT single VARIANT
FROM RSLDPIO
INTO ld_i_variant.

ld_i_namensraum = 'Check type of data required'.
ld_i_tp = 'some text here'.
ld_i_only_sel_oltpsource = 'Check type of data required'.
ld_i_ods_ipak_generate = 'Check type of data required'.

SELECT single TEXT
FROM RSLDPIOT
INTO ld_i_ods_ipak_text.

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