<?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: how to modify the form without modify the print program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587041#M592061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can write a external Subroutine to fetch the extra data into the script program&lt;/P&gt;&lt;P&gt;see the following sample code&lt;/P&gt;&lt;P&gt;How to call a subroutine form SAPscripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Form :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;EKKO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;CDECENT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zkrpmm_perform_z1medruck .&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_input_table OCCURS 10.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : END OF it_input_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;déclaration de la table output_table contenant les&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;variables exportées&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_output_table OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : END OF it_output_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_ebeln LIKE ekko-ebeln,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_zcdffa LIKE vbak-zcdffa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM CDE_CENT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM cde_cent TABLES input output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_input_table[] = input[].&lt;/P&gt;&lt;P&gt;it_output_table[] = output[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_input_table INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE it_input_table-value TO w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = w_ebeln&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE zcdffa FROM ekko&lt;/P&gt;&lt;P&gt;INTO w_zcdffa&lt;/P&gt;&lt;P&gt;WHERE ebeln = w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output_table-name = 'CDECENT'.&lt;/P&gt;&lt;P&gt;MOVE w_zcdffa TO it_output_table-value.&lt;/P&gt;&lt;P&gt;MODIFY it_output_table INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output[] = it_output_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPING SCRIPT&lt;/P&gt;&lt;P&gt;There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: Go to SE71,&lt;/P&gt;&lt;P&gt;on menu bar u find Utilities-&amp;gt;copy from Client. click on it u ll find new screen showing&lt;/P&gt;&lt;P&gt;Form name: &lt;/P&gt;&lt;P&gt;Source Clinet:&lt;/P&gt;&lt;P&gt;Target Form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give Form name as usedefined form name EX: ZFORM1&lt;/P&gt;&lt;P&gt;Source client as 000 and &lt;/P&gt;&lt;P&gt;Target form as MEDRUCK.&lt;/P&gt;&lt;P&gt;execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the standard from MEDRUCK is copyied to your form ZFORM1.&lt;/P&gt;&lt;P&gt;NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.&lt;/P&gt;&lt;P&gt;Go to NACE Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on Applications select EF for purchase order and click Output types button on application tool bar.&lt;/P&gt;&lt;P&gt;now select NEU as output types dobule click on Processing Routines.&lt;/P&gt;&lt;P&gt;now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.&lt;/P&gt;&lt;P&gt;go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 07:20:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T07:20:17Z</dc:date>
    <item>
      <title>how to modify the form without modify the print program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587040#M592060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;how to modify the form without modify the print program?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587040#M592060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the form without modify the print program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587041#M592061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can write a external Subroutine to fetch the extra data into the script program&lt;/P&gt;&lt;P&gt;see the following sample code&lt;/P&gt;&lt;P&gt;How to call a subroutine form SAPscripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Form :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;EKKO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;CDECENT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zkrpmm_perform_z1medruck .&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_input_table OCCURS 10.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : END OF it_input_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;déclaration de la table output_table contenant les&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;variables exportées&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_output_table OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : END OF it_output_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_ebeln LIKE ekko-ebeln,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_zcdffa LIKE vbak-zcdffa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM CDE_CENT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM cde_cent TABLES input output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_input_table[] = input[].&lt;/P&gt;&lt;P&gt;it_output_table[] = output[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_input_table INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE it_input_table-value TO w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = w_ebeln&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE zcdffa FROM ekko&lt;/P&gt;&lt;P&gt;INTO w_zcdffa&lt;/P&gt;&lt;P&gt;WHERE ebeln = w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output_table-name = 'CDECENT'.&lt;/P&gt;&lt;P&gt;MOVE w_zcdffa TO it_output_table-value.&lt;/P&gt;&lt;P&gt;MODIFY it_output_table INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output[] = it_output_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPING SCRIPT&lt;/P&gt;&lt;P&gt;There are some Standard Sap Scripts in SAP. We cant directly execute them in scripts we have to use some T-codes and by giving some input to the required fields we can see the output printform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will show one example. There are some Standard Sap Scripts such as MEDRUCK which is a standard Sap Script for Purchase Order and RVINVOICE01 for billing and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see oupt of MEDRUCK go to T-code ME9F give purchase order number and execute select one number and click on dislplay messages button on application tool bar you can find the print form of MEDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot change the Standard Sap Scripts but you can use Standard Sap Scripts and Copy them to userdefined Script and can make changes to them and replace standard Sap Script with usedefind script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: Go to SE71,&lt;/P&gt;&lt;P&gt;on menu bar u find Utilities-&amp;gt;copy from Client. click on it u ll find new screen showing&lt;/P&gt;&lt;P&gt;Form name: &lt;/P&gt;&lt;P&gt;Source Clinet:&lt;/P&gt;&lt;P&gt;Target Form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give Form name as usedefined form name EX: ZFORM1&lt;/P&gt;&lt;P&gt;Source client as 000 and &lt;/P&gt;&lt;P&gt;Target form as MEDRUCK.&lt;/P&gt;&lt;P&gt;execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the standard from MEDRUCK is copyied to your form ZFORM1.&lt;/P&gt;&lt;P&gt;NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form such as adding logo any thing. save and Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you have done changes to the Form ZFORM1 and u have to replace your form with standard SAP Script.&lt;/P&gt;&lt;P&gt;Go to NACE Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on Applications select EF for purchase order and click Output types button on application tool bar.&lt;/P&gt;&lt;P&gt;now select NEU as output types dobule click on Processing Routines.&lt;/P&gt;&lt;P&gt;now click on Change option on application tool bar and on right side u find MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.&lt;/P&gt;&lt;P&gt;go back twice and now go to T-code ME9F give the purchase order number and execute and select one option and click on display messges button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will find the changes that you have done in ZFORM1. so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts we can chage and replace with our forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587041#M592061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify the form without modify the print program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587042#M592062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;     U can do the changes in the smartform without touching the driver program.In smartform u can add the code section,there u can write ur intended code.&lt;/P&gt;&lt;P&gt;    If u require anything plz let me know and give the details of the problem u r facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward the point if useful.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Akarte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-the-form-without-modify-the-print-program/m-p/2587042#M592062</guid>
      <dc:creator>rajesh_akarte2</dc:creator>
      <dc:date>2007-07-25T07:26:33Z</dc:date>
    </item>
  </channel>
</rss>

