SAP PPC1DC_HEADS_SELECT Function Module for NOTRANSL: extern: Selektiert Kopfsätze zu Ranges
PPC1DC_HEADS_SELECT is a standard ppc1dc heads select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: extern: Selektiert Kopfsätze zu Ranges processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ppc1dc heads select FM, simply by entering the name PPC1DC_HEADS_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: PPC1DC
Program Name: SAPLPPC1DC
Main Program: SAPLPPC1DC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PPC1DC_HEADS_SELECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PPC1DC_HEADS_SELECT'"NOTRANSL: extern: Selektiert Kopfsätze zu Ranges.
EXPORTING
* IF_ORDERREF = ' ' "
* IF_MAX_REC = 500 "
* IF_NEGATE = "Negated
TABLES
* IR_CANCL = "Cancel. Ind.
* IR_PLANT = "Plant
* IR_MATNR = "Material Number
* IR_VERID = "Prod.Version
* IR_POSTD = "Posting Date
* IR_UNAME = "Username Creator
* IR_CFTIM = "Entry Time Stamp
* IR_SYST = "
* IR_SLSOR = "Sales Order
* IR_SOPOS = "
* IR_ORDID = "
* IR_SYNCH = "Posted synchron.
* IR_EXORD = "External Order Number
* IR_LINID = "
* IR_RPTID = "
* IR_HEDID = "
* IR_ACCID = "
ET_HEADER_RAW = "
* ET_HEADIDS = "HeadID with Confirmation Time
* IR_ASYNC = "Posted asynchron.
* IR_ACTIV = "
* IR_GOODR = "Goods Receipt
* IR_SCRAP = "Assembly Scrap
* IR_MATVA = "
* IR_ACTVA = "
* IR_DUMMY = "
EXCEPTIONS
NO_RECS_FOUND = 1 TOO_MANY_RECORDS = 2
IMPORTING Parameters details for PPC1DC_HEADS_SELECT
IF_ORDERREF -
Data type: CDefault: SPACE
Optional: No
Call by Reference: Yes
IF_MAX_REC -
Data type: IDefault: 500
Optional: Yes
Call by Reference: Yes
IF_NEGATE - Negated
Data type: COptional: Yes
Call by Reference: Yes
TABLES Parameters details for PPC1DC_HEADS_SELECT
IR_CANCL - Cancel. Ind.
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_PLANT - Plant
Data type: PPCDC_R_PLANTOptional: Yes
Call by Reference: Yes
IR_MATNR - Material Number
Data type: PPCDC_R_MATNROptional: Yes
Call by Reference: Yes
IR_VERID - Prod.Version
Data type: PPCDC_R_VERIDOptional: Yes
Call by Reference: Yes
IR_POSTD - Posting Date
Data type: PPCDC_R_BUDATOptional: Yes
Call by Reference: Yes
IR_UNAME - Username Creator
Data type: PPCDC_R_UNAMEOptional: Yes
Call by Reference: Yes
IR_CFTIM - Entry Time Stamp
Data type: PPCDC_R_CONFTIMEOptional: Yes
Call by Reference: Yes
IR_SYST -
Data type: PPCDC_R_SYSTOptional: Yes
Call by Reference: Yes
IR_SLSOR - Sales Order
Data type: PPCDC_R_KDAUFOptional: Yes
Call by Reference: Yes
IR_SOPOS -
Data type: PPCDC_R_KDPOSOptional: Yes
Call by Reference: Yes
IR_ORDID -
Data type: PPCDC_R_ORDIDOptional: Yes
Call by Reference: Yes
IR_SYNCH - Posted synchron.
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_EXORD - External Order Number
Data type: PPCDC_R_EXORDOptional: Yes
Call by Reference: Yes
IR_LINID -
Data type: PPCDC_R_LINE_HEADER_INTOptional: Yes
Call by Reference: Yes
IR_RPTID -
Data type: PPCDC_R_REPPOINT_INTOptional: Yes
Call by Reference: Yes
IR_HEDID -
Data type: PPCDC_R_HEADIDOptional: Yes
Call by Reference: Yes
IR_ACCID -
Data type: PPCDC_R_ACCIDOptional: Yes
Call by Reference: Yes
ET_HEADER_RAW -
Data type: PPC_T_HEADER_RAWOptional: No
Call by Reference: Yes
ET_HEADIDS - HeadID with Confirmation Time
Data type: PPC_HEADS_SHORTOptional: Yes
Call by Reference: Yes
IR_ASYNC - Posted asynchron.
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_ACTIV -
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_GOODR - Goods Receipt
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_SCRAP - Assembly Scrap
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_MATVA -
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_ACTVA -
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
IR_DUMMY -
Data type: PPCDC_R_FLAGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_RECS_FOUND - No data records found
Data type:Optional: No
Call by Reference: Yes
TOO_MANY_RECORDS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PPC1DC_HEADS_SELECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_ir_cancl | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lv_if_orderref | TYPE C, " SPACE | |||
| lv_no_recs_found | TYPE C, " | |||
| lt_ir_plant | TYPE STANDARD TABLE OF PPCDC_R_PLANT, " | |||
| lt_ir_matnr | TYPE STANDARD TABLE OF PPCDC_R_MATNR, " | |||
| lt_ir_verid | TYPE STANDARD TABLE OF PPCDC_R_VERID, " | |||
| lt_ir_postd | TYPE STANDARD TABLE OF PPCDC_R_BUDAT, " | |||
| lt_ir_uname | TYPE STANDARD TABLE OF PPCDC_R_UNAME, " | |||
| lt_ir_cftim | TYPE STANDARD TABLE OF PPCDC_R_CONFTIME, " | |||
| lt_ir_syst | TYPE STANDARD TABLE OF PPCDC_R_SYST, " | |||
| lt_ir_slsor | TYPE STANDARD TABLE OF PPCDC_R_KDAUF, " | |||
| lt_ir_sopos | TYPE STANDARD TABLE OF PPCDC_R_KDPOS, " | |||
| lt_ir_ordid | TYPE STANDARD TABLE OF PPCDC_R_ORDID, " | |||
| lt_ir_synch | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lv_if_max_rec | TYPE I, " 500 | |||
| lv_too_many_records | TYPE I, " | |||
| lt_ir_exord | TYPE STANDARD TABLE OF PPCDC_R_EXORD, " | |||
| lt_ir_linid | TYPE STANDARD TABLE OF PPCDC_R_LINE_HEADER_INT, " | |||
| lt_ir_rptid | TYPE STANDARD TABLE OF PPCDC_R_REPPOINT_INT, " | |||
| lt_ir_hedid | TYPE STANDARD TABLE OF PPCDC_R_HEADID, " | |||
| lt_ir_accid | TYPE STANDARD TABLE OF PPCDC_R_ACCID, " | |||
| lt_et_header_raw | TYPE STANDARD TABLE OF PPC_T_HEADER_RAW, " | |||
| lt_et_headids | TYPE STANDARD TABLE OF PPC_HEADS_SHORT, " | |||
| lt_ir_async | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lv_if_negate | TYPE C, " | |||
| lt_ir_activ | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lt_ir_goodr | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lt_ir_scrap | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lt_ir_matva | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lt_ir_actva | TYPE STANDARD TABLE OF PPCDC_R_FLAG, " | |||
| lt_ir_dummy | TYPE STANDARD TABLE OF PPCDC_R_FLAG. " |
|   CALL FUNCTION 'PPC1DC_HEADS_SELECT' "NOTRANSL: extern: Selektiert Kopfsätze zu Ranges |
| EXPORTING | ||
| IF_ORDERREF | = lv_if_orderref | |
| IF_MAX_REC | = lv_if_max_rec | |
| IF_NEGATE | = lv_if_negate | |
| TABLES | ||
| IR_CANCL | = lt_ir_cancl | |
| IR_PLANT | = lt_ir_plant | |
| IR_MATNR | = lt_ir_matnr | |
| IR_VERID | = lt_ir_verid | |
| IR_POSTD | = lt_ir_postd | |
| IR_UNAME | = lt_ir_uname | |
| IR_CFTIM | = lt_ir_cftim | |
| IR_SYST | = lt_ir_syst | |
| IR_SLSOR | = lt_ir_slsor | |
| IR_SOPOS | = lt_ir_sopos | |
| IR_ORDID | = lt_ir_ordid | |
| IR_SYNCH | = lt_ir_synch | |
| IR_EXORD | = lt_ir_exord | |
| IR_LINID | = lt_ir_linid | |
| IR_RPTID | = lt_ir_rptid | |
| IR_HEDID | = lt_ir_hedid | |
| IR_ACCID | = lt_ir_accid | |
| ET_HEADER_RAW | = lt_et_header_raw | |
| ET_HEADIDS | = lt_et_headids | |
| IR_ASYNC | = lt_ir_async | |
| IR_ACTIV | = lt_ir_activ | |
| IR_GOODR | = lt_ir_goodr | |
| IR_SCRAP | = lt_ir_scrap | |
| IR_MATVA | = lt_ir_matva | |
| IR_ACTVA | = lt_ir_actva | |
| IR_DUMMY | = lt_ir_dummy | |
| EXCEPTIONS | ||
| NO_RECS_FOUND = 1 | ||
| TOO_MANY_RECORDS = 2 | ||
| . " PPC1DC_HEADS_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM PPC1DC_HEADS_SELECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_if_orderref) | = ' '. | |||
| DATA(ld_if_max_rec) | = 500. | |||
Search for further information about these or an SAP related objects