on 09-15-2016 7:01 AM
Hi All,
Need your urgent help in below. i have written below substitution to update the GL field of ZUONR.
BKPF-BUKRS = '1000' AND BSEG-KOART = 'K' AND
BKPF-BLART = 'ZP' AND BSEG-HKONT = '220511'
Assignment Field BKPF-XBLNR
Do not why substitution is not working please help.
Please help.
Dear Avinash
You are changing field XBLNR with Z Tcode in the document "change" mode (FB02), which will work but substitution to field ZUONR will not work in this case, as OBBH is called at the time of "Posting" a document and not when document is changed.
Its better you modify your Z program to include the updation of both ZBLNR and ZUONR fields.
Best Regards
Abbas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Nico
I am not talking about User exit or enhancement based substitution (which is as good as adding user exit or substitution without OBBH and which works. What does not work in FB02 is validation based substitution (following the substitution only when Pre-Requisites are met).
Hope it clears now.
Thanks
Abbas
As Nico said, this is incorrect: FB02 calls substitution, without any difference whether it was made as user-exit or as 'simple' one. Of course, substitution will be called, subject to all relevant assumptions. E.g. if it's defined on line level and what is modified is the header only, it won't be called.
Try putting leading zeros in HKONT, e.g. '0000220511'. If still doesn't work, put a trace in the substitution in OBBH.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks so much Eli,
Substation is working fine at the time of payment entry, but when i am trying to updated the filed with Z transaction code, basically i ma updating or changing XBLENR field of header with UTR No which i received once payment get transferred to vendor account, Z program successfully updating XBLENR at header level but same XBLENR is not getting substituted in ZUONR of bank GL, what i want to achieve form substation.
Please help what i am missing in configuration.
Thanks for your kind help in advance.
Dear Avinash
There is no need for writing substitution. What you can do is for your BSEG-HKONT = '220511', just fix the sort key as correctly mentioned by Ankur Chauhan .
For your help, you can refer below screen on how to add field 'Reference' onto the list of sort keys;
Hope this helps you.
Best Regards
Abbas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sir,
My requirement is to update last 13 digit of XBLNR in bank GL assignment field from document header. if i will do it from short field because all digit will be updated, my purposes can not be achieved. Since i am not able to do it from standard OBBH, if i will achieve from OBBH, will ask apaper to write substation in exit for same filed and pick last 13 digit only.
Will attache same exit in substation.
Kindly help.
Hi Avinash,
What is your requirement? Please explain clearly.
Regards,
Mukthar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sir,
My requirement is to update last 13 digit of XBLNR in bank GL assignment field from document header. if i will do it from short field because all digit will be updated, my purposes can not be achieved. Since i am not able to do it from standard OBBH, if i will achieve from OBBH, will ask apaper to write substation in exit for same filed and pick last 13 digit only.
Will attache same exit in substation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
9 | |
8 | |
6 | |
3 | |
3 | |
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.