<?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: call sepecific dynpro from z program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670570#M29522</link>
    <description>&lt;P&gt;If you want to call screen, use CALL SCREEN (&lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapcall_screen.htm"&gt;link&lt;/A&gt;), Why are you using BDCDATA. Sorry i didn't understand the whole picture of what you're doing&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 14:07:38 GMT</pubDate>
    <dc:creator>srikanthnalluri</dc:creator>
    <dc:date>2018-09-26T14:07:38Z</dc:date>
    <item>
      <title>call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670569#M29521</link>
      <description>&lt;P&gt;Hallo Abapers,&lt;/P&gt;
  &lt;P&gt;I need to call a screen from an old ZProgram to a new ZProgram.&lt;/P&gt;
  &lt;P&gt;This screen name &lt;STRONG&gt;0400 &lt;/STRONG&gt;called by clicking on a push button in the selection screen of the old program this button called '&lt;STRONG&gt;PB_01'&lt;/STRONG&gt;....&lt;/P&gt;
  &lt;P&gt;Now back my new zprogram I have created a new Push button which called&lt;STRONG&gt; PB_02&lt;/STRONG&gt; and wrote the below coding in trying to call the dynpro &lt;STRONG&gt;'0400'.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA: l_f_bdcdata TYPE bdcdata,
l_t_bdcdata_tab TYPE TABLE OF bdcdata.
  IF sy-ucomm = 'PB_02 '.
CLEAR l_f_bdcdata.
l_f_bdcdata-program = '/EDEL/R_DD_RPRT_MGMT'.
l_f_bdcdata-dynpro = '0400'.
l_f_bdcdata-dynbegin = 'X'.
APPEND l_f_bdcdata TO l_t_bdcdata_tab.
CALL TRANSACTION 'altprogram'  using  l_t_bdcdata_tab.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;The internal table type is a sorted table and not a BDCDATA.&lt;/STRONG&gt;.....&lt;/P&gt;
  &lt;P&gt;so the code is not working.....&lt;/P&gt;
  &lt;P&gt;could some one guid how this can be done...?&lt;/P&gt;
  &lt;P&gt;Best Regards&lt;/P&gt;
  &lt;P&gt;Jenie&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670569#M29521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-26T10:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670570#M29522</link>
      <description>&lt;P&gt;If you want to call screen, use CALL SCREEN (&lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapcall_screen.htm"&gt;link&lt;/A&gt;), Why are you using BDCDATA. Sorry i didn't understand the whole picture of what you're doing&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670570#M29522</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2018-09-26T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670571#M29523</link>
      <description>&lt;P&gt;thanks for your reply, but this is not my requirement I have two different programs ...let me say program A and program B&lt;BR /&gt;in program A we have 5 screens ( 100 ,200,300,400,500) each of them will be called based on a separate push button....&lt;BR /&gt;&lt;BR /&gt;now I have a new Program which called B in this Program I want to call the screen 400 with all the functionalities which it has to display the ALV the generated when we click on its button.....&lt;BR /&gt;&lt;BR /&gt;based on the above &lt;BR /&gt;&lt;BR /&gt;call transaction 'TCODE' and skip first screen will not work cause we have many screens.&lt;BR /&gt;&lt;BR /&gt;submit program not working to&lt;/P&gt;&lt;P&gt;do you have something else to achieve this??&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jenie&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670571#M29523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-26T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670572#M29524</link>
      <description>&lt;P&gt;This is not possible like this. What is possible:&lt;/P&gt;&lt;P&gt;- create a dynpro in program B and include screen 400 from program A as a subscreen of the dynpro&lt;/P&gt;&lt;P&gt;- in program B, call transaction linked to program A providing the ok-code that triggers the right button leading to screen 400&lt;/P&gt;&lt;P&gt;- in program B, call a function from function-group A and this function will execute statement CALL SCREEN 400.&lt;/P&gt;&lt;P&gt;The second solution is the one which is the most close to your attempt. The third one is good too. If program A is not a function group, it can still be done with a PERFORM but this is not following best practices (external call of a routine).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670572#M29524</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2018-09-26T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670573#M29525</link>
      <description>&lt;P&gt;Hallo &lt;A href="https://answers.sap.com/users/21028/franoishenrotte.html"&gt;François,&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;many thanks for tyour informative reply, &lt;/P&gt;&lt;P&gt;I totally agree with you the second solution if it possible it will the&lt;STRONG&gt; best practice.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;But could you more explain how can it be implemented as the &lt;STRONG&gt;SY-UCOMM&lt;/STRONG&gt; of the push Butoon is &lt;STRONG&gt;PB_02 &lt;/STRONG&gt;and call screen statement that I only know is &lt;STRONG&gt;call screen and skip the first one&lt;/STRONG&gt;?&lt;BR /&gt;&lt;BR /&gt;could please write a piece of coding&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jenie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670573#M29525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-26T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670574#M29526</link>
      <description>&lt;P&gt;it is just a normal "CALL TRANSACTION USING bdcdata" where you put the ok-code PB_02 in the bdcdata...&lt;/P&gt;&lt;P&gt;(yeah batch input is not dead)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670574#M29526</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2018-09-26T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670575#M29527</link>
      <description>&lt;P&gt;I have already did but it is not working please a look to my code below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA: l_f_bdcdata TYPE bdcdata,
 l_t_bdcdata_tab TYPE TABLE OF bdcdata.
 IF sy-ucomm = 'PB_01'. the new push button in the new program
 CLEAR l_f_bdcdata.
 l_f_bdcdata-program = 'the old program'.
 l_f_bdcdata-dynpro = '0400'.
 l_f_bdcdata-dynbegin = 'X'.
 l_f_bdcdata-fnam = 'PB_02'.
 * l_f_bdcdata-FVAL = 'PB_02'. hier did not work too
 APPEND l_f_bdcdata TO l_t_bdcdata_tab.
 CALL TRANSACTION 'TCODE of the old program' using l_t_bdcdata_tab.
 ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670575#M29527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-26T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670576#M29528</link>
      <description>&lt;P&gt;First of all, i think you cant call a screen from another program like that, if you want to do like that you should define it in function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, since you are using bdcdata i suggest you to try fm: ABAP4_CALL_TRANSACTION  and pass all the bdcdata to check if it work. Maybe you need to record old program with sm36 first ( to be able to call screen 0400 from old program, it should have other logic behind that maybe you missing in your BDC).&lt;/P&gt;&lt;P&gt;one more way i think could be used is add a subscreen area and call ( if screen 0400 defined as subscreen &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL SUBSCREEN: SUB1 INCLUDING OLD_PROGRAM_ID '0400'.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Sep 2018 02:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670576#M29528</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-09-27T02:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: call sepecific dynpro from z program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670577#M29529</link>
      <description>&lt;P&gt;it depends if the PB_02 is on screen 0400 or not... I did understand that you have to click on button PB_02 in order to get to screen 0400 : then you have to generate ok-code PB_02 on the previous screen of course&lt;/P&gt;&lt;P&gt;sorry, but I cannot do a whole BDC training here, in worst case you can use transaction SHDB in order to register the actions to be put in the BDCDATA.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 10:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-sepecific-dynpro-from-z-program/m-p/670577#M29529</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2018-09-27T10:35:08Z</dc:date>
    </item>
  </channel>
</rss>

