<?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: Problem with Two Selection Screen to run BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247669#M144053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prabhakara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you define as a subscreen it will not be displayed on the mail selection  screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to call it by &lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 100. where ever  you want that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2006 10:10:52 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-04-12T10:10:52Z</dc:date>
    <item>
      <title>Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247666#M144050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step1:&amp;lt;/b&amp;gt; i have to create a selection screen for 2 fields&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step2:&amp;lt;/b&amp;gt;i need to display the output on screen (Basic Output List)&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step3:&amp;lt;/b&amp;gt;There i have to place a Push Button on Application Tool bar (Named as Transfer)&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step4:&amp;lt;/b&amp;gt;after clicking the push button it is going to run the BDC program.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step5:&amp;lt;/b&amp;gt;we want to display the another selection screen for BDC &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step6:&amp;lt;/b&amp;gt;here i want to transfer data from one Storage Location to another SLoc through T-code.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;step7:&amp;lt;/b&amp;gt;at last we have to display no. of error records and successful records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normal Report program only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am going to do the program it is displaying two selection screens at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i succeeded for displaying the basis output list and clicking of push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from there on wards how i can do the BDC for remaining part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain with suitable Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would appreciate an early reply from you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247666#M144050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T09:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247667#M144051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a selection screen, define as &lt;/P&gt;&lt;P&gt;selection-screen begin of screen 100 as subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Youwhen you want to call the selection screen use &lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 100 STARTING AT 20 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247667#M144051</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-12T10:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247668#M144052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nimesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to display the 2 selection screens on the same screen by defining it as subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display the output for first selection screen after that wheh i click the Transfer button it should display another selection screen(BDC selection-screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope you could understand the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247668#M144052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247669#M144053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prabhakara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you define as a subscreen it will not be displayed on the mail selection  screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to call it by &lt;/P&gt;&lt;P&gt;CALL SELECTION-SCREEN 100. where ever  you want that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247669#M144053</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-12T10:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247670#M144054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakar,&lt;/P&gt;&lt;P&gt;   I Think you mis understood Naimesh's post.&lt;/P&gt;&lt;P&gt;1) Enter data in first selection screen and run.&lt;/P&gt;&lt;P&gt;2) Basic list display.Press Transfer.&lt;/P&gt;&lt;P&gt;Write the code call selection-screen '0100' in at user-command section.&lt;/P&gt;&lt;P&gt;3) The above statement calls the 2nd selection screen for the bdc.&lt;/P&gt;&lt;P&gt;4) When he continues from there, &lt;/P&gt;&lt;P&gt;populate the bdc data structures and call the transaction.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247670#M144054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247671#M144055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please explain how i have to perform BDC for the above requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain in brief / Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prabhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247671#M144055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247672#M144056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;IN Your case you need to fill the bdc structures in the PAI section of the 2nd selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247672#M144056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247673#M144057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Prabhakara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling 2nd screen, check sy-subrc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0, then user has pressed Ok or enter. Check parameter for name is not initial and do the processing of the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247673#M144057</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-12T10:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247674#M144058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am very much thankful to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i am going to develop the same, if once i succeeded then i can close the thread. hope i will get the same cooperation in future also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247674#M144058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Two Selection Screen to run BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247675#M144059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you do a BDC recording and create a program to handle BDC, an include BDCRECX1 is added automatically in the program. It contains the code for processing BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the include, you have code for subroutines like BDC_DYNPRO,BDC_FIELD. And in the main program , you have to call these functions in order to perform BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your requirement is to do BDC processing when an event occurs, you have to hard code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy paste the code for BDC_DYNPRO and BDC_FIELD like this in the screen like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_dynpro  USING  program&lt;/P&gt;&lt;P&gt;                        dynpro.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&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;     --&amp;gt;P_0075   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0076   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field  USING fnam&lt;/P&gt;&lt;P&gt;                      fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : nodata VALUE '/'.&lt;/P&gt;&lt;P&gt;  IF fval &amp;lt;&amp;gt; nodata.&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;  ENDIF.&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;So what you have to do is &lt;/P&gt;&lt;P&gt;1) First do the BDC recording using SHDB and create a program , which contains automatically generated code for the recording.&lt;/P&gt;&lt;P&gt;2) In the previous program where you need to code for BDC handling corresponding to events, just copy paste the code in the newly created program  like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If you want the processing to be in foreground , &lt;/P&gt;&lt;P&gt;write the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_mode = 'A'.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'MM02' USING bdcdata MODE ws_mode&lt;/P&gt;&lt;P&gt;                          MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In this case , the transaction is MM02).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-two-selection-screen-to-run-bdc/m-p/1247675#M144059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:42:46Z</dc:date>
    </item>
  </channel>
</rss>

