12-29-2005 10:38 AM
where to get the Text of standard Payment terms in PO.
Thanks in Advance
12-29-2005 10:41 AM
using read_text function module, by passing appropriate
parameters you can get the text.
vijay
12-29-2005 10:42 AM
12-29-2005 10:42 AM
use READ_TEXT & Populate the below values to this func module & you will get the text in TDLINES.
Text Name 5500000009 (ur PO number)
Language EN
Text ID F07 Terms of payment
Text object EKKO Purchasing doc. header texts
regards,
srikanth
12-29-2005 10:46 AM
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = 'F07'
language = Sy-Langu
name = 'PONUMBER'
object = 'EKKO'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
tables
lines = it_text
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* NAME = 3
* NOT_FOUND = 4
* OBJECT = 5
* REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
12-29-2005 12:31 PM
Dear all
I want the Payment term Text that is in the Delivery Invoice tab not in the header Text.
12-29-2005 12:41 PM
Hi
See the tables TVZBT and T052U.
Max
Message was edited by: max bianchi
12-29-2005 12:45 PM
First be clear what is your exact requirement.
i dont see any Text related details in Delivery/invoice tab of PO(ME22N)
regards,
srikanth
12-29-2005 12:46 PM
it do not show the text like in case of
standard Payment Code 0003 the Text is
For incoming invoices until 15 of the month
Within 14 days 2 % cash discount
Within 30 days 1,5 % cash discount
Within 45 days Due net
Baseline date on 30 of the month
For incoming invoices until End of the month
Within 14 days 2,125 % cash discount
Within 30 days 1,5 % cash discount
Within 45 days Due net
Baseline date on 15 of next month
but it shows
60 Days from the date of receipt of material
12-29-2005 12:53 PM
12-29-2005 12:55 PM
Hi
Where are you watching this text?
I seem a long text, in PO the long text for Terms of Payment has ID = F07.
If you're seeing that text from search help, it could be build dynamically. Infact the system gets the text from tables TVZBT and T052U, but if it can't find it, it'll build.
See the fm FI_F4_ZTERM/FI_TEXT_ZTERM: it's the fm for search help/text.
Max
Message was edited by: max bianchi
Message was edited by: max bianchi
Message was edited by: max bianchi
12-29-2005 1:05 PM
it's the first field (Payment terms) in the deliver/invoice teb (me22n)
12-29-2005 1:12 PM
Hi
Ok! So you're speaking about the descriptions showing by search help, aren't you?
See my previous answer because I believe your text is dynamically build.
Max
12-29-2005 1:22 PM
Hi Sachin,
You can use function module FI_TEXT_ZTERM to get description of Payment Terms. Just fill ZTERM in the importing structure parameter I_T052 and TABLES parameter T_ZTEXT will return back with the text.
Hope this helps..
Sri
12-29-2005 3:50 PM
12-29-2005 4:34 PM
Is this what you want?
<b>
SELECT SINGLE vtext
FROM tvzbt
INTO payment_description
WHERE zterm = 'XYZ'
AND spras = sy-langu.
</b>
12-29-2005 10:42 AM
Use Read_TEXT FM passing the Text -ID.
Or see the table STXH.
Regards,
Ravi
12-29-2005 10:43 AM
go to PO. From the text get the Text-id/PO Number/Language/Object.Now using READ_TEXT in abap code and passing the values u can get the text into an internal table which can be used.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = Text-Id
language = Sy-Langu
name = Text-Name
object = Object-Name
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = it_text
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
12-29-2005 10:44 AM
here is the way how to findout the OBJECT details :
1. READ_TEXT
for this you have to pass the below fields to the fm
ID
LANGUAGE
NAME
OBJECT
and you will get already stored text for this ID into the LINES internal table.
the above values for ID,NAME,OBJECT etc. you can find in the transaction.
for example: for po, header->goto texts -> select ur text (for ex.TERMS OF PAYMENTS ) here it will have several dropdown items like "continuous text,line editor,script editor".
here select SAP SCRIPT editor.
you will see a new script line editor.here .there in the menu GOTO -> header .
here you can find all the required fields to pass to the function module.