SAP Function Modules

RMPS_OI_UPLOAD SAP Function module







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

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


Pattern for FM RMPS_OI_UPLOAD - RMPS OI UPLOAD





CALL FUNCTION 'RMPS_OI_UPLOAD' "
  EXPORTING
    description =               " bapi_api-shorttext
    unique_id =                 " bapi_api-shorttext
    filesize =                  " bapi_api-shorttext
    file_format =               " bapi_api-shorttext
    author =                    " bapi_api-shorttext
    company =                   " bapi_api-shorttext
*   folder_pdir =               " bapi_api-shorttext
    document_sps_id =           " bapi_api-shorttext
*   rec_type =                  " bapi_api-shorttext
*   is_folder =                 " bapi_api-shorttext
*   preferred_state =           " srmstatid
  IMPORTING
    system_id =                 " bapi_api-shorttext
    ex_message =                " text120
  TABLES
    binary_data =               " rmps_s_xmlchr
    .  "  RMPS_OI_UPLOAD

ABAP code example for Function Module RMPS_OI_UPLOAD





The ABAP code below is a full code listing to execute function module RMPS_OI_UPLOAD 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_system_id  TYPE BAPI_API-SHORTTEXT ,
ld_ex_message  TYPE TEXT120 ,
it_binary_data  TYPE STANDARD TABLE OF RMPS_S_XMLCHR,"TABLES PARAM
wa_binary_data  LIKE LINE OF it_binary_data .


DATA(ld_description) = some text here

DATA(ld_unique_id) = some text here

DATA(ld_filesize) = some text here

DATA(ld_file_format) = some text here

DATA(ld_author) = some text here

DATA(ld_company) = some text here

DATA(ld_folder_pdir) = some text here

DATA(ld_document_sps_id) = some text here

DATA(ld_rec_type) = some text here

DATA(ld_is_folder) = some text here
DATA(ld_preferred_state) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_binary_data to it_binary_data. . CALL FUNCTION 'RMPS_OI_UPLOAD' EXPORTING description = ld_description unique_id = ld_unique_id filesize = ld_filesize file_format = ld_file_format author = ld_author company = ld_company * folder_pdir = ld_folder_pdir document_sps_id = ld_document_sps_id * rec_type = ld_rec_type * is_folder = ld_is_folder * preferred_state = ld_preferred_state IMPORTING system_id = ld_system_id ex_message = ld_ex_message TABLES binary_data = it_binary_data . " RMPS_OI_UPLOAD
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_system_id  TYPE BAPI_API-SHORTTEXT ,
ld_description  TYPE BAPI_API-SHORTTEXT ,
it_binary_data  TYPE STANDARD TABLE OF RMPS_S_XMLCHR ,
wa_binary_data  LIKE LINE OF it_binary_data,
ld_ex_message  TYPE TEXT120 ,
ld_unique_id  TYPE BAPI_API-SHORTTEXT ,
ld_filesize  TYPE BAPI_API-SHORTTEXT ,
ld_file_format  TYPE BAPI_API-SHORTTEXT ,
ld_author  TYPE BAPI_API-SHORTTEXT ,
ld_company  TYPE BAPI_API-SHORTTEXT ,
ld_folder_pdir  TYPE BAPI_API-SHORTTEXT ,
ld_document_sps_id  TYPE BAPI_API-SHORTTEXT ,
ld_rec_type  TYPE BAPI_API-SHORTTEXT ,
ld_is_folder  TYPE BAPI_API-SHORTTEXT ,
ld_preferred_state  TYPE SRMSTATID .


ld_description = some text here

"populate fields of struture and append to itab
append wa_binary_data to it_binary_data.

ld_unique_id = some text here

ld_filesize = some text here

ld_file_format = some text here

ld_author = some text here

ld_company = some text here

ld_folder_pdir = some text here

ld_document_sps_id = some text here

ld_rec_type = some text here

ld_is_folder = some text here
ld_preferred_state = '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 RMPS_OI_UPLOAD or its description.