Skip to Content
0
Former Member
Jun 03, 2008 at 10:53 AM

User Exit for Delivery Updating

1130 Views

Hi,

I am creating one user exit for delivery ,

My condition:

If XLIKP-UPDKZ (Update indicator) = Update (U).

Read table Deferred COGS Activity (Z1009) with key

Delivery Number eq LIKP-VBELN.

If sy-subrc <> 0

Exit.

Else.

If V50AGL-WARENAUSGANG=X (PGI is active)

Update table Z1009 with

WADAT_IST = XLIKP-WADAT_IST

PGI_ERNAM = SY-UNAME

PGI_ERDAT = SY-DATUM.

where Delivery Number (DL_NO) eq LIKP-VBELN.

If delivery updated successfully then no problem ,

if not updated then I need to through error message to log.

I need Function Module for this.

Can u help me.