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: 

Find Sales records of a user who has changed the records.

Former Member
0 Kudos

hi gurus,

i want to find all those sales records of a particular user who has entries in the condition record table (KONH).

how can i find out?

regards.

1 REPLY 1

Former Member
0 Kudos

Hi,

Use the below code:

select single ernam "User Name

from konh

into v_konh

where ernam = 'SAM'.

(The above code will fetch 'SAM' into variable v_konh)

Then:

select vbeln "Sales Orders

from vbak

into table i_vbak

where ernam = v_konh.

(This code will fetch all sales orders of SAM)

<b>Reward points if helpful.</b>