Application Development and Automation 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: 
Read only

User exit Va01

Former Member
0 Likes
712

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

5 REPLIES 5
Read only

Former Member
0 Likes
619

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

Read only

0 Likes
619

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

Read only

0 Likes
619

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

Read only

0 Likes
619

Hi,

Thanks to everyone.

myself i have solved the problem

Read only

RaymondGiuseppi
Active Contributor
0 Likes
619

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