SAP Function Modules

CRS_SORDER_CREATE_UPLOAD_PROXY SAP Function module







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

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


Pattern for FM CRS_SORDER_CREATE_UPLOAD_PROXY - CRS SORDER CREATE UPLOAD PROXY





CALL FUNCTION 'CRS_SORDER_CREATE_UPLOAD_PROXY' "
  EXPORTING
    i_upload_id =               " bapicrmdh2-ref_id
    i_destin =                  " crm_para-rfcserver
    i_sfa_rel =                 " crm_para-server_rel
*   i_tech_closed =             " bapiflag
*   i_user_status =             " bapi2080_notusrstati
*   i_user_status_inact =       " bapismjest-inactive
*   i_keyword_in =              " bapicrmdh1-keyword_in
    i_order_header =            " bapi_order_header
  IMPORTING
    e_status =                  " crm_para-uploadstat
* TABLES
*   in_partner =                " bapi_ihpa
*   in_operation =              " bapi_order_operation
*   in_line =                   " bapi2080_notfulltxti
*   in_sfa_keys =               " bapicrmsfk
*   return =                    " bapiret2
  EXCEPTIONS
    BTE_NOT_ACTIVE = 1          "
    .  "  CRS_SORDER_CREATE_UPLOAD_PROXY

ABAP code example for Function Module CRS_SORDER_CREATE_UPLOAD_PROXY





The ABAP code below is a full code listing to execute function module CRS_SORDER_CREATE_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_in_partner  TYPE STANDARD TABLE OF BAPI_IHPA,"TABLES PARAM
wa_in_partner  LIKE LINE OF it_in_partner ,
it_in_operation  TYPE STANDARD TABLE OF BAPI_ORDER_OPERATION,"TABLES PARAM
wa_in_operation  LIKE LINE OF it_in_operation ,
it_in_line  TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTI,"TABLES PARAM
wa_in_line  LIKE LINE OF it_in_line ,
it_in_sfa_keys  TYPE STANDARD TABLE OF BAPICRMSFK,"TABLES PARAM
wa_in_sfa_keys  LIKE LINE OF it_in_sfa_keys ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


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_tech_closed) = 'Check type of data required'.
DATA(ld_i_user_status) = 'Check type of data required'.

DATA(ld_i_user_status_inact) = some text here

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

"populate fields of struture and append to itab
append wa_in_partner to it_in_partner.

"populate fields of struture and append to itab
append wa_in_operation to it_in_operation.

"populate fields of struture and append to itab
append wa_in_line to it_in_line.

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

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'CRS_SORDER_CREATE_UPLOAD_PROXY' EXPORTING i_upload_id = ld_i_upload_id i_destin = ld_i_destin i_sfa_rel = ld_i_sfa_rel * i_tech_closed = ld_i_tech_closed * i_user_status = ld_i_user_status * i_user_status_inact = ld_i_user_status_inact * i_keyword_in = ld_i_keyword_in i_order_header = ld_i_order_header IMPORTING e_status = ld_e_status * TABLES * in_partner = it_in_partner * in_operation = it_in_operation * in_line = it_in_line * in_sfa_keys = it_in_sfa_keys * return = it_return EXCEPTIONS BTE_NOT_ACTIVE = 1 . " CRS_SORDER_CREATE_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_in_partner  TYPE STANDARD TABLE OF BAPI_IHPA ,
wa_in_partner  LIKE LINE OF it_in_partner,
ld_i_destin  TYPE CRM_PARA-RFCSERVER ,
it_in_operation  TYPE STANDARD TABLE OF BAPI_ORDER_OPERATION ,
wa_in_operation  LIKE LINE OF it_in_operation,
ld_i_sfa_rel  TYPE CRM_PARA-SERVER_REL ,
it_in_line  TYPE STANDARD TABLE OF BAPI2080_NOTFULLTXTI ,
wa_in_line  LIKE LINE OF it_in_line,
ld_i_tech_closed  TYPE BAPIFLAG ,
it_in_sfa_keys  TYPE STANDARD TABLE OF BAPICRMSFK ,
wa_in_sfa_keys  LIKE LINE OF it_in_sfa_keys,
ld_i_user_status  TYPE BAPI2080_NOTUSRSTATI ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_i_user_status_inact  TYPE BAPISMJEST-INACTIVE ,
ld_i_keyword_in  TYPE BAPICRMDH1-KEYWORD_IN ,
ld_i_order_header  TYPE BAPI_ORDER_HEADER .


ld_i_upload_id = some text here

"populate fields of struture and append to itab
append wa_in_partner to it_in_partner.

ld_i_destin = some text here

"populate fields of struture and append to itab
append wa_in_operation to it_in_operation.

ld_i_sfa_rel = some text here

"populate fields of struture and append to itab
append wa_in_line to it_in_line.
ld_i_tech_closed = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_in_sfa_keys to it_in_sfa_keys.
ld_i_user_status = 'Check type of data required'.

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

ld_i_user_status_inact = some text here

ld_i_keyword_in = some text here
ld_i_order_header = '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_SORDER_CREATE_UPLOAD_PROXY or its description.