<?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: DATA from structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708134#M309978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am creating extended idoc with few fields added&lt;/P&gt;&lt;P&gt;so that new fields data are from some table moving to idoc&lt;/P&gt;&lt;P&gt;segment which is an structure.basically data from table moves in single field &lt;/P&gt;&lt;P&gt;for all new fields [field is SDATA] this then its divided for the structure.&lt;/P&gt;&lt;P&gt;so need to track that structure data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2006 11:37:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-24T11:37:23Z</dc:date>
    <item>
      <title>DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708130#M309974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi firends,&lt;/P&gt;&lt;P&gt;i need to retreive data from table and structure is it possible&lt;/P&gt;&lt;P&gt;eg-- AAA is table having atr no&lt;/P&gt;&lt;P&gt;      BBB is strucrure in run time its having some data related to AAA table atrno&lt;/P&gt;&lt;P&gt;i want a select query for this  plz some one provide me with example code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i know structure will not store value.my requirement is for IDOC so structure carries data so ineed to track that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pointe will be rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708130#M309974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708131#M309975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Can you be more detialed, Table (Database or internal table), Just be more detailed so that you can get the answers quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708131#M309975</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-11-24T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708132#M309976</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;as u already have wrote the str wouldnt store any records. the best way to retrieve the data then would be use export/import to memory id. that way u can export the required data to ABAp memory in one program and then import it in ur idoc generation program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708132#M309976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T11:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708133#M309977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a select query from a DB table.&lt;/P&gt;&lt;P&gt;Like you said, there is no data stored in structure as such. it is only available at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value in the DB can be put into a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from DBTAB into gs_structure&lt;/P&gt;&lt;P&gt;where &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708133#M309977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T11:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708134#M309978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am creating extended idoc with few fields added&lt;/P&gt;&lt;P&gt;so that new fields data are from some table moving to idoc&lt;/P&gt;&lt;P&gt;segment which is an structure.basically data from table moves in single field &lt;/P&gt;&lt;P&gt;for all new fields [field is SDATA] this then its divided for the structure.&lt;/P&gt;&lt;P&gt;so need to track that structure data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708134#M309978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T11:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708135#M309979</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;I couldnt make out what you wanted raj,&lt;/P&gt;&lt;P&gt;basically the data is picked up from the DB tables and then concatenated into the SDATA field which is of length 1000, and then the IDOC is sent to the other system along with the struc i.e the segment in the control record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a split command can be used in the reciever system to split the sdata field into thier respective structure containing the same segment you have passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh ( hope this helps).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708135#M309979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T11:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708136#M309980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically addition or deletion of segments the data holds in the data record structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the data pertaining to the idoc is stored and processed &lt;/P&gt;&lt;P&gt;in the structures &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIDC--&amp;gt; Control Records.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;EDIDD --&amp;gt; Data srecords. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto se37 and enter the FM name &lt;/P&gt;&lt;P&gt;f7 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u 'll see &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;*"      IDOC_CONTRL STRUCTURE  EDIDC&lt;/P&gt;&lt;P&gt;*"      IDOC_DATA     STRUCTURE  EDIDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if i want to know the data this is is structure EDIDD now in itab &lt;/P&gt;&lt;P&gt;IDOC_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BREAK-POINT.
LOOP AT IDOC_DATA.
ITAB-F1 = ID0C_DATA-F1.
ITAB-F2 = ID0C_DATA-F2.
ITAB-F3 = ID0C_DATA-F3.

APPEND ITAB.
CLEAR ITAB.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way u can fetch the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;VIjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 11:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708136#M309980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T11:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708137#M309981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi santhosh,&lt;/P&gt;&lt;P&gt;u r almost nearing me&lt;/P&gt;&lt;P&gt;my sdata is having 4 fields value .when i see in idoc its in separate field &lt;/P&gt;&lt;P&gt;my requirment is that sdata value i should display in seperat column using internal table in report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and what is FM for prefix and suffix the mat no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and vijay can u tell me in which FM i should look in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 12:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708137#M309981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708138#M309982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that u have to tell us ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is just like for message type matmas &lt;/P&gt;&lt;P&gt;the idoc is idoc_input_matmas .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now goto ur message type &lt;/P&gt;&lt;P&gt;tcode we57 &lt;/P&gt;&lt;P&gt;give ur message type over here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it will give u the  fm for that ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and steps follow the prev post of mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 12:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708138#M309982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T12:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: DATA from structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708139#M309983</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;create a itab. generally the size of the fields will be thier actual SAP lenghts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of t_xxx occurs 0,&lt;/P&gt;&lt;P&gt;       x1(5) type x1,&lt;/P&gt;&lt;P&gt;       x2(6) type x2,&lt;/P&gt;&lt;P&gt;       ........&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;        end of t_xxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can &lt;/P&gt;&lt;P&gt;say split idoc-sdata seperated by ' ' into t_xxx-x1&lt;/P&gt;&lt;P&gt;                                   t_xxx-x2.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 12:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-structure/m-p/1708139#M309983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T12:09:03Z</dc:date>
    </item>
  </channel>
</rss>

