Selecting PM orders according to status

hello
I need to select PM orders according to several parameters, one of which is a specific User Status.
I see that there are many tables containing statuses, like TJ20, TJ30, and plenty of others but I cannot find a reference field to connect the status to the PM order.
meaning: TJ30T for instance has a field TXT04 which contains the user status but, no field for the PM order.
how can I connect a specific order to a table containing user status?
thanks
Alisa

not well specified

Similar Messages

  • Selecting PM order according to status in report

    hello
    we are writing a report in which we need to select PM orders according to several parameters, one of which is a specific User Status.
    I see that there are many tables containing statuses, like TJ20, TJ30, and plenty of others but I cannot find a reference field to connect the status to the PM order.
    meaning: TJ30T for instance has a field TXT04 which contains the user status but, no field for the PM order to find the actual order status to compare.
    how can I connect a specific order to a table containing user status?
    thanks
    Alisa

    Alisa,
    From AUFK table you need to fetch the value for OBJNR for the order number(AUFNR), and using OBJNR value in JEST table you can fetch the status which are active and Inactive.
    Text and status details are available in TJ02.
    Regards,
    Prasobh

  • Order with CLSD status selected

    Hey All
    I am not sure if this is question in CO but While calculating variances the orders with status as CLSD are also being selected. The system in the output shows the orders with CLSD status which is causing long runtime issues. I am sure that orders with status as CLSD are excluded from processing . Can anyone help me on this
    Thanks
    Ankur

    Hi ,
    You need to regulary set the deletion flag in the closed process orders . Please refer Note 397110 - Performance: Archiving manufacturing orders.
    Also refer Note : 393686 on other performance related issues in Cost Object Controlling..
    Regards
    Sarada

  • What's the name of FM for getting Sales Order Header / Item Status info

    Hello All:
    Do you know what's the name of Function Module for getting Sales Order Header / Item Status Overview ? Any sample code will be very much appreciated.
    Basically, I am trying to create a Webpage where user can enter the Sales Order document number and will return the Sales Order: Status Overview.
    Thanks,
    Dipankar Biswas

    Thanks everybody ! Appreciate for your prompt response. I was also looking for some sample code, and I did find some on. And here is one. I still have to try the code, but here is for all your reference:
    *& Report ZBAPI_SALESORDER_GETSTATUS *
    *& Read and Display the Sales Order Items and Status of the Order *
    REPORT zbapi_salesorder_getstatus NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 33(3).
    TABLES: vbap. "Sales Document Item Data.
    DATA: wa_bapireturn TYPE bapireturn,
    wa_bapisdstat TYPE bapisdstat,
    it_bapisdstat LIKE STANDARD TABLE OF wa_bapisdstat.
    TYPES: BEGIN OF ty_mat_name,
    matnr TYPE makt-matnr,
    maktx TYPE makt-maktx,
    END OF ty_mat_name.
    DATA: wa_mat_name TYPE ty_mat_name,
    it_mat_name LIKE TABLE OF wa_mat_name WITH KEY matnr .
    PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT 5573.
    START-OF-SELECTION.
    SELECT matnr maktx FROM makt INTO TABLE it_mat_name.
    CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
    EXPORTING
    salesdocument = p_vbeln
    IMPORTING
    return = wa_bapireturn
    TABLES
    statusinfo = it_bapisdstat.
    IF wa_bapireturn IS INITIAL. " Successful Execution.
    WRITE: / 'Document No: ' COLOR 1, 20 'PO Number : ', 40 'Status' , 50 'Delv.Stat',60 'Item No', 80 'Material', 90 'Material Description', 130 'Net Price' COLOR 2.
    ULINE.
    LOOP AT it_bapisdstat INTO wa_bapisdstat.
    WRITE: / wa_bapisdstat-doc_number. " Sales Document Number.
    READ TABLE it_mat_name INTO wa_mat_name WITH KEY matnr = wa_bapisdstat-material.
    WRITE: /20 wa_bapisdstat-purch_no, " Customer Purchase Order Number
    40 wa_bapisdstat-prc_stat_h, " Processing Status
    50 wa_bapisdstat-dlv_stat_h, " Delivery Status
    60 wa_bapisdstat-itm_number, " Item Number
    80 wa_bapisdstat-material, " Material
    90 wa_mat_name-maktx, " Material Description
    130(10) wa_bapisdstat-net_price. " Net Price
    CLEAR wa_bapisdstat.
    ENDLOOP.
    REFRESH it_bapisdstat[].
    ELSE.
    WRITE: wa_bapireturn-message.
    ENDIF.

  • Error:(in tcodeVA02)"You cannot select assembly order 16600192 for deletion

    when i am trying to delete one line item from sales order using VA02 tcode its throwing error "You cannot select assembly order 16600192 for deletion".
    could you tell me please what might be the reason and how to resolve this issue.
    waiting for your response.
    thanks,
    aritra
    Message was edited by: Aritra Samanta
    Message was edited by: Aritra Samanta

    Let me ask you this: Is the assembly order 16600192 your VA02 order number? If not, your sales order item might have created an assembly order (with this number). Depending on its status, you may not be able to delete the assembly order and therefore the sales order item deletion is not possible.
    Verify the assembly order status.
    Good luck!

  • Performance Issue, Unable to pull all production Orders in given statuses

    HI All,
    I have a requirement to pull all production orders that are in the created or released status and then action some different things in the program such as adjusting dates, etc. The issue I'm having is that as the volume of production orders grows the select statement stops being able to complete and pull these production orders. I've tweaked this before and it was able to work for a few weeks but has now reached it's limit again. I tried using the trace and SE30 to analyze the program as I've read suggested here, however it's been difficult to try adjustments as the program runs in about 3 second in the development environment. Our quality environment, which has roughly half the volume of the production system ran in about 15 seconds. So I am unable to duplicate the issue until the program is moved to production.
    Here is the select statement:
      SELECT k~aufnr
        FROM aufk as k INNER JOIN afko as f ON f~aufnr = k~aufnr
          INNER JOIN jest as j ON k~objnr = j~objnr
        INTO CORRESPONDING FIELDS OF TABLE it_aufk
        WHERE k~aufnr IN s_aufnr     "Order Number select option
          AND k~werks IN s_werks             "Plant select option
          AND k~auart EQ u2018PP01u2019              "PP01 std orders only
          AND k~kokrs EQ u20181000u2019              "Seneca Controlling Area
          AND k~autyp EQ u201810u2019                "PP Production Order
          AND k~loekz EQ space                 "Deletion indicator
          AND ( j~stat EQ u2018I001u2019             "CTRD, created status
            OR  j~stat EQ u2018I002u2019 )           "REL, released status
          AND j~inact EQ space.              "status not inactive
    There are a couple thoughts I have to try, but I don't know of any good way to verify if helping given the volume differences until in production so am looking for feedback. Here's the ideas:
    1. Use the field IDAT2 in AUFK to determine if an order is not TECO'd , rather than using the JEST table. Testing this in Dev had increased run time versus how I have it written now, but may be helpful with larger volume and/or if an index is put on this field. Thoughts?
    2. Separate the select statements to read AUFK and JEST separately and instead use the FOR ALL ENTRIES command. Seems to be a lot of conflicting thoughts on which works better, thoughts on this particular case?
    Also, there is another program that pulls only production orders in Created status, and it doesn't have this same issue.
    Thanks in advance for any help,
    Kyndal
    Edited by: Kyndal Copley on Oct 1, 2009 6:46 PM

    I have three recommendations for your join.
    1) Assuming that fields AUART and KOKRS are always known (constants) I recommend that you move them up in the where clause (like illustrated) to ensure that the system uses index C.
    2) AUTYP EQ '10' seems superflous. In addition it seems to increase the search time. Check with your functional consultant if there could be a production order with AUART EQ 'PP01' and AUTYP NE '10'. If you will never encounter this situation it makes more sense to drop the clause AUTYP EQ '10'.
    3) INTO CORRESPONDING FIELDS OF TABLE usually takes longer than INTO TABLE. Define the table with AUFK with just field AUFNR so that you can use the clause INTO TABLE.
    SELECT k~aufnr
      FROM       aufk AS k
      INNER JOIN afko AS f
      ON f~aufnr EQ k~aufnr
      INNER JOIN jest AS j
      ON k~objnr EQ j~objnr
      INTO TABLE it_aufk
      WHERE k~auart EQ 'PP01'
      AND   k~kokrs EQ '1000'
      AND   k~aufnr IN s_aufnr
      AND   k~werks IN s_werks
      AND   k~loekz EQ space
      AND ( j~stat  EQ 'I001' OR j~stat EQ 'I002' )
      AND   j~inact EQ space.

  • List of incomplete sale orders according to the sales document wise

    Hi Gurus
    can any body suggest me the tcode to find the incomplete sales orders according to the sales document wise
    regards
    satish

    Hi,
    Please run T/code V.02 to see incomplete sales orders.
    Regards,
    Jaiprakash.P.T

  • Purchase orders in Incomplete status though they are approved

    Hi,
    We have many purchase orders in Incomplete status though the respective requisitions are approved and once requisitions are approved PO's are auto created with suppliers having approved CPA
    Any help?
    Regards

    Our PO's are autocreated upon approval of requisitions.
    Errors were noticed in the POAPPRV workflow at the Activity = "Document Failed Correctness Check"
    Charge account is invalid
    Cause: The charge account that you entered is invalid.
    Action: Enter a valid charge account.
    on distribution 1 of shipment 1 of line 1
    Accrual account is invalid
    Cause: The accrual account that you entered or that was derived is invalid.
    Action: Enter a valid accrual account.
    on distribution 1 of shipment 1 of line 1
    Variance account is invalid
    Cause: The variance account that you entered or that was derived is invalid.
    Action: Enter a valid variance account.
    on distribution 1 of shipment 1 of line 1
    Found a few on metalink however they were for different error. (Buyer inactive and No ship to)
    POAPPRV Workflow Ending With Document Failed Correctness Check - Buyer is Inactive [ID 1476878.1]
    POAPPRV: Autocreated PO Fails Approval Correctness Check With Purchase Document Has No Ship-To Loca[Article ID 1512237.1]

  • Return Sales Order - And its Status

    Hello Experts,
    I have a question in the sales returns scenario.
    Step 1: I Create a sales order ( With two items and delivery full ) and perform steps till billing ( invoice ).
    Step 2: I Create Return sales order with reference to the first sales order but i take Only one item to return.
    Now the status of the return sales order is Being Processed.
    Step 3: I create a complete ( deliver full quantity of the item ) return delivery with reference to the return sales order and save the document. Now still the return sales order is in status Being Processed. Ideally i should have been Completed.
    Step 4: I do the Goods receipt for the return delivery. Now also the status of the returns sales order is Being Processed instead of Completed
    Kindly suggest any way to control the status of sales document or is this the ideal way( if so what's the functional purpose behind this ? ).
    Is this because the billing block is still set in the Return sales order ?

    Do you mean that only after credit memo creation or clearing of the credit memo from FI the status of return order is set to completed?
    If this is an ideal scenario, in one of our systems the status of return sales order is set to completed immediately after returns delivery creation.
    This behavior is same as that of normal sales order scenario, where the sales order status is set to completed once the delivery happens.
    Kindly suggest, if there is any customizing to control the oeverall status update for specific sales order types or based on the type of sales scenario.

  • SELECT without ORDER BY - LIFO or FIFO as result?

    Friends, I have a Loop that it inserts in a table that does not possess indice. When I to apply one SELECT, the result will be always the same? This sequencia is important for me. SELECT without ORDER BY functions as a LIFO (stack - Last In, First Out) or FIFO (list/line - First In, First Out)?
    Example:
    declare
    x number := 1;
    Loop
    exit when (x = 11);
    insert into table1 (field1) values (x);
    x: = x + 1;
    end Loop;
    When I will be to apply SELECT in the table ' table1 ' without ODER BY, which result that always will be returned?
    I) 1, 2, 3, ..., 10?
    or will be able to come in another order?
    II) 10, ..., 3, 2, 1
    thanks

    Oracle does not guarantee the rows order when ORDER BY is not specified.
    From Oracle documentation :
    order_by_clause
    Use the ORDER BY clause to order rows returned by the statement. Without an order_by_clause, no guarantee exists that the same query executed more than once will retrieve rows in the same order.

  • You Cannot select assembly order for deletion error with BAPI_SALESORDER_CAHNGE after EHP6 upgrade

    Hi All,
    We are using Z transaction to update Wbs element data to sales order line item through BAPI_SALESORDER_CHANGE. After EHP6 upgrade while updating Wbs element data to old sales orders(Created before EHP6 upgrade)  we are getting  You cannot select assembly order < order number> for deletion (V1 748) error in BAPI return table, For multiple Sales order run.
    But if  we run the same order individually it is getting processed successfully. W e are passing the same values in individual and multiple case.
    We debugged the BAPI and found one more error related to Authorization, But BAPI return table is giving different error (V1 748)message. Please help us in finding the issue.

    Hi Sujay..
    Please check.
    http://help.sap.com/saphelp_47x200/helpdata/en/b7/58c4c87e0811d2b66a0000e82d8bd1/frameset.htm

  • Query:Dispatch selective process orders from a list available

    Hi all,
    we have a requirement in PP module to dispatch only selective process orders(based on a User criteria) from within a Zprogram.To achieve the same,
    1)we have tried to do a BDC of transaction code CM25.But the line selection of the required order to be dispatched is not captured in recording.
    2)Also,we have tried using the CM40 transaction(mass dispatch) and tried to control the orders dispatch through a user exit.This seems to working fine when CM40 is run independently.but the user exit does not get triggered when CM40 is called (using BDC)from within a Zprogram.
    Can someone please throw some light/suggest any alternative for achieving the same i.e dispatch a selected process order from a list of available orders.

    Hi all,
    we have a requirement in PP module to dispatch only selective process orders(based on a User criteria) from within a Zprogram.To achieve the same,
    1)we have tried to do a BDC of transaction code CM25.But the line selection of the required order to be dispatched is not captured in recording.
    2)Also,we have tried using the CM40 transaction(mass dispatch) and tried to control the orders dispatch through a user exit.This seems to working fine when CM40 is run independently.but the user exit does not get triggered when CM40 is called (using BDC)from within a Zprogram.
    Can someone please throw some light/suggest any alternative for achieving the same i.e dispatch a selected process order from a list of available orders.

  • Want to select the Order type automatically when creating production order

    Hi Gurus,
    Please help to select the order type automatically while creting the production order..??
    Please what configuration settings are avialble to make this happen to me.
    THank you in advance.
    Naveen.

    Naveen,
    First priority is the order type defined in the Production schedulling profile(OPKP), assigned to that particular material in workscheduling view. If this is not maintained then,
    Second priority is configuration at MRP Group parameters in transaction in OPPR, this MRP Group if assingned to Material master MRP1 view.
    Third priority is Configuration at Plant level parameters in transaction OPPQ, this defines the order type when convert planned order to Production/Process order.
    Regards,
    Prasobh
    Edited by: Prasobh Karunakaran on May 28, 2009 8:49 PM..added MRP group paramters also

  • Printing the order in CRTD status

    Hi,
    Is it possible to print the order in CRTD status.
    System is not allowing by stating error as "statusCRTD is active".
    Regards
    KRISHNAN

    Hi,
    I'm using RBDAPP01 program to process the idoc of ORDERS whose status is 64. Some idoc's are successfully processed with status as 53 and some 51 but I'm also getting some idoc's with status 64.
    Could anybody can suggest how to trouble-shoot!!!
    Thanks
    Syed
    < MODERATOR: This is an old thread. Open a thread for your specific query. Message locked. >
    Edited by: Paul Meehan on Mar 22, 2010 10:20 AM

  • GR55 reports - How to include multiple selection of Orders in input screen

    Dear Experts
    We r stuck at the simple step in report writer, by which I could select multiple orders in selection screen.
    I am using report liabrary 7KOJ and have used a copy of Std report (7KOJ_001) making a Z one.
    I have comipled everything in this report with many formule to get the required output.
    Now I want to execute thsi report, but I can execute it "only" for one order in selection.
    I tried using another set ( same name) making it repeat at selection scren, but it does not work.
    Is it possible to use multiple orders as selection criterion in this report library  7KOJ?
    Pls guide me if I can use any other liabrary in which I can get
    1. Actual line item costs
    2. Actual line item Qty
    3. Target costs per line item
    4. Target Qty per line iem.
    I am using this particular liabrary becuase I want to get following coloums  in my report with an additional couple of coloumns which I had make some formulae.
    1. Actual cost ( At the time of any line item posting in an order)
    2. Variance ( target Qty valued at actual costs) - * I know that is something strange when you calculate variances, but this is how the requirement is , to calculate variance)
    Pls help. Thanks in advance, as always..
    Regards
    Dhiraj

    Please proceed as follows.  By the way you were doing the right thing just that you did not create the sets correctly.
    1. Create two value variables using transaction code GS11.  For example: OR-AUFN and OR-AUF2  and give default value for both as zero.  The table to use for both is KKBC and the field name as AUFNR
    OR-AUFN - From Order
    OR-AUF2 - To Order
    2. Create a basic set.  For example: OR-S-AUFNR in the basic set, under from value click on variable tab and enter the first variable (OR-AUFN) and then under to value, again click on variable and select the second variable (OR-AUF2) and save.
    3. Now change the report in transaction code GR32. Click on General Data Selection and enter the set you've just created above.  Make sure no other set for Order exists besides the new one and save your report.
    Alternatively, you could also create two value variables for Order Item Number using table KKBC and field POSNR as follows:
    7K-POS1 =  Item from  as description and give default value as 0.
    7K-POS2   =   Item To as description and give default value as 1000
    Next, create a basic set and specify the above two variables.  Change your report and include this set under General Data Selection.  In this scenario, leave your original order set as well.
    That should solve your problem.  Refer back for any further clarification.  By the way, everything I wrote here was tested fully and is working.
    Regards,
    Elias
    Edited by: Elias Akorli on May 5, 2010 4:03 PM
    Edited by: Elias Akorli on May 5, 2010 4:11 PM

Maybe you are looking for

  • Com.sapportals.wdf.WdfException error when i sent email

    Hi all, when i send  a mail from my clp its give error "com.sapportals.wdf.WdfException" i done all nessary things

  • Status Reports - Project Online 2013

    Hey folks, Does Project Online 2013 support Status Reports? On the PWA > Status Report page, I can not seem to find where I could click to add/ configure a status report. \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

  • Block access to WLan on an E51.

    How to block access to WLan on an E51? Is it possible to completely remove it from the menu list?

  • IPhoto 5.0.4 Grey thumbnails

    upgrade to iPhoto 5 shows 1900 grey thumbnails and 100 pictures in my library from iPhoto 4 with 2000 photos I rebuilt the iPhoto library and have 1900 grey thumbnails and 2000 photos the albums if selected bring up the grey thumbnails Anyway I can f

  • Steps in LSMW

    HI GURUS.,                        Can any body pls give the clear information on  LSMW,          if any one hav any screenshots regarding LSMW and how to migrate data in step by step process, pls help me out     my mail id is         [email protected