I have a requirement like I need to make Non Editable mode for child Items for a Parent Item while creating a Sales Order thru VA01 Tcode. Here the Parent Item is BOM.So Child Items should not be changed. This is my Req.
I found a Enhancement Spot and wrote the code as below.
LOOP AT XVBAP.
if VBAK-AUART = 'ZL39' and VBAP-UEPOS ne '000000'.
LOOP AT SCREEN.
* IF XVBAP-UEPOS NE '000000'.
IF SCREEN-NAME = 'RV45A-KWMENG' or
SCREEN-NAME = 'RV45A-MABNR' or
SCREEN-NAME = 'VBAP-ARKTX' or
SCREEN-NAME = 'VBAP-VRKME' or
SCREEN-NAME = 'VBAP-PSTYV' or
SCREEN-NAME = 'VBAP-WERKS'.
SCREEN-INPUT = 0.
But after writing the code My requirement is working correctly. But the problem is while doing Delivery thru VL01N, the Parent item is not coming..Only Child items are coming.. Can someone please help on this.