Ansicht
Dokumentation
SD_SHIPMENT_PACKING_VIEW - NOTRANSL: Lesen von Verpackungsdaten für Transport und darin enthaltene Li
ABAP Short Reference General Material DataThis documentation is copyright by SAP AG.
Functionality
This functional module reads packaging data for a shipment with number I_TKNUM and deliveries to be found in the shipment. The deliveries found in the shipment can either be determined by the functional module itself (OPT_READ_SHIPMENT_ITEMS = 'X') or the must be located in table I_DELIVERIES.
Results are returned in tables
- C_VBPLK (Shipping unit header data)
- C_VBPLP (Shipping unit item data)
- C_VBPLS (Totals data, aggregated per delivery and shipping material)
- C_VBPLA (General data for shipment and packaging).
Since not all information is always needed, what is to be returned is able to be parameterized:
- In any case, tables C_VBPLK and C_VBPLP are returned.
- Option OPT_UNPACKED_ITEMS controls whether entries are to be inserted into table C_VBPLP which describe items yet unpackaged (these entries correspond to those items which appear in the lower half of the packaging screen).
- Option OPT_PACKING_SUM specifies whether table C_VBPLS is to be filled. This table contains data cumulated per shipping unit (down to the ship- ping units of the deliveries). Hence, this answers the question: How much is packaged in boxes (shipping material: 'KISTE' (box)) in my shipment? Answer: 300kg.
- Option OPT_PACKING_GENERAL_DATA controls whether table C_VBPLA is to be filled. General information like total weight, total volume, shipping point data, etc., per delivery, is in this table.
Filling these tables involves, among other things, the determination of language dependent identifiers. Hence, language I_LANGU is necessary. Additionally, data from the delivery header and items is also needed. Option OPT_READ_DELIVERY_DATA controls whether delivery data is to be read in this functional module or whether it is to be taken from tables I_VTRLK and I_VTRLP (this option can lead to a greatly increased acceleration since delivery data need not be read twice from the database).
The functional module returns the exception NO_DELIVERIES if table I_DELIVERIES is empty.
Notes
The functional module expects that tables I_VTRLK and I_VTRLP are sorted according to fields VBELN or VBELN POSNR.
It returns other sorted tables as well:
- C_VBPLK sorted by VENUM
- C_VBPLP sorted by VENUM VEPOS VBELN POSNR
- C_VBPLS sorted by VHILM
- C_VBPLA sorted by VBELN
- I_VTRLK sorted by VBELN
- I_VTRLP sorted by VBELN POSNR
The last two tables are only filled if OPT_READ_DELIVERY_DATA = 'X'.
The tables contain only new contents. The old contents are deleted!
Further information
Parameters
C_VBPLAC_VBPLA_DELIV
C_VBPLK
C_VBPLP
C_VBPLS
C_VBPLS_DELIV
I_DELIV
I_LANGU
I_TKNUM
I_VTRLK
I_VTRLP
OPT_HU_VIA_VBFA
OPT_PACKING_GENERAL_DATA
OPT_PACKING_GENERAL_DATA_DELIV
OPT_PACKING_SUM
OPT_PACKING_SUM_DELIV
OPT_READ_DELIVERY_DATA
OPT_READ_SHIPMENT_ITEMS
OPT_UNPACKED_ITEMS
Exceptions
NO_SHIPMENT_NUMBERFunction Group
V56LFill RESBD Structure from EBP Component Structure TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 3660 Date: 20240604 Time: 014201 sap01-206 ( 67 ms )