Skip to Content
0
Former Member
Nov 18, 2010 at 04:26 AM

when condition is zman the delivery block should be filled with 09 in va02

95 Views

Hi,

IN VA02 TCODE THE DELIVERY BLOCK SHOULD BE FILLED WITH 9 WHEN THIS CONDITION SHOULD BE SATISFIED.

WHEN KSCHL = ZMAN

KOAID = 'B'

KINAK IS INITIAL

VBAK- LIFSK SHOULD BE FILLED WITH '09'

FOR THAT I HAVE WRITTEN THE FOLLOWING CODE BUT THE DELIVERY BLOCK IS NOT SETTING TO 9 CAN U TELL ME I S THAT ANY WRONG IN THAT CODE.

read table xkomv with key kposn = xvbap-POSNR kschl = 'ZMAN'.

if sy-subrc = 0.

If XKOMV-KOAID = 'B' and XKOMV-KINAK = ' '.

vbak-lifsk = '09'.

ENDIF.

endif.

Moderator message: please do not write in all upper case.

Edited by: Thomas Zloch on Nov 18, 2010 9:15 AM