<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PO Header Text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239176#M1012014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOEKZ is the Deletion Indicator in Purchasing Document not line item deletion indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2008 06:04:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-31T06:04:44Z</dc:date>
    <item>
      <title>PO Header Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239172#M1012010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using performance analysis to trace, but I still cant get the result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 05:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239172#M1012010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T05:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: PO Header Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239173#M1012011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can simply look at the item level first, if its fails then check at hearer level like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first hit with vbeln(1234567890) + item no(000010) &lt;/P&gt;&lt;P&gt;if fails &lt;/P&gt;&lt;P&gt;check with vbeln(1234567890) only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will soles ur probelm...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 05:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239173#M1012011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T05:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: PO Header Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239174#M1012012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dun get you, in my case, I wish to have header text displayed regardless there is any PO line.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 05:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239174#M1012012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T05:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: PO Header Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239175#M1012013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 05:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239175#M1012013</guid>
      <dc:creator>learnsap</dc:creator>
      <dc:date>2008-07-31T05:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: PO Header Text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239176#M1012014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;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.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOEKZ is the Deletion Indicator in Purchasing Document not line item deletion indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 06:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-header-text/m-p/4239176#M1012014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T06:04:44Z</dc:date>
    </item>
  </channel>
</rss>

