<?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: Batch Input and print Preview in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459324#M551684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is that mode "N" means that the transaction will be entirely in the backgroun, mode "A" means that it will step thru each screen and function click in foreground, mode "E" means that it will stop at any error messages, or if it simply runs out of instructions(partial BDC).  I assume that you have recorded the transaction to the point where the user clicks the print preview button, and then you want the user to take over.  If this is the case, simply set the mode = 'E', the BDC will perform the recording and simply stop and let the user take over.&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>Mon, 02 Jul 2007 01:48:08 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-07-02T01:48:08Z</dc:date>
    <item>
      <title>Batch Input and print Preview</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459323#M551683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make a batch input of ME28's print preview. It was recorded the print preview function of ME28.&lt;/P&gt;&lt;P&gt;and then I call this batch input in my new report. But I found if mode is set to "N",It can NOT preview the report &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSACTION 'ME28' USING BDCDATA&lt;/P&gt;&lt;P&gt;                     MODE   "N" &lt;/P&gt;&lt;P&gt;                     MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if mode is   set "A", It can preivew the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know  Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following code for your reference : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;  BDCDATA-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'RM06EF00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'S_EBELN-LOW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P_FRGCO'&lt;/P&gt;&lt;P&gt;                               '01'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P_FRGSE'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P_FRGVO'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LISTU'&lt;/P&gt;&lt;P&gt;                              'BEST'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_BSTYP-LOW'&lt;/P&gt;&lt;P&gt;                              'F'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_EBELN-LOW'&lt;/P&gt;&lt;P&gt;                              '5110004414'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PREV'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '05/10'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PREV'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SCAN'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EXIT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '05/10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ME28' USING BDCDATA&lt;/P&gt;&lt;P&gt;                     MODE   "N" &lt;/P&gt;&lt;P&gt;                     MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 01:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459323#M551683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T01:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input and print Preview</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459324#M551684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is that mode "N" means that the transaction will be entirely in the backgroun, mode "A" means that it will step thru each screen and function click in foreground, mode "E" means that it will stop at any error messages, or if it simply runs out of instructions(partial BDC).  I assume that you have recorded the transaction to the point where the user clicks the print preview button, and then you want the user to take over.  If this is the case, simply set the mode = 'E', the BDC will perform the recording and simply stop and let the user take over.&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>Mon, 02 Jul 2007 01:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459324#M551684</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-02T01:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input and print Preview</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459325#M551685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mode N specifies as do not display, it will display the screen only if there is any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mode A is display mode in BDC so you can see on the screen on this mode.&lt;/P&gt;&lt;P&gt;Hope it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 01:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459325#M551685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T01:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input and print Preview</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459326#M551686</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;Thanks you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set mode to 'E', but it still can NOT preview the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 03:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459326#M551686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T03:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Input and print Preview</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459327#M551687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even in the E mode you can't view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use A only if you want to see Print preview, the other option is just do the coding still the print prieview part and leave the OK_CODE blank for the last screen and use E mode then you will come still that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 04:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-and-print-preview/m-p/2459327#M551687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T04:27:48Z</dc:date>
    </item>
  </channel>
</rss>

