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

Similar Messages

  • 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

  • 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

  • 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.

  • Change the order of columns in a report

    hi all.
    i can't change the order of columns in a report not just by altering the select statement. where can i change it?
    thanks.

    hi master
    sir i use 6i report i see full report but i culd not found
    report region and report attributes
    sir please give me step or idea or tree where report region and report attrinutes"
    thanking you
    aamir

  • Link between Purchase orders created and ORCM(Recommendation report)

    Hi,
    In purchase orders created from MRP recommendation report, we want to change the price, warehouse and some UDF's .For this functionality we are stopping the B1 functionality and adding the Purchase orders through our coding,In this scenario once the purchase order is added to B1 the same record should not be visible in MRP recommendation for creating the Purchase order again.
    we are not finding the link how can we update the ORCM table from were MRP recommendation is picking data to change the status field to "D" so that it will be not visible for creating purchase order again.
    Can any one please help in this issue.
    Thanks in Advance.
    Thanks & Regards,
    OmPrakash.
    Edited by: Om Prakash Akarapu on Dec 26, 2008 6:05 AM

    Hi
    in <b>EKKN</b> table you have sales order and Item fields (VBELN and POSNR)
    using these fields search for the deliveries in LIPS table
    EKKN-VBELN = LIPS-VGBEL and
    EKKN-POSNR = LIPS-VGPOS
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • AT LINE SELECTION AN AT USER-COMMAND IN ONE REPORT

    hiiii friends.....
    hw  can i go for both at line selection an at user comond in one report....
    ie if double click on basic list it should shw sm output an when i choose menu optoin it should perform sm other output......

    You need to crate a PF-Status and in the PF-staus you need to include some essentials buttons and the button for your list on the USER-COMMAND.
    Say,
    BACK
    EXIT
    CANC
    PICK ... should be assigned to F2 .. to work with LINE-SELECTION.
    NEW_LIST ... for USER-COMMAND
    In your report:
    START-OF-SELECTION.
      SET PF-STATUS 'Z_OWN'.
    AT LINE-SELECTION.
      WRITE : 'I AM LINE SELECTION'.
    AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'NEW_LIST'.
           WRITE / 'I AM CALLED FROM USER COMMAND'.
      ENDCASE.
    Regards,
    Naimesh Patel

  • Transfer Posting problem with "sales order stock type" status

    Hello, i have this problem, i spend 2 days looking in the forum, but
    nothing, the question is:
    The SD users sell an item, and the item get the status of "sales order
    stock type" in the MMBE, but at the same time, the MM user made a
    trasfer posting in two steps, he take out material with transaction
    MIGO, mvt 351, to another plant, but the materail was already
    compromised with SD; now he cant sell the items, because he dont
    realize that the material was in sales order stock type, and he already
    transfer it to another plant. how can i block this? if a material in
    MMBE is with "sales order stock type" status, he CANT transfer it with
    351 mvt type, what config i have to make?  thanks a lot!!!!
    now the quantity of the unrestict use
    stock is lower than the sales order, we dont want to have this issue,
    thanks again
    Edited by: Alex Arti on Aug 6, 2008 7:14 PM
    Edited by: Alex Arti on Aug 6, 2008 7:16 PM

    Hi!
    Have you recently upgraded to EHP4? In this case, please, check the note 1441195. This note should solve the issue that you are reporting.
    I hope this helps,
    Esther.

  • Production Order Operations System Status

    Hello Friends,
    I want to include Production order operations status in customized report. Can you pls suggest me how to fetch Operations status since I am unable to find the same from any of the Production Order Operation table (AFVC, AFRU, AFVU, AFRH etc) Also JEST, TJ02 tables provide Prod  Order header level status. I want to fetch Operation level status.
    Hope to have your valuable inputs for the same.
    Thanks & Regards,
    Tejas

    Dear Mr Brahmankar & Mr Vivek,
    Thanks for your answers.
    I am working with the ways you suggested.
    In case any issue will ask to you.
    I really appreciate your timely help.
    Regards,
    Tejas

  • 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!

  • Selecting sales order lines by code

    Hi ABAP experts,
    We run into large sales order lines that has different item categories.  There are billing plan lines included in the sales order.
    Say we have 2000 lines in sales order- 30th.210,520,..will be billing plan items. The busines needs an ability for SAP to select the billing plan lines on push of a button.
    If we are able to select the records based out of xvbap-pstyv (itemcategory) , how can we code to select those sales order lines? I am trying to achieve the select sales order line through a coding effort
    Alternatively any other plan?
    Thank you for your time
    Kris
    Edited by: chidam33 on Oct 17, 2011 9:32 PM
    Edited by: chidam33 on Oct 17, 2011 9:32 PM

    Hello,
    "The busines needs an ability for SAP to select the billing plan lines on push of a button." - are you using any report?
    Please check VBKD table where items are listed with billing plan number (FPLNR), you can then check FPLA table
    Thanks

  • 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.

  • Count of Service Orders issue in the Bex Report

    Hi Experts,
    I have a report displaying the Count of Service Orders. The count of service orders I have brought using replacement path variable.
    The count is getting displayed correctly. When I have the service order in a single record.
    The moment I drag and drop the material from the Free Characteristic pane. The count of Servie order increases because the same service order is repeated for Material A ( in the First Line) and Material B ( in the Second Line ).
    And my report doesn't have any keyfigure to built an Exception Aggregate.
    Can anyone please tell me how do I make my Count to read only the unique Service orders.
    Thanks

    Hi Shanthi Bhaskar,
    Thanks for your link.
    I have already referred to this link and created the count of Service orders. But it is not uniquely identifys the service order numbers.
    Irrespective how many number of time the same service order gets repeated in the report it should only give me a count as 1 for other service order as 2.
    Hope its clear.
    Thanks

  • How to add a specific order type into any particular report

    Hi All,
    How to add a specific document type(order type) into any particular report in order to review OTD performance.
    I need to add one specific order type to existing reports which will help to check the performance of the delivery type for that particular order type to the users.
    Thanks,
    Raj

    Hi Rajesh,
    thanks for the reply when i tried as the way you said.. but the system is asking more details like varient. so if you can clearly specify the process for order type (VOV8-- table TVAK) so it will helpful for me.
    Thanks
    Raj

Maybe you are looking for

  • TS3212 I am getting a error 7 when trying to install Itunes stating that there is a missing .dll file

    I am getting an itunes.exe system error stating that it cannot start because the MSVCR80.dll is missing.  Could you help please

  • Duplicate Invoices in AP

    Hello Gurus, Any help on the following question would be most appreciated. Points available. How does SAP prevent an AP clerk from entering a duplicate invoice? Is there a specific setting that needs to be turned on in AP that prevents clerks from en

  • Webutil and 10g  Patch 3 Error

    Hi All, We have applied the patch 3 on the IAS (10g) in Solaris and everything works fine except for webutil . With webutil forms , we get the below error message network: Connecting http://comp.dom.com/forms/frmservlet?config=JAVA1.6&acceptLanguage=

  • NOKIA LUMIA 520 ACTUAL PIXEL

     hi i'm wondering if what is the total actual pixel of nokia lumia 520, because in all phone specs of lumia 520 it said that it has a 5 megapixel, so i'm wondering why my lumia 520 is only getting a 3.7 actual megapixel and my all pictures resolution

  • About «networking» possibilities and limitations ...

    Hi, I experienced 2 major network crash of my little home network: iMac G5 (OS 10.4.11) + iMac Intel (10.6.2) + Airport Extreme Base Station. I don't know what I did exactly either times other than that I was experiencing with the network. I was eith