‎2008 Jul 31 6:44 AM
Hi,
May I know is there a way that I can control printing header text regardless whether there is line or no line in purchase order.
In current case, when all the lines have canceled, I still wish to have the header text printed when I print output. Is this controled by configuration or I need to write program? If so, which program should I look at?
I have tried using performance analysis to trace, but I still cant get the result.
Thanks.
‎2008 Jul 31 6:54 AM
Hi Leu,
you can simply look at the item level first, if its fails then check at hearer level like below..
first hit with vbeln(1234567890) + item no(000010)
if fails
check with vbeln(1234567890) only...
this will soles ur probelm...
‎2008 Jul 31 6:57 AM
Hi Raghu
I dun get you, in my case, I wish to have header text displayed regardless there is any PO line.
Thanks.
‎2008 Jul 31 6:58 AM
Hi,
First check whether the deletion indicator (LOEKZ) is set for the line items, if yes then read the text from header otherwise read the text from the items.
Regards,
Ramesh
‎2008 Jul 31 7:04 AM
First check whether the deletion indicator (LOEKZ) is set for the line items, if yes then read the text from header otherwise read the text from the items.
LOEKZ is the Deletion Indicator in Purchasing Document not line item deletion indicator.
le pls use read_text fm if the text is there other wise you need to some hard code text let the print in PO.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = stxh-tdid
language = stxh-tdspras
name = name
object = stxh-tdobject
TABLES
lines = i_lines[]
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.
"than print text.
else.
" print hard coded text.
endif.