cancel
Showing results for 
Search instead for 
Did you mean: 

Material PO text

Former Member
0 Kudos

hi, i have a problem with displaying material PO text.

i need to print the material PO text right below each item level, if the material PO text is defined in me22n for the item in the PO.

but my problem is the material PO text is not defined for a few PO's even if the material PO text is defined.

and another issues is, if i have diff delivery address for each line item, then the delivery address and the PO text has to b displayed right below each line item, in this case for me the delivery address is displayed but the material PO text is not.

please help me with it

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to use READ_TEXT FM inorder to get Material PO Text

data : tdname LIKE thead-tdname.

data: begin of int_tline occurs 0.

include structure tline.

data: end of int_tline.

concatenate ekpo-ebeln ekpo-ebelp into tdname.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'F03'

language = sy-langu

name = tdname

object = 'EKPO'

TABLES

lines = int_tline

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

loop at int_tline.

write:/ int_tline-TDLINE.

endloop.

if material po text is available then it prints otherwise it will not print.

Thanks

Seshu

Former Member
0 Kudos

Seshu, thanks for the reply,

but i have not used this FM and evn then, the material PO text is displayed for some PO's and for some it is not displayed, even if it is available,

and what if i have delivery address to b printed at the line item? in this case also the material PO text is not getting displayed,

thanks

Message was edited by:

abap beginner

Former Member
0 Kudos

Did you check in Purchase order transaction ?

Where are you printing ? is it in Form ( SAP Script )..

I guess some thing related to language issue.

Look at ME23N Transaction ,and see what is the language behind this text.

Thanks

Seshu

Former Member
0 Kudos

i am using sapscript

yeah there is material Po text defined in PO in me23n, how to check for the language?

thanks

Former Member
0 Kudos

Goto ME23N Transaction -> select any line item number -> click on texts tab.

Now look at Material po Text -> keep the cursor on text -> double click

here goto -> header -> here you are able to see the language ,text id,text name..

Thanks

Seshu

Former Member
0 Kudos

Seshu,

i did that, the language is EN for both which are getting displayed and not displayed

Former Member
0 Kudos

Then you have to debug the form.

Just activate debugger -> now see what is the value of text name text id.

open other session -> use se37 -> read_text FM ..

If you delete the text and agin recreate the text ,some times you will not get text ( This is SAP Issue ).

Thanks

Seshu

Former Member
0 Kudos

//If you delete the text and agin recreate the text ,some times you will not get text ( This is SAP Issue ).//

Seshu,

I think this might be the issue, as i remember changing the Material PO text for a few PO's.

What about when i want both delivery address in the line item and also the PO text, in this case the PO text is not displayed.

Thanks for ur responses

Former Member
0 Kudos

For Testing purpose :

Take one po line item number -> which is not showing in form.

now goto SE37 -> use READ_TEXT FM ,give the proper data here,if you get the data here then issue might be at FORM.

What about when i want both delivery address in the line item and also the PO text, in this case the PO text is not displayed.

You can display but how about both having data ? you want to display ?

in this case check the data in debugging.

Thanks

Seshu

Answers (2)

Answers (2)

Former Member
0 Kudos

Resolved using READ_TEXT

Former Member
0 Kudos

any idea guys....