SAP Function Modules

FAA_RWIN_CALL_ACDOC_CREATE SAP Function module







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

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


Pattern for FM FAA_RWIN_CALL_ACDOC_CREATE - FAA RWIN CALL ACDOC CREATE





CALL FUNCTION 'FAA_RWIN_CALL_ACDOC_CREATE' "
* EXPORTING
*   iv_component = SPACE        " trwpr-component
*   iv_som_instance_name =      " shm_inst_name
  CHANGING
    ct_accit =                  " accit_t
    ct_acchd =                  " acchd_t
    ct_acccr =                  " acccr_t
    ct_accda =                  " accda_t
    ct_return =                 " bapiret2_tab
    .  "  FAA_RWIN_CALL_ACDOC_CREATE

ABAP code example for Function Module FAA_RWIN_CALL_ACDOC_CREATE





The ABAP code below is a full code listing to execute function module FAA_RWIN_CALL_ACDOC_CREATE 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_ct_accit) = 'Check type of data required'.
DATA(ld_ct_acchd) = 'Check type of data required'.
DATA(ld_ct_acccr) = 'Check type of data required'.
DATA(ld_ct_accda) = 'Check type of data required'.
DATA(ld_ct_return) = 'Check type of data required'.

SELECT single COMPONENT
FROM TRWPR
INTO @DATA(ld_iv_component).

DATA(ld_iv_som_instance_name) = 'Check type of data required'. . CALL FUNCTION 'FAA_RWIN_CALL_ACDOC_CREATE' * EXPORTING * iv_component = ld_iv_component * iv_som_instance_name = ld_iv_som_instance_name CHANGING ct_accit = ld_ct_accit ct_acchd = ld_ct_acchd ct_acccr = ld_ct_acccr ct_accda = ld_ct_accda ct_return = ld_ct_return . " FAA_RWIN_CALL_ACDOC_CREATE
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_ct_accit  TYPE ACCIT_T ,
ld_iv_component  TYPE TRWPR-COMPONENT ,
ld_ct_acchd  TYPE ACCHD_T ,
ld_iv_som_instance_name  TYPE SHM_INST_NAME ,
ld_ct_acccr  TYPE ACCCR_T ,
ld_ct_accda  TYPE ACCDA_T ,
ld_ct_return  TYPE BAPIRET2_TAB .

ld_ct_accit = 'Check type of data required'.

SELECT single COMPONENT
FROM TRWPR
INTO ld_iv_component.

ld_ct_acchd = 'Check type of data required'.
ld_iv_som_instance_name = 'Check type of data required'.
ld_ct_acccr = 'Check type of data required'.
ld_ct_accda = 'Check type of data required'.
ld_ct_return = '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 FAA_RWIN_CALL_ACDOC_CREATE or its description.