07-30-2012 12:02 PM
Hi Friends,
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.
MODIFY SCREEN.
* ENDIF.
ENDIF.
ENDLOOP.
endif.
ENDLOOP.
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.
Thank you.
Kotesh
07-30-2012 7:50 PM
I don't think that parent item not being copied to the delivery has anything to do with the changes above. Check with your functional consultant.
By the way, with the above code you're disabling all the subitems, not just BOMs. Also I see that you're checking for the order reason (AUART), What will happen if the user changes the reason? Just wondering...
07-30-2012 7:56 PM
AUART is sales order type, not order reasons (AUGRU)
Regards,
Marcin
07-30-2012 8:08 PM
Ah, yes. Sorry, looked at a wrong field. Still just disabling fields on screen shouldn't affect the delivery relevance, I believe. Although this is easy to test - just comment out the code temporarily.
07-30-2012 7:57 PM
Hi,
Check customizing of copying control VTLA or maybe the availability check in sctiva on main item whereas sub-items are always available? Do you get any log during delivery creation or the main items do not appear in delivery without any message?
Regards,
Marcin
07-31-2012 6:51 AM
Hello,
Can you check that is the split delivery happens or not, if yes them see the analyzes of the split.
08-02-2012 6:16 AM
Thanks for all your replies.
My requirement is only for one particular AUART document type. That is the reason i hard coded to one Doc type & only do non-editable for some main fields of the child items. After the removing my code also, it's giving the same problem like Parent BOM is showing in the Delivery. I informed to my Functional consultant to into that.
Thank you.