Validate the user and system status

hi sap,
i have a requirment where i need to validate
if system status = ( ISTAT = 'I0002' AND " released
ISTAT = 'I0098' AND " create
ISTAT = 'I0119' ). " active
if the system status ( ISTAT = I0119 Which is ACTIVE then
it should CHANGE the user status.
if the system status ( ISTAT = I0002 Which is RELEASED then
It should NOT CHANGE the user status.
if the system status ( ISTAT = I0098 Which is CREATE then
It should NOT CHANGE the user status.
I have and internal table like this but i dont get the data what is the worng can you pls tel me where i went wrong
how do i validate the above formula?
data:begin of wa_itab,
spras TYPE tj02t-spras,
istat TYPE tj02t-istat,
end of wa_itab.
data: sys_itab like standard table of wa_itab.
SELECT spras
istat FROM tj02t
INTO TABLE sys_itab
WHERE spras = 'E'
AND ( istat = 'I0002' AND
ISTAT = 'I0098' AND
ISTAT = 'I0119' ).

Hi ,
Use this.
DATA:BEGIN OF wa_itab,
   spras TYPE tj02t-spras,
   istat TYPE tj02t-istat,
  END OF wa_itab.
  DATA: sys_itab LIKE STANDARD TABLE OF wa_itab.
  SELECT spras
  istat FROM tj02t
  INTO TABLE sys_itab
  WHERE spras = 'EN'
  AND istat in ('I0002','I0098','I0119').
Regards,
Vijay

Similar Messages

  • Posibilities of user and system status?

    Hi CRM experts,
    I've some doubts respect the user and system status configuration.
    My client wants to stop the upload process (to R3 site) of a Sales Order document, regarding a specific user status. Then, they want to restore the uploading process regarding into a specific user status different from the firts one.
    User Status -             System Status
    Status 1 -                Stop uploading process
    Status 2 -                Restore the uploading process
    I made the following customizing in my status profile (assigned to my Sales Order transaction)
    User Status -  Transaction Control -  Forbidden -  Set
    Status 1 -     To be distributed -    X -           X
    Status 2 -     empty -           empty -           empty
    When I save a Sales Order in Status 1, the BDOC is correctly generated and the document is not present in R3 environment. The problem occurs when I modify the Status, from Status 1 to Status 2. The document is in R3 environment (???) but the generated BDOC remains in Yellow light.
    Is correct to implement this uploading behaviour regarding a user status like my configuration? May I implement some checks on the upload BADI better?
    I need some help in these questions please.
    Thanks in advance

    Hi,
    It might be easier if you could come to a scenario were one specific user status should trigger the distribution. Then you have a direct link between a user status & a system status, meaning that there is no need for additional coding.
    If the bdoc remains in intermediate state, then that means there's an error in the queues or a short dump. check transactions smq1 & smq2 and ST22 in both systems.
    Michael.

  • Service tickets - User and system status

    Hi guys
    This is the scenario, there was a complaint raised by our resolver groups saying that they were unable to open any service tickets logged through to them from our Contact Centre Agents. All this happened in a space of 5 hours only
    Under the Header Overview of these service tickets, when I view the changes to this document, i saw that every service ticket that was logged user status shows CLOSED and system status shows COMPLETED
    Please advise what could have caused this?
    Ravi

    Hi Arden
    Went through a few of those cases and picked up this
    The last system status entered shows TO BE DISTRIBUTED - by the Interaction Agent user
    Responsible Group deleted - and new value shows the new responsible group
    But the time frame bewteen the old value and new value is what concerns me. Theres a gap of about 45 minutes on average from the time the case is logged "open" till the time the case is "in process" by the resolver
    But as per the resolver groups, they could not access these cases once they were logged. So it seems these cases were all "locked" basically and could only be access minutes later
    Ravi

  • How to get user and system status for a trade promotion

    Hi,
    I have to develop a batch program to change user status and system status of all trade promotions which satisfy some criteria. This criteria checks some dates related to trade promotion(like Changed on,Pallett buying, buying horizon dates) also.
    I thought of first extracting all external ids from CGPL_PROJECTS table and then run trade promotion query. But how can I get current user & system status and all dates as these can be taken from relations "TPMStatusActiveRel" and "TPMDateRel". I don't know to take data from relations. Please help me with a piece of code.
    Thanks.

    Hello Shikha,
    You can use these relations here, as you are not in the Business Object layer anymore. As far as my understanding is, all the batch programs or reports should be done at the API layer. Try this code, to read the status of the Trade Promotion object.
    data: lr_appl_base type ref to CL_CRM_MKTPL_APPL_BASE,
            lt_sys_status type CGPL_ISTATUS_TEXT_T.
    lr_appl_base ?= CL_CRM_MKTPL_APPL_BASE=>GET_INSTANCE().
    " To read system status
    call method lr_appl_base->STATUS_READ
    exporting
    IM_MKTELEMENT_GUID = "your Trade promotion guid
    ET_TJ02T  = lt_sys_status.
    " To read user status
    call method lr_appl_base->STATUS_READ_EXTERN
    exporting
    IM_MKTELEMENT_GUID = "your Trade promotion guid
    ET_TJ02T  = lt_sys_status1.
    To change the user status, use the method STATUS_CHANGE_EXTERN of the same class
    To set the system status, use the method STATUS_SET of the same class.
    Hope this helps.
    Regards,
    Vinay

  • Siginificance of the user and system variables

    What is the significance of user variable and system variable in
    windows 2000 environment?
    Because I usually set user variable(classpath and path) and system
    variable(classpath,path and javahome) after installing j2sdk and
    weblogic. But I find out one of my friend just set the user variable and
    running the same. I like to know that what the system doing with user variable and
    system variable? In system view, what is the difference between the user var
    and system var?

    Not sure what this has to do with Java, but: The system variables apply to all users. The user variables apply to only the user that set them. Sign on as a different user and see what happens.

  • User and system status

    Hello,
    I've used before a function module which returns the status of a maintainance notification. unfortunately I cannot recall the name of the function.
    Does anyone have a clue?
    Tomer.

    Hi,
    Thanks for the reply...
    I can get the logic from there. Anyhow, Do we have a function for getting the user status of a notification?
    Tomer.

  • Maintain the link between user status and system status

    Hi friends,
    my requirement is In crm transactions when we change the system status(inprocess) then the relevant user status            (inprocess) is also to be changed automatically. how can we do this? wt r the customisations we can do for this?
    pls suggest me? thanks in advance.

    Hi Madhu Sudan,
    When you create User Status in Status Managment...
    Eg: Inprocess
    You assign User Status Triggers Business Transaction.
    So, This maintain the link between the User and System statuses.
    Reward Points if helpful.
    Srini.

  • Activity Monitor % User and % System do not add up

    Looking at my iMac i7 Activity Monitor/ All Processes/ CPU I find that the % User and % System do not add up to showing the correct % Idle.
    For example, a recent screenshot shows % user = 0.81, the % System = 0.41 and % idle shows 61.25. The CPU usage graph show nothing going on and the Process Name list shows nothing unusual.
    This constantly changes - sometimes the figures add up to 100% but usually the % Idle can be anywhere from 40% to a correct 98 - 99% based on nothing of any consequence running.
    I look at the Activity Monitor on my MacBook and % Idle shows correct addition and a constant 98 - 99%.
    What is going on?
    Thank you.

    This afternoon, it will be an entire week without a crash on my Squeezebox system!
    Totally removing Intego VirusBarrier X6 from my main computer (iMac i7) finally lets me enjoy my music again.
    The main problem is that X6 does not provide feedback as to what it is doing so the user cannot adjust the settings. In other words, no specific message as to what X6 just prevented.
    As a crash can occur anywhere from 10 minutes to 8 hours of play time, hit or miss setting adjustments waste an amazing amount of time. This has been going on for a year with the frequency of crashes escalating.
    I had already entered all my music devices on the Trusted List and had set up rules for all the ports that Squeezebox uses. Still crashed.
    There is no reason why Logitech and/or Intego engineers cannot provide security setup instructions. Unfortunately, Logitech only shows security help for PCs.
    Well the nightmare is over. Amazing what free time I now have.
    The next three paragraphs are for Squeezebox owners and may be of some help if you are having problems:
    A crash (for me) is defined in many ways. The worst crash is when the Squeezebox device shuts off and only pulling the electric plug will revive it. Another crash shows itself when the next song only plays for about 1 second and goes to the next song endlessly until the device shuts off. The Logitech manual says move the device closer to the wireless point when this happens but if they are connected by ethernet cables, this advice is useless. Another crash is when three units are synced and one of them suddenly is no longer in sync and playing a different song.
    Crashes can occur when units are in sync or not in sync. Connected wirelessly or by ethernet. And when a crash occurs, the loud 'crunching' noise that occurs is not kind to the speakers.
    BTW, if some devices are in sync, make sure these devices are connected the same way - either all wirelessly or all by ethernet. If you don't, you will experience sound lags of about 1/2 second. A very annoying echo effect.

  • User status and System status for Trade Promotion

    Hi all!
    CRM 7.0 Web UI Trade Promotion Management.
    I have a trade promotion with custom status already assigned and visible from WEB UI, Is it possible assigning to such TP also a standard status picked amongst TP system status?
    Take into account that in the as is configuration we find in the same TP drop down list user status and system status.
    2 questions:
    1.     How can I hide the system status?
    2.     It is possible to group together user status and system status? E.g. User status: fundrequest, inplanning, submitted...+ released (system status).

    Hi Virginia Zitun,
    Can you tell me how did you manage to solve the issue.
    rgds,
    Venkat

  • I successfully deleted a user from my MacBook through the Users and Groups window in System Preferences.  But now I cannot close the lock in the bottom left corner of the box.  When I click on it, I briefly see a word that I think says "reauthorizing" but

    I successfully deleted a user from my MacBook through the Users and Groups window in System Preferences.  But now I cannot close the lock in the bottom left corner of the box.  When I click on it, I briefly see a word that I think says "reauthorizing" but the word flashes too quickly to tell for sure.

    If you are admin.
    Try restarting your Mac.

  • I    have a new name and I can not verify my account.  How do I validate the user name?

    I have a new name and I can not verify my account.
    How do I validate the user name?

    Hello lirom12,
    Check out the article below to get your Apple ID verified so you can use it. You would need to send an email to get it verified. 
    If you didn't receive your Apple ID verification or reset email
    http://support.apple.com/kb/TS5404
    Regards,
    -Norm G. 

  • EQUIPEMENT - User status and system status

    Hi freind,
    It would be great help if someone can brief me on  procedure / bapi or function module availability for USER STATUS and SYSTEM STATUS update to equipement.
    regards
    Pravin

    hi Pravin,
    Check this out
    <b>USER STATUS</b>
    http://help.sap.com/saphelp_erp2005/helpdata/en/56/254c40cc538437e10000000a155106/frameset.htm
    <b>SYSTEM STATUS</b>
    http://help.sap.com/saphelp_erp2005/helpdata/en/bd/7924da4d0d9043b426fc081669f27a/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/9f/972f72ec2a40479d2a7dec4500a4f2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/68/ebac18beabc34b90d4c1949a66dece/frameset.htm
    <b>USER STATUS</b>/<b>SYSTEM STATUS</b>
    http://help.sap.com/saphelp_erp2005/helpdata/en/89/a432ff461e11d182b50000e829fbfe/frameset.htm
    Regards,
    Santosh

  • User specific System Status

    Dear All,
                   I want to make System Status i.e. Rel, Teco, Clsd User Specific. Means, a perticular user are only authorised to do it. I know we can do it by controlling the object. Let me know what is the object for system status??
    or
    We can controlled it thorught any other way??
    Thanks and Regards,
    Atul R. Rajmane

    Hi,
    Create Authourization Key BS52 say ZREL
    Create User status NREL - WBS Not released in OK02 assigne the authourization key.
    During authorization the the authorization object B_USERSTAT make corresponding allowance for user.
    in PFCG.
    Smilarly do for TECO.
    User status authourization key is helpful for ur purpose.
    Rgds

  • "System status AALK is active" and "System status LKD is active" errors

    Hi,
    We are on SRM 4.0.  When creating a shopping cart from a specific catalog the user is receiving two error messages.
    "System status AALK is active"    and    "System status LKD is active"
    How do I resolve these errors?

    It's more like a  CA-JVA-JVA-PP or PS-ST-INT-BAPI issue, recommend to report a message under one of the component.

  • Which table i will  get the  status of the User decision Result status

    Hi Experts
    Which table i will  get the  status of the User decision Result status
    (eg : Inspection completion forced )
    This i can see in QA33

    Hi jag
    Ok fine actually it is not storing in any table...these r all text symols...if u see this program MQEVAF22...U EILL GET SOME IDEA
    CALL FUNCTION 'QAST_STATUS_CHECK'
           EXPORTING
                I_OBJNR          = QALS-OBJNR
                I_STATUS         = C_STATUS_PAKO
           EXCEPTIONS
                STATUS_NOT_ACTIV = 01.
      IF SY-SUBRC NE C_RC01.
        MOVE C_KREUZ TO L_STAT_PAKO.
      ELSE.
        CLEAR L_STAT_PAKO.
      ENDIF.
    Prüfen, ob Los bestandsrelevant ist
      MOVE RQEVA-STAT_BERF TO L_STAT_BERF.
    Prüfen, ob Los auf SKIP sitzt
      CALL FUNCTION 'QAST_STATUS_CHECK'
           EXPORTING
                I_OBJNR          = QALS-OBJNR
                I_STATUS         = C_STATUS_SKIP
           EXCEPTIONS
                STATUS_NOT_ACTIV = 01.
      IF SY-SUBRC NE C_RC01.
        MOVE C_KREUZ TO L_STAT_SKIP.
      ELSE.
        CLEAR L_STAT_SKIP.
      ENDIF.
      IF QALS-STAT35 >< C_KREUZ.
    VE noch nicht getroffen !
        IF     ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 )
           AND QALS-STAT13     = C_PPKTTYP-PHPR
           AND G_ANZAHL_PPKT_LOEVM > CI_0.
    Es wurden physische Proben storniert !              PRIORITÄT 1A
            MOVE TEXT-I17 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I17'.
        ELSEIF ( QALS-STAT14 = C_KREUZ AND QALS-OFFENNLZMK > CI_0 )
          OR ( L_STAT_PAKO = C_KREUZ
               AND ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 ) ).
    Prüfung wurde abgebrochen !                         PRIORITÄT 1
          MOVE TEXT-I04 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I04'.
          MOVE C_KREUZ TO L_ICON.
        ELSEIF G_ANZ_RUECK_MK > 0.
    Es wurden Merkmale rückgewiesen  !                  PRIORITÄT 2
          MOVE TEXT-I01 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I01'.
          MOVE C_KREUZ TO L_ICON.
        ELSEIF QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 .
          IF QALS-OFFENNLZMK > CI_0.
    Es sind nicht alle Merkmale abgeschlossen !         PRIORITÄT 3
            MOVE TEXT-I02 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I02'.
          ELSEIF QALS-OFFEN_LZMK > CI_0.
            MOVE TEXT-I05 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I05'.
          ENDIF.
        ELSEIF QALS-WERK NE QALS-WERKVORG.
        Prüflosmenge wurde umgelagert auf anderes Werk   Priorität 4
          MOVE TEXT-I16 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I16'.
        ELSEIF QALS-LMENGEIST > QALS-LOSMENGE.
        Istmenge im Los größer als Losmenge!             Priorität 5
          MOVE TEXT-I15 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I15'.
        ELSEIF L_STAT_SKIP    = C_KREUZ.
    Prüfverzicht: Los ist geskippt !                    PRIORITÄT 6
          MOVE TEXT-I03 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I03'.
        ENDIF.
      ELSE.
    VE getroffen bzw. eingetragen
       IF     ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 )
           AND QALS-STAT13     = C_PPKTTYP-PHPR
           AND G_ANZAHL_PPKT_LOEVM > CI_0.
    Es wurden physische Proben storniert !              PRIORITÄT 1A
            MOVE TEXT-I17 TO RQEVA-INFO_LINE.  L_TEXT_NR = 'I17'.
        ELSEIF ( QALS-STAT14 = C_KREUZ AND QALS-OFFENNLZMK > CI_0 )
          OR ( L_STAT_PAKO = C_KREUZ
              AND ( QALS-OFFENNLZMK > CI_0  OR QALS-OFFEN_LZMK > CI_0 ) ).
    Prüfung wurde abgebrochen !                         PRIORITÄT 1
          MOVE TEXT-I04 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I04'.
          MOVE C_KREUZ TO L_ICON.
        ELSEIF L_STAT_PAKO EQ SPACE
           AND ( QALS-OFFENNLZMK > CI_0 OR QALS-OFFEN_LZMK > CI_0 ).
    Es sind noch Langzeitmerkmale zu bearbeiten !       PRIORITÄT 2
          MOVE TEXT-I05 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I05'.
        ELSEIF L_STAT_BERF = C_KREUZ AND QALS-STAT34 EQ SPACE.
    Los ist bestandsmäßig noch nicht entlastet !        PRIORITÄT 3
          MOVE TEXT-I06 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I06'.
        ELSEIF QALS-WERK NE QALS-WERKVORG.
        Prüflosmenge wurde umgelagert auf anderes Werk   Priorität 4
          MOVE TEXT-I16 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I16'.
        ELSEIF QALS-LMENGEIST > QALS-LOSMENGE.
        Istmenge im Los größer als Losmenge!             Priorität 5
          MOVE TEXT-I15 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I15'.
        ELSEIF L_STAT_SKIP = C_KREUZ.
    Prüfverzicht: Los ist geskippt !                    PRIORITÄT 6
          MOVE TEXT-I03 TO RQEVA-INFO_LINE.    L_TEXT_NR = 'I03'.
        ENDIF.
      ENDIF.

Maybe you are looking for

  • OAM 11g BP02 with Kerberos is not working on AIX

    Hi, We are trying to configure OAM 11g with Kerberos on AIX with no success.. Resource is protected according to OAM documentation guide but the oam logs shows the following: [2012-08-28T00:03:22.305-05:00] [oam_server1] [TRACE] [] [oracle.oam.engine

  • Problem Deploying Creative Suite 5.5 to Windows 7 64 Bit

    Hi, I`ve been looking into deploying CS 5.5 Design Premium to our teaching machines for the last few days now. Finding it very difficult to get the suite to deploy. Have used the  Application Manager Enterprise Edition to package the software and the

  • Developing online exam application

    Hi, I want to develop an online exam application using jsp/servlets technologies.Can anyone send me the source code if any for this application or else suggest me the way on how can i do this. Thanks in Advance, Regards, Siva

  • How to set encoding windows-1251 in Apex Listener?

    How to display in browser xml in windows-1251. Trying begin      owa_util.mime_header ('text/xml', TRUE, 'windows-1251');      htp.p ('<?xml version="1.0" encoding="windows-1251"?>');      htp.p ('<test>Тест</ test>'); end; In the header Content-type

  • Email marketing content approval

    Hi all I have just set up a client wityh Business Catalyst, as a handy all-in-one solution. They need to get an email out to a mailing list asap and it has been waiting for content approval for nearly 24 hours. The purchase is still in the statutory