Change form status

HI all
I have a database block with some text items
i have a button on my form
on the button i have an Update statement
Upon entering the values on the form i click the button
the update statement is triggered on some condition (in this case i dont want the values on the form to be saved i just want the update to fire (i hAve a commit in the button click trigger )
I tried to clear the block before performing an update but still i am unable to change the form status to query so that the form values will not be committed
Please help me
thanks
Manda

Fire the update state and issue a "forms_ddl('COMMIT');" this will only commit the already posted forms changes (see POST built-in) and all your pl/sql DML statements.
For the records in your block you can issue a SET_RECORD_PROPERTY built-in and reset the corresponding records to query state.
Greetings
Christian

Similar Messages

  • Change the status of a form

    Hi All,
    Can anybody tell me how to change the status of the form?
    I want to exit the form with out committing the changes when the user click a button,
    For it...
    EXIT_FORM(NO_COMMIT);
    will do but, only when the form is not in a query mode.
    How do I change the status of the form or do something so that I can exit the form when I click the button irrespective of the form mode?
    Thanks,
    Naren.

    You don't need to change the status, you just need to ignore it. Try:
    exit_form(NO_VALIDATE)
    Oracle Forms exits the current form without validating the changes, committing the changes, or prompting the operator.

  • Form Change it status from Query to others without any reason

    Hello,
    I have two forms(develper 10g R2) first one works fine if I call that form via menu and want to exit without any modification or insertion it will not ask for saving or cancelation but the second form ask every time for saving and cencellation when I call that form, without any modification/insertion the problematic form have three blocks first block is Control block(database block =NO) and when I called form the cursor moves directly in to the Control block and if I want to exit without touching anything it ask for saving/cancelling,
    on exit I wrote code like this
    IF :SYSTEM.FORM_STATUS <> 'QUERY' THEN
    ELSE
    exit_form(no_validate, full_rollback);
    end if;
    some one have idea why.
    Thanks and Regards, Khawar.

    Hi SIS,
    I ran form in debug mode and continuesly monitor form status, it start with Status of NEW(is it normal??), since the status is new it ask for saving/cancel, I have another form(which behave normal) I did same with it, it also start with NEW status but when I assign a value to an item resides in Control block in WHEN NEW BLOCK INSTANCE trigger the form status changes to QUERY, so I applied same here and assign dummy value to dummy item, and it works fine.
    Thanks, Khawar

  • Change form CNF to PCNF status

    Dear all,
    I have one production order with 2 operations.
    In the setup I have that the final confirmation will be set automatically, means that when the sum of yeld and scrap quantity reach the total of the operation the final confirmation is set.
    Now I have one issue, after I have my last opration with status CNF and my order with status CNF, If I canc el a confirmation of the last operation, but not the confirmation that is flaged as final confirmation, the quantity is reduced, but the status is not changed from CNF to PCNF.
    If I can cel the confirmation that is flaged as final confirmation the quantity is reduced and also the status change from CNF to PCNF.
    Anyone have one idea how I can have the status also reverted from CNF to PCNF id any of the confirmation is canceled?
    Thanks in advance for your help
    Best Regards
    Manuel Antonio

    Dear,
    You can change the status from PCNF to CNF but can not change the status from CNF to PCNF.
    Please try with CO13 cancle the confirmation and then do confirmation
    If you confirm the First Operation with Final Confirm then the operation Status would be CNF and also the Order Status will also be CNF.
    So, proceed with other operation confirmations or again partially confirm the first operation with 0 quantity, then the order Status will be PCNF.
    Please refer this thread also,
    status change from CNF to PCNF urgent
    Regards,
    R.Brahmankar

  • Sharepoint Designer - Two step List Workflow task item is not changing the status from not started to Complete

    Hi 
    Using SPD i am creating list workflow.
    Scenario: Employee submits a request . Task assign to manager. Manager can either approve/ reject. If approve then change the state column to "done". If rejected the state column to "Rejected".
    Problem is "Assign a to do item" is assigning the task to manager. But after manager approves the status in the task list not changed to "Completed". Still it is showing "Not started". I dont want to manually complete the task.
    Please help me for automatic process. 
    What i should do to change the status to "Complete" automatically after manager approval
    Regards
    Jhanani
    Janani.R

    Hi Janani,
    From your description, you would like to create an approval workflow for a list. When an employee submit a request to the list, an approval task should be assigned to manager, then manager could approve or reject the request. From the request list,
    we should be able to see the Approval task’s status.
    Not understand the reason of designing the workflow to two steps, an approval action should be enough from my understanding. For producing, I create a list named Request list, then customize it in InfoPath form to add a Request field for stating request
    content. Then add a workflow to list named Approval task, add the action of Start an approval process with administrator and make the workflow automatically start when item is added.
    The image below shows the status of Adding items, Approving and Rejecting. Please check if it could meet your requirement.
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • To change user status profile on sales order at run time.

    Hi Experts,
    We have defined status profile for Sales returns ( Doc type RE) which blocks the  return order on creation. There are two statuses here which are to remove the delivery block and to remove the billing block by authorised users.
    The requirement is now to have a three level block ( three statuses ) on the same document. We can create a new status profile and assign it to a new return sales order tpye  but we want to avoid creating new document types. Since this document type is used across various companies in the group we can not assign a new profile on the existing RE document as well.
    My question to all experts is
    Is it possible to dynamically change the status profile assigned to the document type based on characterstics like sales org or company code etc? If any body has done this please let me know the user exit , function module, BADI etc where the necessary coding has been done.
    Helpful answers will be rewarded with points.
    I look forward to your co operation.
    Regards,
    Kartik Shah

    Hi Liam,
    In the Program MV45AFZZ in the FORM userexit_save_document
    you use the following fn module to change the user status
    'STATUS_CHANGE_EXTERN'
    Example
    IF t180-trtyp = 'H'.  "Only creation time
      READ TABLE xvbap WITH KEY matnr = c_matnr.
      IF sy-subrc = 0.  "If above material exist then change status
        LOOP AT xvbap WHERE cuobj NE space
                       AND  matnr =  c_matnr.
          l_objnr = xvbap-objnr.
          CALL FUNCTION 'STATUS_CHANGE_EXTERN'
            EXPORTING
              objnr               = l_objnr
              user_status         = 'E0013'  "Send ej IDOC
              set_chgkz           = 'X'
            EXCEPTIONS
              object_not_found    = 1
              status_inconsistent = 2
              status_not_allowed  = 3
              OTHERS              = 4.
        ENDLOOP.
      ENDIF.
      sy-subrc = 0.  "Restore the previous condition
    ENDIF.
    Reward if helpful *********

  • Changing the status of the sales order item based on reason for rejection

    Hi All,
    When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
    I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
    Regards,
    S.Subasree

    Hi subburamaiah
    If you want the report you can create a separate SIS report . In that take the input field  as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
    Regards
    Srinath

  • Function to change CATS status to released for approval

    I have a requirement where I need to change in batch cats records from status 10 to status 20 'released for approval'
    I can't find how to change the status in  BAPI_CATIMESHEETMGR_CHANGE
    and another function CATS_APPROVAL only works for approving or rejection of records.
    is there another bapi or function which I can use to change the record status of cats ?
    or the other way around is also acceptable that I can set the status back from '20' released for approval to '10' locked.
    kind regards
    arthur de smidt

    when debugging cat2 I found a form which handles the release for approval. but I'm nog sure if there is more to it. for so far I can see it updates the status directly and that's it. when I go further on I come in the screenpainter prog. any clues if it's normal to use this code for my own abap ??
    further on I don't understand the function of ASSIGN_FIELDS_IN_ICATSD ?
    can somebody explain this one ??
    include : LCATSF33
          FORM FREE_ONE_CELL                                            *
          free one cell on dynp                                         *
    FORM FREE_ONE_CELL USING U_NUMBER
                             U_WORKDATE LIKE CATSDB-WORKDATE.
    assign the correct fields
      PERFORM ASSIGN_FIELDS_IN_ICATSD USING U_NUMBER.
      IF <STATUS> = STATUS-LOCK OR <STATUS> = STATUS-REJE.
    count records
        TOTAL_RECORDS = TOTAL_RECORDS + 1.
    date in the future ?
        IF TCATS-FUTURE IS INITIAL.
          IF U_WORKDATE > SY-DATLO.
            FUTURE_RECORDS = FUTURE_RECORDS + 1.
            MESSAGE S024 WITH FUTURE_RECORDS TOTAL_RECORDS.
            EXIT.
          ENDIF.
        ENDIF.
        READ TABLE ICATSDB WITH KEY MANDT = SY-MANDT
                                    WORKDATE = U_WORKDATE
                                    COUNTER = <COUNTER>
                                    BINARY SEARCH.
        IF SY-SUBRC = 0.
          ICATSDB-STATUS = STATUS-FREE.
          IF ICATSDB-ACTION IS INITIAL.
            ICATSDB-ACTION = ACTION-UPDATE.
          ENDIF.
          MODIFY ICATSDB INDEX SY-TABIX.
          <STATUS> = STATUS-FREE.
    set global marker that data have been unlocked
          FREE_DATA = YX.
        ELSE.
          MESSAGE X030.
        ENDIF.
      ENDIF.
    ENDFORM.
    kind regards
    arthur

  • Text Mail for every change in status

    Dear All,
    I know how to trigger mail with smart form for change in status. But I want to trigger sort of alert through mail to respective user. Which will intimate user for change in new status. How can I do that?
    In SCOT -> SMTP i have changed PDF to TEXT.
    Regatrds,
    Nikhil

    You can setup a mail action in the action list with the CRM configuration in SPPFCADM for the respective message types.  I do recommend that if you have a CRM person there that they be the one to make the adjustments and it should be something that they would be able to understand as all the Service Desk and Maintenance Optimizer and ChaRM are just CRM Transactions so you can create an unscheduled mail option with a SmartForm back-end that triggers when the status is changed which will result in an email - these can be specifc to the partners but you must have the email addresses setup in the BP Employee Role and in the SU01 User record for the same.
    Sorry that I can't be more specific but there are a number of actions, programming and conditions to setup to make this work.  Hopefully you do have a CRM person around that you can borrow for a little to help you along.

  • FlexField Validation based on Form Status

    Hi ,
    Background :
    I have a Valueset attahced to a segment in DFF, that say, stores a employee ID. My Value set picks up only active employees based on a specific condition. So that, when user enters data, he/she can choose only active ones.
    But as days pass by, the users are end dated. So when I query the Order ( to which this DFF is attached, ) that has an end-dated employee attached to it, the validation fails.
    My Question :
    Is there a way to have the Value set fire only in the Entry Mode and not fre in Query mode?
    Do we have to do this using the FORM.STATUS ( 'NEW','CHANGED') in the valueset query to acheive this? Or is there a simpler way?
    Thanks
    konnektme

    Hi Karthik,
    Instead of making the value set not to validate, you can make the value set to validate as successful. This can be achieved in any of the following ways.
    1) Make the Employee value set to display both Active/Inactive employees. If required the Status column can be displayed in the LOV. Also the list can be ordered by active employees first, then followed by inactive employees. There by user have the option to select the exployees be referring the employee status. This provides a provision to create records based on inactive employees also. If we strictly want to restirct to select only active employees. As said earlier, we can validate in Key-Commit or When validate Record.
    2) Change the value set to return active values always and inactive values only based on condition. Say the condition is (:system.record_status <> 'QUERY' and active_flag = 'y'). In this case only active records will be retreived in the record status is not query, where as if the record status is query, inactive records will also be retreived.
    If you have any solid condition to restrict the records, you can use those instead of record status/form status.
    I would prefer to use Option 1. Which will provide a solid result all the time. Where as option 2 might cause some issues if it is based on record/form status.
    Thanks
    K.Nataraja Suthan,

  • POST built-in and form status

    Hello friends at www.oracle.com ,
    while analyzing and testing a Forms program here, I saw that, before POSTing data, the value of :SYSTEM.form_status was CHANGED (that is, database contents were changed at Forms) and, after POSTing, :SYSTEM.form_status became QUERY.
    But, if POST built-in doesn't perform a database commit - so I suppose POSTed data isn't viewable to other users yet -, why does the form changes its status, if we do not have a real commit? Can't this lead the user to think data was saved (when, in fact, it's not, because POSTed data aren't committed)?
    I read about POST built-in at online help, but it's still not much clear for me, so I ask your help to understand it better.
    Hope I was clear - if not, please ask me.
    Best regards,
    Franklin Goncalves Jr.

    Sincere thanks for your answers. I really didn't know that POST built-in would fire triggers involved with database transactions, such as POST-COMMIT.
    Isn't it better for data integrity that Forms and database be synchronized with the state of each other - that is, Forms should state its data is really committed at database? While I don't see a special reason for using POST, I'll still think POST is not so useful and avoid using it.
    In some Forms programs I used a global variable, like :GLOBAL.key_commit_pressed, to determine if KEY-COMMIT was pressed (if user has committed data, that's obvious) while user is working. It doesn't seem to be a bad idea, although I still ask myself if it's really the best one.
    But the most important question I have, is to know if POST built-in validates data with database - that is, integrity constraints, database triggers, and so on. I think it might fire, although I still believe the use of POST built-in can confuse both user and developer anytime.
    Best regards,
    Franklin Goncalves Jr.

  • How to change the status of the system programmatically with Function Module

    I  Was trying to change the status of the notification through STATUS_CHANGE_INTERN function module .  But It is not changing the status of the notification.
    Can any one help to understand what is going wrong ... or any other function module to change status of Customer complaint notification ..

    Hi KK,
    Please can you take clues form the below discussion thread -
    http://scn.sap.com/thread/775169
    Thanks to all original contributors of this thread!!
    NOTE: Please note that the main point explain here is that, if you are willing to change to a status Ex, NOPR, NOCO, etc then you will need to pass on the value 'I0070', 'I0072', etc. I will also go ahead and like to add one more point here to make the language check as well like "EN", 'DE', etc as these statuses are language dependent too.
    Thanks,
    Arijit

  • FM to change the status od DSO Request

    Hi All,
    I need a Function Module (FM)  to change the status of the request in the DSO and subsequently able to delete that request.
    As I am unable to delete a request manully form the manage tab.
    Regards,
    Mayank

    Hi Dennis,
    Thanks your your reply.
    I tried giving the IP technical name and the requets ID. Nothing is happening.
    It remains in the same state. Any other pointers.

  • Picking status in Out. delivery changed to status A after GR post with MB0A

    Hi,
    I am facing an issue in our production system, these is the scenario:
    - Replenishment delivery
    - ZPicking confirmation idoc sucessfully picked the outbound delivery and post the GI.  The material was cut and it was batch splitted.
    - Then it was performed a GR (mov 101)  against a stock transfer order via MB0A.
    - After this GR posted, the status of picking of the parent material of the batch split was changed from status " " (Not relevant) to status "A" (Not yet processed).
    - Also the status at header level was changed.
    Current status of the delivery
    Header Status
    Picking Confirmation --> B
    Total Gds mvt status --> B
    Item Status
    Item 10:
        Pick confirmation --> A
        Goods movt --> B
    We have tried to reverse the GI to generate it again and reset the statuses but it is not possible to do it via VL09 neither MBST, etc.
    Any idea on how to correct this problem?
    Thanks,

    Hi,
    What is the moment type being taken for PGI through idoc?check the moment type definition for its allowable transactions and foe reverse.
    Regards,

  • Usage decision follow up action change of status in equipment

    Hello every one, I am having calibration scenerio in my project. All process is running properly but the issue which i am having is that when i am giving usage decision i should get a pop up to change the status of the equipment which is not coming in my case. i have checked followup action whch PM_QM there i have activated 2 Funtion modules one is for automatic TECO of order which is working properly and second is change to status in equipment master which is not working for me. Kindly give some guidance to me on same.
    Regards
    Abhishek

    Helloo,
    Please let me know the equipment type you are using.
    If you are using equipment type other than Q then u may get such type of issues.
    Please try out with equipmetn type Q or P
    Thanks

Maybe you are looking for

  • PO Creation Problem

    Hi, While doing PO creation system is going directly to dump. Three it was showing the message "Inkonsistenz im Dictionary für die Struktur "EKPO". How to resolve this issue?..

  • Footage Freezing on External Monitor and Timeline

    Hi, I'm scratching my head over this. I have a Sony HD TV I am using as an external monitor to display Final Cut from by Macbook Pro (I know to get the best quality I should get a Matrox, but I can't afford it at the moment). The macbook is hooked up

  • Local variable needs to be declared final

    This is the error code I am getting: C:\javacode\Notepad>javac FinalProgram.java FinalProgram.java:60: local variable textfield1 is accessed from within inner class; needs to be declared final System.out.println("It is detected " + pressed + textfiel

  • Specific problem with trackpad

    I have this specific problem with my trackpad, it doesnt work this 2 functions:  Swipe between pages and scroll direction: natural. all other functions are working. i don't know what to do .

  • How do i connect my ipad to a canon printer?

    im trying to connect a canon pixma MG3250 to my ipad,i connected the printer to the house router,what next?what do i have to do with the ipad?