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: 

Locking of customer in order to block changes through XD02

vinay_pasalkar
Participant
0 Kudos

Hi Experts,

I am using the FM ENQUEUE_EJGKNA1 passing the in order to put the lock on the customer 'XYZ'.

I am passing mode_kna1 as E ( Write_lock), Client= sy-mandt & customer ID.

The record is locked & I can see the ock in SM12.

However when I try to chnage the customer attributes in XD02, it allows me to do so.

Could you please let me know how I can prevent these changes to the customer.

Thanks

Vinay

1 ACCEPTED SOLUTION

vinay_pasalkar
Participant
0 Kudos

Hi,

I used the FM Conversion_Exit_Alpha_Input before passing the Customer number to FM.

Now the message is being displayed that the Account is locked by User.

Thanks

4 REPLIES 4

Former Member
0 Kudos

Hi Vinay,

That is strange....

Well please try using FM ENQUEUE_EXKNA1

Regards,

Yakub

Former Member
0 Kudos

This could be one reason that customer ID that enter differently for FM and XD02. SAP cannot be wrong

Former Member
0 Kudos

Also Vinay.

check if before passing it to the lock object have you done conversion exit on the KUNNR.

vinay_pasalkar
Participant
0 Kudos

Hi,

I used the FM Conversion_Exit_Alpha_Input before passing the Customer number to FM.

Now the message is being displayed that the Account is locked by User.

Thanks