SAP Reports / Programs

SAPDBPNM SAP ABAP Report - Logical Database PNM







SAPDBPNM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program SAPDBPNM contains the access routines for reporting...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter SAPDBPNM into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SAPDBPNM. "Basic submit
SUBMIT SAPDBPNM AND RETURN. "Return to original report after report execution complete
SUBMIT SAPDBPNM VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PN_DATUV = Key Date
Selection Text: PN_MATNR = Material
Selection Text: PN_MEHRS = Explode Phantom Assemblies
Selection Text: PN_PLNAL = Group Counter
Selection Text: PN_PLNNR = Group
Selection Text: PN_PLNTY = Task List Type
Selection Text: PN_WERKS = Plant for Material
Title: Logical Database PNM
Text Symbol: P01 = For All Alternative BOMs
Text Symbol: P02 = For Alternative BOM
Text Symbol: P03 = For Usage
Text Symbol: P04 = Acc. to BOM Application
Text Symbol: P05 = Display Component Assignment
Text Symbol: P06 = Display Material Comps That Are Not Assigned
Text Symbol: P07 = Explode Phantom Assies


INCLUDES used within this REPORT SAPDBPNM

INCLUDE FC27DATE.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

CM_DI_READ_LIST_DATA CALL FUNCTION 'CM_DI_READ_LIST_DATA' EXPORTING objty = stpox_tab-objty spras = sy-langu idnrk = stpox_tab-idnrk potx1 = stpox_tab-potx1 dokar = stpox_tab-dokar doknr = stpox_tab-doknr doktl = stpox_tab-doktl dokvr = stpox_tab-dokvr class = stpox_tab-class klart = stpox_tab-klart IMPORTING return = mtcor matdaten = rcmtx TABLES seqmat01 = dummy EXCEPTIONS OTHERS = 1.

CM_DI_READ_LIST_DATA CALL FUNCTION 'CM_DI_READ_LIST_DATA' EXPORTING objty = stpox_tab-objty spras = sy-langu idnrk = stpox_tab-idnrk potx1 = stpox_tab-potx1 dokar = stpox_tab-dokar doknr = stpox_tab-doknr doktl = stpox_tab-doktl dokvr = stpox_tab-dokvr class = stpox_tab-class klart = stpox_tab-klart IMPORTING return = mtcor matdaten = rcmtx TABLES seqmat01 = dummy EXCEPTIONS OTHERS = 1.

CF_BT_ROUT_FHM_FROM_PLFH_FILL CALL FUNCTION 'CF_BT_ROUT_FHM_FROM_PLFH_FILL' EXPORTING plfh_imp = plfh IMPORTING plfhd_exp = plfhd.

C2_00_PLFT_PLFTD_TRANSFER CALL FUNCTION 'C2_00_PLFT_PLFTD_TRANSFER' EXPORTING plft_imp = plft IMPORTING plftd_exp = plftd.

C2_00_PLFV_PLFVD_TRANSFER CALL FUNCTION 'C2_00_PLFV_PLFVD_TRANSFER' EXPORTING plfv_imp = plfv IMPORTING plfvd_exp = plfvd.

CR_WORKSTATION_READ_ROUTING CALL FUNCTION 'CR_WORKSTATION_READ_ROUTING' EXPORTING vgwkz = kreuz id = arbid date = pn_datuv plnty = plpodtab-plnty werks = werks msgty = 'S' IMPORTING works = rcr01 EXCEPTIONS not_found = 1 type_not_allowed = 1.

CS_BOM_EXPL_MAT_V2 CALL FUNCTION 'CS_BOM_EXPL_MAT_V2' EXPORTING aufsw = 'X' capid = pn_capid mdmps = 'X' mehrs = pn_mehrs datuv = pn_datuv mtnrv = mapl-matnr werks = mapl-werks stlal = stlal stlan = stlan mdnot = 'X' rndkz = '1' IMPORTING topmat = topmat dstst = dstst TABLES stb = stpox_tab_tmp EXCEPTIONS alt_not_found = 1 call_invalid = 2 material_not_found = 3 missing_authorization = 4 no_bom_found = 5 no_plant_data = 6 no_suitable_bom_found = 7 OTHERS = 8.

CS_X4_NODE_DETERMINATION CALL FUNCTION 'CS_X4_NODE_DETERMINATION' EXPORTING i_stlty_w = topmat-stlty i_stlnr_w = topmat-stlnr i_stlal_w = topmat-stlal i_flg_create_nodes = ' ' i_flg_node_for_class = 'X' i_flg_check_node = ' ' i_flg_special_class = ' ' i_flg_node_for_assem = ' ' i_flg_calc_path2 = 'X' i_flg_calc_path4 = ' ' TABLES stb = stpox_tab_tmp.

CS_EX_S_NODE_PROVIDE * CALL FUNCTION 'CS_EX_S_NODE_PROVIDE' "tree * EXPORTING "tree * I_STLTY_W = TOPMAT-STLTY "tree * I_STLNR_W = TOPMAT-STLNR "tree * I_STLAL_W = TOPMAT-STLAL "tree * I_STLTY = STPOX_TAB_TMP-STLTY "tree * I_STLNR = STPOX_TAB_TMP-STLNR "tree * I_STLAL = STPOX_TAB_TMP-STLAL "tree * I_STVKN = STPOX_TAB_TMP-STVKN "tree * I_STLST = STPOX_TAB_TMP-AUFST "tree * I_STLWG = STPOX_TAB_TMP-AUFWG "tree * I_STLWG_V = PARENT_STACK-AUFWG "tree * IMPORTING "tree * E_KANTE_K = PATH-KANTE "tree * EXCEPTIONS "tree * KEY_INCOMPLETE = 1 "tree * NO_PATH_TAB = 2 "tree * NO_PATH_AVAILABLE = 3 "tree * OTHERS = 4. "tree

CM_DI_READ_LIST_DATA CALL FUNCTION 'CM_DI_READ_LIST_DATA' EXPORTING objty = stpox_tab-objty spras = sy-langu idnrk = stpox_tab-idnrk potx1 = stpox_tab-potx1 dokar = stpox_tab-dokar doknr = stpox_tab-doknr doktl = stpox_tab-doktl dokvr = stpox_tab-dokvr class = stpox_tab-class klart = stpox_tab-klart IMPORTING return = mtcor matdaten = rcmtx TABLES seqmat01 = dummy EXCEPTIONS OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SAPDBPNM or its description.