2021 Sep 08 9:54 AM
Dear experts,
We need to update the Assignement field bseg-zuonr with belnr information: bseg-zuonr = bkpf-belnr.
The tricky part is that BELNR value only exists after saving, and I could not find a BTE or BADI to update/substitute bseg-zuonr after it.
I have tried BTE 1030, but it seems not to be updating anything.
Do you guys have any sugestions, please?
BR,
Alm
2021 Sep 08 1:16 PM
I found a Z include in MF05AFF0_FCODE_BEARBEITUNG in line 2509 that was enough to solve this issue.
Thanks for all your inputs.
2021 Sep 08 10:00 AM
Hello,
please refer to below link:
https://answers.sap.com/questions/9838742/bseg-zuonr-updation--user-exit-badi-to-update.html
also have you checked exit : EXIT_SAPLV60B_008
Hope this solves your issue.
2021 Sep 08 10:02 AM
Hi,
What about sort key on the G/L account in question?
Regards,
Eli
2021 Sep 08 10:33 AM
Is it a functional thing, Eli?
I am an ABAP with no experience in FI.
2021 Sep 08 10:44 AM
Yes, it is a functional attribute of G/L account; check with your FI consultant. Based on this parameter, assignment (ZUONR) is filled with specific data, which could be also a document number
2021 Sep 08 11:32 AM
Thanks, Eli.
He said it is not possible in this case because the solution is specific for a CBU, not to all of them.
2021 Sep 08 11:43 AM
Hi Juby,
Thanks for the message. Unfortunately it does not stop there when I click on SAVE in F-32.
2021 Sep 08 12:10 PM
Either remove the Abap tag, ask FI Consultant to use the sort key in the master record (G/L account, tab Control Data, group Account Management in Company Code) to fill the 'Allocation number' field automatically (browse table TZUN with transaction OB16) But isn't it usually document number + year (for uniqueness)
Or, if some information is missing in the question, look for a BTE such as 00001120 'DOCUMENT POSTING: Field substitution header/items' (change zuonr in table T_BSEGSUB)
2021 Sep 08 1:15 PM
Hi Raymond,
The customizing according to the functional is not possible because the needs to restrict this solution only for a few CBUs.
BTE 1120 does not have the number of BELNR, it has the temporary value.
Thanks anyway.
2021 Sep 08 1:16 PM
I found a Z include in MF05AFF0_FCODE_BEARBEITUNG in line 2509 that was enough to solve this issue.
Thanks for all your inputs.