‎2008 Nov 02 7:50 PM
Hi,
Please someone suggest me,
I have a requirement like in va01 transaction if i enter in first item level material and order quantity and order number(AUFNR)**
and in second and third etc., item level if i don't enter order number also it should copy from frist order and should populate in remaining items order number also .
have written code like this but it is not populating please someone help me
select single aufnr from vbap into vbap-aufnr
where posnr ne space
and aufnr ne space.
if sy-subrc eq 0.
update vbap set aunr = vbap-aufnr.
endif.
Thanks,
GAL
‎2008 Nov 02 7:53 PM
You don't say what this transaction is for, but for some transactions, If you enter a "*", the previous field contents are carried forward.
Rob
‎2008 Nov 02 7:56 PM
Hi,
Thanks for your reply but i didn't get what you said.
please can you explain me still more clearly
Once again thank you
‎2008 Nov 02 8:05 PM
Your question is not clear. where are you writing the code you put there? and why are you trying to update vbap directly.
unless seeing what and where you are trying the code it is hard to comment. but just one point that instead of vbap you need to manipulate xvbap
‎2008 Nov 02 8:18 PM
‎2008 Nov 02 8:05 PM
I hope you don't write a program to update directly VBAP standard SAP table, there are "official" and "correct" way to change the standard, look for [user-exit|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=user-exitVA01&cat=sdn_all], [BADI |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=badiVA01&adv=false&sortby=cm_rnd_rankvalue]and [Enhancement |https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=enhancement+VA01&adv=false&sortby=cm_rnd_rankvalue]at SDN.
For SD exit, there are INCLUDE to use : [User Exits In Sales Document Processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm].
Regards