Issue in if Statement

Dear gurus
im having a problem in if statement
problem is that we have SAP ID on which we do multiple logins. i have made an application
and written below code in that application.
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.
in this code i have to do the hard coding of userid and password .
i dont want to hard coded the checks. how can it be resolved.
Regards
Saad Nisar

Hi
1) In SE11 => Create a Z-table with fields USERID,PASSWORD, any other fields needed; and maintain the user id's and passwords in that table
2) In program : read Z-table in to LW_usertable and do IF checks on the structure.
Regards
Deepa

Similar Messages

  • Has anybody had an issue with System State Backups on a Dell PowerEdge R510 Server running Server 2008 R2?

    Hi,
    We have recently had issues running system state backups on our 2008 R2 Domain Controllers.  They are running on Dell PowerEdge R510 Physical Hardware.  Whenever you initiate a system state backup,  the Domain Controller becomes unresponsive
    forcing us to physically reboot it.   Nothing in the Event logs or the Dell Open Management Hardware Software indicates issues with Phyiscal disks but we can always replicate the issue by starting the system state backup. 
    The system state backup is initialted as a batch file that runs as a scheduled task.   the commands run are as follows:
    WBADMIN START SYSTEMSTATEBACKUP -backupTarget:[drive letter] -quiet
    We have 4 Domain Controllers with identical disk configurations.  When the DCs were setup I confirmed the system state backups were working but the issue started occuring sometime in Dec 2014.  We are going to run the Dell Hardware Update Utility
    to update the RAID, BIOS, Firmware updates but Has anyone experienced a similar issue that may have been triggerd by a Microsoft Patch?
    Thanks,
    Kevin C.
    kconway@fnalgov
    

    Hi Kevin,
    This issue could be due to the Mountmgr.sys driver incorrectly maintains a global mutex. This behavior causes a deadlock situation in the Mountmgr.sys driver.
    Please install the hotfix in the article below to resolve the issue:
    A computer stops responding because of a deadlock situation in the Mountmgr.sys driver in running Windows 7 or in Windows Server 2008 R2 
    http://support.microsoft.com/kb/2614892
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • I want to know when we issue truncate table statement in oracle .

    i want to know when we issue truncate table statement in oracle .No log will be write in redo log .But we can recover data using flashback or scn.I want to know where is the actually truncate table statement log is stored in oracle database.Please explain me in detail step by step .

    Hi,
    I have truncated table after that i have restored that data.See below the example.I want to know from where it's restored.
    From which log file it's restored.
    create table mytab (n number, x varchar2(90), d date);
    alter table mytab enable row movement;
    Table altered.
    SQL> insert into mytab values (1,'Monsters of Folk',sysdate);
    1 row created.
    SQL> insert into mytab values (2,'The Frames',sysdate-1/24);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select CURRENT_SCN from v$database;
    CURRENT_SCN
    972383
    SQL> select * from mytab;
    N
    X
    D
    1
    Monsters of Folk
    30-DEC-12
    2
    The Frames
    30-DEC-12
    N
    X
    D
    SQL> set lines 10000
    SQL> /
    N X D
    1 Monsters of Folk 30-DEC-12
    2 The Frames 30-DEC-12
    SQL> select to_char(sysdate,'yyyymmdd hh24:mi:ss') from dual;
    TO_CHAR(SYSDATE,'
    20121230 09:29:24
    SQL> set timing on
    SQL> truncate table mytab;
    Table truncated.
    Elapsed: 00:00:15.75
    SQL> select * from mytab as of timestamp TO_TIMESTAMP('20121230 09:29:24','yyyymmdd hh24:mi:ss');
    N X D
    1 Monsters of Folk 30-DEC-12
    2 The Frames 30-DEC-12
    Elapsed: 00:00:00.28
    SQL> insert into mytab select * from mytab as of timestamp TO_TIMESTAMP('20121230 09:29:24','yyyymmdd hh24:mi:ss');
    2 rows created.
    Elapsed: 00:00:00.01
    SQL>

  • Issue a commit statement for every 10000 rows updated

    Hi,
    I have a update statement, updating huge number of records.
    I wanted to issue a commit statement for every 10000 rows updated.
    Can this be done?
    Thanks,
    Dinesh

    user522952 wrote:
    Hi,
    I have a update statement, updating huge number of records.
    I wanted to issue a commit statement for every 10000 rows updated.
    Can this be done?
    Thanks,
    Dinesh Why do you want to issue commit statement frequently? Do you have a possible reason?
    If you think it will improve performance, you are 200% wrong. It will not improve performance it will only degrade performance. It will destroy the integrity of your data. It will screw you up big time.
    Ever heard of [ORA-01555 Snapshot too old|http://asktom.oracle.com/pls/asktom/f?p=100:11:4217554330904383::::P11_QUESTION_ID:275215756923] error? Your approach has a likely chance of getting that too.
    Do it in a single UPDATE. How big the table is does not matter. Do it in a single update, Oracle is fully capable of doing it.

  • How to tell if a user is issuing 'alter session statements'

    When I run 'alter session' from sqlplus in my schema, this does not get parsed and go to v$sql or show up in v$open_cursor. I have a user that is running queries from informatica. He says he is passing alter session statements through informatica, I want to see if they actually get there. The person is not real versed in oracle and I don't know informatica.
    i cant turn on trace cause he connects and disconnects and this would run immediately, I am not in a position to turn on system level tracing, add a trigger, or turn on auditing (not allowed).
    anyway to tell from a data dictionary view or something like that if these were issued by a given session? The queries run for a few minutes, so I have a bit before his session disconnects to query the data. I can't get him to change his code to stay connected. Is there a view that shows parameter changes for a given session?
    oracle: 10.2.0.5
    4 alter session commands are:
    Alter session set sort_area_size=999999999;
    Alter session set hash_area_size=999999999;
    Alter session set db_file_multiblock_read_count = 128;
    alter session enable parallel dml;
    Edited by: Guess2 on Jul 17, 2012 12:49 PM

    i cant turn on trace cause he connects and disconnects and this would run immediately, I am not in a position to turn on system level tracing, add a trigger, or turn on auditing (not allowed). If Informatica connects to Oracle via network, capturing TCP/IP traffic and mining in it may be your last resort.
    you can get session's PDML status from
    select pdml_status from v$session;
    i cant turn on trace cause he connects and disconnects and this would run immediatelythis contradicts to your following statement
    The queries run for a few minutes, so I have a bit before his session disconnects to query the data.
    I can't get him to change his code to stay connected. Informatica should have debug. Ask him if he can go step by step.
    Edited by: user11181920 on Jul 17, 2012 5:53 PM

  • Performance Issue in Select Statement (For All Entries)

    Hello,
    I have a report where i have two select statement
    First Select Statement:
    Select A B C P Q R
         from T1 into Table it_t1
              where ....
    Internal Table it_t1 is populated with 359801 entries through this select statement.
    Second Select Statement:
    Select A B C X Y Z
         from T2 in it_t2 For All Entries in it_t1
              where A eq it_t1-A
                 and B eq it_t1-B
                 and C eq it_t1-C
    Now Table T2 contains more than 10 lac records and at the end of select statement it_t2 is populated with 844003 but it takes a lot of time (15 -20 min) to execute second select statement.
    Can this code be optimized?
    Also i have created respective indexes on table T1 and T2 for the fields in Where Condition.
    Regards,

    If you have completed all the steps mentioned by others, in the above thread, and still you are facing issues then,.....
    Use a Select within Select.
    First Select Statement:
    Select A B C P Q R package size 5000
         from T1 into Table it_t1
              where ....
    Second Select Statement:
    Select A B C X Y Z
         from T2 in it_t2 For All Entries in it_t1
              where A eq it_t1-A
                 and B eq it_t1-B
                 and C eq it_t1-C
    do processing........
    endselect
    This way, while using for all entries on T2, your it_t1, will have limited number of entries and thus the 2nd select will be faster.
    Thanks,
    Juwin

  • Javascript coding issues (if else statements)

    Hello to all,
    I am posting for help for problems I am having with javascript. The website is www.goshowpro.com. Right now on the website it is connected by multiple html files but I would like to have it all on one single page with the animations responding. I would like the animation to be seamless but I am relatively new to javascript and am having issues with my syntax I believe. Below is the code for my new home page/index button. Thank you for your help in advance. 
    -Michael  
    if (mymovie == "hporstop"){
    // play the timeline from the given position (ms or label)
    sym.play("phomstart");
    else if (mymovie == "por1.1stop"){
    // play the timeline from the given position (ms or label)
    sym.play("phomstart");
    else if (mymovie == "por1.2stop"){
    // play the timeline from the given position (ms or label)
    sym.play("phomstart");
    else if (mymovie == "por1.3stop"){
    // play the timeline from the given position (ms or label)
    sym.play("phomstart");
    else if (mymovie == "sporstop"){
    // play the timeline from the given position (ms or label)
    sym.play("phomstart");
    else if (mymovie == "cporstop"){
    // play the timeline from the given position (ms or label)
    sym.play("phomstart");
    else if (mymovie == "hconstop"){
    // play the timeline from the given position (ms or label)
    sym.play("chomstart");
    else if (mymovie == "sconstop"){
    // play the timeline from the given position (ms or label)
    sym.play("chomstart");
    else if (mymovie == "pconstop"){
    // play the timeline from the given position (ms or label)
    sym.play("chomstart");
    else if (mymovie == "cserstop"){
    // play the timeline from the given position (ms or label)
    sym.play("shomstart");
    else if (mymovie == "hserstop"){
    // play the timeline from the given position (ms or label)
    sym.play("shomstart");
    else (mymovie == "pserstop"){
    // play the timeline from the given position (ms or label)
    sym.play("shomstart");

    Hi Mike,
    When you test the different possible values of a variable mymovie, you are better off using a switch.
    See : http://www.w3schools.com/js/js_switch.asp
    Then you could avoid repeating statements by regrouping cases :
    switch( mymovie)
      case "hporstop":
      case "por1.1stop":
      case "por1.2stop":
      case "por1.3stop":
      case "sporstop":
      case "cporstop":
         sym.play("phomstart");
         break;
      case "hconstop":
      case "sconstop":
      case "pconstop":
         sym.play("chomstart");
         break;
      case "cserstop":
      case "hserstop":
      case "pserstop":
         sym.play("shomstart");
         break;
    What is important to grasp to understand the flow of execution is that the break; statement prevents from testing the following cases.
    Gil

  • Issue working with states (FW CS5)

    Hi all,
    Here's my thing: when I save a file and open it up again some time later, all the pages will be set in in the first state (which is shown at the top of the states panel). That's very inconvenient for me. I'd like the page to stay in the state in which I put it. Is there a solution or a workaround?
    Another thing what's happening when I open up a saved document, is that some objects don't show themselves when I activate a different state of the page where the object is placed upon. It's showing up only after double clicking the object (and open up the object view, the page is grayed out) and the return to the page view. Pretty unhandy.
    Also when saving: FW will always show the first page in the document, not the last page I've worked on. I'd like it to see that specific page.
    Any help would be appreciated very much.

    Hi Linda,
    thanks for your reply, but it doesn't solve my problem. I'm not putting pages on states. I do add states to pages. My main issue now is this:
    What's happening when I open up a saved document, is that  some objects don't show themselves when I activate a different state of  the page where the object is placed upon. It's showing up only after  double clicking the object (and open up the object view, the page is  grayed out) and the return to the page view.
    It's very important for me to resolve this, since other people working with my file otherwise only see white space instead of objects.
    Thanks for your help.
    Robbert

  • Battlefield 2 huge sound Issue!Creative statement plea

    Hi guys..
    I had once this problem with the DVD playback if some can remember...i couldnt find any solutions so i formatted my system...then reinstalled everything and look there...wow extrem powerful sound,clean and crisp!!! Awesome **bleep**!
    GTA San Andreas is working fine, now since 2 days i have Battelfield 2 and there is an enourmous sound issue...you play the game a bit..all of a sudden(before fluent gameplay,no problem)sounds start to stuck alot when you listen to the guy talking to its like hes talking in slow motion and the whole sound starts to get grazy...and the performance drops then down to a level where the game is just not playable...me friend has this game 2 and gues what he has the same problem and last guess...he has an audigy 2...suprised?
    If anyone knows this problem and know how to fix it pls let me know...
    and i would like to hear from creative a statement if this is their fault or ea's?
    All other games run supreme,i mean that in the soundish way.
    thx in advance

    I had the same problem with the radio in my game. Turn it from hardware to software mode in the audio options. You'll still get good sound, but it might run a bit slower, as it uses more memory.

  • Attributes Issue in FIX Statement Calculation

    Hi All,
    I have issue with calculating FTE. I have a dimension call Employees and has an attributes (Full-Time / Part-Time). I'm trying to calculate FTE. Below is my code. It seems to be ignoring Attribute in the Fix Statement. when I run this calc script FTE for every employees is 0.5 since that's the last thing it does. If I comment out the second fix statement FTE for every employees is 1. I'm not sure why it's not it's ignoring my statement on the Attributes.
    FIX(@LEVMBRS("Time Periods",0),"FY11","WP","Working Version",@LEVMBRS("Measures",0),"USD",@LEVMBRS("Entities",0),@LEVMBRS("Sites",0),@LEVMBRS("Employees",0),@LEVMBRS("Job Codes",0),@LEVMBRS("Cost Centers",0),@LEVMBRS("SBU",0),@LEVMBRS("EE_Status",0),@ATTRIBUTE("Full-Time"))
    FTE(
    IF
    ("Base_Salary">0);
    "FTE"=1;
    ELSE
    "FTE"==#MISSING;
    ENDIF;
    ENDFIX;
    FIX(@LEVMBRS("Time Periods",0),"FY11","WP","Working Version",@LEVMBRS("Measures",0),"USD",@LEVMBRS("Entities",0),@LEVMBRS("Sites",0),@LEVMBRS("Employees",0),@LEVMBRS("Job Codes",0),@LEVMBRS("Cost Centers",0),@LEVMBRS("SBU",0),@LEVMBRS("EE_Status",0),@ATTRIBUTE("Part-Time"))
    FTE(
    IF
    ("Base_Salary">0);
    "FTE"=0.5;
    ELSE
    "FTE"==#MISSING;
    ENDIF;
    ENDFIX;
    Edited by: user8988798 on Mar 26, 2010 9:57 AM

    Having both @LEVMBRS("Employees",0) and @ATTRIBUTE("Full-Time") is your problem. You are saying give me all of the level zero members of employee and also give me the members that have Full time. Since attributes are tied to the base members you would just need @ATTRIBUTE("Full-Time") to get the full time employees

  • Performance issue in Loop statement.

    Hi experts,
    I got an issue regarding performance in the loop statement. (IT_OUT_FINAL has huge amount of data.)
    LOOP AT it_out_final INTO wa_out_final.
    READ TABLE it_prdline_txt
    WITH KEY ydprodln = wa_out_final-prdline.
    IF sy-subrc = 0.
    wa_out_final-prdline = it_prdline_txt-ydvtext.
    MODIFY it_out_final FROM wa_out_final TRANSPORTING prdline.
    CLEAR: wa_out_final.
    ENDIF.
    read table i_sokna with key kunnr = wa_out_final-kunnr.
    if sy-subrc eq 0.
    wa_out_final-soreg = i_sokna-regio.
    MODIFY it_out_final FROM wa_out_final TRANSPORTING soreg.
    endif.
    read table i_sokna with key kunnr = wa_out_final-kunwe.
    if sy-subrc eq 0.
    wa_out_final-shreg = i_sokna-regio.
    MODIFY it_out_final FROM wa_out_final TRANSPORTING shreg.
    endif.
    clear : i_sokna,wa_out_final.
    ENDLOOP.
    Can you please help me , how to improve the performance in the above loop statement.
    Thanks,
    Revanth Kumar
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Jun 20, 2011 1:22 PM

    Hi,
    This one helped me in understanding the basics clearly. But I would like to further give you one example by which my question will be more clear to you and hence your further answer to it will help me in getting the idea about WHERE clause clarified.
    I was required to develop a report of all held docs by the SAP USER that were created through transaction FB60, the input obtained from user should be SAP USERNAME(obligatory).
    So the straight approach by me was that writing a SELECT-OPTIONS asking SAP USERNAME, and such username obtained from USER executing a report will be compared with the USERNAME stored in the column of table RFDT which stores all such held docs by a SAP USER that used transaction FB60 to temporarily hold it.
    So the approach used by me was using the select statement fetch all records from the column storing the SAP USERNAMES that have held docs using FB60 transaction and where clause is used to filter out only values matching the values obtained from user i.e. using SELECT-OPTIONS.
    So I was under the impression that WHERE clause can only be used in SELECT STATEMENT and not in LOOP AT...ENDLOOP.
    Now I hope my question is more clear to you. If I am not wrong, there can be two approaches,
    1) Using a SELECT statement containing the WHERE clause, fetch a resultset and then using LOOP...ENDLOOP. statement, display the output of the report using WRITE statement.
    i.e. SELECT...WHERE...ENDSELECT and then LOOP AT...ENDLOOP.
    2) Using SELECT statement, fetch all possible records and using LOOP...ENDLOOP. statement filter out the records using WHERE to match the resultset and display values in that resultset using WRITE statement
    i.e. SELECT...ENDSELECT and then LOOP AT...WHERE...ENDLOOP.
    Hope you will now be able to guide me better.
    Regards
    Ameet

  • SAP Banking - Issue with Bank statement

    Hi
    We are using Banking Services from SAP 6.0. In Account management I am able to create the bank statement and can view in the Bank statement history that the bank statement has been created. However when I double click the bank statement I want to view (in the ALV Grid)I get an error message which reads "FUNCTION DOUBLE_CLICK HAS NOT BEEN IMPLEMENTED YET". Message information
    Application Area >6
    Message no 501.
    Any help on this issue will be appreciated
    Thanks
    Ramesh

    Hi,
    Given the situation I think its a technical problem rather than a functional and for this you would need help from your basis team. Check the version history of SAP banking and apply the patches if required be.
    Regards,
    Abhinav Sethi
    Feedback is most welcomed!

  • Issue with active state on navigation of vertical slide website. Please help!

    Hey guys!
    I'm using the Adtile vertical-slide example at http://www.adtile.me/fixed-nav/ and am having some issues with the navigation...
    When I add nav buttons for external pages, the navigation active state doesn't follow through the menu to the active slide (it does on the external pages as I'm using a separate css selector PHP script though). Without the additional buttons for the external pages they work fine.
    Here's the link to the working example WITHOUT the additional buttons for external pages.
    Here's the link for the page WITH the additional buttons for external pages.
    Does anyone know how I can get the active state to work for the slides section of the website?
    Thank you!
    SM

    Try this:
    .nav-collapse a:hover,
    .nav-collapse a:active,
    .nav-collapse a:focus {
      background: #e8e8e8;
    Nancy O.

  • Web logic 12.1.3 issue with calllable statements

    Hi All,
    I have installed weblogic 12.1.3 and working with java 1.8. I'm encountering the following error in logs (snippet of the error) -
    java.lang.NullPointerException
      at oracle.jdbc.driver.DynamicByteArray.next(DynamicByteArray.java:817)
      at oracle.jdbc.driver.DynamicByteArray.getStringFromAL32UTF8(DynamicByteArray.java:1066)
      at oracle.jdbc.driver.DynamicByteArray.getString(DynamicByteArray.java:662)
      at oracle.jdbc.driver.CharCommonAccessor.getString(CharCommonAccessor.java:352)
      at oracle.jdbc.driver.OracleCallableStatement.getString(OracleCallableStatement.java:661)
      at oracle.jdbc.driver.OracleCallableStatementWrapper.getString(OracleCallableStatementWrapper.java:860)
      at weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_OracleCallableStatementWrapper.getString(Unknown Source)
      at com.gxs.ncm.mvc.model.persistence.dao.LoginDAO.getProgramStatusInfo(LoginDAO.java:329)
    Not Sure why callable statement is failing.
    There was no changes done to the setup and the application was working fine on Weblogic 10.3.4 and Java 1.6.
    Kindly assist in having to resolve the issue.

    Please see previous threads which cover the same topic -- https://community.oracle.com/search.jspa?q=huge+archivelogs
    Concurrent Processing - How to Find Database Session & Process Associated with a Concurrent Program Which is Currently Running. (Doc ID 735119.1)
    Thanks,
    Hussein

  • Issuing of remuneraton statement on the checking of selection screen field

    Hi Experts ,
                        Verify the field  XYZ  in the selection screen.
    - If the field is not checked, the remunerations statements should be issued in this sequence order:
    u2022     PA code
    u2022     PSA code
    u2022     Cost Center code (KOSTL)
    u2022     Employee number (PERNR
    please help to write code for the above requirement .
    thanks
    Harish

    solved

  • Issue with case statement

    100*ifnull(x,1)/case when ifnull(yagox,1)=0 then 1 else yagox end)
    based on above condition my result should be like below
    99.8
    101.1
    99.4
    97.7
    Current displaying result like below
    99.8
    1,22,345,000
    99.4
    97.7
    2,34,567,400
    i need to display those two values also in %
    it may be happen denominater(yagox value is 1)
    could please give the proper case statement for resolving the issue
    betham
    Edited by: 961992 on Oct 22, 2012 10:15 PM

    Dear betham,
    welcome to the forum, could you please share the table structure and some sample data and also what your select statement is. This will help people come up with solution faster and also it would avoid going in loops.

Maybe you are looking for