Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Child Items should in Non Editable mode in sales order.

Former Member
0 Kudos

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

6 REPLIES 6

Jelena
Active Contributor
0 Kudos

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...

0 Kudos

AUART is sales order type, not order reasons (AUGRU)

Regards,

Marcin

Jelena
Active Contributor
0 Kudos

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.

marcin_milczynski
Contributor
0 Kudos

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

Former Member
0 Kudos

Hello,

Can you check that is the split delivery happens or not, if yes them see the analyzes of the split.

Former Member
0 Kudos

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.