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: 

BAPI question

Former Member
0 Kudos

Hi All,

I have a question about address change via BAPI_ISUPARTNER_CHANGE.

In my case, a business partner already has an email address. I would like to call this BAPI to delete it.

Here are my sample codes:

move space to lt_address-e_mail.

move '0000201872' to lt_address-addrnumber.

append lt_address.

move 'X' to lt_address_x-e_mail.

move '0000201872' to lt_address_x-addrnumber.

append lt_address_x.

call function 'BAPI_ISUPARTNER_CHANGE'

exporting

partner = lt_tcontractaccountdata-partner

partnerdata = ls_partnerdata

partnerdatax = ls_partnerdatax

importing

return = ls_return2

tables

taddress = lt_address

taddressx = lt_address_x.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = ls_return2.

The BAPI does not take the space to update the email address. However if I change the space to 'a@b', then

it can successfully update the email address for that BP.

Any idea on how I can call BAPI to delete some field values?

Thanks,

Bin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Comment out the line <b>move space to lt_address-e_mail</b> and let know what you get...

4 REPLIES 4

Former Member
0 Kudos

Comment out the line <b>move space to lt_address-e_mail</b> and let know what you get...

0 Kudos

Thanks Sam for your quick reply.

I just tried, however the value in email field is not deleted.

Regards,

Bin

Former Member
0 Kudos

I didn't find the bapi BAPI_ISUPARTNER_CHANGE in my system! What module are you working on?

Btw....did u read the documentation for this BAPI?

0 Kudos

Hi,

The name of the BAPI indicates it is for IS-Utilities... I do not know how far it is relevant but the OSS Note # 409881 might throw some light on your issue.

Regards,

Suresh Datti