Skip to Content
0
Former Member
Sep 10, 2007 at 11:18 AM

I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N

1465 Views

Hi All,

I'm unable to start my coding in the include ZXV56U11.Whether to fetch data with select statements or with read statements?

My requirement is as follows I hav created my table with the specification given Yloxxx..

The function exit performs three actions:

1. Removes deliveries that are completely unloaded from shipment

2. Prevents entering a shipment completion for partially loaded deliveries

3. Removes fully loaded deliveries from phantom shipment

Exit is called when entering the shipment completion

- Shipment completion is entered via transaction VT02N, VT06, VT12….

- Call is performed when the program updates the field VTTK-STABF (completion status / flag)

In include ZXV56U11 following tasks must be performed,

Initial check

All treatments must be conditioned to the existence of an authorized combination record shipment type / plant stored in a specific table YLOxxx

 if no entry exist in this table -> end treatment: exit transaction without saving shipment completion

Check is performed as follows:

- Select shipment number (field TKNUM) from table VTTK

o get shipment type (field SHTYP) and store it in a buffer table

- Select shipment number (field TKNUM) from table VTTP

o get first delivery number (VBELN) in case several deliveries are linked to the shipment

 select delivery number as per previous step from LIPS

• get plant (WERKS ) related to first delivery item and store it in buffer table

- Check existence of combined record (plant /shipment type),stored as buffer, in custom table YLOxxx (see specification of table below)

o If combined record exits, continue execution of user exit

o If combined record does not exist, end treatment: exit transaction without saving shipment completion

 Display error message: “shipment not managed with profile #2, no shipment completion required”

Please help me out........

Thanks,

santosh