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: 

VA01 - Schedule Line problem

Former Member
0 Kudos

Hi all.

I have problem in TC VA01. I add own field and button on item data - tab Additional Data B. I call my function, make some operation and return. When i change 'order quantity' (vbap-KWMENG) i see changes. But in tab Schedule Lines value 'order quantity' didint change. Why? What i`m doing wrong? I see that on tab 'Schedule Lines' field 'order quantity' is ref to VBEP-WMENG. I tried change that field. That nothing change. On Schedule Line nothing changes.

Thx

Grzegorz

4 REPLIES 4

Former Member
0 Kudos

Does sched.line change if you change kwmeng on the screen (not by your code) ?

If it does -> check in debug what is invoked by SAP in this case and do the same...

OR You may try to set breakpoint into userexit_move_field_to_vbap and check what do you have in vbap and *vbap... and compare if there is any difference between "you change kwmeng on the screen" & "you chaneg kwmeng by your code"

Former Member
0 Kudos

yes if i change order on screen the Sched. Lin. changes too and vice versa. If i have in order example 40 - Sched. Lin is 40 too. If i changes order example 50 (in my code), the Sched. lin is still 40, and if i change in sched. lin 40 to 50 (on screen) the order changes to 60 (order + difference beetwen order and sched. lin.) I cant find resolve

Former Member
0 Kudos

Anyone have a idea?

Former Member
0 Kudos

I have still this problem. I find this , but its not work. How i can modify order in schedule line when i change order in va01 by my ABAP code?

I tried debug, but i cant still pass go.

Please help me.

Grzegorz