SAP Function Modules

EXIT_SAPLCPCM_001 SAP Function module - Inbound Processing of Production Campaigns







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

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


Pattern for FM EXIT_SAPLCPCM_001 - EXIT SAPLCPCM 001





CALL FUNCTION 'EXIT_SAPLCPCM_001' "Inbound Processing of Production Campaigns
  EXPORTING
    is_ctrlparams =             " cifctrlpar    Control Parameters for Data Transfers
  TABLES
    it_pcmh =                   " smy_pcmh
    it_pcmp =                   " smy_pcmp
    it_pcmhx =                  " smy_pcmhx     Checklist for Production Campaigns (Header)
    it_pcmpx =                  " smy_pcmpx     Checklist for Production Campaigns (Item)
    it_pcmha =                  " smy_pcmha     Append Structure for Production Campaigns (Header)
    it_pcmpa =                  " smy_pcmpa     Append Structure for Production Campaigns (Item)
    extensionin =               " cifbparex
    return =                    " bapiret2
    .  "  EXIT_SAPLCPCM_001

ABAP code example for Function Module EXIT_SAPLCPCM_001





The ABAP code below is a full code listing to execute function module EXIT_SAPLCPCM_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_pcmh  TYPE STANDARD TABLE OF SMY_PCMH,"TABLES PARAM
wa_it_pcmh  LIKE LINE OF it_it_pcmh ,
it_it_pcmp  TYPE STANDARD TABLE OF SMY_PCMP,"TABLES PARAM
wa_it_pcmp  LIKE LINE OF it_it_pcmp ,
it_it_pcmhx  TYPE STANDARD TABLE OF SMY_PCMHX,"TABLES PARAM
wa_it_pcmhx  LIKE LINE OF it_it_pcmhx ,
it_it_pcmpx  TYPE STANDARD TABLE OF SMY_PCMPX,"TABLES PARAM
wa_it_pcmpx  LIKE LINE OF it_it_pcmpx ,
it_it_pcmha  TYPE STANDARD TABLE OF SMY_PCMHA,"TABLES PARAM
wa_it_pcmha  LIKE LINE OF it_it_pcmha ,
it_it_pcmpa  TYPE STANDARD TABLE OF SMY_PCMPA,"TABLES PARAM
wa_it_pcmpa  LIKE LINE OF it_it_pcmpa ,
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_pcmh to it_it_pcmh.

"populate fields of struture and append to itab
append wa_it_pcmp to it_it_pcmp.

"populate fields of struture and append to itab
append wa_it_pcmhx to it_it_pcmhx.

"populate fields of struture and append to itab
append wa_it_pcmpx to it_it_pcmpx.

"populate fields of struture and append to itab
append wa_it_pcmha to it_it_pcmha.

"populate fields of struture and append to itab
append wa_it_pcmpa to it_it_pcmpa.

"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_SAPLCPCM_001' EXPORTING is_ctrlparams = ld_is_ctrlparams TABLES it_pcmh = it_it_pcmh it_pcmp = it_it_pcmp it_pcmhx = it_it_pcmhx it_pcmpx = it_it_pcmpx it_pcmha = it_it_pcmha it_pcmpa = it_it_pcmpa extensionin = it_extensionin return = it_return . " EXIT_SAPLCPCM_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_pcmh  TYPE STANDARD TABLE OF SMY_PCMH ,
wa_it_pcmh  LIKE LINE OF it_it_pcmh,
it_it_pcmp  TYPE STANDARD TABLE OF SMY_PCMP ,
wa_it_pcmp  LIKE LINE OF it_it_pcmp,
it_it_pcmhx  TYPE STANDARD TABLE OF SMY_PCMHX ,
wa_it_pcmhx  LIKE LINE OF it_it_pcmhx,
it_it_pcmpx  TYPE STANDARD TABLE OF SMY_PCMPX ,
wa_it_pcmpx  LIKE LINE OF it_it_pcmpx,
it_it_pcmha  TYPE STANDARD TABLE OF SMY_PCMHA ,
wa_it_pcmha  LIKE LINE OF it_it_pcmha,
it_it_pcmpa  TYPE STANDARD TABLE OF SMY_PCMPA ,
wa_it_pcmpa  LIKE LINE OF it_it_pcmpa,
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_pcmh to it_it_pcmh.

"populate fields of struture and append to itab
append wa_it_pcmp to it_it_pcmp.

"populate fields of struture and append to itab
append wa_it_pcmhx to it_it_pcmhx.

"populate fields of struture and append to itab
append wa_it_pcmpx to it_it_pcmpx.

"populate fields of struture and append to itab
append wa_it_pcmha to it_it_pcmha.

"populate fields of struture and append to itab
append wa_it_pcmpa to it_it_pcmpa.

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