‎2009 Nov 19 9:22 AM
hi gurus,
I have a typical problem and after searching only i am postion this doubt.
My requirement is : sales order is already created and having around 1000 line items .
I want to change these line items data like material,plant,wbs element,ordered qty ...
if a item is not available then it has to create this new item under that sales order.
I am able to create new item but schedule line item is creating
one more schedule line with 0 order qty and 0 rounded qty and 30 (say 30 is my req qty) confirmed qty.
is getting created .
so where is the problem .
please sugust the solution.
regards.
padmaja
‎2009 Nov 19 12:31 PM
chek the internal table data whether it is getting properly cleared or not ....
‎2009 Nov 19 7:57 PM
Hi ,
Can you check the Bapi Function module Documentation in SE37 .
Because when i saw the documentation , the update flag needs to passed for some table data in the Bapi
so that it will work .
And also please see the Notes in the Function moudle Documentation
sorry to give the below informationfrom the FM Documentaion .
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data
Possible UPDATEFLAGS:
U = change
D = delete
I = add
Regards
Edited by: Loganathan girishkumar on Nov 19, 2009 8:57 PM
‎2009 Nov 20 6:45 AM
hi,
After following documentation only i did the program.
and I passed what ever sugusted in documentation.
my new doubt is :
in conditions tab I am having condition type like zmrp , zvat.
for these two condition types i need to change the amount(for already created item).
with my program i am able change the qty but a new condition type ie zmrp , zvat are again creating.
i my self found the solution in the bellow link.
regards,
padmaja.
Edited by: Padmajavaddi on Nov 20, 2009 11:31 AM