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

BAPI_CUSTOMERRETURN_CHANGE Add Partner Email

bill_kroll
Explorer
0 Likes
542

I am not able add email address to a header level partner. Any ideas. I can use any method to update the email on the document

l_bapiparnr-partn_role = 'Y8'.
l_bapiparnr-partn_numb = '0001563093'.
l_BAPIPARNR-ADDR_LINK = '1503645744'.
**
append l_bapiparnr to lt_bapiparnr.

l_address-ADDR_NO  = '1503645744'.
l_address-langu_iso = 'EN'.
l_address-e_mail = '[email protected]'.
l_address-countryiso = 'US'.
 
append l_address to lt_address

CALL FUNCTION 'BAPI_CUSTOMERRETURN_CHANGE'
  EXPORTING
    SALESDOCUMENT               = '0066710405'
    RETURN_HEADER_INX           = 'U'
  TABLES
    RETURN                      = l_return
    PARTNERS                    = lt_BAPIPARNR
   PARTNERADDRESSES             = lt_address

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.<br>
0 REPLIES 0