<?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: Question about using TVARV in an ABAP program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956743#M1602401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree, ABAP is a programming language completely different from the others, little by little I'm adapting to it.&lt;/P&gt;&lt;P&gt;But in this case, the range is not empty, there are 17 records, in this way.:&lt;/P&gt;&lt;P&gt;For the column "SING" all values ​​are "E"&lt;/P&gt;&lt;P&gt;For the column "OPTI" all values ​​"EQ"&lt;/P&gt;&lt;P&gt;For the column "LOW" values ​​are different, but none of them are equal to the contents of "ZMM001-VELOCIDADE_B"&lt;/P&gt;&lt;P&gt;All records in the column "HIGH" are empty.&lt;/P&gt;&lt;P&gt;The other range is not empty, and there is a record in that Satisfy the search condition and ZOPERADORAS-OPERATOR = 'ABCD' is also true.&lt;/P&gt;&lt;P&gt;I look in the documentation something about it before asking here in the forum but found nothing. Maybe I did not know how to search.&lt;/P&gt;&lt;P&gt;I found something of use "IF" with "IN", in selection screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "IF" with "IN" using "TVARV" as used in the program of the post above has the same behavior of a selection screen?&lt;/P&gt;&lt;P&gt;I know it's a silly and very basic question, but other language that I used, only the SQL has the "IN" operator,&lt;/P&gt;&lt;P&gt;but I think they work in different ways, so I would like to understand how it works in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ronaldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2011 13:24:15 GMT</pubDate>
    <dc:creator>former_member202733</dc:creator>
    <dc:date>2011-07-05T13:24:15Z</dc:date>
    <item>
      <title>Question about using TVARV in an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956741#M1602399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus, Im sorry about the silly question. &lt;/P&gt;&lt;P&gt;I have a question about using TVARV in an ABAP program.&lt;/P&gt;&lt;P&gt;A program is presenting a problem and I think that in this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SIGN OPTI LOW HIGH
  FROM TVARV
  INTO TABLE R_1_163431035_VELOCIDADE
  WHERE  NAME = '1_163431035_VELOCIDADE'
  AND    TYPE = 'S'.


  IF ZMM001-VELOCIDADE_B   IN R_1_163431035_VELOCIDADE AND
      ZOPERADORAS-OPERADORA = 'ABCD' AND
      ZMM001-MATERIAL       IN R_1_163431035_PRODUTO.
     ...
  ELSE.
     ...
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What happens is that the value "ZMM001-SPEED" &lt;U&gt;B not exist in "R&lt;/U&gt;1_163431035_VELOCIDADE" but the program executes commands under the IF and not under the ELSE, as I imagine it would work. Is this correct ?&lt;/P&gt;&lt;P&gt; I am new to ABAP programming, but I have a lot of XP in other programming languages ​​and this makes no sense to me.&lt;/P&gt;&lt;P&gt; Anyone know where I can find some documentation of the use of "TVARV" in ABAP programs?&lt;/P&gt;&lt;P&gt; I search the Internet if other programmers use TVARV this way, but found nothing, which leads me to think that was a quick and dirty solution that used here.&lt;/P&gt;&lt;P&gt; If this is a bad way to program, what would be the best way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ronaldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 19:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956741#M1602399</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2011-07-04T19:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using TVARV in an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956742#M1602400</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;It's ABAP, it does not look like other languages! So, the first reflex is to add a favorite to the ABAP documentation &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; : If the range is empty then everything matches. It is not related to TVARV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 21:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956742#M1602400</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-07-04T21:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using TVARV in an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956743#M1602401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree, ABAP is a programming language completely different from the others, little by little I'm adapting to it.&lt;/P&gt;&lt;P&gt;But in this case, the range is not empty, there are 17 records, in this way.:&lt;/P&gt;&lt;P&gt;For the column "SING" all values ​​are "E"&lt;/P&gt;&lt;P&gt;For the column "OPTI" all values ​​"EQ"&lt;/P&gt;&lt;P&gt;For the column "LOW" values ​​are different, but none of them are equal to the contents of "ZMM001-VELOCIDADE_B"&lt;/P&gt;&lt;P&gt;All records in the column "HIGH" are empty.&lt;/P&gt;&lt;P&gt;The other range is not empty, and there is a record in that Satisfy the search condition and ZOPERADORAS-OPERATOR = 'ABCD' is also true.&lt;/P&gt;&lt;P&gt;I look in the documentation something about it before asking here in the forum but found nothing. Maybe I did not know how to search.&lt;/P&gt;&lt;P&gt;I found something of use "IF" with "IN", in selection screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "IF" with "IN" using "TVARV" as used in the program of the post above has the same behavior of a selection screen?&lt;/P&gt;&lt;P&gt;I know it's a silly and very basic question, but other language that I used, only the SQL has the "IN" operator,&lt;/P&gt;&lt;P&gt;but I think they work in different ways, so I would like to understand how it works in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ronaldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 13:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956743#M1602401</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2011-07-05T13:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Question about using TVARV in an ABAP program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956744#M1602402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronaldo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case, the range is not empty, there are 17 records, in this way.:&lt;/P&gt;&lt;P&gt;For the column "SING" all values ​​are "E"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It means that the result is false if ZMM001-VELOCIDADE_B has the same value as one of the 17 records (E = exclude).&lt;/P&gt;&lt;P&gt;For instance, if it has value 'C' and one of 17 records matches C, then the result is false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;The "IF" with "IN" using "TVARV" as used in the program of the post above has the same behavior of a selection screen?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Yes, the same behavior as the selection criterion to be exact. You can press the help key in the complex selection dialog for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I know it's a silly and very basic question, but other language that I used, only the SQL has the "IN" operator, but I think they work in different ways, so I would like to understand how it works in ABAP.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not silly ;-). Yes they work differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info here:&lt;/P&gt;&lt;P&gt;- &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba74635c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba74635c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 13:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-using-tvarv-in-an-abap-program/m-p/7956744#M1602402</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-07-05T13:46:59Z</dc:date>
    </item>
  </channel>
</rss>

