Ansicht
Dokumentation
CUPR_GET_PARTS - NOTRANSL: Direkte Teile einer Instanz lesen
Vendor Master (General Section) RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
Functionality
This function reads all direct parts of an instance in the configuration. The item number and instance number of each part found is returned in the result table. If no parts are found, the exception NOT_FOUND is returned.
You can restrict access by using optional selection criteria:
1. If you enter a type, only parts of this type are read when you call
the function.
2. If you enter an item number, only parts that have this number in the
structure are read.
These two filters can also be combined with each other. This means that only parts that fulfil both selection criteria are read.
Example
***********************************************************************
* Read immediate parts of object currently being configured *
***********************************************************************
TYPE-POOLS: CUDBT.
DATA: BEGIN OF PARTS OCCURS 0.
INCLUDE STRUCTURE DDB_PO.
DATA: END OF PARTS.
...
CALL FUNCTION 'CUPR_GET_PARTS'
EXPORTING
INSTANCE = GLOBALS-SELF
TABLES
PARTS = PARTS
EXCEPTIONS
UNKNOWN_INSTANCE = 01
NOT_FOUND = 02
OTHERS = 03.
...
Notes
Please see the hints in the documentation on function CUPR_GET_TYPE for information on the structure of a type.
The item number that you can enter here as a selection criterion is equivalent to the item number in BOM maintenance functions.
Further information
Please note the general hints in the documentation on function module CUPR_GET_VAL.
Parameters
INSTANCEOTYPE
PARTS
POSNR
Exceptions
INTERNAL_ERRORNOT_FOUND
UNKNOWN_INSTANCE
UNKNOWN_TYPE
WRONG_CONTEXT
Function Group
CUPRBAL_S_LOG - Application Log: Log header data RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 2043 Date: 20240523 Time: 112106 sap01-206 ( 34 ms )