How to refer the work order status value from a different transaction in the step handler?

Hi All,
I have a requirement to check the status of the work order from a different transaction before doing some logic in the current transaction. The following transactions are done to replicate the issue
1)changing the status to ONSITE to edit the work order (transaction 1)
2)Adding some information which will do some logic (transaction 2)
3)Completing the work order (transaction 3)
The transaction 2 will have some logic and will be executed only if the status is COMP but even though the status is COMP now (transaction 3) my condition check in the logic is showing as ONSITE status(transaction.status=ONSITE) and it fails. How can i get the latest status of the work order in the device? Please advice

Hi Jason,
The CompleteWorkOrderFinish sub action does have Apply action (screenshot 1) and the transaction definition (screenshot 2)of CompleteWorkOrderFix transaction with the only property Status which has the following settings (screenshot 3)
Also I am trying to add a status property in EditMeterFitDetaisl transaction and update this value with the current status of the work order using object collections filtering with key value. Please let me know if that approach can be followed. Thanks

Similar Messages

  • How to get the Open Order Qty value from Transaction Code RWBE?

    Hello,
    Recently I have a program that needs to extract the value of Open Order Qty value from RWBE.
    My specific steps are as follows:
    - I go to tcode <b>RWBE</b>
    - I select the <b>material and plant</b>
    - I tick the checbox for <b>"Also select special stocks"</b> and <b>"Also select stock commitments"</b>
    - I execute the program double click one of the rows for the <b>Unrestricted Use coulmn</b> and view the <b>Open Order Qty</b>.
    My question is how is this particlar variable attained? I tried Ekbe and the ELIKZ feild from EKPO and I still cant seem to get the right value.
    Hope to hear from you soon.
    Thank you and good day.

    check with FM :
    CALL FUNCTION 'MB_ADD_PURCHASE_ORDER_QUANTITY'
           EXPORTING
              x_matnr = t_matnr-matnr         " TGA/4.6 Erw. Lot
              x_meins = t_matnr-basme         " TGA/4.6 Erw. Lot
                x_matnr = prt_matnr-matnr  " TGA/4.6 Erw. Lot
                x_meins = prt_matnr-basme  " TGA/4.6 Erw. Lot
                x_elikz = space
                x_loekz = space
           TABLES
                xtab    = xtab
                xwerks  = r_werks.
    above fm will get open order qty for given material in po

  • How can I retrieve the document line status value from UI

    Hi,
    Right now I need to do some check with the each document line status in UI, but it seems it doesn't exist in the the matrix. When I try to use code like this:
    oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("LineStatus").Cells.Item(i).Specific;
    It gives me Invalit Column error, I guess the line status field does not exist in the matrix. Do I have to use DI or SQL query to retrieve the like status value?
    Thanks,
    Lan

    If the document is open on the screen, you can of course get line status from the UI.
    It is column 40:
    oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("40").Cells.Item(i).Specific;

  • How do I lock the work order number on my form to not change

    Thanks to everyone who helped on this form.  The work order number is setup to generate according to the date and time, only problem is that it changes everytime it gets opened, can it be setup somehow to lock it in automatically when I send it or the customer sends it back?   Form is attached
    Thanks
    Mike

    Simply put a condition in to test if there is anything in the field .....if it is empty then go ahead and calculate your number if there is something in it then do not calculate the number. Also you shodul not use teh Calculate event for this script. I moved it to the docReady event. It will work on the calculate event but the calc event is fired many times in the normal operation of the form where as teh docReady event is only fired once (when the form loads). This is a much more efficient way to use your form.
    See the modifed attachment.
    Paul

  • How to summarize Open sales order credit value

    Hi, friends.
    I am designing Add-on report about credit exposure.
    I found the relevant tables of Credit Limit in FD32
    KNKK
    S066
    S067
    Then, I would like to show the document details of open sales order credit value in the report.
    I tried to summarize the open sales order amount from VBAK, VAUK, VBAP, VBUP.
    However, it doest match to the amount in S066 table.
    Can anyone tell us how to summarize Open sales order credit value from SD documents?
    Regards,
    Yu

    Sudheer,
    You need to check the update rule given in the definition of the Credit control Area which you are using for credit management. If you want only the open deliveries then you need to have update rule 15 in the credit control area.
    In the credit controal settings, you need to have settings for the credit check at the delivery level.
    Hope this will solve your issue.
    Regards,
    Chetan
    Edited by: Chetan Gupte on Jul 15, 2010 8:56 PM

  • In which table is the Serice Order status is stored?

    Hi Friends,
    We have a requirement to get the Service Order Status in BI, so that when ever the SO is closed (CLSD status, in IW33 Tcode ) we can restrict in BI.
    If we can know in which table is this stored, i can enhance the DS 2LIS_18_I3HDR which is populating in Service Orders Infocube.
    Have any one have idea in which table are status stored (Like the SO status will be like CRTD....CLSD etc)
    Thank you,
    Raghu

    Hi Pravender
    These tables did not help me, is there any other table with both fields AUFNR and also field relevant to SO Current status.
    Thanks
    Raghu
    Edited by: raghuram alamuri on Feb 16, 2010 11:52 AM

  • Performing resource transaction at the work order completion in Oracle

    Hello Guru's
    Is there any way to have Oracle 11g to perform the resource transaction at the work order completion? Currently a resource transaction is performed when work order is scanned in a scan point. What we want to see is resources transactions at the end of life of work orders most likely a wip assy completion transaction. We are seeing that this happens only for bill of material with just one level. We would like see this behavior on BOMs set up using phatom as supply type for the subassemblies (with more than 1 level structure).
    Regards,

    I am using SAP ECC 6.0.
    SAP Basis Component and Cross-Application Component: release 700, level 013
    Is there any other information you need?
    Could I still use this OSS note with this version?
    Also, the issue is not about the response time like mentioned in the OSS note.

  • BAPI or FM to get the work order number

    Hi
    Kinldy let me know if there is any BAPI or FM to get the work order number (aufnr)  from to Purchase requisition number (banfn) & Item number of the purchase requisition in the order(bnfpo).
    Thanks ,
    Arun

    Table EBKN will help you.

  • Values for various work order status

    Hi Guys,
    In AUFK table(which is the order master data table), there is a field ASTNR, which indicates the order status.
    But I couldn't get any values for each status of the orders.
    If anyone knows the status and the value for the corresponding status of the order, please let me know.
    </b> I specifically want the value of ASTNR, for which the status is Closed </b>.
    Points will be awarded for helpful answers...
    Thanks and regards,
    SP.

    Hey,
    ASTNR is not the field you should be evaluating for your requirement. You should look into the system/user status tables of the work order.
    The system status master table is TJ02T and the user status master table is TJ30T. To derive the user statuses assigned to work order you need to know the status profile assigned to the work order type.
    The various statuses assigned to a work order in its entire life cycle can be found in the table JEST.
    In your case first get the user status code from the TJ30T table and then get all records from JEST for the derived user status code. JEST-OBJNR contains the work order number.
    ~Kiran

  • How do determine the work orders for a sales order?

    I'm forced to calculate our costs by sales order.  So for a given sales order number, how is this linked to the work order that created the items on the sales order?
    Thanks

    Hi,
    Check this:
    Re: Open Production Orders List with a Field from Sales Order
    Thanks,
    Gordon

  • Work Order Status report

    Hi,
    Any body have ideal?
    What are the work order summary report mean for?
    I am using T-code ZPM02 to view the report but the report display the work center according to the category CRTL,REL,PCNF,CNF,TECO and CLSD with each colunmn display the figure.
    What is mean for CRTL,REL,PCNF,CNF,TECO and CLSD?

    PeteA,
    Thank you for the information, the report is indeed a customized report.
    Could advice how to diffrentiaze between customize and standard report in SAP system?
    Can the IW39 list all orders with all the status in IW39?
    The reason being I am having problem with the customize report display (work order summary report)the status diffrence with the IW39 is the detail report.I am now looking for the SAP standard report for work order summary report to compare with the customize report to verify which report are display not correct.
    Do you have any ideal others than IW39 what others report in SAP system show the work order summary report?
    Many thanks.
    Karen

  • Generating deltas records after a work order status change

    Hi
    We are currently reporting on Work Order status changes in BW. However, the process team has written an ABAP program that allows users to change a Work Order status or an Opeartion status. Any changes using this method do not trigger a delta record to be written to the Outbound Queue MCEX17 and subsequently we do not pick them up in BW without having to to a re-initialise.
    Could anyone tell me how we could trigger a delta to be written to the Outbound Queue in the same manner as the standard Work Order change transaction IW32.
    Cheers, Mark

    Hi
    I m not sure about functionality though but you can create delta by using FM...
    Search SDN and you will get doc for that..
    Regards
    Guarav
    Assign points if it helps

  • Get Lastest date of the Work Order confirmation

    Hi experts,
    I want to write a report to get the lastest date of Work Order confirmation.Pls give me some logic solution. How to do?
    I know the work order can be cofirmed partly,So there are maybe several date for work order confirmation,I only want get the latest one.
    Edited by: Bean Dou on Jan 5, 2009 8:24 AM

    SORT BY DATE FIELD
    DATA:CNT TYPE SY-TABIX VALUE 0.
    SORT ITAB BY ERDAT. --->SUPPOSE THIS IS THE DATE FIELD
    LOOP AT ITAB.
    CNT = CNT + 1.
    ENDLOOP.
    READ ITAB  INDEX CNT.
    ****NOW YOU CAN GET THE LATEST DATE ROW******
    ITAB-ERDAT.

  • IAGR DRFT Work Order Status

    Hello,
         One of our Suppliers in SNC is having a problem with a Work Order.  Right now the Status on the Work Order is IAGR DRFT (In Agreement and Draft).  How do I remove the Draft status?  As long as the WO is in this status no one can accept it.  This  is also causing a problem on the ASN for this as it was not confirmed completely, only partially Confirmed on the PO
    Thank you for your help,
    Jeff Hnatiak

    HI JEFF
    It is quite interesting in your case
    I will the explain the general WO process view, If anything deviates from this, Please explain the step explictly
    As customer i create a PO in sap ECC system, Coreesponding PO and WO are created in SNC
    ex: 4500017485 and WO OEM0008522
    Now In work order configuration as explained in previous msg
    I do not check the "publish work orderupon creation and change option"
    Then
    Log into webui As customer
    I would see required action-----Publish changes
    WO status: CINE- content in negotiation
    WO delivery line status : INEG DRFT-   in negotiation draft
    After i pubilsh using save/publish i see status
    WO status: CINE- content in negotiation
    WO delivery line status : INEG -   in negotiation
    Now log in as supplier into webui
    I would see required action------respond to proposal
    I go and select teh delevery line use action button-select Accept request
    Then click adapt work order button (if automatic publish changes is not active, woo1 profile WO_AUTO_ADAPT_CHANGES validation check inactive )
    Then i will see status
    WO delivery line status : IAGR DRFT-   in AGREEMENT DRAFT
    WO status: CINE- content in negotiation
    REQUIRED ACTION-----PUBLISH CHANGES
    Then i press save/publish buttion-
    WO status----
    CIAG ---content in agreement
    WO delivery line -
    IAGR----in agreemetn
    THen you can start reporting actual data and ASN etc
    Best Regards
    Vinod

  • API for Work Order status from Released to Unreleased or any user defined s

    Dear All
    Is there any API for to change work order status from Released to Unreleased or any user defined status.
    Take care
    Aamir

    Hi Ben,
    As query is resolved, you should close the Thread after rewarding to the Concerned
    Thanks,
    Manish

Maybe you are looking for