<?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: question reg. sapscript. please help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696074#M305374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it will, and yes you will have to copy a couple of things,  first you will need to copy the driver, program SAPFM06P into custom program SAPFZM06P.  Then copy function group MEDRUCK into ZMEDRUCK with all the function modules,  then go to the SAPFZM06P program and copy the include program  FM06PE02 into ZFM06PE02 and include this in the main program SAPFZM06P,  inside the  ZFM06PE02, change the call in the  ENTRY_NEU form to call the "Z" version of your function module in the ZMEDRUCK function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

form entry_neu using ent_retco ent_screen.

  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.

  clear ent_retco.
  if nast-aende eq space.
    l_druvo = '1'.
  else.
    l_druvo = '2'.
  endif.

  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  &amp;lt;b&amp;gt;call function 'ZME_PRINT_PO'&amp;lt;/b&amp;gt;
       exporting
            ix_nast        = l_nast
            ix_druvo       = l_druvo
            doc            = l_doc
            ix_screen      = ent_screen
            ix_from_memory = l_from_memory
            ix_toa_dara    = toa_dara
            ix_arc_params  = arc_params
            ix_fonam       = tnapr-fonam          "HW 214570
       importing
            ex_retco       = ent_retco.
endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must then change your configuration for the purchase order to tell the system to use the "Z" versions of the print program SAPFZM06P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Nov 2006 21:10:35 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-01T21:10:35Z</dc:date>
    <item>
      <title>question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696071#M305371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am modifying a standard medruck sapscript form for the customer needs. Now on the printout, if i want the text under 'item_text' text element to come after the text under'ITEM_SCHEDULE' text element, where should I change the code? in main program ? or in form itself? Please give me an idea reg. this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E	 	ITEM_TEXT&lt;/P&gt;&lt;P&gt;IC	 	,,&amp;amp;TTXIT-TDTEXT&amp;amp;&lt;/P&gt;&lt;P&gt;/:	 	INCLUDE &amp;amp;T166P-TXNAM&amp;amp; OBJECT &amp;amp;T166P-TDOBJECT&amp;amp; ID &amp;amp;T166P-TDID&amp;amp; LANGUAGE &amp;amp;&lt;/P&gt;&lt;P&gt;                                                                    &lt;/P&gt;&lt;P&gt;/E	 	ITEM_SCHEDULE&lt;/P&gt;&lt;P&gt;IM	 	,,,,,,&amp;amp;RM06P-PRMG1&amp;amp;,,&amp;amp;T006A-MSEHT&amp;amp;,,&amp;amp;RM06P-PRITX&amp;amp; &amp;amp;RM06P-LFDAT&amp;amp;,,,,&lt;/P&gt;&lt;P&gt;=	 	&amp;amp;RM06P-PHTXT(27)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Krishen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 20:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696071#M305371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T20:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696072#M305372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in this case, you will need to change in the program itself.  Why?  Because it is using Text Elements in the MAIN window and the order in which the elements are printed is driven by the function calls(WRITE_FORM) in the print program.  So in your case, have a look at include LMEDRUCKF18 line 426.  THis is the call to the element ITEM_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 20:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696072#M305372</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-01T20:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696073#M305373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Rich.&lt;/P&gt;&lt;P&gt;Can you give me an idea of how to modify here? &lt;/P&gt;&lt;P&gt;I mean if i call function related to item_text after the function related to item_schedule, can it solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like i have to copy the whole main program with includes and change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 21:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696073#M305373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T21:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696074#M305374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it will, and yes you will have to copy a couple of things,  first you will need to copy the driver, program SAPFM06P into custom program SAPFZM06P.  Then copy function group MEDRUCK into ZMEDRUCK with all the function modules,  then go to the SAPFZM06P program and copy the include program  FM06PE02 into ZFM06PE02 and include this in the main program SAPFZM06P,  inside the  ZFM06PE02, change the call in the  ENTRY_NEU form to call the "Z" version of your function module in the ZMEDRUCK function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

form entry_neu using ent_retco ent_screen.

  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.

  clear ent_retco.
  if nast-aende eq space.
    l_druvo = '1'.
  else.
    l_druvo = '2'.
  endif.

  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  &amp;lt;b&amp;gt;call function 'ZME_PRINT_PO'&amp;lt;/b&amp;gt;
       exporting
            ix_nast        = l_nast
            ix_druvo       = l_druvo
            doc            = l_doc
            ix_screen      = ent_screen
            ix_from_memory = l_from_memory
            ix_toa_dara    = toa_dara
            ix_arc_params  = arc_params
            ix_fonam       = tnapr-fonam          "HW 214570
       importing
            ex_retco       = ent_retco.
endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must then change your configuration for the purchase order to tell the system to use the "Z" versions of the print program SAPFZM06P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 21:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696074#M305374</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-01T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696075#M305375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich.&lt;/P&gt;&lt;P&gt;I tried this procedure but again got busy in other ABAP tasks. Thanks for your detailed procedure. I appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 14:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696075#M305375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696076#M305376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Otherthann modifying the standrd Print program, You can write external subroutine whereever you want the text and pass this information back to layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 14:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696076#M305376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: question reg. sapscript. please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696077#M305377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you think you are very experienced and very tough you may go ahead and copy and change the module pool. You will have more trouble to get it integrated again. As far as I remember the print modules are integrated part of the huge purchase module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try to leave ITEM_TEXT empty and place move the lines under the ITEM_SCHEDULE lines. Possibly the data are still vailable. But then, if there are no schedule lines for output, you would not get the text lines as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid you may have to use external performs to check conditions and work around them this way. My estimation is that it's less work that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 15:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-reg-sapscript-please-help/m-p/1696077#M305377</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-11-03T15:22:38Z</dc:date>
    </item>
  </channel>
</rss>

