SAP Function Modules

CRS_EQUIPMENT_UPLOAD_PROXY SAP Function module







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

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


Pattern for FM CRS_EQUIPMENT_UPLOAD_PROXY - CRS EQUIPMENT UPLOAD PROXY





CALL FUNCTION 'CRS_EQUIPMENT_UPLOAD_PROXY' "
  EXPORTING
    i_upload_id =               " bapicrmdh2-ref_id
    i_destin =                  " crm_para-rfcserver
    i_sfa_rel =                 " crm_para-server_rel
*   i_keyword_in =              " bapicrmdh1-keyword_in
*   i_equi =                    " bapi_equi1
*   i_equz =                    " bapi_equz1
  IMPORTING
    e_status =                  " crm_para-uploadstat
* TABLES
*   return =                    " bapiret2
*   in_sfa_keys =               " bapicrmsfk
  EXCEPTIONS
    BTE_NOT_ACTIVE = 1          "
    .  "  CRS_EQUIPMENT_UPLOAD_PROXY

ABAP code example for Function Module CRS_EQUIPMENT_UPLOAD_PROXY





The ABAP code below is a full code listing to execute function module CRS_EQUIPMENT_UPLOAD_PROXY 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_status  TYPE CRM_PARA-UPLOADSTAT ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_in_sfa_keys  TYPE STANDARD TABLE OF BAPICRMSFK,"TABLES PARAM
wa_in_sfa_keys  LIKE LINE OF it_in_sfa_keys .


DATA(ld_i_upload_id) = some text here

DATA(ld_i_destin) = some text here

DATA(ld_i_sfa_rel) = some text here

DATA(ld_i_keyword_in) = some text here
DATA(ld_i_equi) = 'Check type of data required'.
DATA(ld_i_equz) = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_in_sfa_keys to it_in_sfa_keys. . CALL FUNCTION 'CRS_EQUIPMENT_UPLOAD_PROXY' EXPORTING i_upload_id = ld_i_upload_id i_destin = ld_i_destin i_sfa_rel = ld_i_sfa_rel * i_keyword_in = ld_i_keyword_in * i_equi = ld_i_equi * i_equz = ld_i_equz IMPORTING e_status = ld_e_status * TABLES * return = it_return * in_sfa_keys = it_in_sfa_keys EXCEPTIONS BTE_NOT_ACTIVE = 1 . " CRS_EQUIPMENT_UPLOAD_PROXY
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_status  TYPE CRM_PARA-UPLOADSTAT ,
ld_i_upload_id  TYPE BAPICRMDH2-REF_ID ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_i_destin  TYPE CRM_PARA-RFCSERVER ,
it_in_sfa_keys  TYPE STANDARD TABLE OF BAPICRMSFK ,
wa_in_sfa_keys  LIKE LINE OF it_in_sfa_keys,
ld_i_sfa_rel  TYPE CRM_PARA-SERVER_REL ,
ld_i_keyword_in  TYPE BAPICRMDH1-KEYWORD_IN ,
ld_i_equi  TYPE BAPI_EQUI1 ,
ld_i_equz  TYPE BAPI_EQUZ1 .


ld_i_upload_id = some text here

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

ld_i_destin = some text here

"populate fields of struture and append to itab
append wa_in_sfa_keys to it_in_sfa_keys.

ld_i_sfa_rel = some text here

ld_i_keyword_in = some text here
ld_i_equi = 'Check type of data required'.
ld_i_equz = '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 CRS_EQUIPMENT_UPLOAD_PROXY or its description.