Application Development and Automation 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: 
Read only

PO Header Text

Former Member
0 Likes
523

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.

4 REPLIES 4
Read only

Former Member
0 Likes
498

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

Read only

0 Likes
498

Hi Raghu

I dun get you, in my case, I wish to have header text displayed regardless there is any PO line.

Thanks.

Read only

learnsap
Active Participant
0 Likes
498

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

Read only

Former Member
0 Likes
498

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.