SAP Function Modules

CURTO_GENERATE_PDS SAP Function module







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

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


Pattern for FM CURTO_GENERATE_PDS - CURTO GENERATE PDS





CALL FUNCTION 'CURTO_GENERATE_PDS' "
  EXPORTING
    iv_apo_logsys =             " logsys
*   iv_plan_usage = 'P'         " curto_plan_usage
*   iv_object_appl_log = 'CIF'  " balobj_d
*   iv_subobject_appl_log = 'T_IPRT'  " balsubobj
*   iv_test_mode =              " curto_test_mode
*   iv_extended_check =         " curto_ext_check
*   iv_no_imo_check =           " curto_no_imo_check
    it_rto_key =                " cif_curto_rto_key_tab
*   iv_all_subco =              " xfeld
  IMPORTING
    et_rto_send =               " cif_curto_rto_key_tab
    et_return =                 " cif_curto_rto_return_tab
  EXCEPTIONS
    INITIAL_DATA_TRANSFER_LOCKED = 1  "
    INTERNAL_ERROR = 2          "
    .  "  CURTO_GENERATE_PDS

ABAP code example for Function Module CURTO_GENERATE_PDS





The ABAP code below is a full code listing to execute function module CURTO_GENERATE_PDS 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_et_rto_send  TYPE CIF_CURTO_RTO_KEY_TAB ,
ld_et_return  TYPE CIF_CURTO_RTO_RETURN_TAB .

DATA(ld_iv_apo_logsys) = 'Check type of data required'.
DATA(ld_iv_plan_usage) = 'some text here'.
DATA(ld_iv_object_appl_log) = 'some text here'.
DATA(ld_iv_subobject_appl_log) = 'some text here'.
DATA(ld_iv_test_mode) = 'some text here'.
DATA(ld_iv_extended_check) = 'some text here'.
DATA(ld_iv_no_imo_check) = 'some text here'.
DATA(ld_it_rto_key) = 'some text here'.
DATA(ld_iv_all_subco) = 'some text here'. . CALL FUNCTION 'CURTO_GENERATE_PDS' EXPORTING iv_apo_logsys = ld_iv_apo_logsys * iv_plan_usage = ld_iv_plan_usage * iv_object_appl_log = ld_iv_object_appl_log * iv_subobject_appl_log = ld_iv_subobject_appl_log * iv_test_mode = ld_iv_test_mode * iv_extended_check = ld_iv_extended_check * iv_no_imo_check = ld_iv_no_imo_check it_rto_key = ld_it_rto_key * iv_all_subco = ld_iv_all_subco IMPORTING et_rto_send = ld_et_rto_send et_return = ld_et_return EXCEPTIONS INITIAL_DATA_TRANSFER_LOCKED = 1 INTERNAL_ERROR = 2 . " CURTO_GENERATE_PDS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_et_rto_send  TYPE CIF_CURTO_RTO_KEY_TAB ,
ld_iv_apo_logsys  TYPE LOGSYS ,
ld_et_return  TYPE CIF_CURTO_RTO_RETURN_TAB ,
ld_iv_plan_usage  TYPE CURTO_PLAN_USAGE ,
ld_iv_object_appl_log  TYPE BALOBJ_D ,
ld_iv_subobject_appl_log  TYPE BALSUBOBJ ,
ld_iv_test_mode  TYPE CURTO_TEST_MODE ,
ld_iv_extended_check  TYPE CURTO_EXT_CHECK ,
ld_iv_no_imo_check  TYPE CURTO_NO_IMO_CHECK ,
ld_it_rto_key  TYPE CIF_CURTO_RTO_KEY_TAB ,
ld_iv_all_subco  TYPE XFELD .

ld_iv_apo_logsys = 'Check type of data required'.
ld_iv_plan_usage = 'some text here'.
ld_iv_object_appl_log = 'some text here'.
ld_iv_subobject_appl_log = 'some text here'.
ld_iv_test_mode = 'some text here'.
ld_iv_extended_check = 'some text here'.
ld_iv_no_imo_check = 'some text here'.
ld_it_rto_key = 'some text here'.
ld_iv_all_subco = '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 CURTO_GENERATE_PDS or its description.