cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer invoice header text to accounting document

former_member610150
Participant
0 Kudos

Hello,

When an accounting document is created for a sales invoice I want to have the text of the invoice header transfered to the line item text of the accounting document (BSEG-SGTXT).

I know the copy control options for for example texts from a delivery to an invoice. Is there also a solution for the problem mentioned above?

Regards, Jan

Accepted Solutions (0)

Answers (2)

Answers (2)

dominic_holdstock
Active Contributor
0 Kudos

HI,

The standard solution for this is the User Exit EXIT_SAPLV60B_001.

This changes the structure ACCHD - this is the standard structure for transfer of Data from SD to Accounting

Kind regards

former_member610150
Participant
0 Kudos

Question has been answered.

Former Member
0 Kudos

Hi,

You can apply constant value substitution thought OBBH at line item posting level.

Just Add the field which you need to get automatically filled, and select constant field BSEG-Field, to assign its value to required field.

BR

former_member610150
Participant
0 Kudos

Dear,

Thank's a lot! I didn't know the substitution method transactions.

The next problem is that with this method I can only replace the field with fields from BKPF or BSEG. I want to use an invoice text (Display invoice (VF03), Go to > Header > Header texts). I found out how I can create and assign a user-exit but I have no idea what the content of this user-exit should be.

Regards, Jan

Former Member
0 Kudos

Hi Jan,

Well, for BSEG and BKPF, yes, you can directly assign the values.

For user exit, you may use SAP Note : 105024

In short, you need to

1) add user-exit routine in Z program, as suggested in sap note.

2) In routine, assign header text field with the required information. Consult your ABAPer if available, or try yourself and for any query, repost your confusion here.

3) Call this routine in OBBH

The routine/function will actually be assigning header text.

BR