‎2005 Dec 08 12:06 AM
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
‎2005 Dec 08 12:18 AM
Comment out the line <b>move space to lt_address-e_mail</b> and let know what you get...
‎2005 Dec 08 12:18 AM
Comment out the line <b>move space to lt_address-e_mail</b> and let know what you get...
‎2005 Dec 08 12:34 AM
Thanks Sam for your quick reply.
I just tried, however the value in email field is not deleted.
Regards,
Bin
‎2005 Dec 08 1:23 AM
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?
‎2005 Dec 08 2:46 AM
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