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

How to find currently editing transaction code details using ABAP code

former_member214364
Active Contributor
0 Likes
552

Hi,

if some user is using VA02 tcode.i want to know for which sales order(i.e Sales order number)he is making changes.

i want ABAP code sample for this scenario.

Cheers,

Jag

2 REPLIES 2
Read only

Former Member
0 Likes
469

Hi,

You can use the FM ENQUEUE_READ function module..

Give the user name..

In the parameter

GUNAME - GIve the user ID.

GNAME - VBAK

In the ENQ internal table you will have a list of sales orders that the user is using in VA02.

Thanks,

Naren

Read only

Former Member
0 Likes
469

Hi,

For this you need to create Lock Object from se11 .It will automatically crate Two Function modules for enque and deque.

In you case If you want to see the Details for Va02 use.

CALL FUNCTION 'ENQUEUE_EVVBAKE'

EXPORTING

VBELN = VBELN

EXCEPTIONS

FOREIGN_LOCK = 1

SYSTEM_FAILURE = 2.

CASE SY-SUBRC.

WHEN 1.

MESSAGE E042(V1) WITH vbeln RAISING ERROR_IN_COPY.

ENDCASE.

Regds,