<?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: Need some programming help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248644#M1212684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;       I know that what I am trying to do sounds dumb but I feel that the language shud have been a little bit more flexible.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Nope - not dumb at all. But it has come up before and I don't know of another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2009 17:15:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-27T17:15:20Z</dc:date>
    <item>
      <title>Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248632#M1212672</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 trying to query data from some tables and tyring to figure what is the best way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of ty_test,
            field1 type num08 ,
            field2 type char30,
         end of ty_test,
        tt_test type standard table of ty_test.


data: t_inp type standard table of tt_test,
        t_tbla type standard table of tt_test.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets consider the table t_inp has 10 entries and based on entries from t_inp I need to get related data from table A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select objid sobid from  A
                          into table  t_tbla 
                          for all entries in table t_inp 
                          where field1 = t_inp-field2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do this I get an error saying that to use for all entries it needs to be of the same type and length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to do something similar atleast 3 to 4 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:- &amp;lt;&amp;lt; Removed&amp;gt;&amp;gt;  I am trying to avoid using select end select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added code tags.&lt;/P&gt;&lt;P&gt;Please do not offer rewards&lt;/P&gt;&lt;P&gt;And please use a meaningful subject. Everyone needs programming help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 27, 2009 11:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248632#M1212672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248633#M1212673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin of t_source,
           field1 type tab1-field1,
           field2 type tab1-field2,
           field_tmp  type tab1-field2,  "declare one more filed in first internatable with the type of second  internal table filed   ---&amp;gt;ccheck 1.
         eend of t_source

data: it_inpt type table of t_source.
data:wa_inpt like line of it_inpt.



loop at it_inp  into wa_iinp
wa_inpt-field_tmp  = wa_iinp-field1
modify it_inp from wa_inpt index sy-tabix tranporting field_tmp    ----- &amp;gt;&amp;gt; check 2
clear wa_inpt.
endloop.


select objid sobid from A
into table t_tbla 
for all entries in table t_inp 
where field1 = t_inp-field_tmp.  " here you have to do the type of field1 and field2 should be equal. ---&amp;gt;check 3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: if you are using the For all entries you must note that fields which you are comparing that must be equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248633#M1212673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248634#M1212674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;DEL&gt;loop at t_inp.&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;posted by mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kartik tarla on Feb 27, 2009 9:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248634#M1212674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248635#M1212675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare field2 LIKE a-field1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248635#M1212675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248636#M1212676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at t_inp.
wa-field = t_inp-field2."where wa field is of type num08
append wa to t_temp.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;now use t_temp in for all entries instead of t_inp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248636#M1212676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248637#M1212677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont want to use the loop statement because I have to do the similar process 3 to 4 more times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248637#M1212677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248638#M1212678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Add a field to table t_inp with the same characteristics as t_tbla-field1.&lt;/P&gt;&lt;P&gt;2) After populating t_inp, loop through it and assign field2 to the new field.&lt;/P&gt;&lt;P&gt;3) Use the new field in the SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248638#M1212678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248639#M1212679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then modify the structure of t_inp or else u have to use loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248639#M1212679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248640#M1212680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot modiy the t_inp structure, is there any way I can utilize field symbols or equivalent to modify the structure dynamically with the data in them, may be assign to another fieldsymbol with a different structure ??? just a thought, you guys are the experts you wud know it better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248640#M1212680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248641#M1212681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can't change the structure, then a loop and a variable of the same type as a-field1 are your only way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248641#M1212681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248642#M1212682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vick - analyze your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to use FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;You have a table that has the correct data, but in a format that can't be used by FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;So, one way or another, you need a table with the correct entries in the correct format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248642#M1212682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248643#M1212683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;      I know that what I am trying to do sounds dumb but I feel that the language shud have been a little bit more flexible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to retreive data from HRP1001 table based on certain condition and as u know how the data is stored in the HRP1001 table. I will be retreiving the data based on a certain realtionship and the resulting id will be in the sobid field so based on the sobids from ur query1 I need to read the same table again but with a different realtionship and retrieve the data. I need to repeat this process for 4 times and every time I will end up looping so I thought may be I will pose this question to the experts, as some of you guys know to trick the system really well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like there is no easy way out other than looping so I guees I will stick to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate for your time and effort in trying to solve my query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 16:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248643#M1212683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need some programming help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248644#M1212684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;       I know that what I am trying to do sounds dumb but I feel that the language shud have been a little bit more flexible.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Nope - not dumb at all. But it has come up before and I don't know of another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 17:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-some-programming-help/m-p/5248644#M1212684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T17:15:20Z</dc:date>
    </item>
  </channel>
</rss>

