on 05-27-2015 5:07 PM
Hi,
We have process to maintain the order currency on LFM1-WAERS. This is maintained for different vendors with different currencies.
We are expecting when posting a document the document for that vendor, the system should check, whether the document currency (BSEG-PSWSL) entered on the document is matching with the currency on the vendor master data (LFM1-WAERS).
We tried to use the user exit in the validation, however, BELNR is not yet created, therefore, the validation is not getting triggered. However, we need this validation before BELNR (document number) is created.
Please let me know if there is a way to achieve this.
Any specific points would be much appreciated.
Kind Regards,
Ravi
Hi Ravi,
You could use the BTE funcionality to do this. In BTE number 1120 you have the posting document just before to post it, and change it.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
May I know why you are referring to BSEG-PSWSL why not BKPF-WAERS?
If you put validation at line item level system will trigger validation as per the pre-requisite. At this point except BELNR all information is populated in BSEG Table.
Can you let me know what are the pre-requisite you are maintaining for validation.
br,Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vivek,
We tried to write an user exit on BKPF-WAERS.
Our user exit goes to LFM1-WAERS and then come to BSEG and find the vendor in Posting Key 31 line and then check the BKPF-WAERS. However, the system fails to find the vendor on posting key line 31, at the time of posting the vendor number is not yet filled in BSEG table.
Our validation is:
BKPF-WAERS is not equal to blank
then read the user exit,
if the check fails give the error message.
Kind Regards,
Ravi
Hello Ravi,
I created a similar validation in my system for Document line item level
I can see vendor number (BSEG-LIFNR) is populated for posting key 31 even before going on the second line.
I am sure but wanted to check are you putting validation at line item level or document header level?
Br,Vivek
Hi, it's not clear what the probleme with validation. It's triggered before document is posted,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.