Question:
Dear Guys
I am going to write a Validation for F-53. I want to make ensure that when user enteres a vendor in F-53 and, if that vendor dont have bank key in Vendor Master data then a error message would display.
I tried to use FI Validations from SPRO but the field BSEG-LIFNR (Vendor) is not populating in user exit when validations triggers in F-53.
Any Solution Pls.
_________________
SAP Development Consultant
Answer:
I had the same problem on FB60 and used the following in the validation exit to read the LIFNR value from the screen into a field symbol.
w_var_name = '(SAPLFDCB)INVFO-ACCNT'.
ASSIGN (w_var_name) TO <fs>.
w_lifnr = <fs>.
This sort of thing will sometimes work and sometimes not depending on the screen. You would need to replace the contents of W_VAR_NAME with the program name (the bit in brackets) followed by the name of your LIFNR field.
Answer:
You may be able to use a field exit via RSMODPRF
Answer:
Nope,
There is a specific SAP note that deals with this, 438076.
Sorry to say Christmaslights, the method you propose is incorrect.
By applying this note you can then add any field from BKPF or BSEG to your validations tables as you would do normally when dealing with validations and substitutions.
_________________
Regards
R
Abap KC
SFMDR