CNPB_H_DATA_GET 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 CNPB_H_DATA_GET into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CNPB_H
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CNPB_H_DATA_GET' "
IMPORTING
est_proj_mand = " cnpb_h_st_proj_mandatory_flds Fields Required from PROJ to Determine the Hierarchy
est_prps_mand = " cnpb_h_st_prps_mandatory_flds Fields Required from PRPS to Determine the Hierarchy
est_mlst_mand = " cnpb_h_st_mlst_mandatory_flds Fields Required from MLST to Determine the Hierarchy
est_prtx_mand = " cnpb_h_st_prtx_mandatory_flds Fields Required from PRTX/PSTX to Determine the Hierarchy
est_netw_mand = " cnpb_h_st_aufk_mandatory_flds Fields Required from AUFK to Determine the Hierarchy
est_ordr_mand = " cnpb_h_st_aufk_mandatory_flds Fields Required from AUFK to Determine the Hierarchy
est_neta_mand = " cnpb_h_st_afvg_mandatory_flds Fields Required from AFV* to Determine the Hierarchy
est_orda_mand = " cnpb_h_st_afvg_mandatory_flds Fields Required from AFV* to Determine the Hierarchy
est_nptx_mand = " cnpb_h_st_nptx_mandatory_flds Fields Required from NPTX/PSTX to Determine the Hierarchy
est_resb_mand = " cnpb_h_st_resb_mandatory_flds Fields Required from RESB to Determine the Hierarchy
est_docs_mand = " cnpb_h_st_docs_mandatory_flds Necessary Fields from DRAD, for Determining Hierarchy
est_affh_mand = " cnpb_h_st_affh_mandatory_flds Fields Required from AFFH to Determine the Hierarchy
est_afab_mand = " cnpb_h_st_afab_mandatory_flds Fields from AFAB Required to Determine Hierarchy
est_file_mand = " cnpb_h_st_file_mandatory_flds Necessary Fields for Document Orig. to Determine Hierarchy
. " CNPB_H_DATA_GET
The ABAP code below is a full code listing to execute function module CNPB_H_DATA_GET 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).
| ld_est_proj_mand | TYPE CNPB_H_ST_PROJ_MANDATORY_FLDS , |
| ld_est_prps_mand | TYPE CNPB_H_ST_PRPS_MANDATORY_FLDS , |
| ld_est_mlst_mand | TYPE CNPB_H_ST_MLST_MANDATORY_FLDS , |
| ld_est_prtx_mand | TYPE CNPB_H_ST_PRTX_MANDATORY_FLDS , |
| ld_est_netw_mand | TYPE CNPB_H_ST_AUFK_MANDATORY_FLDS , |
| ld_est_ordr_mand | TYPE CNPB_H_ST_AUFK_MANDATORY_FLDS , |
| ld_est_neta_mand | TYPE CNPB_H_ST_AFVG_MANDATORY_FLDS , |
| ld_est_orda_mand | TYPE CNPB_H_ST_AFVG_MANDATORY_FLDS , |
| ld_est_nptx_mand | TYPE CNPB_H_ST_NPTX_MANDATORY_FLDS , |
| ld_est_resb_mand | TYPE CNPB_H_ST_RESB_MANDATORY_FLDS , |
| ld_est_docs_mand | TYPE CNPB_H_ST_DOCS_MANDATORY_FLDS , |
| ld_est_affh_mand | TYPE CNPB_H_ST_AFFH_MANDATORY_FLDS , |
| ld_est_afab_mand | TYPE CNPB_H_ST_AFAB_MANDATORY_FLDS , |
| ld_est_file_mand | TYPE CNPB_H_ST_FILE_MANDATORY_FLDS . |
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_est_proj_mand | TYPE CNPB_H_ST_PROJ_MANDATORY_FLDS , |
| ld_est_prps_mand | TYPE CNPB_H_ST_PRPS_MANDATORY_FLDS , |
| ld_est_mlst_mand | TYPE CNPB_H_ST_MLST_MANDATORY_FLDS , |
| ld_est_prtx_mand | TYPE CNPB_H_ST_PRTX_MANDATORY_FLDS , |
| ld_est_netw_mand | TYPE CNPB_H_ST_AUFK_MANDATORY_FLDS , |
| ld_est_ordr_mand | TYPE CNPB_H_ST_AUFK_MANDATORY_FLDS , |
| ld_est_neta_mand | TYPE CNPB_H_ST_AFVG_MANDATORY_FLDS , |
| ld_est_orda_mand | TYPE CNPB_H_ST_AFVG_MANDATORY_FLDS , |
| ld_est_nptx_mand | TYPE CNPB_H_ST_NPTX_MANDATORY_FLDS , |
| ld_est_resb_mand | TYPE CNPB_H_ST_RESB_MANDATORY_FLDS , |
| ld_est_docs_mand | TYPE CNPB_H_ST_DOCS_MANDATORY_FLDS , |
| ld_est_affh_mand | TYPE CNPB_H_ST_AFFH_MANDATORY_FLDS , |
| ld_est_afab_mand | TYPE CNPB_H_ST_AFAB_MANDATORY_FLDS , |
| ld_est_file_mand | TYPE CNPB_H_ST_FILE_MANDATORY_FLDS . |
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 CNPB_H_DATA_GET or its description.