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: 

SZA1_D0100-SMTP_ADDR (e-mail adress in business partner for sales order)

Former Member
0 Kudos

Where SAP stored email address before the saving the sales document. I would need to check the the field is set on sales order before saving it.

Thanks.

1 ACCEPTED SOLUTION

former_member188827
Active Contributor

check table ADR6

6 REPLIES 6

former_member188827
Active Contributor

check table ADR6

0 Kudos

The data are saved in ADR6 after the saving. I need to check the field before the saving.

0 Kudos

Please note that email address is part of master data.Whenever business partner is created,this data is stored in ADR6.When you enter this business partner in Sales order,the address information is picked from address tables.

0 Kudos

In my situation i haven't e-mail adress in customer master data. I go to insert the e-mail adress dicectly and for first time on sales document.

0 Kudos

In that case, if you can't validate it before starting the BAPI call or transaction call, then you can access the address data via the sales user exits. Let's say you're doing it in USEREXIT_SAVE_DOCUMENT_PREPARE. Your first clue that an email might have been maintained for a partner will be the ADRDA field for the partner record in XVBPA (manual address indicator means that something has changed from the master record). From there, you need to read the data from memory with one of the address functions like function ADDR_GET. You would pass the value of the partner's XVBPA-ADRNR field to the ADDRHANDLE field (not the ADDRNUMBER field) in the ADDR1_SEL structure - the FLAG6 field will tell you that the email has been maintained for the partner.

0 Kudos

thanks a lot