Ansicht
Dokumentation

PVSHI_PNCMP_GETLIST - iPPE: Search Help for Nodes of Product Structure

PVSHI_PNCMP_GETLIST - iPPE: Search Help for Nodes of Product Structure

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This module gets the internal identification (NODE_ID) of a node from the product structure and returns it to the calling program. The product class to which the node is assigned is used as a search criterion. Product classes are identified by a class and class type. You can restrict the search results by limiting the search to nodes from the access level, view level, or structure level (any combinations of these views are possible).

Example

* Data declaration
data: lt_class like PVSHI_CMPCLASS_ID occurs 0 with header line.
data: lt_node like PVSHI_CMPNODE_LIST occurs 0.
data: lt_return like BAPIRET2 occurs 0 with header line.

* Initialization of the error log
call function 'PVSHI_INIT'
   exporting i_msg_handler = 'A'.

* Data mapping
lt_class-class_num = 'PPE_CAR'.
lt_class-class_type = 300. " Variant class
append lt_class.

call function 'PVSHI_PNCMP_GETLIST'
     EXPORTING
          LAYER_ENTRY       = 'X' " only access nodes
          LAYER_VIEW        = ' '      " no view nodes
          LAYER_STRUCTURE   = ' ' " no structure nodes
     TABLES
          CLASSSELECTION    = lt_class[]
          COMPONENTNODELIST = lt_node[]
         RETURN            = lt_return[].

if not return[] is initial.
* Analyze log data
endif.

Notes

Further information





Parameters

CLASSSELECTION
COMPONENTNODELIST
I_MODE_ALL
I_MSG_HANDLING
LAYER_ENTRY
LAYER_STRUCTURE
LAYER_VIEW
RETURN

Exceptions

Function Group

PPEHI_CMP

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2754 Date: 20240523 Time: 134141     sap01-206 ( 42 ms )