on 10-24-2007 5:58 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
//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
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
Resolved using READ_TEXT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any idea guys....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.