<?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: Structured Variables as Parameters. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419301#M1244008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we use structured variables as parameters. Here is the code that I am working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method abc=&amp;gt;xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting 123 = 456&lt;/P&gt;&lt;P&gt;               345 = 678&lt;/P&gt;&lt;P&gt;importing 012 = 345.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log ( 345 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chetab ( ijk , ijk_1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when i run the script i notice that log ( 345 ) gives me:- &lt;/P&gt;&lt;P&gt;log 345 = XML-DATA-01&lt;/P&gt;&lt;P&gt;  Parameter&lt;/P&gt;&lt;P&gt;     1&lt;/P&gt;&lt;P&gt;        a&lt;/P&gt;&lt;P&gt;        b&lt;/P&gt;&lt;P&gt;        c&lt;/P&gt;&lt;P&gt;     2&lt;/P&gt;&lt;P&gt;        a&lt;/P&gt;&lt;P&gt;        b&lt;/P&gt;&lt;P&gt;        c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now 345 is a table with diff fields (a, b, c) and multiple records (1, 2,..). In chetab command interface I have to give b and c field values to compare and is it also possible to repeat the check for diff records. Please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2009 23:22:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-02T23:22:20Z</dc:date>
    <item>
      <title>Re: Structured Variables as Parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419301#M1244008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we use structured variables as parameters. Here is the code that I am working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method abc=&amp;gt;xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting 123 = 456&lt;/P&gt;&lt;P&gt;               345 = 678&lt;/P&gt;&lt;P&gt;importing 012 = 345.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endabap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log ( 345 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chetab ( ijk , ijk_1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when i run the script i notice that log ( 345 ) gives me:- &lt;/P&gt;&lt;P&gt;log 345 = XML-DATA-01&lt;/P&gt;&lt;P&gt;  Parameter&lt;/P&gt;&lt;P&gt;     1&lt;/P&gt;&lt;P&gt;        a&lt;/P&gt;&lt;P&gt;        b&lt;/P&gt;&lt;P&gt;        c&lt;/P&gt;&lt;P&gt;     2&lt;/P&gt;&lt;P&gt;        a&lt;/P&gt;&lt;P&gt;        b&lt;/P&gt;&lt;P&gt;        c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now 345 is a table with diff fields (a, b, c) and multiple records (1, 2,..). In chetab command interface I have to give b and c field values to compare and is it also possible to repeat the check for diff records. Please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 23:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419301#M1244008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T23:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Structured Variables as Parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419302#M1244009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question now is half answered. I am able to pass a, b values in CHETAB command. All I had to do was in CHETAB command interface for element a, b i entered the value as X[1]-a and X[1]-b. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However as mentioned earlier X[] has multiple records say 5. So i have to check table entries for 5 records. I have writted my CHETAB command in DO loop. However everytime it takes X[1]-a and X[1]-b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, all I need now is, can it take X[2]-a and X[2]-b, X[3]-a and X[3]-b, ... for each iteration in the DO loop. I dont know whether its possible. But if it is then please can anybody help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Sorry Gurus, please replace X with 345 in this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Get Started on Apr 4, 2009 12:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 22:41:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419302#M1244009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T22:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Structured Variables as Parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419303#M1244010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do 5 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable abc  = x[&amp;amp;lpc]-a.&lt;/P&gt;&lt;P&gt;variable qwe  = x[&amp;amp;lpc]-b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHETAB ---&amp;gt; pass abc and qwe or x[&amp;amp;lpc]-a and x[&amp;amp;lpc]-b.&lt;/P&gt;&lt;P&gt; in the interface,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear chetab_1.&lt;/P&gt;&lt;P&gt;end loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since chetab is in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh the chetab interface so that every time in loop new data gets inn.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 05:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419303#M1244010</guid>
      <dc:creator>Vny12</dc:creator>
      <dc:date>2009-04-16T05:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Structured Variables as Parameters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419304#M1244011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the same thing and was able to use the structured variables as parameters. Thank you so much for reply. Now that you have taken some time in writing a mail, I have awarded the points to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 03:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-structured-variables-as-parameters/m-p/5419304#M1244011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T03:31:35Z</dc:date>
    </item>
  </channel>
</rss>

