10-18-2010 5:59 PM
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.
10-18-2010 6:00 PM
10-18-2010 6:00 PM
10-18-2010 6:04 PM
The data are saved in ADR6 after the saving. I need to check the field before the saving.
10-18-2010 6:16 PM
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.
10-18-2010 6:27 PM
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.
10-18-2010 7:09 PM
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.
10-08-2020 1:27 PM