<?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: input data for custom print program for smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861652#M1787574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, for a purchase order :&lt;/P&gt;&lt;P&gt;I configure the output message in NACE : I give the program name and the routine name (a FORM routine in the program)&lt;/P&gt;&lt;P&gt;This routine should have 2 parameters :&lt;/P&gt;&lt;P&gt;&amp;nbsp; -ent_retco type subrc, which is the return code that you have to update at the end of your routine to inform the standard calling program. If everything is ok in your routine, then you can return ''.&lt;/P&gt;&lt;P&gt;&amp;nbsp; -ent_screen type c, which indicates if you are in print preview mode ('X'=print preview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my print program, I include RVADTABL, as in the standard. Then the structure NAST is available. At runtime, the structure is filled with correct values, then I can use NAST-OBJKY to get the PO number. (and then I select all data from ekpo...).&lt;/P&gt;&lt;P&gt;This is the starting point to retrieve all data needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 10:39:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-13T10:39:50Z</dc:date>
    <item>
      <title>input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861647#M1787569</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;I will be needing to write an ABAP program to serve as a print program which will call a Smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand how data flows from the print program to the smartform, but I do not understand how data will flow INTO the print program from the higher level process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the user executes a MIGO which eventually kicks off my print program.&amp;nbsp; How do I receive the data from the MIGO into my program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense...thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861647#M1787569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T18:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861648#M1787570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Put a break on your print program and check all the Local variables that are available. There you get all the info that need to pass to the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861648#M1787570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T19:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861649#M1787571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take a look at the any one of the SAP Standard print program SAPM07DR used in MIGO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main routines starts something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;mkpf &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;mblnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;nast_key&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mblnr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;mjahr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;nast_key&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mjahr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;mseg &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;mblnr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mkpf&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mblnr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;zeile &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;nast_key&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;zeile&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;mjahr &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mkpf&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mjahr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;It will vary based on what you would like to print. You can get the standard print program from your function team. They should know where to set it up in config.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861649#M1787571</guid>
      <dc:creator>marius_greeff</dc:creator>
      <dc:date>2013-11-12T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861650#M1787572</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;In the configuration of the output determination via:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SPRO-Materials Management -Inventory Management and Physical Inventory - Output Determination.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can map the driver program and the Smartform. Then either in the driver program can have all the selections or you can code all the selections in Smartform after taking in the basic document number that you process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also another option would be SAPScript as some standard would be available and change it to suite you requirement. You can check any existing mapping via:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;SPRO-Materials Management -Inventory Management and Physical Inventory - Output Determination-Assign Forms and Programs.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 01:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861650#M1787572</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-11-13T01:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861651#M1787573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From MIGO to DRIVER program&amp;nbsp; NAST will hold the key of document posted...Then you can fetch your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 05:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861651#M1787573</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-11-13T05:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861652#M1787574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, for a purchase order :&lt;/P&gt;&lt;P&gt;I configure the output message in NACE : I give the program name and the routine name (a FORM routine in the program)&lt;/P&gt;&lt;P&gt;This routine should have 2 parameters :&lt;/P&gt;&lt;P&gt;&amp;nbsp; -ent_retco type subrc, which is the return code that you have to update at the end of your routine to inform the standard calling program. If everything is ok in your routine, then you can return ''.&lt;/P&gt;&lt;P&gt;&amp;nbsp; -ent_screen type c, which indicates if you are in print preview mode ('X'=print preview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my print program, I include RVADTABL, as in the standard. Then the structure NAST is available. At runtime, the structure is filled with correct values, then I can use NAST-OBJKY to get the PO number. (and then I select all data from ekpo...).&lt;/P&gt;&lt;P&gt;This is the starting point to retrieve all data needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 10:39:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861652#M1787574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-13T10:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861653#M1787575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all very, very much for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to begin work on this today and I will report back as to how it worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This information is very valuable...thank you...I'll be in touch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 12:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861653#M1787575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-13T12:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861654#M1787576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check NAST and NACE settings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 19:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861654#M1787576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-13T19:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861655#M1787577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 05:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861655#M1787577</guid>
      <dc:creator>former_member209120</dc:creator>
      <dc:date>2013-11-14T05:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861656#M1787578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you have understood the flow. In case you haven't, please read on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case - Standard SAP Script - MEDRUCK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the forms need an 'Output Type' associated with it.&amp;nbsp; Once the 'Output Type'(NEU) is created it needs to be configured in 'NACE' transaction. This configuration acts as a binding and calls the bound Program/driver program(SAPFM06P). Within the driver program we have various subroutines/forms, one amongst those acts as the entry subroutine or the subroutine where the control is transferred for the first time always inside the driver program(ENTRY_NEU). Now you can have your custom code and achieve any output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is reference screenshot -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/323752" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861656#M1787578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-14T11:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: input data for custom print program for smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861657#M1787579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all very much...very informative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NACE and MSEG and MKPF is what I needed to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all of the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 14:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/input-data-for-custom-print-program-for-smartforms/m-p/9861657#M1787579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-14T14:14:42Z</dc:date>
    </item>
  </channel>
</rss>

