cancel
Showing results for 
Search instead for 
Did you mean: 

Populate BSEG-ZUONR with VBRK-XBLNR during intercompany billing output type RD04

Former Member
0 Kudos

Hi

We have a requirement to populate the Assignment field(BSEG-ZUONR) in the Accounting document that gets generated via RD04 IDOC(INVOIC02) with the Billing document Reference number(VBRK-XBLNR).

We have this data being populated in the IDOC Segment E1EDK02 Qualifier 87 but need inputs on how to pass this value to the field BSEG-ZUONR.

Many discussions in the community provide solution where BSEG-XBLNR need to be copied from VBRK-XBLNR but we are looking specifically for BSEG-ZUONR.

Any inputs on this is appreciated.

Thanks and Regards

Megha

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186385
Active Contributor
0 Kudos

Hi,

You have to write a code in the Function module

IDOC_OUTPUT_INVOIC

there are so many enhancement points where you can write the logic to map the fields accordingly

regards,

santosh

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Try these steps in this order, although in my opinion point 3 is the solution.

1. Before, check in VTFA this field . Check also the documentation (F1)

2. In the copy rules, check VBRK-ZUONR is populated with the same value that VBRK-XBLNR. Check after VBRK-ZUONR is copied to BSEG-ZUONR.

3. See SAP Note 127178 - Questions about user exits in IDoc INVOIC01 (FI), question 4 (fill the allocation number  BSEG-ZUONR)

4. If before ways don't work, try with BTE 00001120 and change the value for T_BSEGSUB-ZUONR.

I hope this helps you

Regards

Eduardo

Message was edited by: Eduardo Hinojosa