<?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: Issue in if Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965571#M1490439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use transaction STVARV and maintain the costcenters there based on name (p_name). Then select the values of costcenters from table TVARV based on the value in p_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jun 2010 08:24:00 GMT</pubDate>
    <dc:creator>birendra_chatterjee</dc:creator>
    <dc:date>2010-06-08T08:24:00Z</dc:date>
    <item>
      <title>Issue in if Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965569#M1490437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im having a problem in if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem is that we have SAP ID on which we do multiple logins. i have made an application&lt;/P&gt;&lt;P&gt;and written below code in that application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF user-bname EQ 'MLABTPFL'.
      IF p_name EQ 'AK' AND p_pass EQ 'AKLAB1'. "Dont want to use hard coded.
        IF user-costcenter EQ '0009100001' OR
           user-costcenter EQ '0002820106'.
          user-costcenter = '0000000000' .
        ENDIF.
      ELSEIF p_name EQ 'MA' AND p_pass EQ 'MALAB2'.
        IF user-costcenter EQ '0009100001' OR
           user-costcenter EQ '0001820106'.
          user-costcenter = '0000000000' .
        ENDIF.
      ENDIF.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this code i have to do the hard coding of userid and password .&lt;/P&gt;&lt;P&gt;i dont want to hard coded the checks. how can it be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saad Nisar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 08:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965569#M1490437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T08:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in if Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965570#M1490438</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;1) In SE11 =&amp;gt; Create a Z-table with fields USERID,PASSWORD, any other fields needed; and maintain the user id's and passwords in that table&lt;/P&gt;&lt;P&gt;2) In program : read Z-table in to LW_usertable and do IF checks on the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 08:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965570#M1490438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-08T08:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in if Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965571#M1490439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use transaction STVARV and maintain the costcenters there based on name (p_name). Then select the values of costcenters from table TVARV based on the value in p_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 08:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-if-statement/m-p/6965571#M1490439</guid>
      <dc:creator>birendra_chatterjee</dc:creator>
      <dc:date>2010-06-08T08:24:00Z</dc:date>
    </item>
  </channel>
</rss>

