Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

where to get the Text of standard Payment term in PO.???

Former Member
0 Kudos

where to get the Text of standard Payment terms in PO.

Thanks in Advance

18 REPLIES 18

former_member188685
Active Contributor
0 Kudos

using read_text function module, by passing appropriate

parameters you can get the text.

vijay

0 Kudos

pls give one example how to pass the parameters..

Former Member
0 Kudos

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

0 Kudos
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.

0 Kudos

Dear all

I want the Payment term Text that is in the Delivery Invoice tab not in the header Text.

0 Kudos

Hi

See the tables TVZBT and T052U.

Max

Message was edited by: max bianchi

0 Kudos

First be clear what is your exact requirement.

i dont see any Text related details in Delivery/invoice tab of PO(ME22N)

regards,

srikanth

0 Kudos

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

0 Kudos

it's Explanation of Payment term

0 Kudos

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

0 Kudos

it's the first field (Payment terms) in the deliver/invoice teb (me22n)

0 Kudos

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

0 Kudos

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

0 Kudos

Refer Table T052U (View v-t052).

Thanks & Regards

Mahendra

0 Kudos

Is this what you want?

<b>

SELECT SINGLE vtext 
FROM tvzbt 
INTO payment_description
WHERE zterm = 'XYZ'
AND spras = sy-langu.

</b>

former_member181962
Active Contributor
0 Kudos

Use Read_TEXT FM passing the Text -ID.

Or see the table STXH.

Regards,

Ravi

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.