SAP Function Modules

FCXL_SET_DATA SAP Function module







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

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


Pattern for FM FCXL_SET_DATA - FCXL SET DATA





CALL FUNCTION 'FCXL_SET_DATA' "
  EXPORTING
    aspect_id =                 " fcxl_casps-aspect_id
    simulate =                  " sy-dayst
    sign_handling =             " sy-dayst
*   updatemode =                " sy-dayst
*   wait =                      " sy-dayst
*   callno =                    " fcxl_hirvl-depth
  IMPORTING
    success =                   " sy-dayst
    exception =                 " fcxl_messg-message
  TABLES
    i_request =                 " fcxl_dreqv
    i_data =                    " fcxl_data
    e_error =                   " fcxl_error
    .  "  FCXL_SET_DATA

ABAP code example for Function Module FCXL_SET_DATA





The ABAP code below is a full code listing to execute function module FCXL_SET_DATA 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_success  TYPE SY-DAYST ,
ld_exception  TYPE FCXL_MESSG-MESSAGE ,
it_i_request  TYPE STANDARD TABLE OF FCXL_DREQV,"TABLES PARAM
wa_i_request  LIKE LINE OF it_i_request ,
it_i_data  TYPE STANDARD TABLE OF FCXL_DATA,"TABLES PARAM
wa_i_data  LIKE LINE OF it_i_data ,
it_e_error  TYPE STANDARD TABLE OF FCXL_ERROR,"TABLES PARAM
wa_e_error  LIKE LINE OF it_e_error .


DATA(ld_aspect_id) = some text here
DATA(ld_simulate) = 'some text here'.
DATA(ld_sign_handling) = 'some text here'.
DATA(ld_updatemode) = 'some text here'.
DATA(ld_wait) = 'some text here'.

DATA(ld_callno) = some text here

"populate fields of struture and append to itab
append wa_i_request to it_i_request.

"populate fields of struture and append to itab
append wa_i_data to it_i_data.

"populate fields of struture and append to itab
append wa_e_error to it_e_error. . CALL FUNCTION 'FCXL_SET_DATA' EXPORTING aspect_id = ld_aspect_id simulate = ld_simulate sign_handling = ld_sign_handling * updatemode = ld_updatemode * wait = ld_wait * callno = ld_callno IMPORTING success = ld_success exception = ld_exception TABLES i_request = it_i_request i_data = it_i_data e_error = it_e_error . " FCXL_SET_DATA
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_success  TYPE SY-DAYST ,
ld_aspect_id  TYPE FCXL_CASPS-ASPECT_ID ,
it_i_request  TYPE STANDARD TABLE OF FCXL_DREQV ,
wa_i_request  LIKE LINE OF it_i_request,
ld_exception  TYPE FCXL_MESSG-MESSAGE ,
ld_simulate  TYPE SY-DAYST ,
it_i_data  TYPE STANDARD TABLE OF FCXL_DATA ,
wa_i_data  LIKE LINE OF it_i_data,
ld_sign_handling  TYPE SY-DAYST ,
it_e_error  TYPE STANDARD TABLE OF FCXL_ERROR ,
wa_e_error  LIKE LINE OF it_e_error,
ld_updatemode  TYPE SY-DAYST ,
ld_wait  TYPE SY-DAYST ,
ld_callno  TYPE FCXL_HIRVL-DEPTH .


ld_aspect_id = some text here

"populate fields of struture and append to itab
append wa_i_request to it_i_request.
ld_simulate = 'some text here'.

"populate fields of struture and append to itab
append wa_i_data to it_i_data.
ld_sign_handling = 'some text here'.

"populate fields of struture and append to itab
append wa_e_error to it_e_error.
ld_updatemode = 'some text here'.
ld_wait = 'some text here'.

ld_callno = 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 FCXL_SET_DATA or its description.