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

Capturing Customer No. from BDC

Former Member
0 Likes
624

Dear Experts,

I have a custom developed screen using which I am getting the customer details from user and then using BDC to create the customer in SAP(in XD01) I want to capture the SAP generated customer number and update it back in my z-table. Can some one guid me as to how I can achieve this?

I tried to capture it using BDCMSGCOLL but the SAP no. is not getting captured here.

Awaiting your reply,

Bhavin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
590

u must get customer number in MSGV1 MSGV2 MSGV3 MSGV4 fields of BDCMSGCOLL.. If not then read the PARAMATER ID 'KUN' for customer number using GET statement..

hope this ll help

Dear Experts,

I have a custom developed screen using which I am getting the customer details from user and then using BDC to create the customer in SAP(in XD01) I want to capture the SAP generated customer number and update it back in my z-table. Can some one guid me as to how I can achieve this?

I tried to capture it using BDCMSGCOLL but the SAP no. is not getting captured here.

Awaiting your reply,

Bhavin

3 REPLIES 3
Read only

Former Member
0 Likes
590

After a customer is created a success message is displayed with Customer number.You can cathc that messages value.

Just after every 'CALL TRANSACTION 'XXX' USING BDCTABLE' any one system field will capture the Customer number (SY-MSGV1,SY-MSGV2,SY-MSGV3,SY-MSGV4) i am not in front of the system just check with these system field on of them will capture the Number.

Regards,

gurpreet

Read only

Former Member
0 Likes
591

u must get customer number in MSGV1 MSGV2 MSGV3 MSGV4 fields of BDCMSGCOLL.. If not then read the PARAMATER ID 'KUN' for customer number using GET statement..

hope this ll help

Read only

Former Member
0 Likes
590

Thanks for the reply guys, The customer no is getting captured with MSGTYP = 'S' and MSGNR=174.

Regards,

Bhavin