<?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: how to get data from specific structures ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190788#M1201332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not sure what you mean, but I'll give it a shot anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a table which stores all the parameters of function modules, something with &lt;STRONG&gt;PARA&lt;/STRONG&gt; in it. After determining this table, you can use it to retrieve the structures of this function module. Using the name of the structure, you can retrieve all the fields of this structure with the RTTI classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are all classes with:&lt;/P&gt;&lt;P&gt;CL_ABAP &lt;STRONG&gt;DESCR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case class CL_ABAP_STRUCDESCR should do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Feb 26, 2009 9:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 20:06:32 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2009-02-26T20:06:32Z</dc:date>
    <item>
      <title>how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190785#M1201329</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;I need your help, it's very very important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my boss told me that I need to get certain data from structures located in the EXPORT PART of the function module "BAPI_MATERIAL_GETALL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structures like "BAPI_MARA_GA" have certain fields that I need like : "component, datatype, short text".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstivally, I need to get this data having also multi-language short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can't do this automatically, I'll have huge trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, I need to go to the function module "BAPI_MATERIAL_savedata" and do the same thing except this time I need to find out the fields which gets updated and assign them to the above fields, which has been readen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all that think has done, now I need to find somehow the appropriate tables field of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLANTDATA-PLANT	        string	SAPFIELD	   	        MARC-WERKS&lt;/P&gt;&lt;P&gt;PLANTDATA-PLANT		string	READ_FIELD		PLANTDATA-PLANT&lt;/P&gt;&lt;P&gt;PLANTDATA-PLANT		string	WRITE_FIELD		?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understood what he meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before, I can reach that step, I need to automatically retrieve the structure data and parse them to EXCEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Your Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to myself good luck, how can I say that 0 / 0 is equal to whatever ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps. I need to learn to my exam, I don't have time to do this. Mamiiiiiiii %-|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 18:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190785#M1201329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T18:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190786#M1201330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't quite see the problem. Why would you need to know all these structures? Using these function modules (BAPI's), all the relevant data is retrieved automatically just by entering the correct material as import. Execute the BAPI, and all data is retrieved from database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 19:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190786#M1201330</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-02-26T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190787#M1201331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem that I don't need the data, I mean I need the definition of the structure not the data of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I need is something similar to RFC_READ_TABLE which return me only the "field data", so when I set the dataflag to 'X' no data is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only need the fields, to export them in excel file and them to map them to specific fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like MARC-WERKS is mapped to PLANTDATA-PLANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is something like RFC_READ_STRUCTURE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to retrieve all field of e.g. BAPI_MARC_GA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;later I'll say that PLANTDATA =&amp;gt; BAPI_MARC_GA =&amp;gt; MARC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field from structure =&amp;gt; will get mapped to the appropriate fields of MARC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, consider that I need to do this for BAPI_MATERIAL_GETALL and BAPI_MATERIAL_SAVEDATA&lt;/P&gt;&lt;P&gt;and findout which field are getting updated and where and which aren't updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like PLANT is not updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 20:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190787#M1201331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T20:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190788#M1201332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not sure what you mean, but I'll give it a shot anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a table which stores all the parameters of function modules, something with &lt;STRONG&gt;PARA&lt;/STRONG&gt; in it. After determining this table, you can use it to retrieve the structures of this function module. Using the name of the structure, you can retrieve all the fields of this structure with the RTTI classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are all classes with:&lt;/P&gt;&lt;P&gt;CL_ABAP &lt;STRONG&gt;DESCR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case class CL_ABAP_STRUCDESCR should do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Feb 26, 2009 9:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 20:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190788#M1201332</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-02-26T20:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190789#M1201333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally get what I needed, except that this time I'm gone need to get the component type of the field of a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm mean like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure : BAPI_MARA&lt;/P&gt;&lt;P&gt;Field : DEL_FLAG&lt;/P&gt;&lt;P&gt;Component Type : LVOMA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yesterday, I used the cl_abap_structdescr to get all the fields of some structure, having the name of the fields, data type, length, ... but today I discovered that I need to know the component type of a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, because most of the case the component type is similar to that of the internal component type of MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, unfortunately I find that this is not always true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field DEL_FLAG has a component type LVOMA on the structure BAPI_MARA&lt;/P&gt;&lt;P&gt;But, its equal field in MARA has as a component type LVOMA but its field is called LVORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now I need to reference the structure-field-component-type to the mara-field-component-type which then get me the actually need mara-fieldname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that this is not frequent. So, I'm gone do this manually.&lt;/P&gt;&lt;P&gt;What I need now, is something to get the component type of a field. Unfortunately I don't know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked to the tables of the cl_abap_*desc class but there's no such a thing as this data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps. I also need to return back the short text of the structure in different languages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190789#M1201333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190790#M1201334</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;the class CL_ABAP_DATADESCR gives the data type of the single field. You can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 17:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190790#M1201334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190791#M1201335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Siddharth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the functions and looked in the absolute_name (r_desct-&amp;gt;absolute_name ), ... on the debugger&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. r_descr ?= cl_abap_datadescr=&amp;gt;describe_by_data( 'DEL_FLAG' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there's nothing interesting, I just want to get the type of the Field DEL_FLAG of the structure BAPI_MARA which should be LVOMA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, on the debugger is called \TYPE=%_T00006S00000000O0000000293&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I know what this's about  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks A Lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 17:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190791#M1201335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T17:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to get data from specific structures ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190792#M1201336</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;use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_TYPEDESCR=&amp;gt;DESCRIBE_BY_NAME( 'BAPI_MARA-DEL_FLAG' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will return LVOME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 17:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-data-from-specific-structures/m-p/5190792#M1201336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T17:48:48Z</dc:date>
    </item>
  </channel>
</rss>

