SAP CNPB_H_DATA_GET Function Module for NOTRANSL: Export der Daten aus Funktionsgruppe CNPB_H









CNPB_H_DATA_GET is a standard cnpb h data get 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: Export der Daten aus Funktionsgruppe CNPB_H 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 cnpb h data get FM, simply by entering the name CNPB_H_DATA_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function CNPB_H_DATA_GET 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 'CNPB_H_DATA_GET'"NOTRANSL: Export der Daten aus Funktionsgruppe CNPB_H
IMPORTING
EST_PROJ_MAND = "Fields Required from PROJ to Determine the Hierarchy
EST_RESB_MAND = "Fields Required from RESB to Determine the Hierarchy
EST_DOCS_MAND = "Necessary Fields from DRAD, for Determining Hierarchy
EST_AFFH_MAND = "Fields Required from AFFH to Determine the Hierarchy
EST_AFAB_MAND = "Fields from AFAB Required to Determine Hierarchy
EST_FILE_MAND = "Necessary Fields for Document Orig. to Determine Hierarchy
EST_PRPS_MAND = "Fields Required from PRPS to Determine the Hierarchy
EST_MLST_MAND = "Fields Required from MLST to Determine the Hierarchy
EST_PRTX_MAND = "Fields Required from PRTX/PSTX to Determine the Hierarchy
EST_NETW_MAND = "Fields Required from AUFK to Determine the Hierarchy
EST_ORDR_MAND = "Fields Required from AUFK to Determine the Hierarchy
EST_NETA_MAND = "Fields Required from AFV* to Determine the Hierarchy
EST_ORDA_MAND = "Fields Required from AFV* to Determine the Hierarchy
EST_NPTX_MAND = "Fields Required from NPTX/PSTX to Determine the Hierarchy
.



EXPORTING Parameters details for CNPB_H_DATA_GET

EST_PROJ_MAND - Fields Required from PROJ to Determine the Hierarchy

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

EST_RESB_MAND - Fields Required from RESB to Determine the Hierarchy

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

EST_DOCS_MAND - Necessary Fields from DRAD, for Determining Hierarchy

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

EST_AFFH_MAND - Fields Required from AFFH to Determine the Hierarchy

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

EST_AFAB_MAND - Fields from AFAB Required to Determine Hierarchy

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

EST_FILE_MAND - Necessary Fields for Document Orig. to Determine Hierarchy

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

EST_PRPS_MAND - Fields Required from PRPS to Determine the Hierarchy

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

EST_MLST_MAND - Fields Required from MLST to Determine the Hierarchy

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

EST_PRTX_MAND - Fields Required from PRTX/PSTX to Determine the Hierarchy

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

EST_NETW_MAND - Fields Required from AUFK to Determine the Hierarchy

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

EST_ORDR_MAND - Fields Required from AUFK to Determine the Hierarchy

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

EST_NETA_MAND - Fields Required from AFV* to Determine the Hierarchy

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

EST_ORDA_MAND - Fields Required from AFV* to Determine the Hierarchy

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

EST_NPTX_MAND - Fields Required from NPTX/PSTX to Determine the Hierarchy

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

Copy and paste ABAP code example for CNPB_H_DATA_GET 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_est_proj_mand  TYPE CNPB_H_ST_PROJ_MANDATORY_FLDS, "   
lv_est_resb_mand  TYPE CNPB_H_ST_RESB_MANDATORY_FLDS, "   
lv_est_docs_mand  TYPE CNPB_H_ST_DOCS_MANDATORY_FLDS, "   
lv_est_affh_mand  TYPE CNPB_H_ST_AFFH_MANDATORY_FLDS, "   
lv_est_afab_mand  TYPE CNPB_H_ST_AFAB_MANDATORY_FLDS, "   
lv_est_file_mand  TYPE CNPB_H_ST_FILE_MANDATORY_FLDS, "   
lv_est_prps_mand  TYPE CNPB_H_ST_PRPS_MANDATORY_FLDS, "   
lv_est_mlst_mand  TYPE CNPB_H_ST_MLST_MANDATORY_FLDS, "   
lv_est_prtx_mand  TYPE CNPB_H_ST_PRTX_MANDATORY_FLDS, "   
lv_est_netw_mand  TYPE CNPB_H_ST_AUFK_MANDATORY_FLDS, "   
lv_est_ordr_mand  TYPE CNPB_H_ST_AUFK_MANDATORY_FLDS, "   
lv_est_neta_mand  TYPE CNPB_H_ST_AFVG_MANDATORY_FLDS, "   
lv_est_orda_mand  TYPE CNPB_H_ST_AFVG_MANDATORY_FLDS, "   
lv_est_nptx_mand  TYPE CNPB_H_ST_NPTX_MANDATORY_FLDS. "   

  CALL FUNCTION 'CNPB_H_DATA_GET'  "NOTRANSL: Export der Daten aus Funktionsgruppe CNPB_H
    IMPORTING
         EST_PROJ_MAND = lv_est_proj_mand
         EST_RESB_MAND = lv_est_resb_mand
         EST_DOCS_MAND = lv_est_docs_mand
         EST_AFFH_MAND = lv_est_affh_mand
         EST_AFAB_MAND = lv_est_afab_mand
         EST_FILE_MAND = lv_est_file_mand
         EST_PRPS_MAND = lv_est_prps_mand
         EST_MLST_MAND = lv_est_mlst_mand
         EST_PRTX_MAND = lv_est_prtx_mand
         EST_NETW_MAND = lv_est_netw_mand
         EST_ORDR_MAND = lv_est_ordr_mand
         EST_NETA_MAND = lv_est_neta_mand
         EST_ORDA_MAND = lv_est_orda_mand
         EST_NPTX_MAND = lv_est_nptx_mand
. " CNPB_H_DATA_GET




ABAP code using 7.40 inline data declarations to call FM CNPB_H_DATA_GET

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!