FM for changing system status in Service Notification

Hi all,
I have a tough situation here.
To change the system status in service notification, the system use "IQS4_CHANGE_STAT_NOTIFICATION".
CALL FUNCTION 'IQS4_CHANGE_STAT_NOTIFICATION'
  EXPORTING
    i_qmnum                  =
    i_vrgng                  =
    I_CHECK_ONLY             = ' '
    I_SPRAS                  = SY-LANGU
    I_BEZDT                  = SY-DATUM
    I_BEZUR                  = SY-UZEIT
    I_POST                   = 'X'
    I_COMMIT                 = ' '
    I_WAIT                   = ' '
    I_REFRESH_COMPLETE       = 'X'
  IMPORTING
    E_VIQMEL                 =
    E_STTXT                  =
    E_ASTXT                  =
  TABLES
    RETURN                   =
2 main fields are required; i_qmnum and i_vrgng.
I am able to provide i_qmnum (as this is the service notification number that i need to change).
However, i_vrgng is a field in table (TC33-VRGNG). The values in the table does not make sense to me.
Example. To change the status to NOPR (Put in progress), the FM uses PPM2 or PPM6 for i_vrgng. If we take a look at the table TC33, it doesn't indicate in anyway how NOPR is related to PMM2 or PMM6.
Is there a guideline (ie, to change status to OSTS, i use a certain value in TC33-VRGNG to run the FM)?
Please see BAPI_SERVNOT_POSTPONE & BAPI_SERVNOT_PUTINPROGRESS for a clearer picture of what I'm saying.
Thanks,
Earl

Please try using FM STATUS_CHANGE_INTERN for changing System Status as i was not able to find any link between status and the field provided in FM in ur post.
This FM directly changes system status of any object.But this FM requires System Status Value not Text.
NOPR, NOCO etc are system texts.The main table for system status  is TJ02T which will give u the status value for the status text.
For eg NOPR status text will have status value as 'I0070'.
Reward Points if useful
Edited by: Pratyasha Shishodia on Mar 14, 2008 11:07 AM

Similar Messages

  • Change the status of the notification center in iPhone programmatically or atleast read what the status is  for a particular application

    Is it possible to control and change the status of the notification center in iPhone for a particular application.
    1)      In the application push notification is implemented.
    2)      Once this application is installed we can see the app in the notification center.
    3)      There is an option to ON or OFF
    4)      In the application we need an option to check if the above option is ON or OFF.
    5)      If the option is OFF we need to provide the user an alert stating that  in the notification center has it option off and here we have to provide an option to user to switch ON the option at the notification center.

    Well, I could find a fix for that.
    My mistake was that 1: I wasn't getting the correct ntype code for my value list type. And 2: I wasn't giving the Id name.
    The new result came as this:
    statusObjRef = doc.getStatusRef();
    statusHome = IBeanHomeLocator.lookup(session,statusObjRef);
    status = statusHome.findUniqueByNameType("Drafting Agreement", 1);
    doc.setStatusRef(status.getObjectReference());
    In case anyone has this problem, you should check the collection of values internal id, that's the actual ntype code (the number you send on the second parameter).
    But I could still use help having some advice on the Master Agreement elements handling (getting data from the master agreement or the data thas is being edited at the moment before saving).
    If anyone could give some advice, they would be very welcome

  • LSMW for changing user status on work order(IW32)

    Hi All,
    I have created a LSMW for changing user status on work order using transaction IW32. It does not change the status when i run the LSMW. In the recording for the LSMW, i select the radio button on the user status i want to select.
    When i run the LSMW in the foreground, it does everything except select the correct status.
    Is there a way to fix this or is it a problem with LSMW. I'm using ECC6
    Kind Regards
    Emanuel

    Hi ,
    I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
    regrds
    pushpa

  • Change System Status of SO item dynamically based on Reason for Rejection

    Hi ppl,
    Our SAP user has raised a requirement as described below:
    In sales order (in creation mode (VA01) or change mode (VA02)), if at the item level, the reason for rejection is mentioned, then the system status for that item should be automatically set to Technically Complete SET (TECO); and if the user removes the reason for rejection for the item, then the system status Technically Complete should be RESET automatically.
    We are looking for any user-exit or BADI available which would be allow this dynamic change of system status based on the reason for rejection field. (No manual interaction for setting or resetting the system status).
    Technically, the functionality is based on the below fields:
    Reason for Rejection: VBAP-ABGRU
    System Status: JEST-STAT
    Please provide suitable inputs.
    Thanks,
    Dawood
    Edited by: Dawood.S.Ghasletwala on Jun 29, 2009 3:14 PM

    program: SAPMV45A
    User exit: USEREXIT_SAVE_DOCUMENT_PREPARE.
    loop at xvbap where updkz NE 'D'.
      if not xvbap-abgru is initital.
        "set your system state here.
      else.
       "reset your system state here.
      endif.
    endloop.
    hmmm you can as well try if you got all you need to know already in userexit: USEREXIT_CHECK_VBAP.
    Edited by: Florian Kemmer on Jun 29, 2009 11:53 AM

  • Services to be checked after system restart for getting system status

    Hi,
    We are trying to identify all the services that are to be checked before we confirm that a system is available.
    While performing a system status check on J2EE instances after restart of the system , after getting a respone on TELNET to the HTTP Port sometimes the system was found to be not completely up.
    We have observed that though the server processes are down HTTP service responds to user requests.
    Could you please help identify the other services which must also be checked to be completely sure that the system is UP ?
    We have gone through the document "TCP/IP Ports Used by SAP Applications" in SDN.
    But It doesn't talk about the ports to check for Java server processes.
    For ABAP we do a telnet on Message server and so far we got it right.
    Should we check on other services as well in ABAP stack systems to confirm on their availability?
    Thanks
    Prateek
    Edited by: Prateek Gupta on Dec 5, 2011 8:32 AM
    Edited by: Prateek Gupta on Dec 5, 2011 8:48 AM

    Hi Prateek,
    Please use below command to check if JAVA Stack/Instance is UP and Running or not.
    jcmon pf=/usr/sap/<SID>/SYS/profile/instace profile name (If your Server O.S. is Solaris or Unix)
    Then goto option 20 and you can find there Dispatcher, Server0 and SDM are UP and Running or not.
    If everything is Up and Running, then you can goto your browser and paste there:
    http://Hostname:5<XX>00
    where <XX> is the System Number where your Java enginee/Stack is present.
    In order to check  ABAP Enginee is Up or not, you can check like this:
    dpmon pf=/usr/sap/<SID>/SYS/profile/instace profile name (If your Server O.S. is Solaris or Unix)
    it will show your work process are running or not.

  • Table for checking System Status in a Service Order

    Hi,
    In which table can I find System Status (like REL - Released) of a Service Order ?
    Thanks.
    Raj

    Linda,
    The system-statuses are stored in table JEST.
    An easier way to get this data is by using function module STATUS_TEXT_EDIT:
    CALL FUNCTION 'STATUS_TEXT_EDIT'
               EXPORTING
                    FLG_USER_STAT = ' '
                    OBJNR         = I_VIAUFKS-OBJNR
                    ONLY_ACTIVE   = 'X'
                    SPRAS         = SY-LANGU
               IMPORTING
                    LINE          = W_LINE.
    *           user_line     = w_user_line.

  • Siebel Hangs up when changing the status of service request

    Hi,
    We are facing this typical problem since last 2 weeks. When closing the SR, CRM hangs for random(unable to detect a pattern till now) SRs.
    The steps we follow to an SR is:
    1. Enter the SR #
    2. Change the status to "resolved"
    3. Type the resolution in "resolution" text field and click on white space.
    4. A new row gets generated with status "unscheduled"
    5. Place a check mark near the newly generated row.
    6. Change the status of the SR to "closed"
    Now, some SRs get stuck at step 3. When clicking on white-space, CRM hangs.
    We've tried everything from clearing IE cache / temp / cookies / increasing temp file size (to 5000 in IE6 and 1024 MB in IE7)
    Even set-up a fresh system but no avail.
    Even changed the primary internet link to secondary one but no help.
    On top of that the SRs which make IE hang seem to be appearing randomly. Sometimes I can close 20 SRs at a stretch and sometimes 1-2 SRs get hanged every 4-5 SRs.
    Once in a while an error pops up: "The selected record has been modified by another user since it was retrieved. Please continue (SBL-DAT-00523)"
    No one else was working on the SR when such errors came.

    You can ave a runitme event or workflow triggered that can generate such behavior.
    First increase logging on your object manager (evtloglvl :) ) and look at any error message.
    Second assess with your development team what automation has been setup ranging from script, Business Services, workflow to assist you in troubleshooting.
    Best Regards
    Evtloglvl

  • Milestone Error when changing the status of service request.

    Hi Expert.
    I got an issue where service request is displayed with an error "Item 10: Start and end dates must be identical for a milestone date".
    I took around 200 service requests and observed that in the change history, the response profile of the contract was changed. We also observed that whenever service request contain these errors, automatic change of status is not happening.
    Unfortunately I'm not able to reproduce this error in Quality system.
    Kindly advice on how these errors can be resolved and how these can be reproduced.
    Thanks in advance.

    You can ave a runitme event or workflow triggered that can generate such behavior.
    First increase logging on your object manager (evtloglvl :) ) and look at any error message.
    Second assess with your development team what automation has been setup ranging from script, Business Services, workflow to assist you in troubleshooting.
    Best Regards
    Evtloglvl

  • BAPI for changing activity status in CIC0

    Hi
    We are developing a custom application on Netweaver platform which interacts with CRM system.
    As one of the requirements we need to <b>change the activity status from open to closed</b> in the transaction <b>"CIC0"</b>. 
    I am looking for some BAPI which can do this task for me. Can anyone help me on this issue?
    Thanks
    Yashodhan

    Hi Amit,
    Thanks for the reply. I was trying to change the status flag from open to close using the said function module.I had gone through the documentation of this module and trying to use this with parameter "Status". The approach I am following is as follows:
    1. Assiging the sequence as
              a. BAPI_ACTIVITYCRM_CHANGEMULTI
              b. BAPI_ACTIVITYCRM_SAVE
              c. BAPI_TRANSACTION_COMMIT
    As an input to Parameter in case of BAPI_ACTIVITYCRM_CHANGEMULTI  I am sending following:
    REF_GUID-> GUID of the transaction Activity.
    STATUS-> Status Key like E0003 for closed status
    USER_STAT_PROC-> Status Profile for my Business Transaction type ( Which is defined in transaction "BS02")
    As an input to "Obejcts_To_Save" in BAPI_ACTIVITYCRM_SAVE I am again sending the GUID of transaction activity.
    Now when I am executing all the above in sequence I am gettin error by BAPI_ACTIVITYCRM_SAVE  saying "Doucment could not be saved"
    I am not able to figure out what is the problem?
    Please help!!
    Thanks
    Yashodhan

  • Change client after changing system status

    first we registered our system as develop. after that we have to change its status to productive. on service.sap.com we changed the system status to productive. in transaction USMM we changed the system type to production. as far as i concern also we had to change the mandat status to productive.how can we do it? can you help me with the documentation or to write how to do it.
    thanks in advance

    Hi Andrey,
    You can change the client status to "Production" in SCC4. Is this what you mean?
    Gary

  • MTO; change system status of sales order lines after settlement to "Closed"

    HI
    Is there a program (or transactin), to do mass change of system status for MTO sales order lines to "Closed" ?
    Thank you, Dejan

    Try using transaction "MASS" and object type "BUS2032".
    Shail

  • I can change system status without canceling lot,,"CRTD CHCR SPRQ"

    HI
    A insp lot have (System status) "CRTD CHCR SPRQ" system can not allow for any recording at the lot,, But Question is that i want to change status without cancleing this lot, Have any idea for this lot status.. "CRTD CHCR SPRQ"
    thanks Expert
    regards
    kazz

    Hi kazz, i can't tell if your issue was resolved but if not then you should check the 'valid from' date on the ECM used to setup the inspection plan.  this is assuming that you are using ECMs to create inspection plans and maintain revisions on the material.  the valid from date on the ECM used to create/assign the inspeciton plan to the material must have a date that is equal to or before the valid from date on the ECM used to assign the revision to the material.
    for example,
    ECM 123 has a valid from date of 01.01.2013 and was used to assign revision A to the material
    then the ECM used to create/assign the inspection plan to that same material must have a valid from date of 01.01.2013 or prior...otherwise SAP will not find a valid inspection plan that's valid on the date for the inspection lot and revision of the material in the inspection lot.
    hope this helps!
    nicole land

  • Change system status from PDLV to DLV

    Hi All
    Please help me with this error. Already tick the delivery compeleted in Goods Receipt Tab but then system status won't change from PDLV to DLV. Is there any other way wherein I could change it?
    Thank you
    Jesielle

    Hi Jesielle,
    We're facing the same issue with you. The status remains at PDLV even though we had set the "Delivery Completed" indicator. This only happens to Production Orders that having multiple Items.
    Please share on how you resolved this issue?
    Thanks.
    Regards,
    Hooi Chia

  • How to change system status of order created in IW31

    Hello All,
    I created a maintenance order in IW31. System status of that Order is like this,
    Now i have a requirement to change the system status.
    But the BAPI : BAPI_ALM_ORDER_MAINTAIN has option to change user status. Please suggest what i have to do?
    Thanks in Advance

    EXIT_SAPLBSVA_001 will fulfill your requirement.
    Try to change your system status inside this exit.
    You will get both User status and System status.

  • Digital Signatures for Changing the statuses in Issue Mgmt

    Hi
    Has anyone put in place digital signatures for Issue
    Managemnt when we change the status values in an issue.
    We are looking at SAP Note 835584 - Digital signature for documents,
    but that is not applicable for us as we want to initiate the digital
    signature when the status profile "SLFI0001" kicks in and the status is
    changed from one to the other.(eg in process to completed etc)
    We have created the digital signature and the strategies, but are
    looking for a place to attach this with the status profile "SLFI0001".
    Is there a place we can attach the digital signature strategies to this
    status profile?
    Anyone has any ideas on how it can be done?
    Thanks in advance..
    sap ques..

    We have a document that needs to be signed by more than one individual -- and in our process we are using the Topacz signature pad to get the signature.  It's similar to the one you sign at the grocery store, drug store, etc.  In order to NOT have the first signature invalidated, we were told to edit the registry...and it works perfectly!
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\8.0\AVAlert\cCheckbox]
    "iDigSigSaveAsCertified"=dword:00000001
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\8.0\AVAlert\cCheckbox\cAnnots]
    "iReaderEnableSaveWarn"=dword:00000001
    Obviously if you are using a different version of Acrobat, you'll have to change the key accordingly.
    Hopefully this will work with your process.
    Good luck!!

Maybe you are looking for

  • How do I find and replace text in PHP files?

    How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name? For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message boar

  • New hp office jet 8600 was perfect until error message appeared

    new hp office jet 8600 was perfect until this weekend when message appeared that the printhead was either missing, incorrectly installed, incompatible or not detected.. Windows XP.    N911A Series

  • Recent Leopard Update Messes up Cinema Display Firewire Ports

    Okay, this is really odd. I have a Lacie Porsche DVD-RWDL Firewire drive hooked up to my Mac Pro via my 23" Cinema display. The cinema display firewire cable was connected directly to the back of the mac pro. Lastly my iSight was connected to the ope

  • Keynote won't open existing file

    I uploaded the latest version of Keynote and still wont open my existing files even though it says to download latest version?

  • CROSSTAB from an XML file with iReport / Jasper Report

    Hi all, I need to create a report using crosstab with an XML file. The iReport guide doesn't answer to my problem. The XML file contents one tag called "HEADERS" with "NAME-HEADERS" corresponding to all column names and different tags called "LINE-DA