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

To capture customer # while creating using transaction XD01

Former Member
0 Likes
2,844

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
Read only

Former Member
0 Likes
2,233

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
Read only

Former Member
0 Likes
2,233

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.

Read only

0 Likes
2,233

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

Read only

Former Member
0 Likes
2,233

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

Read only

0 Likes
2,233

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.

Read only

0 Likes
2,233

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

Read only

Former Member
0 Likes
2,234

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.

Read only

0 Likes
2,233

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.

Read only

0 Likes
2,233

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

Read only

0 Likes
2,233

hi ,

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

Regards

Ricky

Read only

0 Likes
2,233

Hi

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

Thanks

Swathi