Populating the email address (SMTP_ADDR) in Vendor Master using PRAA
We would like to start using transaction PRAA (program RPRAPA00) to create and update Vendor Master Data based on HR employee data. As part of this process, we would like to populate the "E-Mail" field with data from infotype 105. (We have a separate infotype 105 subtype that stores the email address in the USRID_LONG field.) I added the INFOTYPES: 0105 data declaration via an enhancement spot in RPRAPADE_ALV, so the GET PERNR brings in the appropriate p0105 data.... I just don't know how to push that into the appropriate field in the vendor master.
I am trying to find the structure within the RPRAPA00 program that contains the email address field SMTP_ADDR, but can't seem to find it. When a Vendor is created, it looks like this field gets stored in the ADR6 table, but I don't really understand how the ADDRNUMBER field in the ADR6 table gets linked back to the vendor number (LIFNR).
I looked at the BADI BADI_EXITS_RPRAPA00, but none of the defined Methods have an email address field.
How do I update the email address field in the vendor master using PRAA?
Thanks in advance for any advice you can give!