<?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 PO SAPScript question. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080955#M431682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAPients!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a little confused with a situation I have, I have to modify SAPScript MEDRUCK (ZMEDRUCK in fact) and print program SAPFM06P (ZSAPFM06P) I wanted to modify the ENTRY_NEU subroutine but there I can only see this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;form entry_neu using ent_retco ent_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_druvo like t166k-druvo,&lt;/P&gt;&lt;P&gt;        l_nast  like nast,&lt;/P&gt;&lt;P&gt;        l_from_memory,&lt;/P&gt;&lt;P&gt;        l_doc   type meein_purchase_doc_print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear ent_retco.&lt;/P&gt;&lt;P&gt;  if nast-aende eq space.&lt;/P&gt;&lt;P&gt;    l_druvo = '1'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    l_druvo = '2'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'ME_READ_PO_FOR_PRINTING'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            ix_nast        = nast&lt;/P&gt;&lt;P&gt;            ix_screen      = ent_screen&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            ex_retco       = ent_retco&lt;/P&gt;&lt;P&gt;            ex_nast        = l_nast&lt;/P&gt;&lt;P&gt;            doc            = l_doc&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            cx_druvo       = l_druvo&lt;/P&gt;&lt;P&gt;            cx_from_memory = l_from_memory.&lt;/P&gt;&lt;P&gt;  check ent_retco eq 0.&lt;/P&gt;&lt;P&gt;  call function 'ME_PRINT_PO'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            ix_nast        = l_nast&lt;/P&gt;&lt;P&gt;            ix_druvo       = l_druvo&lt;/P&gt;&lt;P&gt;            doc            = l_doc&lt;/P&gt;&lt;P&gt;            ix_screen      = ent_screen&lt;/P&gt;&lt;P&gt;            ix_from_memory = l_from_memory&lt;/P&gt;&lt;P&gt;            ix_toa_dara    = toa_dara&lt;/P&gt;&lt;P&gt;            ix_arc_params  = arc_params&lt;/P&gt;&lt;P&gt;            ix_fonam       = tnapr-fonam          "HW 214570&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            ex_retco       = ent_retco.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the development standards for this project, the SAPScript should not have PERFORM sentences, all the processing and calculating functionality should be in the print program, does that mean I have to modify the Function modules? Do you know other way of doing it? What would you recommend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 20:10:35 GMT</pubDate>
    <dc:creator>ricardo_fernndezvzquez3</dc:creator>
    <dc:date>2007-04-10T20:10:35Z</dc:date>
    <item>
      <title>PO SAPScript question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080955#M431682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAPients!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a little confused with a situation I have, I have to modify SAPScript MEDRUCK (ZMEDRUCK in fact) and print program SAPFM06P (ZSAPFM06P) I wanted to modify the ENTRY_NEU subroutine but there I can only see this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;form entry_neu using ent_retco ent_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_druvo like t166k-druvo,&lt;/P&gt;&lt;P&gt;        l_nast  like nast,&lt;/P&gt;&lt;P&gt;        l_from_memory,&lt;/P&gt;&lt;P&gt;        l_doc   type meein_purchase_doc_print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear ent_retco.&lt;/P&gt;&lt;P&gt;  if nast-aende eq space.&lt;/P&gt;&lt;P&gt;    l_druvo = '1'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    l_druvo = '2'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'ME_READ_PO_FOR_PRINTING'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            ix_nast        = nast&lt;/P&gt;&lt;P&gt;            ix_screen      = ent_screen&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            ex_retco       = ent_retco&lt;/P&gt;&lt;P&gt;            ex_nast        = l_nast&lt;/P&gt;&lt;P&gt;            doc            = l_doc&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            cx_druvo       = l_druvo&lt;/P&gt;&lt;P&gt;            cx_from_memory = l_from_memory.&lt;/P&gt;&lt;P&gt;  check ent_retco eq 0.&lt;/P&gt;&lt;P&gt;  call function 'ME_PRINT_PO'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            ix_nast        = l_nast&lt;/P&gt;&lt;P&gt;            ix_druvo       = l_druvo&lt;/P&gt;&lt;P&gt;            doc            = l_doc&lt;/P&gt;&lt;P&gt;            ix_screen      = ent_screen&lt;/P&gt;&lt;P&gt;            ix_from_memory = l_from_memory&lt;/P&gt;&lt;P&gt;            ix_toa_dara    = toa_dara&lt;/P&gt;&lt;P&gt;            ix_arc_params  = arc_params&lt;/P&gt;&lt;P&gt;            ix_fonam       = tnapr-fonam          "HW 214570&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            ex_retco       = ent_retco.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the development standards for this project, the SAPScript should not have PERFORM sentences, all the processing and calculating functionality should be in the print program, does that mean I have to modify the Function modules? Do you know other way of doing it? What would you recommend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 20:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080955#M431682</guid>
      <dc:creator>ricardo_fernndezvzquez3</dc:creator>
      <dc:date>2007-04-10T20:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: PO SAPScript question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080956#M431683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to copy the entire standard program and make the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 20:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080956#M431683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T20:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: PO SAPScript question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080957#M431684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In reality, the print program that you mention is really just an "in between" driver, the actually printing goes on in the function group MEDRUCK or ZMEDRUCK.  You must copy the function group MEDRUCK to a "Z" version called ZMEDRUCK, this will then allow you to copy the function modules within,   one of wich being the ME_PRINT_PO function module,   copy this into Z_ME_PRINT_PO.  Now in this function module is where you will make you modifications.  There are lot so includes in there where you will need to copy them as well and comment out the old include name and include the "Z" version.  Also, you will need to change the call in the mentioned program above so that it calls the "Z" version of your print function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'Z_ME_PRINT_PO'            "&amp;lt;--  Like So
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;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 20:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080957#M431684</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-10T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: PO SAPScript question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080958#M431685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, as always, very good information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more question: What would you say is the best way of changing all those includes and the calls?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 16:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080958#M431685</guid>
      <dc:creator>ricardo_fernndezvzquez3</dc:creator>
      <dc:date>2007-04-11T16:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: PO SAPScript question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080959#M431686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You simply need to change these via SE80.   There is not really a quick and easy way to do this, other than jump into the code and start modifing.&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, 11 Apr 2007 17:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080959#M431686</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-11T17:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: PO SAPScript question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080960#M431687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But make sure that you only copy what is required.  You only need to make "Z" version of the includes that you need to modify,  all others can stay as standard.&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, 11 Apr 2007 17:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-sapscript-question/m-p/2080960#M431687</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-11T17:06:07Z</dc:date>
    </item>
  </channel>
</rss>

