Setting the status?

Hi,
in one of my module after we enter one record we save and print. when i print that particular record i want the status to be Acknowldeged.
when i save the record the status should be 'sent to dept', but when i print the record status should change to 'Acknowldeged'.
here is my code in the print button
if : global.network_username = 'network_username' then
if :tbl_example.status = 'sent to dept' then
:tbl_example.status := 'Acknowledged';
else
:tbl_example.status = 'sent to dept' ;
end if;
end if;
for some reason its going into else only its not firing the first ifs...
please help me out.
thanks.

Just wanted to bring this one back to the front as had a zero response.
Anyone shed any light on it for me??
Cheers,
Beno..

Similar Messages

  • ODS Problem - Could not forcefully set the status of the request

    Hello GURUS!
      We encountered an error while activating an ods object:
    <i>"Request REQU_41H61CY8SUS7IX4787ARFXLOM (activation request ODSR_41I8ZUA35YKRALSBFPBB0GWZQ) is marked as incorrect for data package 000000 (DP 0 is the entry for the entire request, which is the only one to remain in the control table after successful activation)."</i>
    We tried to forcefully set the status to <b>green</b> as what we normally do when this happens but it still stays <b>red</b>.
    Need your help on this!
    Thanks,
    Jeffrey

    Hello JeFFreY,
    how r u ?
    You can delete that failed request, then check the PSA for errors, if errors are there delete the PSA data.
    Carry on a new data load with the option in the Scheduling screen -> PROCESSING tab as ONLY PSA. Now check the data for the errors and change it if error exists. Then give context menu on the request and select Start the Update Immediately. Now see in the ODS. what happens ?
    Best Regards....
    Sankar Kumar

  • Setting the status code on 404

    Hi All,
    I have my web.xml file pointing 404 errors to /404.jsp on my web server (Apache/Tomcat).
    The code for 404.jsp is
    <%
    // Set the header response to a 404 and no-caching
    response.setStatus(response.SC_NOT_FOUND);
    response.setHeader("Cache-Control","no-cache");
    %>
    <jsp:include page="/404message.jsp"/>
    404message.jsp contains html and some other jsp scriptlets to display a nicely formatted error page that fits with the look and feel of the web site I am currently working on. I have to set the status like this otherwise the 404 error returns a response of 200 which is no good for the statistics program we run on the site.
    It all seems to work wonderfully except that in the localhost log for tomcat I get the following exception even though everything seems to work fine.
    2005-04-21 16:11:12 ErrorDispatcherValve[alligator]: Exception Processing ErrorPage[errorCode=404, location=/404.jsp]
    java.lang.IllegalStateException: Cannot reset after response has been committed
    at org.apache.catalina.connector.ResponseBase.reset(ResponseBase.java:789)
    at org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:812)
    and so on....
    Anybody point me in the right direction on this, any help much appreciated??
    Cheers,
    Beno..

    Just wanted to bring this one back to the front as had a zero response.
    Anyone shed any light on it for me??
    Cheers,
    Beno..

  • How to set the status for a customer plan to RELEASED.

    Hello all,
    I created a program for mass creation of customer plans. But after the creation of a plan, the status should be set to released, so that the user can go about creating the trade promotions for the customer plan. Can anybody tell me how to set the status of a customer plan to RELEASED.
    Thanks,
    Disha.

    Hi Clemens,
    I am not talking about doing it in the CRM_UI transaction..I created a program..which would create the customer plans based on the planning account data provided. I was succesfull in creating the plans, but I am not knowing how to release it, if only anybody can tell me about a Function module or method, which can help me do this, that would be great
    Thanks,
    Disha.

  • How to set the status when Idoc fails

    Hai ,
    I created Idoc extension & created a segment under that(Delivery related).
    My requirement is,
    if certain data not found,
    Idoc should fail with text"Shipemnt for delivery <del. No> not found.
    Could you please help me how to do this?
    I checked the table EDIDC table but the above mentioned status is  not there.
    Thanks & Best Regards,
    Bhaskar.

    you need to set the status using IDOC_STATUS
    where ever error occurs populate the status table.
    IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.
       IDOC_STATUS-STATUS = '51' ." if it is inbound
       IDOC_STATUS-MSGTY  = Message-type.
       IDOC_STATUS-MSGID  = message-id.
       IDOC_STATUS-MSGNO  = message-MSGNR.
       IDOC_STATUS-MSGV1  = message-MSGV1.
       IDOC_STATUS-MSGV2  = message-MSGV2.
       IDOC_STATUS-MSGV3  = message-MSGV3.
       IDOC_STATUS-MSGV4  = message-MSGV4.
    *  IDOC_STATUS-SEGNUM = ?????????????????
    *  IDOC_STATUS-SEGFLD = ?????????????????
    *  IDOC_STATUS-UNAME  = ?????????????????
       IDOC_STATUS-REPID  = SY-REPID
    *  IDOC_STATUS-ROUTID = ?????????????????
       APPEND IDOC_STATUS.

  • How to set custmer master block for posting & how to set the status .....

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. Use an appropriate subject in your message thread. >
    Hi ...
    How to set custmer master blocked for posting & how to set the status has deleted. please provide the steps for the above two actions.
    thanks

    Hi,
    U can use T-code FD05 for Blocking the customer and
    T-code FD06 in order to set for deletion,
    Assign Points if useful,
    Regards,

  • Unable to set the status of CSR to  "Finished",

    Hi Experts,
    I have a CSR. It has 8 activities. Each activities are completed. <u><b>Now when i am trying to change the status of the CSR from Followup to Finished.</b></u> its giving error. The Error is <b>"The CSR can not be finished due to open activites".</b>
    in the coding: the GUIDS of all the activities are stored in an internal table. Then these GuIDS are checked against the OBJNR, INACT( '  ' ), STATUS(I1005) of the CRM_JEST table. If sy-subrc is zero for each activity then the status will be set to finished.
             Coding:
                        <b>loop at nkeys.
                            select single * from CRM_JEST where objnr = nkeys-objkey       
                                                 and  inact = ' '  and status = 'I1005'.
                                     if sy-subrc = 0.
                                       "Finished
                                    else.
                                       Exit.
                                     endif.
                       endloop.</b>
    But i found out that, for one activity, the INACT is 'X' (Inactive). Thats why its gving the error.
    I checked the status of the activity in UI (IC WEB) , its completed.( the description of the activity is CSR Dispatch). But still not able to set the status of the CSR to Finished.
    I need help regarding the above. Please tell me how can i set the status of the CSR to Finished.
    Thanks

    Hello,
    You can release the Order by the following method:
    Go to KO02
    Enter the Internal Order name
    Go to Control Data Tab
    There we have one screen area as Status: there we have one push button(like); click it and from there you can set the staus of the internal order to Released(or you can also change the current status of the internal order)
    Please let me know if you I am missing something in my reply.
    Thanks,
    Anurag Singh Rathore

  • How to set the Status

    Hi
    How to set the status of  user defined form as "closed" . I have one form, i want that form should not be editable after one condition is true. Can anyone tell one solution
    Advance Thanks
    jintu

    Hiii,
    Use this
    Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
            Try
                Select Case BusinessObjectInfo.EventType
                    Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD, SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
                        If BusinessObjectInfo.BeforeAction = True Then
                            objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
                        ElseIf BusinessObjectInfo.ActionSuccess = True Then
                            If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE Then
                            End If
                        End If
                    Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
                        If BusinessObjectInfo.ActionSuccess = True Then
                            objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
                            objForm.Freeze(True)
                            If (objForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE) Then
                               if objForm.Item.Items("Status").Value.equals("Closed")= True
                             objForm.Mode = SAPbouiCOM.BoFormMode.fm_VIEW_MODE
                             End If
                              end if              
                        End If
                End Select
            Catch ex As Exception
                objMain.objApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub

  • Is there as way to set the Status Byte, other than ibrsv?

    I am trying to emulate an instrument that sets the status byte to 64, but does not assert the SRQ line. Using ibrsv asserts SRQ, which seems to cause problems with my legacy test system. I am using LabWindows/CVI under Windows NT and a PXI-GPIB.

    Hi,
    According to the IEEE 488.2 standard, bit 6 of the status byte register (value 64 or 0x40 hex) indicates that the instrument is requesting service. Usually setting this bit will automatically assert the SRQ line. The NI-488.2 does not provide a function that just set this bit without the interface asserting the service request line.
    DiegoF.

  • Set the status on Released Trade Promotions to Finished if TP has expired ?

    Hello,
    I would like to do a development of report that sets the status on Released Trade Promotions to Finished if TP has expired, i.e. passed the End Date of the TPM.
    The report should first search for all active trade promotions, i.e. all trade promotions that have the status "Released", i.e I1004 and then compare the end date of Trade Promotion with the date the report is run and if the end date has been passed then the system status should be changed to Finished, i.e. I1008.
    Example:
    We are running the report on 16.02.2009 and it finds the Trade Promotion below which has System Status I1004. Then it compares the date of running this report which is 16.02.2009 with the end date of Trade Promotion wich is for example 15.02.2009, since the date has been passed, the trade promotion has expired and thus the System Status should be set to I1008 "Finished" so that it can no longer automatically into a Sales Order.
    I would like to know how can I do this ? or in which Implementation Name can I do the modification ?
    Thanks in advance for your help
    Amirovic

    Hello All,
    I will explain my request better :
    Iu2019m looking for help. I'm working in CRM 2007 and I need a template of similar report where I can find this requirement:
    I have to create a report to set the status on Released Trade Promotions to Finished if Trade Promotions has expired, i.e. passed the End Date of the TPM.
    The report should first search for all active trade promotions, i.e. all trade promotions that have the status "Released", i.e I1004 and then compare the end date of Trade Promotion with the date when the report is run and if the end date has been passed then the system status should be changed to Finished, i.e. I1008.
    Example:
    We are running the report on 16.02.2009 and it finds all the Trade Promotion which has System Status I1004 u201CReleasedu201D. Then it compares the date of running this report which is 16.02.2009 with the end date of Trade Promotion wich is for example 15.02.2009, since the date has been passed, the trade promotion has expired and thus the System Status should be set to I1008 "Finished" so that it can no longer automatically determined into a Sales Order.
    Thanks in advance for your help
    Best Regards,
    Amir
    PS: This report should be running in the background as a daily job.

  • Func Mod to Set the Status manually to Workflow

    Hi pple,
    We had a requirement to set the status of the Workflow to <b>COMPLETED</b> status.
    Is there any related function module to do the same?
    Regards,
    <i><b>Raja Sekhar</b></i>

    Hi Raja,
    You can try for FM: SWW_WI_STATUS_CHANGE_NEW.
    here is sample call for this FM:
    call function 'SWW_WI_STATUS_CHANGE_NEW'
          exporting
            status    = 'COMPLETED'
            wi_id     = i_wi_header-wi_id
            do_commit = 'X'
            act_user  = sy-uname.
    Hope this helps.
    Regds,
    Akshay Bhagwat
    Note:Pls. mark helpful answers

  • Set the status of mass orders from CLSD (Business completion) to TECO

    Hi All,
    Can you please help me out on how to set the status of multiple orders from CLSD (Business completion) to TECO(Technical Complete) .
    Regards,
    Shruthi.

    I'm assuming production orders, you can do that in COHV, selection criteria Sys. Status "CLSD". Click on Mass Processing button and select Technically Complete.

  • How to set the status of an Workitem, while processing?

    Hi,
    My requirement is to set/ Change the workitem status after/ while procecssing if certain condition is not met for all the users. I have one workitem assigned to multiple users. If any one of the user's executes the workitem, it displays a zprogram, but the user has not taken any action (SAVE), he simply came out of the transaction using "BACK" button. Here the Workitem has been vanished/disappeared from the other two users Inbox, and the workitem is in "In Processu201D Status for the User who executed the workitem. But my requirement is to set the workitem to be in "READY" status for all the users to whom the workitem is assigned; until the user "SAVE" the transaction I need the workitems to be in "READY" status only.
    Please suggest me with your ideas to get the above results.
    Note: I have used the function modules u201CSAP_WAPI_SET_WORKITEM_STATUS (or) SWW_WI_ADMIN_READY ", to change the status of the workitem while processing, it's throwing an error u201CWork item & locked by user & (enqueue erroru201D.
    Thanks in advance,
    Ajay Kumar

    Thanks Florin,
    Your piece of code has worked alot, and it was very helpful in changing the Status of the Workitem to "READY" for all the Users fo the workitem.
    Points have been rewarded for your help.
    Process: We have acheived this using the "Work Item Exits", Usng "AFTER_EXECUTION" Method.
    Note: The Exit will be executed if "exit_cancelled"  statement is present/used in the work item method. if not it is not taking to the exit code. I'm unable to find the reason for it. Florin can u please explain this point.
    Please check the link for adding the code in Work Item Exits.
    http://wiki.sdn.sap.com/wiki/display/ABAP/ProgramExitsIn+Workflow
    Please find the Code:
    method IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED.
    Get the context of the workitem
      me->wi_context = im_workitem_context.
    After execution of the workitem call the method AFTER_EXECUTION
      if im_event_name eq swrco_event_after_execution.
        me->after_execution( ).
      endif.
    endmethod.
    METHOD AFTER_EXECUTION.
    This method acts as the Event Handler for SWRCO_EVENT_AFTER_EXECUTION
      DATA: LCL_L_WID TYPE SWW_WIID,
            L_STATUS TYPE SWR_WISTAT-STATUS,
            L_NEW_STATUS  TYPE SWR_WISTAT,
            L_SWR_MESSAG  TYPE STANDARD TABLE OF SWR_MESSAG,
            L_SWR_MSTRUC  TYPE STANDARD TABLE OF SWR_MSTRUC.
    Get work item
      CALL METHOD WI_CONTEXT->GET_WORKITEM_ID
        RECEIVING
          RE_WORKITEM = LCL_L_WID.
      L_STATUS = 'READY'.
      CALL FUNCTION 'SAP_WAPI_SET_WORKITEM_STATUS'
        EXPORTING
          WORKITEM_ID    = LCL_L_WID
          STATUS         = L_STATUS
          USER           = SY-UNAME
          LANGUAGE       = SY-LANGU
          DO_COMMIT      = 'X'
        IMPORTING
          NEW_STATUS     = L_NEW_STATUS
         RETURN_CODE    = SY-SUBRC
        TABLES
          MESSAGE_LINES  = L_SWR_MESSAG
          MESSAGE_STRUCT = L_SWR_MSTRUC.
      IF SY-SUBRC EQ 0.
      ENDIF.
    ENDMETHOD.
    Thank You Once Again,
    Ajay Kumar Chippa

  • How to provide authorization to set the statuses in Design registration

    Hi All,
                   For HTOR transaction type CRMDRGO status profile has been configured. So based on this status profile the user can set any of the statuses which are there in CRMDRGO.Here the requirement is the user should not be able to set few statuses whicha are there in the CRMDRGO. Means for some of the statuses the user shouldn't have the authorization to set.For this I have created one authorization code and i have configured in CRMDRGO.How can i achieve this requirement.can anybody help me out regarding this.Thanks in advance....
    Regards,
    Laxman.P

    In webUI GET_V for this attribute, make the available values as desired by restricting some values for a certain usergroup or role or on a certain value of a certain Authorization Object.

  • Cannot set the status CLSD

    We cannot assign the status Complete (business ) for some Refurbishment orders.
    We already run the settlement rule but we received the message below:
    "G/L account ABC requires a valid tax code". Please help......
    As I have not much dealt with this kind of issues, If feel there is some setting change in the taxcode.
    How do I check and compare the tax code and other related setting of this GL and the other..

    HI Ritu,
    Check transaction FS00 and maintain * in the Tax field for the G/L account XXXXXXXXX
    Execute FS00 transaction then Enter the G/L account & Company code. In Control data tab , change the Tax category to All tax types allowed or - Only input tax allowed based on your necessity
    Regards,
    Sanjeev

Maybe you are looking for