cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to read the text in billing header

0 Kudos
318

Is there BAPI to read the text stored at header level of billing data.

Or Is there any BAPI through which I can enter the text and save it in header part of billing.

Can someone suggest the BAPI used for Text pl.

View Entire Topic
venkateswaran_k
Active Contributor
0 Kudos

Hi

To Read the Header text item, you can use the following FM.

Each header item will have its own IDs

CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0002'
LANGUAGE = SY-LANGU
NAME = ' ' "Your Billing Document Invoices number
OBJECT = 'VBRK'   or 'VBBK'
TABLES
LINES = TLINE

If you want to create text Use CREATE_TEXT

CALL FUNCTION 'CREATE_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0002'
LANGUAGE = SY-LANGU
NAME = ' ' "Your Billing Document Invoices number
OBJECT = 'VBRK'   or 'VBBK'
TABLES
LINES = TLINE

and COMMIT




0 Kudos

Thanks Sir it was very useful information.