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

BDC Problem about call T-CODE BUG2

Former Member
0 Likes
586

hey every friends,

I have a requirement about BDC process t-code BUG2.

The requirement is as following:

Update the value of the email address field reference to the bussiness partner in t-code BUG2.

The issule I meet is that:

1 Whatever dismode( N,E,A ) I use,it can not popup the first screen (select the bussiness partner),only popup at the first time.At the second time,it will not popup,only get the bussiness partner same as the first time.

2 It can not process the ok_code of click 'BACK' button in the top toolbar and can not display the save ok_code in A dismode.

3 I want to run the bdc with a internal table loop,but at the second time,it stops,not run continuely.

I ask for humble requst,from any expert has experience of process bdc in this t-code.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
555

Hi,

Perhaps you could try to use the following Bapi : BAPI_BUPA_ADDRESS_CHANGE.

Regard.

David

4 REPLIES 4
Read only

Former Member
0 Likes
556

Hi,

Perhaps you could try to use the following Bapi : BAPI_BUPA_ADDRESS_CHANGE.

Regard.

David

Read only

0 Likes
555

hey,

thank you for your reply.

but how to use that function you give me.

hope your answer.

thank you.

Read only

0 Likes
555

Hi,

Sorry but i have demo program for this Bapi.

But you can try to make a small to test it,

put business partner as parameter;

Then first call Bapi 'BAPI_BUPA_ADDRESS_GETDETAIL' that will retrieve all informations

Then after you can call 'BAPI_BUPA_ADDRESS_CHANGE' to change one field

if you look at the tables you BAPIADSMTP and BAPIADSMTX for email adresses,

BAPIADTEL and BAPIADTELX for phones ......

in BAPIADSMTP you fill the values, in BAPIADSMTPX you have a field called UPDATEFLAG (I for insert, U for update , D for deletion) and for other fields you flag it if you to take them into account.

If necessary (it's different depending on Bapi ) you must call Bapi 'BAPI_TRANSACTION_COMMIT' if the commit is not done in 'BAPI_BUPA_ADDRESS_CHANGE' .

I hope it will help you.

David

Read only

0 Likes
555

hey David,

thank you for your help.