SAP Function Modules

CACS_CONVERSION_OUTPUT_STRUCT SAP Function module







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

Associated Function Group: CACS_CONVERSION
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CACS_CONVERSION_OUTPUT_STRUCT - CACS CONVERSION OUTPUT STRUCT





CALL FUNCTION 'CACS_CONVERSION_OUTPUT_STRUCT' "
  EXPORTING
*   iflg_exception = SPACE      " boolean_flg
    i_struc_name =              " tabname
  IMPORTING
    e_struct =                  "
* TABLES
*   i_currency =                " cacs_s_currencies
  CHANGING
    i_struct =                  "
    .  "  CACS_CONVERSION_OUTPUT_STRUCT

ABAP code example for Function Module CACS_CONVERSION_OUTPUT_STRUCT





The ABAP code below is a full code listing to execute function module CACS_CONVERSION_OUTPUT_STRUCT 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_struct  TYPE STRING ,
it_i_currency  TYPE STANDARD TABLE OF CACS_S_CURRENCIES,"TABLES PARAM
wa_i_currency  LIKE LINE OF it_i_currency .

DATA(ld_i_struct) = 'some text here'.
DATA(ld_iflg_exception) = 'Check type of data required'.
DATA(ld_i_struc_name) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_currency to it_i_currency. . CALL FUNCTION 'CACS_CONVERSION_OUTPUT_STRUCT' EXPORTING * iflg_exception = ld_iflg_exception i_struc_name = ld_i_struc_name IMPORTING e_struct = ld_e_struct * TABLES * i_currency = it_i_currency CHANGING i_struct = ld_i_struct . " CACS_CONVERSION_OUTPUT_STRUCT
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_i_struct  TYPE STRING ,
ld_e_struct  TYPE STRING ,
ld_iflg_exception  TYPE BOOLEAN_FLG ,
it_i_currency  TYPE STANDARD TABLE OF CACS_S_CURRENCIES ,
wa_i_currency  LIKE LINE OF it_i_currency,
ld_i_struc_name  TYPE TABNAME .

ld_i_struct = 'some text here'.
ld_iflg_exception = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_currency to it_i_currency.
ld_i_struc_name = '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 CACS_CONVERSION_OUTPUT_STRUCT or its description.