04-30-2012 10:38 AM
Dear all,
I need to read to a given invoice (i have access to VBRK and VBRP) the header and position text. Does anyone have an idea where I can find this data?
Thx in advance
Best regards,
Alexander Suckow
04-30-2012 10:51 AM
(FAQ) Call VF03 to display an invoice, then navigate to display header and item text tabs. For the text you want to read by program, select and double-click in the text windows, you will get fullscreen mode display, there in the menu navigate to go to, header. There will be displayed the ID, LANGUAGE, NAME and OBJECT field values that you will use to call FM READ_TEXT. (Just identify VBELN and POSNR fields in the NAME field)
Regards,
Raymond
04-30-2012 10:51 AM
(FAQ) Call VF03 to display an invoice, then navigate to display header and item text tabs. For the text you want to read by program, select and double-click in the text windows, you will get fullscreen mode display, there in the menu navigate to go to, header. There will be displayed the ID, LANGUAGE, NAME and OBJECT field values that you will use to call FM READ_TEXT. (Just identify VBELN and POSNR fields in the NAME field)
Regards,
Raymond
04-30-2012 11:00 AM
Thank you
I need to read all text (header and position) that has been saved to a specific invoice. Is there a mapping table to get all this data for a specified invoice?
Thx in advance,
Best regrads,
Alexander Suckow
04-30-2012 11:19 AM
On the maintain Text screen, at the Bottom, there is a button "Display Log". This one lists down all the Text which can be maintained for the Item or Header level. Basically it navigates through the Customizing table.. which are combination of Access Sequence tables. Check if you can figure out any FM by debugging the execution of thta Button Press event.
04-30-2012 11:19 AM
Hi,
In order to get all the text details, go to table STXH and give the text name as '*<Inv Num>*' and execute.
you will get the list of entries which has the long text. You can get the text by calling READ_TEXT
using the data from STXH.
Thanks,
Lakshmi
04-30-2012 12:19 PM
Warning, not every text which contains the number of the invoice is related to the invoice (this can be text of a purchase order, an accounting document, etc.)
For a list of available texts in system, look at Customizing table TTXOB (definition of the text objects) via transaction SE75. (there are some entries for Invoice like 'VBRK' or 'VBRP')
For invoices, during Customizing, many texts can be defined : There is a field at item level which link to text determination, look via transaction VOTXN for Header (text object VBBK) and item texts (text object VBBP) - Tables behind are TTXG , text table TTXGT, and TTXERN which links to TTXID, text table TTXIT.
Regards,
Raymond
04-30-2012 11:55 AM