SAP Function Modules

PPC1RT_EXT_KEYS_CONVERT SAP Function module







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

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


Pattern for FM PPC1RT_EXT_KEYS_CONVERT - PPC1RT EXT KEYS CONVERT





CALL FUNCTION 'PPC1RT_EXT_KEYS_CONVERT' "
* TABLES
*   it_ext_confdate =           " ppcdc_r_confdate
*   et_conftime =               " ppcdc_r_conftime
*   it_line_header_ext =        " ppcdc_r_line_header_ext
*   et_line_header_int =        " ppcdc_r_line_header_int
*   it_reppoint_ext =           " ppcdc_r_reppoint_ext
*   et_reppoint_int =           " ppcdc_r_reppoint_int
  EXCEPTIONS
    NO_RECS_FOUND = 1           "
    .  "  PPC1RT_EXT_KEYS_CONVERT

ABAP code example for Function Module PPC1RT_EXT_KEYS_CONVERT





The ABAP code below is a full code listing to execute function module PPC1RT_EXT_KEYS_CONVERT 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:
it_it_ext_confdate  TYPE STANDARD TABLE OF PPCDC_R_CONFDATE,"TABLES PARAM
wa_it_ext_confdate  LIKE LINE OF it_it_ext_confdate ,
it_et_conftime  TYPE STANDARD TABLE OF PPCDC_R_CONFTIME,"TABLES PARAM
wa_et_conftime  LIKE LINE OF it_et_conftime ,
it_it_line_header_ext  TYPE STANDARD TABLE OF PPCDC_R_LINE_HEADER_EXT,"TABLES PARAM
wa_it_line_header_ext  LIKE LINE OF it_it_line_header_ext ,
it_et_line_header_int  TYPE STANDARD TABLE OF PPCDC_R_LINE_HEADER_INT,"TABLES PARAM
wa_et_line_header_int  LIKE LINE OF it_et_line_header_int ,
it_it_reppoint_ext  TYPE STANDARD TABLE OF PPCDC_R_REPPOINT_EXT,"TABLES PARAM
wa_it_reppoint_ext  LIKE LINE OF it_it_reppoint_ext ,
it_et_reppoint_int  TYPE STANDARD TABLE OF PPCDC_R_REPPOINT_INT,"TABLES PARAM
wa_et_reppoint_int  LIKE LINE OF it_et_reppoint_int .


"populate fields of struture and append to itab
append wa_it_ext_confdate to it_it_ext_confdate.

"populate fields of struture and append to itab
append wa_et_conftime to it_et_conftime.

"populate fields of struture and append to itab
append wa_it_line_header_ext to it_it_line_header_ext.

"populate fields of struture and append to itab
append wa_et_line_header_int to it_et_line_header_int.

"populate fields of struture and append to itab
append wa_it_reppoint_ext to it_it_reppoint_ext.

"populate fields of struture and append to itab
append wa_et_reppoint_int to it_et_reppoint_int. . CALL FUNCTION 'PPC1RT_EXT_KEYS_CONVERT' * TABLES * it_ext_confdate = it_it_ext_confdate * et_conftime = it_et_conftime * it_line_header_ext = it_it_line_header_ext * et_line_header_int = it_et_line_header_int * it_reppoint_ext = it_it_reppoint_ext * et_reppoint_int = it_et_reppoint_int EXCEPTIONS NO_RECS_FOUND = 1 . " PPC1RT_EXT_KEYS_CONVERT
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:
it_it_ext_confdate  TYPE STANDARD TABLE OF PPCDC_R_CONFDATE ,
wa_it_ext_confdate  LIKE LINE OF it_it_ext_confdate,
it_et_conftime  TYPE STANDARD TABLE OF PPCDC_R_CONFTIME ,
wa_et_conftime  LIKE LINE OF it_et_conftime,
it_it_line_header_ext  TYPE STANDARD TABLE OF PPCDC_R_LINE_HEADER_EXT ,
wa_it_line_header_ext  LIKE LINE OF it_it_line_header_ext,
it_et_line_header_int  TYPE STANDARD TABLE OF PPCDC_R_LINE_HEADER_INT ,
wa_et_line_header_int  LIKE LINE OF it_et_line_header_int,
it_it_reppoint_ext  TYPE STANDARD TABLE OF PPCDC_R_REPPOINT_EXT ,
wa_it_reppoint_ext  LIKE LINE OF it_it_reppoint_ext,
it_et_reppoint_int  TYPE STANDARD TABLE OF PPCDC_R_REPPOINT_INT ,
wa_et_reppoint_int  LIKE LINE OF it_et_reppoint_int.


"populate fields of struture and append to itab
append wa_it_ext_confdate to it_it_ext_confdate.

"populate fields of struture and append to itab
append wa_et_conftime to it_et_conftime.

"populate fields of struture and append to itab
append wa_it_line_header_ext to it_it_line_header_ext.

"populate fields of struture and append to itab
append wa_et_line_header_int to it_et_line_header_int.

"populate fields of struture and append to itab
append wa_it_reppoint_ext to it_it_reppoint_ext.

"populate fields of struture and append to itab
append wa_et_reppoint_int to it_et_reppoint_int.

SAP Documentation for FM PPC1RT_EXT_KEYS_CONVERT


Converts external keys into internal keys, which can be used to search the data base. ...See here for full SAP fm documentation








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 PPC1RT_EXT_KEYS_CONVERT or its description.