<?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 how to extract values from a dynamically created dynpro? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658258#M1096052</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;this is the first time i post, so If i'm not clear, please ask and i try to explain better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the problem:&lt;/P&gt;&lt;P&gt;I'm generating a dynamic dynpro: I read the fields to be generated from a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD_NAME  FIELD_TYPE FIELD_SIZE&lt;/P&gt;&lt;P&gt;field1               c                   20&lt;/P&gt;&lt;P&gt;field2               i                    25&lt;/P&gt;&lt;P&gt;field3               c                   30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i use the following code to generate the dynamic dynpro (I find it in this forum):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:  BEGIN OF str_tabZCAMPI,&lt;/P&gt;&lt;P&gt;        nome_campo(132) type c,&lt;/P&gt;&lt;P&gt;        type_campo(4) type c,&lt;/P&gt;&lt;P&gt;        size_campo(2) type c,&lt;/P&gt;&lt;P&gt;        END OF str_tabZCAMPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab type table of str_tabZCAMPI,&lt;/P&gt;&lt;P&gt;      wa   like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-nome_campo = 'GIACOMO1'.&lt;/P&gt;&lt;P&gt;wa-type_campo = 'c'.&lt;/P&gt;&lt;P&gt;wa-size_campo = '20'.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-nome_campo = 'GIACOMO2'.&lt;/P&gt;&lt;P&gt;wa-type_campo = 'i'.&lt;/P&gt;&lt;P&gt;wa-size_campo = '25'.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-nome_campo = 'GIACOMO3'.&lt;/P&gt;&lt;P&gt;wa-type_campo = 'c'.&lt;/P&gt;&lt;P&gt;wa-size_campo = '30'.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: h type table of d020s with header line,&lt;/P&gt;&lt;P&gt;      f type table of d021s with header line,&lt;/P&gt;&lt;P&gt;      e type table of d022s with header line,&lt;/P&gt;&lt;P&gt;      m type table of d023s with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: mess(50) type c,&lt;/P&gt;&lt;P&gt;      line(50) type c,&lt;/P&gt;&lt;P&gt;      word(50) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynproid(44).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynproid = sy-repid.&lt;/P&gt;&lt;P&gt;dynproid+40(4) = '0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;h-prog = sy-repid.&lt;/P&gt;&lt;P&gt;h-dnum = '0100'.&lt;/P&gt;&lt;P&gt;append h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;  f-fnam = wa-nome_campo.&lt;/P&gt;&lt;P&gt;  f-flg1 = '80'.&lt;/P&gt;&lt;P&gt;  f-flg3 = '80'.&lt;/P&gt;&lt;P&gt;  f-line = sy-tabix.&lt;/P&gt;&lt;P&gt;  f-flg1 = '80'.&lt;/P&gt;&lt;P&gt;  f-flg3 = '80'.&lt;/P&gt;&lt;P&gt;  f-coln = '03'.&lt;/P&gt;&lt;P&gt;  f-type = 'CHAR'.&lt;/P&gt;&lt;P&gt;  f-ityp = wa-type_campo.&lt;/P&gt;&lt;P&gt;  f-leng = wa-size_campo.&lt;/P&gt;&lt;P&gt;  f-stxt = '____________________'.&lt;/P&gt;&lt;P&gt;  append f.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e-line = 'PROCESS BEFORE OUTPUT.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;e-line = 'MODULE status_0100.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;e-line = 'PROCESS AFTER INPUT.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;e-line = 'MODULE esci_0100 AT EXIT-COMMAND.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generate dynpro h f e m id dynproid&lt;/P&gt;&lt;P&gt;         message mess&lt;/P&gt;&lt;P&gt;         line    line&lt;/P&gt;&lt;P&gt;         word    word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem now is: how can I read the values from the dynamically generated  input fields ?&lt;/P&gt;&lt;P&gt;Do I have to generete corresponding data dynamically to? how can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to all,&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2008 14:50:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-21T14:50:03Z</dc:date>
    <item>
      <title>how to extract values from a dynamically created dynpro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658258#M1096052</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;this is the first time i post, so If i'm not clear, please ask and i try to explain better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the problem:&lt;/P&gt;&lt;P&gt;I'm generating a dynamic dynpro: I read the fields to be generated from a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD_NAME  FIELD_TYPE FIELD_SIZE&lt;/P&gt;&lt;P&gt;field1               c                   20&lt;/P&gt;&lt;P&gt;field2               i                    25&lt;/P&gt;&lt;P&gt;field3               c                   30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i use the following code to generate the dynamic dynpro (I find it in this forum):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:  BEGIN OF str_tabZCAMPI,&lt;/P&gt;&lt;P&gt;        nome_campo(132) type c,&lt;/P&gt;&lt;P&gt;        type_campo(4) type c,&lt;/P&gt;&lt;P&gt;        size_campo(2) type c,&lt;/P&gt;&lt;P&gt;        END OF str_tabZCAMPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab type table of str_tabZCAMPI,&lt;/P&gt;&lt;P&gt;      wa   like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-nome_campo = 'GIACOMO1'.&lt;/P&gt;&lt;P&gt;wa-type_campo = 'c'.&lt;/P&gt;&lt;P&gt;wa-size_campo = '20'.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-nome_campo = 'GIACOMO2'.&lt;/P&gt;&lt;P&gt;wa-type_campo = 'i'.&lt;/P&gt;&lt;P&gt;wa-size_campo = '25'.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-nome_campo = 'GIACOMO3'.&lt;/P&gt;&lt;P&gt;wa-type_campo = 'c'.&lt;/P&gt;&lt;P&gt;wa-size_campo = '30'.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: h type table of d020s with header line,&lt;/P&gt;&lt;P&gt;      f type table of d021s with header line,&lt;/P&gt;&lt;P&gt;      e type table of d022s with header line,&lt;/P&gt;&lt;P&gt;      m type table of d023s with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: mess(50) type c,&lt;/P&gt;&lt;P&gt;      line(50) type c,&lt;/P&gt;&lt;P&gt;      word(50) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynproid(44).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynproid = sy-repid.&lt;/P&gt;&lt;P&gt;dynproid+40(4) = '0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;h-prog = sy-repid.&lt;/P&gt;&lt;P&gt;h-dnum = '0100'.&lt;/P&gt;&lt;P&gt;append h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;  f-fnam = wa-nome_campo.&lt;/P&gt;&lt;P&gt;  f-flg1 = '80'.&lt;/P&gt;&lt;P&gt;  f-flg3 = '80'.&lt;/P&gt;&lt;P&gt;  f-line = sy-tabix.&lt;/P&gt;&lt;P&gt;  f-flg1 = '80'.&lt;/P&gt;&lt;P&gt;  f-flg3 = '80'.&lt;/P&gt;&lt;P&gt;  f-coln = '03'.&lt;/P&gt;&lt;P&gt;  f-type = 'CHAR'.&lt;/P&gt;&lt;P&gt;  f-ityp = wa-type_campo.&lt;/P&gt;&lt;P&gt;  f-leng = wa-size_campo.&lt;/P&gt;&lt;P&gt;  f-stxt = '____________________'.&lt;/P&gt;&lt;P&gt;  append f.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e-line = 'PROCESS BEFORE OUTPUT.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;e-line = 'MODULE status_0100.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;e-line = 'PROCESS AFTER INPUT.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;e-line = 'MODULE esci_0100 AT EXIT-COMMAND.'.&lt;/P&gt;&lt;P&gt;append e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generate dynpro h f e m id dynproid&lt;/P&gt;&lt;P&gt;         message mess&lt;/P&gt;&lt;P&gt;         line    line&lt;/P&gt;&lt;P&gt;         word    word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem now is: how can I read the values from the dynamically generated  input fields ?&lt;/P&gt;&lt;P&gt;Do I have to generete corresponding data dynamically to? how can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to all,&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 14:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658258#M1096052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract values from a dynamically created dynpro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658259#M1096053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using function DYNP_VALUES_READ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 15:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658259#M1096053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract values from a dynamically created dynpro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658260#M1096054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much this was really helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Giacomo Cipriani on Oct 22, 2008 9:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 07:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658260#M1096054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T07:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract values from a dynamically created dynpro?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658261#M1096055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just one more thing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create the dynamic dynpro,&lt;/P&gt;&lt;P&gt;I display it,&lt;/P&gt;&lt;P&gt;I fill the input fields &lt;/P&gt;&lt;P&gt;then I call the fm DYNP_VALUES_READ but&lt;/P&gt;&lt;P&gt;if I don't call another screen the program goes dump because the dynpro doesn't exist anymore!&lt;/P&gt;&lt;P&gt;so: when the dynamic dynpro end to process the PAI it doesn't exist anymore? I must call another time the screen or there is a way to make the dynamic screen exist even after PAI ended?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 07:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extract-values-from-a-dynamically-created-dynpro/m-p/4658261#M1096055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T07:45:54Z</dc:date>
    </item>
  </channel>
</rss>

