Application Development and Automation 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: 
Read only

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

flvia_s
Participant
0 Kudos
2,252

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
Read only

flvia_s
Participant
0 Kudos
1,732

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
Read only

former_member598787
Participant
0 Kudos
1,732

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.

Read only

iklovski
Active Contributor
0 Kudos
1,732

Hi,

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

Regards,

Eli

Read only

0 Kudos
1,732

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

Read only

iklovski
Active Contributor
0 Kudos
1,732

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

Read only

0 Kudos
1,732

Thanks, Eli.

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

Read only

flvia_s
Participant
0 Kudos
1,732

Hi Juby,

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

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
1,732

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)

Read only

0 Kudos
1,732

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.

Read only

flvia_s
Participant
0 Kudos
1,733

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