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: 

To capture customer # while creating using transaction XD01

Former Member
0 Kudos

Hello..Requirement is to capture 'Sold-To' customer # which gets generated internally by SAP. I tried exit 'EXIT_SAPMF02D_001' but not successful. I am using transaction 'XD01' to create 'Sold-to' customer and I need to capture internally generated customer # before KNA1 gets updated.

PLEASE ADVISE!.

THANKING YOU IN ADVANCE!.

FELLOW ABAPER.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use BTE (business transaction events) 1320 (Customer master save) or 1321( customer master save with data transfer) or 1340( final checks :customer master data). Use transaction FIBF, Environment, Info system(P/S) to find about it more.

10 REPLIES 10

Former Member
0 Kudos

Normally the number is generated internally. This updates KNA1. For what purpose ru trying to use it. If u want to check it u will not be able to it. But, when u try to save it, u can check it using the corresponding user exit and use it internally for ur purpose. I dont exactly remember the user exit for save, but u can use it in it.

Pl. reward points if this is what u needed.

0 Kudos

thanks ramesh..I found a way, now getting kunnr on commit..thanks for help.

Former Member
0 Kudos

Hi,

The user exit EXIT_SAPMF02D_001 is fire before its save the data into customer master table so when you check the KNA1(importing) data in this exit you will see the customer number.

Thanks

Rajeev

0 Kudos

Rajeev..I used that exit and import structure value for kunnr is blank, I got the solution and now extracting kunnr on commit.

thanks for the help.

0 Kudos

Dear friend, can you pls. give me the code to capture the customer number you wrote in this exit?

It will be of great help to me.

thanks

regards

tanu

Former Member
0 Kudos

You can use BTE (business transaction events) 1320 (Customer master save) or 1321( customer master save with data transfer) or 1340( final checks :customer master data). Use transaction FIBF, Environment, Info system(P/S) to find about it more.

0 Kudos

Sharad..Thanks, I already completed the task using "perform get kunnr on commit level nnnn" in the userexit. Let me try using BTE as suggested and update you..thanks again.

0 Kudos

Sharad..BTE 1340 did not work, 1321 worked...thank you so much.

0 Kudos

hi ,

Can u suggest me the way or tips for use of BTE 1321?

Regards

Ricky

0 Kudos

Hi

Can you plz explain me about BTE( Step by Step procedure ) and how they can be implemented..

Thanks

Swathi