Ansicht
Dokumentation

SD_SHIPMENT_DELIVERY_VIEW - NOTRANSL: Lesen von Lieferungen für die Transportbearbeitung

SD_SHIPMENT_DELIVERY_VIEW - NOTRANSL: Lesen von Lieferungen für die Transportbearbeitung

BAL Application Log Documentation   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Reading of deliveries for shipment processing

This FM has has extensive control parameters in the interface to opti-
mize database accesses. For each application, you should think about
which data you really need in great detail (for example in a print
program).
The less read, the faster the program runs !

IMPORTING:
I_LANGU Language (for identifiers to be read)
Used, for example, if the name of the
route is determined.

I_PARTNER_ROLE Partner role (generally 'WE' or 'LF')
'WE' = GR (goods recipent)
'LF'= vendor
If the parameter has SPACE, the partner
'WE' is taken for outgoing deliveries and
'LF' is taken for incoming deliveries.

OPT_MINIMIZED_DELIVERY_VIEW Read only minimal delivery data?
With this option, only that delivery data
is read which is really needed by the
transaction VT01/VT02/VT03 (Create/Change
/Display Shipment). Not read is order,
customer and export data. Only a small
portion of delivery item data is read.
IMPORTANT: This option has the highest
priority, i.e., if set, the following
options are ignored. All accesses are
optimized for this purpose.

OPT_ITEMS Read delivery item data?
This controls whether item data of the
delivery is read.

OPT_PARTNERS Read partner data (for AG, WE, SP ..) ?
When setting this option, data of the
ordering party, goods recipient and
carrier is read.

OPT_CUSTOMER_DATA Read customer data (Field KNVV-EIKTO)
With this option, the field EIKTO (the
customer's number for us) is read from
table KNVV.

OPT_CUSTOMIZING_DATA Read customizing data (Vstel, ..) ?
With this option, data of the shipping
point (name, language), of the route
(name, dispatch type), etc. is read from
the respective Customizing tables.

OPT_ORDER_DATA Read order data ?
Order data is subsequently read.

OPT_EXPORT_DATA Read export data ?
Export data is subsequently read.

OPT_HAZMAT_DAT Read hazardous material data ?

I_FILTER_TYPE Type of Filtering with
which the delivery items are to be
filtered.
EXPORTING:
E_NOT_ALL_DELIVERIES_FOUND If = 'X', not all deliveries requested in
I_DELIV are found.

TABLES:
I_DELIV Deliveries to be read
The delivery numbers to be read are here.

C_VTRLK Header data of deliveries

C_VTRLP Item data of the deliveries

EXCEPTIONS:
NO_DELIVERIES No deliveries in I_DELIV
ERROR_READING_DELIVERY_HEADER No header data could be found.
ERROR_READING_PARTNER_TABLE No partner data could be found.

The functional module returns sorted tables:

  • C_VTRLK sorted by VBELN
  • C_VTRLP sorted by VBELN POSNR

These tables contain only the new contents. The old are deleted!

Processing flow

Depending on the parameter OPT_MINIMIZED_DELIVERY_VIEW, either the FORM minimized_delivery_view or normal_delivery_view is called up. Both routines have approximately the same flow. The first reads less data from the database.

First, necessary data is set aside-SELECTs. The accesses are mass SELECTs which causes a quick transfer.

With the selected data, the functional module SD_SHIPMENT_DELIVERY_CONVERT is called up which converts database tables into structures VTRLK and VTRLP.





Parameters

C_VTRLK
C_VTRLP
E_NOT_ALL_DELIVERIES_FOUND
I_DELIV
I_FILTER_TYPE
I_LANGU
I_PARTNER_ROLE
OPT_CUSTOMER_DATA
OPT_CUSTOMIZING_DATA
OPT_EXPORT_DATA
OPT_HAZMAT_DAT
OPT_ITEMS
OPT_MINIMIZED_DELIVERY_VIEW
OPT_ORDER_DATA
OPT_PARTNERS
OPT_STATUS_DATA
OPT_STAWN_DATA

Exceptions

ERROR_READING_DELIVERY_HEADER
ERROR_READING_PARTNER_TABLE
NO_DELIVERIES

Function Group

V56L

Fill RESBD Structure from EBP Component Structure   General Material Data  
This documentation is copyright by SAP AG.

Length: 5734 Date: 20240523 Time: 055655     sap01-206 ( 49 ms )