SAP Function Modules

EXIT_SAPLCPIR_001 SAP Function module - R/3 Inbound Processing of APO Enhancement Structures







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

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


Pattern for FM EXIT_SAPLCPIR_001 - EXIT SAPLCPIR 001





CALL FUNCTION 'EXIT_SAPLCPIR_001' "R/3 Inbound Processing of APO Enhancement Structures
  EXPORTING
    is_ctrlparams =             " cifctrlpar
  TABLES
    it_sched =                  " cif_pir_s
    it_schedx =                 " cif_pir_sx
    it_scheda =                 " cif_pir_sa
*   it_cvals =                  " cif_pir_sc    Planned Independent Requirement, Characteristic Value Assgts
    extensionin =               " cifbparex
    return =                    " bapiret2
    .  "  EXIT_SAPLCPIR_001

ABAP code example for Function Module EXIT_SAPLCPIR_001





The ABAP code below is a full code listing to execute function module EXIT_SAPLCPIR_001 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_sched  TYPE STANDARD TABLE OF CIF_PIR_S,"TABLES PARAM
wa_it_sched  LIKE LINE OF it_it_sched ,
it_it_schedx  TYPE STANDARD TABLE OF CIF_PIR_SX,"TABLES PARAM
wa_it_schedx  LIKE LINE OF it_it_schedx ,
it_it_scheda  TYPE STANDARD TABLE OF CIF_PIR_SA,"TABLES PARAM
wa_it_scheda  LIKE LINE OF it_it_scheda ,
it_it_cvals  TYPE STANDARD TABLE OF CIF_PIR_SC,"TABLES PARAM
wa_it_cvals  LIKE LINE OF it_it_cvals ,
it_extensionin  TYPE STANDARD TABLE OF CIFBPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_is_ctrlparams) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sched to it_it_sched.

"populate fields of struture and append to itab
append wa_it_schedx to it_it_schedx.

"populate fields of struture and append to itab
append wa_it_scheda to it_it_scheda.

"populate fields of struture and append to itab
append wa_it_cvals to it_it_cvals.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'EXIT_SAPLCPIR_001' EXPORTING is_ctrlparams = ld_is_ctrlparams TABLES it_sched = it_it_sched it_schedx = it_it_schedx it_scheda = it_it_scheda * it_cvals = it_it_cvals extensionin = it_extensionin return = it_return . " EXIT_SAPLCPIR_001
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_is_ctrlparams  TYPE CIFCTRLPAR ,
it_it_sched  TYPE STANDARD TABLE OF CIF_PIR_S ,
wa_it_sched  LIKE LINE OF it_it_sched,
it_it_schedx  TYPE STANDARD TABLE OF CIF_PIR_SX ,
wa_it_schedx  LIKE LINE OF it_it_schedx,
it_it_scheda  TYPE STANDARD TABLE OF CIF_PIR_SA ,
wa_it_scheda  LIKE LINE OF it_it_scheda,
it_it_cvals  TYPE STANDARD TABLE OF CIF_PIR_SC ,
wa_it_cvals  LIKE LINE OF it_it_cvals,
it_extensionin  TYPE STANDARD TABLE OF CIFBPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.

ld_is_ctrlparams = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sched to it_it_sched.

"populate fields of struture and append to itab
append wa_it_schedx to it_it_schedx.

"populate fields of struture and append to itab
append wa_it_scheda to it_it_scheda.

"populate fields of struture and append to itab
append wa_it_cvals to it_it_cvals.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_return to it_return.

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