SAP Function Modules

BAPI_PROCVAR_READMULTIPLE SAP Function module - Read Variants







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

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


Pattern for FM BAPI_PROCVAR_READMULTIPLE - BAPI PROCVAR READMULTIPLE





CALL FUNCTION 'BAPI_PROCVAR_READMULTIPLE' "Read Variants
* EXPORTING
*   cicorequestno =             " bapibegen-cico_reqno  Request/Task
*   mode = 'SHOW'               " bapibegen-mode  CICO mode
*   namesonly =                 " bapibegen-names_only  Only read texts
*   language = SY-LANGU         " bapi_laiso-langu  Language key
*   languageiso =               " bapi_laiso-langu_iso  Language according to ISO 639
*   addon =                     " bapibegen-addon  Industry
*   fromtimestamp =             " bapibegen-time_stamp  Time stamp in short form (Local date and time/format)
*   lastuser = SY-UNAME         " bapibegen-last_user  Last changed on/by
* TABLES
*   processvariantstoread =     " bapibeid1     Object ID and GUID
*   processvariants =           " bapibeprv     Process variant
*   documentationassignments =   " bapibedas    Documentation assignments
*   genericattributes =         " bapibegat     Generic Attributes
*   return =                    " bapiret2      Return parameter
    .  "  BAPI_PROCVAR_READMULTIPLE

ABAP code example for Function Module BAPI_PROCVAR_READMULTIPLE





The ABAP code below is a full code listing to execute function module BAPI_PROCVAR_READMULTIPLE 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:
it_processvariantstoread  TYPE STANDARD TABLE OF BAPIBEID1,"TABLES PARAM
wa_processvariantstoread  LIKE LINE OF it_processvariantstoread ,
it_processvariants  TYPE STANDARD TABLE OF BAPIBEPRV,"TABLES PARAM
wa_processvariants  LIKE LINE OF it_processvariants ,
it_documentationassignments  TYPE STANDARD TABLE OF BAPIBEDAS,"TABLES PARAM
wa_documentationassignments  LIKE LINE OF it_documentationassignments ,
it_genericattributes  TYPE STANDARD TABLE OF BAPIBEGAT,"TABLES PARAM
wa_genericattributes  LIKE LINE OF it_genericattributes ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_cicorequestno) = some text here

DATA(ld_mode) = some text here

DATA(ld_namesonly) = some text here

DATA(ld_language) = Check type of data required

DATA(ld_languageiso) = some text here

DATA(ld_addon) = some text here

DATA(ld_fromtimestamp) = Check type of data required

DATA(ld_lastuser) = some text here

"populate fields of struture and append to itab
append wa_processvariantstoread to it_processvariantstoread.

"populate fields of struture and append to itab
append wa_processvariants to it_processvariants.

"populate fields of struture and append to itab
append wa_documentationassignments to it_documentationassignments.

"populate fields of struture and append to itab
append wa_genericattributes to it_genericattributes.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_PROCVAR_READMULTIPLE' * EXPORTING * cicorequestno = ld_cicorequestno * mode = ld_mode * namesonly = ld_namesonly * language = ld_language * languageiso = ld_languageiso * addon = ld_addon * fromtimestamp = ld_fromtimestamp * lastuser = ld_lastuser * TABLES * processvariantstoread = it_processvariantstoread * processvariants = it_processvariants * documentationassignments = it_documentationassignments * genericattributes = it_genericattributes * return = it_return . " BAPI_PROCVAR_READMULTIPLE
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_cicorequestno  TYPE BAPIBEGEN-CICO_REQNO ,
it_processvariantstoread  TYPE STANDARD TABLE OF BAPIBEID1 ,
wa_processvariantstoread  LIKE LINE OF it_processvariantstoread,
ld_mode  TYPE BAPIBEGEN-MODE ,
it_processvariants  TYPE STANDARD TABLE OF BAPIBEPRV ,
wa_processvariants  LIKE LINE OF it_processvariants,
ld_namesonly  TYPE BAPIBEGEN-NAMES_ONLY ,
it_documentationassignments  TYPE STANDARD TABLE OF BAPIBEDAS ,
wa_documentationassignments  LIKE LINE OF it_documentationassignments,
ld_language  TYPE BAPI_LAISO-LANGU ,
it_genericattributes  TYPE STANDARD TABLE OF BAPIBEGAT ,
wa_genericattributes  LIKE LINE OF it_genericattributes,
ld_languageiso  TYPE BAPI_LAISO-LANGU_ISO ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_addon  TYPE BAPIBEGEN-ADDON ,
ld_fromtimestamp  TYPE BAPIBEGEN-TIME_STAMP ,
ld_lastuser  TYPE BAPIBEGEN-LAST_USER .


ld_cicorequestno = some text here

"populate fields of struture and append to itab
append wa_processvariantstoread to it_processvariantstoread.

ld_mode = some text here

"populate fields of struture and append to itab
append wa_processvariants to it_processvariants.

ld_namesonly = some text here

"populate fields of struture and append to itab
append wa_documentationassignments to it_documentationassignments.

ld_language = Check type of data required

"populate fields of struture and append to itab
append wa_genericattributes to it_genericattributes.

ld_languageiso = some text here

"populate fields of struture and append to itab
append wa_return to it_return.

ld_addon = some text here

ld_fromtimestamp = Check type of data required

ld_lastuser = some text here

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