<?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: Get variable name from abap report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421488#M1926706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the DDIF FM needs as parameters the Table and Field. I know the table, but the reference field is exactly what i need to find out before i call the fm. &lt;/P&gt;&lt;P&gt;If i call the fm with the next param:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DDIF_FIELDINFO_GET'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabname&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="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MARA'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname&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="L0S55"&gt;= &lt;/SPAN&gt;lv_matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get a shortdpump, which is normal because lv_matnr does not have the expected type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas, the logic is more complex. I have&amp;nbsp; up to 3 tables in the background to which i have to map my fields and they do not have the same naming. That's why move-corresponding will not work in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 06:50:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-11-16T06:50:45Z</dc:date>
    <item>
      <title>Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421485#M1926703</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;I have the next scenario:&lt;/P&gt;&lt;P&gt;- i have a GUI structure that contains some fields. These fields have to be saved in the db, but the data elements in the table have different names.Therefore i have to do a mapping between the gui field and the db field. For this i need the variable name from the gui in order to search for the gui field in the table . This has to be done dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;i need a method that does the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_matnr type mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method obj-&amp;gt;get_var_name(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporting&lt;/P&gt;&lt;P&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; field = ls_mara-matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; importing&lt;/P&gt;&lt;P&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; name = lv_var&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write lv_result.&lt;/P&gt;&lt;P&gt;Result should be in this case "LS_MARA-MATNR"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 06:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421485#M1926703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-12T06:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421486#M1926704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By using Function Module 'DDIF_FIELDINFO_GET' you can get the field information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surendra Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 11:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421486#M1926704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-12T11:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421487#M1926705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;These fields have to be saved in the db, but the &lt;SPAN style="text-decoration: underline;"&gt;data elements&lt;/SPAN&gt; in the table have &lt;SPAN style="text-decoration: underline;"&gt;different names&lt;/SPAN&gt;.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The field names of the GUI structure &amp;amp; the DB table are same? If yes, can you not use MOVE-CORRESPONDING? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 13:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421487#M1926705</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2015-11-12T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421488#M1926706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the DDIF FM needs as parameters the Table and Field. I know the table, but the reference field is exactly what i need to find out before i call the fm. &lt;/P&gt;&lt;P&gt;If i call the fm with the next param:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DDIF_FIELDINFO_GET'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabname&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="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'MARA'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldname&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="L0S55"&gt;= &lt;/SPAN&gt;lv_matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get a shortdpump, which is normal because lv_matnr does not have the expected type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas, the logic is more complex. I have&amp;nbsp; up to 3 tables in the background to which i have to map my fields and they do not have the same naming. That's why move-corresponding will not work in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 06:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421488#M1926706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-16T06:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421489#M1926707</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;can you provide an example with snapshot please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421489#M1926707</guid>
      <dc:creator>former_member184158</dc:creator>
      <dc:date>2015-11-16T07:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421490#M1926708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If I understand your question correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You have a SAP structure with fields A, B, C and data elements X, Y, Z?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Your DB fields would be M, N, O with type P,Q,R?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now you have to map A B C to M N O? - Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 questions here&lt;/P&gt;&lt;P&gt;1. Is your DB different from the DB table generated when you activated your SAP DDIC structure?&lt;/P&gt;&lt;P&gt;2. This atleast can be thought only when you have a Pattern!! say your fields should be declared in sequence (or) if you are matching with data types then for each field... data typ should be unique!!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kripa Rangachari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421490#M1926708</guid>
      <dc:creator>former_member182877</dc:creator>
      <dc:date>2015-11-16T07:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421491#M1926709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Kripa,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I think the problem is that his fields name, even if the date elements are different, but at least the fields shoud be same, to use MOVE-CORRESPONDING.,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;but if the SAP/GUI-Fields are different from hist fields, how can he knows that A = Z?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I think, in this way, he can compares the date elements, when the fields are different, then he can use same date elements with different fields name. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Ebrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421491#M1926709</guid>
      <dc:creator>former_member184158</dc:creator>
      <dc:date>2015-11-16T07:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421492#M1926710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ebrahim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I dont think data element mismatch should be a problem from 'NAME' perspective... if the types are matching then we can just match the fields.... dataelement should not be a hinderance here!....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think we need more insight on his issue and as u asked for it will be easier if we get some screen examples as well!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; We will wait and watch &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1381/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kripa Rangachari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421492#M1926710</guid>
      <dc:creator>former_member182877</dc:creator>
      <dc:date>2015-11-16T07:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421493#M1926711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the next concrete case:&lt;/P&gt;&lt;P&gt;structure fieldname nameon screen: gs_screen-kunnr type ZSCR-KNRE&amp;nbsp;&amp;nbsp; (ZSCR is a structure in DDIC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the fieldname in my ddic tables where i have to store them,look like this:&lt;/P&gt;&lt;P&gt;ZTAB1-YAXKNRE&lt;/P&gt;&lt;P&gt;ZTAB2-YAYKNRE&lt;/P&gt;&lt;P&gt;ZTAB3-YAZKNRE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, i have to get the type of the field gs_screen-kunnr, in this case ZSCR-KNRE and take only the fieldname KNRE. Based on another logic, i get my table name, for ex ZTAB1 and from here, i know that the corresponding fielname ends with KNRE = &amp;gt; the mapped db field is YAXKNRE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me if it is clear now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 07:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421493#M1926711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-16T07:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421494#M1926712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sebastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try as-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Data Elemenet ZKNRE which is same as &lt;SPAN style="color: #333333; font-size: 12px;"&gt;ZSCR-KNRE and declare as -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : &lt;SPAN style="color: #333333; font-size: 12px;"&gt; gs_screen-kunnr type ZKNRE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This reduces one part of your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the mapping logic is not clear as how are you getting the field name from table. As in your example -&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;ZTAB1-YAXKNRE&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;ZTAB2-YAYKNRE&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;ZTAB3-YAZKNRE&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;all field names end with KNRE so all of them should be mapped with ZKNRE??&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421494#M1926712</guid>
      <dc:creator>Ankit_Maskara</dc:creator>
      <dc:date>2015-11-16T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get variable name from abap report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421495#M1926713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;easiest way to achieve your objective is by using&lt;/P&gt;&lt;P&gt;data: struct_descriptor&amp;nbsp; type ref to cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;data: a_component type abap_compdescr_tab.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;a_field&amp;gt; type any.&lt;/P&gt;&lt;P&gt;struct_descriptor = CL_ABAP_STRUCTDESCR=&amp;gt;describe_by_data( your_GUI_structure ).&lt;/P&gt;&lt;P&gt;LOOP AT struct_descriptor-&amp;gt;components into a_component.&lt;/P&gt;&lt;P&gt;&amp;nbsp; assign compont a_component-Name of structure your_GUI_structure to &amp;lt;a_field&amp;gt;.&lt;/P&gt;&lt;P&gt;* do something clever with &amp;lt;a_field&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-variable-name-from-abap-report/m-p/11421495#M1926713</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2015-11-16T15:29:26Z</dc:date>
    </item>
  </channel>
</rss>

