SAP PPC1PP_NB_CREATE Function Module for NOTRANSL: CREATE_NB









PPC1PP_NB_CREATE is a standard ppc1pp nb create 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: CREATE_NB 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 ppc1pp nb create FM, simply by entering the name PPC1PP_NB_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: PPC1PP
Program Name: SAPLPPC1PP
Main Program: SAPLPPC1PP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PPC1PP_NB_CREATE 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 'PPC1PP_NB_CREATE'"NOTRANSL: CREATE_NB
EXPORTING
IS_EMKPF = "MMIM: Output Structure For General FM To Post Goods Movement
IF_AUFNR = "Account Assignment Object (UID)
IF_BUDAT = "Date in CHAR format
IF_BAUGR = "Material Number of Higher-Level Assembly
IF_WERKS_BG = "Plant
IF_FLG_INFO_DEST = "
IF_CONFLOGSYS = "

IMPORTING
EF_EDOC = "

CHANGING
* CF_MAT_LINES_OK = "
* CF_MAT_LINES_FAIL = "

TABLES
IT_IMSEG = "MMIM: Input Structure for General FM to Post Goods Movement
IT_EMSEG = "MMIM: Output Structure For General FM To Post Goods Movement
IT_IMSEG_FAILED = "MMIM: Input Structure for General FM to Post Goods Movement
IT_EMSEG_FAILED = "MMIM: Output Structure For General FM To Post Goods Movement

EXCEPTIONS
DATA_ERROR = 1 MATERIAL_IN_PLANT_NOT_FOUND = 2 LOCK_ERROR = 3
.



IMPORTING Parameters details for PPC1PP_NB_CREATE

IS_EMKPF - MMIM: Output Structure For General FM To Post Goods Movement

Data type: EMKPF
Optional: No
Call by Reference: Yes

IF_AUFNR - Account Assignment Object (UID)

Data type: QRP002-AUFNR
Optional: No
Call by Reference: Yes

IF_BUDAT - Date in CHAR format

Data type: BUDAT
Optional: No
Call by Reference: Yes

IF_BAUGR - Material Number of Higher-Level Assembly

Data type: BAUGR
Optional: No
Call by Reference: Yes

IF_WERKS_BG - Plant

Data type: WERKS_D
Optional: No
Call by Reference: Yes

IF_FLG_INFO_DEST -

Data type: PPC_HEAD-FLG_INFO_DEST
Optional: No
Call by Reference: Yes

IF_CONFLOGSYS -

Data type: PPC_HEAD-CONFLOGSYS
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for PPC1PP_NB_CREATE

EF_EDOC -

Data type: PPCPP_TYPE_TAB_AFFWNR
Optional: No
Call by Reference: Yes

CHANGING Parameters details for PPC1PP_NB_CREATE

CF_MAT_LINES_OK -

Data type: I
Optional: Yes
Call by Reference: Yes

CF_MAT_LINES_FAIL -

Data type: I
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for PPC1PP_NB_CREATE

IT_IMSEG - MMIM: Input Structure for General FM to Post Goods Movement

Data type: IMSEG
Optional: No
Call by Reference: Yes

IT_EMSEG - MMIM: Output Structure For General FM To Post Goods Movement

Data type: EMSEG
Optional: No
Call by Reference: Yes

IT_IMSEG_FAILED - MMIM: Input Structure for General FM to Post Goods Movement

Data type: IMSEG
Optional: No
Call by Reference: Yes

IT_EMSEG_FAILED - MMIM: Output Structure For General FM To Post Goods Movement

Data type: EMSEG
Optional: No
Call by Reference: Yes

EXCEPTIONS details

DATA_ERROR -

Data type:
Optional: No
Call by Reference: Yes

MATERIAL_IN_PLANT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

LOCK_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PPC1PP_NB_CREATE 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:
lv_ef_edoc  TYPE PPCPP_TYPE_TAB_AFFWNR, "   
lv_is_emkpf  TYPE EMKPF, "   
lt_it_imseg  TYPE STANDARD TABLE OF IMSEG, "   
lv_data_error  TYPE IMSEG, "   
lv_cf_mat_lines_ok  TYPE I, "   
lv_if_aufnr  TYPE QRP002-AUFNR, "   
lt_it_emseg  TYPE STANDARD TABLE OF EMSEG, "   
lv_cf_mat_lines_fail  TYPE I, "   
lv_material_in_plant_not_found  TYPE I, "   
lv_if_budat  TYPE BUDAT, "   
lv_lock_error  TYPE BUDAT, "   
lt_it_imseg_failed  TYPE STANDARD TABLE OF IMSEG, "   
lv_if_baugr  TYPE BAUGR, "   
lt_it_emseg_failed  TYPE STANDARD TABLE OF EMSEG, "   
lv_if_werks_bg  TYPE WERKS_D, "   
lv_if_flg_info_dest  TYPE PPC_HEAD-FLG_INFO_DEST, "   
lv_if_conflogsys  TYPE PPC_HEAD-CONFLOGSYS. "   

  CALL FUNCTION 'PPC1PP_NB_CREATE'  "NOTRANSL: CREATE_NB
    EXPORTING
         IS_EMKPF = lv_is_emkpf
         IF_AUFNR = lv_if_aufnr
         IF_BUDAT = lv_if_budat
         IF_BAUGR = lv_if_baugr
         IF_WERKS_BG = lv_if_werks_bg
         IF_FLG_INFO_DEST = lv_if_flg_info_dest
         IF_CONFLOGSYS = lv_if_conflogsys
    IMPORTING
         EF_EDOC = lv_ef_edoc
    CHANGING
         CF_MAT_LINES_OK = lv_cf_mat_lines_ok
         CF_MAT_LINES_FAIL = lv_cf_mat_lines_fail
    TABLES
         IT_IMSEG = lt_it_imseg
         IT_EMSEG = lt_it_emseg
         IT_IMSEG_FAILED = lt_it_imseg_failed
         IT_EMSEG_FAILED = lt_it_emseg_failed
    EXCEPTIONS
        DATA_ERROR = 1
        MATERIAL_IN_PLANT_NOT_FOUND = 2
        LOCK_ERROR = 3
. " PPC1PP_NB_CREATE




ABAP code using 7.40 inline data declarations to call FM PPC1PP_NB_CREATE

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.

 
 
 
 
 
"SELECT single AUFNR FROM QRP002 INTO @DATA(ld_if_aufnr).
 
 
 
 
 
 
 
 
 
 
"SELECT single FLG_INFO_DEST FROM PPC_HEAD INTO @DATA(ld_if_flg_info_dest).
 
"SELECT single CONFLOGSYS FROM PPC_HEAD INTO @DATA(ld_if_conflogsys).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!