Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

F-32 Update Assignment (BSEG-ZUONR) after save

flvia_s
Participant
0 Kudos
958

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

1 ACCEPTED SOLUTION

flvia_s
Participant
0 Kudos
438

I found a Z include in MF05AFF0_FCODE_BEARBEITUNG in line 2509 that was enough to solve this issue.
Thanks for all your inputs.

9 REPLIES 9

former_member598787
Participant
0 Kudos
438

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.

iklovski
Active Contributor
0 Kudos
438

Hi,

What about sort key on the G/L account in question?

Regards,

Eli

0 Kudos
438

Is it a functional thing, Eli?
I am an ABAP with no experience in FI.

iklovski
Active Contributor
0 Kudos
438

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

0 Kudos
438

Thanks, Eli.

He said it is not possible in this case because the solution is specific for a CBU, not to all of them.

flvia_s
Participant
0 Kudos
438

Hi Juby,

Thanks for the message. Unfortunately it does not stop there when I click on SAVE in F-32.

raymond_giuseppi
Active Contributor
0 Kudos
438

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)

0 Kudos
438

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.

flvia_s
Participant
0 Kudos
439

I found a Z include in MF05AFF0_FCODE_BEARBEITUNG in line 2509 that was enough to solve this issue.
Thanks for all your inputs.