Skip to Content
Former Member
Mar 10, 2011 at 11:50 PM

PRAA user exit to update vendor email address


I appoigize for the lenght.

I want to copy the Email address from a HR record to the corresponding Vendor record through PRAA, so that we can send out payment notifications from F110 to vendors. In reading other threads it sounds like this is possible but I have not been able to figure out how.

There are 2 email addresses on the Vendor:

- in the communication section of the 1st vendor screen in XK02 field SZAL_D0100-SMTP_ADDR(this goes to ADR6-SMTP_ADDR). I have been told that this is a u2018generalu2019 email address.

- the clerk email address in the correspondence section the last screen of the Vender in XK02 field BLFB1-INTAD. I have been told that this is used as an accounting or AR clerk.

Since F110 can only be configured to use one email address I have been told that the standard is to use the clerks email address in the correspondence section for both outside vendors and employee vendors. Is this true?

For employee vendors I would like to copy the email address to both places via PRAA or put a comment in the communication section mail address pointing the user to the correspondence section.

I see the following predefined user exits predefined:


- FORM SET_MC_FIELD_BY_USER - changes the sortfield of the A/P-account BLAF1

- FORM SET_ADDRESS_BY_USER - changes the adress fields in blfa1


- form set_vendor_no_by_user - changes the sortfield of the A/P-account BLAF1

Neither of these have access to BLAF1 or to Adr6.

In include RPRAPAFO_ALV I can see the assignment of some of the fields in BLFB2 but all of them. I can also see that it clears out the entire structure before it does any of the assignment.

I see the call method user_exit->set_values_for_blfb1, which calls IF_EX_BADI_EXITS_RPRAPA00~SET_VALUES_FOR_BLFB1. I have seen a reference to this in other threads.

I went into the HR record and changed the email address and stepped through the program in the debugger. Just prior to the call method user_exit->set_values_for_blfb1 BLFB1-INTAD is blank I can go into the debugger and manually change the value and the vendor record is updated. So I must be closeu2026

I could use the modification assistant and change RPRAPAFO_ALV to retrieve the email address from the HR record and populate the BLFB1-INTAD, but from reading other threads it sounds like there is a user exit to allow for this.

Am Iu2019m missing something?

Is it possible to update the Communication and correspondence email address on the Vendor record from the HR record using a user exit or does it have to be a code change using the modification assistant?

Thanks for reading this, I hope someone can help me.