How to read Process Orders

Hi Experts,
  I got confusion in reading process orders for the list of material numbers which is in internal table, my functional gave the following tables and wants to me perform join..
caufv,afpo and just
what is the relation between this table,if any body give code sample i appreciate it.
Regards,
babu

Hi
I believe the status code is in table TJ02T, it should be the short text TXT04.
So u should check the real code ISTAT linked to your status: TECO, DLFL, CLSD, DLV:
SELECT * FROM CAUFV INTO TABLE T_CAUFV
                  FOR ALL ENTRIES IN T_ITAB
                      WHERE PLNBEZ = T_ITAB-MATNR.
IF SY-SUBRC = 0.
  SELECT * FROM AFPO INTO TABLE T_AFPO
        FOR ALL ENTRIES IN T_CAUFV
              WHERE AUFNR = T_CAUFV-AUFNR.
  SELECT * FROM JEST INTO TABLE T_JEST
       FOR ALL ENTRIES IN T_CAUFV
              WHERE OBJNR = T_CAUFV-OBJNR.
ENDIF.
SELECT * FROM TJ02T WHERE SPRAS = SY-LANGU
                      AND ( TXT04 = 'TECO' OR
                            TXT04 = 'DLFL' OR
                            TXT04 = 'CLSD' OR
                            TXT04 = 'DLV' ). 
  R_STAT(3)  = 'IEQ'.
  R_STAT-LOW = TJ02T-ISTAT.
  APPEND R_STAT.
ENDSELECT.
LOOP AT T_CAUFV.
  LOOP AT T_JEST WHERE OBJNR = T_CAUFV-OBJNR
                   AND STAT  IN R_STAT.
    EXIT.
  ENDLOOP.
  IF SY-SUBRC = 0.
    DELETE T_AUFNR.
    DELETE T_JEST WHERE OBJNR = T_CAUFV-OBJNR.
    DELETE T_AFPO WHERE AUFNR = T_CAUFV-AUFNR.
  ENDIF.
ENDLOOP.
Max

Similar Messages

  • How to release process order even if stock not available...????

    Hi All,
    Kindly tell me how to release process order even if stock not available...????
    Its urgent.
    Thanks in advance,
    Regards
    Anish Verma

    Hi Daniele,
    Need your help to clear COGI Error.
    Actually some how for one process order, two confirmation happened.
    Scene 1 : When first time did confirmation then automatically without any error display came process order saved but all goods movement failed.
    Scene 2 : Then for the same without checking COGI error, did second confirmation and then it worked perfectly. Process order got saved without any fail.
    Scene 3: When doing TECO its showing Post processing Error.
    So checked by COOISPI and found two confiramtion done for one process order.
    Now when doing COGI the FERT movement is not happening. Its showing deficit of stock. But smae stock is available in MMBE.
    Pls help me in resolving the same.
    If any query pls contact me. Its urgent
    Regards
    Anish Vema
    07773009107
    [email protected]

  • How to see Process Order settlement details?

    Dear Experts,
    How do I view the accounting/controlling details after a Process Order Settlemnet is carried out?
    In OBYC, what is the posting transaction for Order Settlement through which I can see the valuation class & G/L account assigned?

    Hi,
    IF you wish to check the Accouting documents or settlement documents , you can check throw CO88 select Previous Settlement to check the detaiils or else you can go to KOB1 Order line item display for checking all the line items.
    in KOB1 T.code you can check all the documents including Material and other by double clicking the items.
    Hope this will Help you ..
    Thanks
    Goutam

  • How to read Sales order Item Text of item node?

    Hi Sap Guru's,
    I have urgent requirement, i want to read Sales order item text of item node.
    can anybody give detail code.
    Thanks in Advance,
    Venkat

    hi venkat,
    take a look at this code
    data:
      git_line type standard table of tline.
    data:
      gwa_head type thead,
      gwa_line type tline.
    data:
      v_first type c.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = '0002'
        language                      = sy-langu
        name                          = '1000000122000010'
        object                        = 'VBBP'
      IMPORTING
        HEADER                        = gwa_head
      tables
        lines                         = git_line
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8.
    loop at git_line into gwa_line.
      at first.
        move 'X' to v_first.
      endat.
      if v_first eq 'X'.
        write: / gwa_line-tdline+10.
        clear v_first.
      else.
        write: / gwa_line-tdline.
      endif.
    endloop.

  • Function module to read process order classification

    Hi Experts,
         I appreciate if any experts come with a function module where we can pass process order number and get its classification details.
    Thanks in advance
    Regards
    Babu

    Hi
    Check the following BAPI's:
    BAPI_OBJCL_GETDETAIL
    BAPI_OBJCL_CHANGE
    or use the fun module:
    CLAF_CLASSIFICATION_OF_OBJECTS.
    Reward points if useful
    Regards
    Anji

  • How to delete process order

    Hi Guru's,
    I have created a processorder in T-code COR1..now i want to cancel the confirmed process order..plz tell me the process.
    Thanks & regards
    cherukuri

    Cherukuri,
    Deleting a process order has multiple steps... I would suggest you to just set "TECO" and "CLSD" status in the change mode of the order. This would prevent any further processing of the order in terms of confirmation, goods movment and costs. From menu bar
    You need to follow the steps below for archiving and deleting process order,
    1. Use program "PRARCHP1" to set deletion flag (Can be reset). The prerequiste i would suggest is to create a selection profile to select orders with status "CLSD"
    2. Use program "PRARCHP1" to set deletion indicator (Cannot be revoked)
    3. Use program "PRARCHA1" to archive (Already basis should have setup the database link for storing)
    4. use program "PRARCHD1" to delete and remove the data from the R/3 system.
    Regards,
    Prasobh

  • Trying to preorder iPhone 4s. how long at "processing order" page?

    How long should my system be sitting at the Processing page? It has been more than a half hour now.

    Update: I called the Apple Store. I had to call several times to get through. Then, I got routed through Applecare (oddly) but soon spoke to a rep, who contacted Sales support for me. The Sales support rep checked my account, then called AT&T and got an AT&T rep to confirm that my order had gone through. Everyone was really nice. All in all, it took about 1 1/2 to 2 hours to order this phone.

  • How to read sales order header text...

    hi,
    For any sales order, at the header level there will be multiple texts. I want to read one of them named 'Letter of credit numbr'. How can I do that in my program. I have the sales order number with me.
    thks

    First of all, use FM READ_TEXT.
    But for that, must find (in tcode SE75) wich is the object and text ID. Object is, VBBK, ID you can find (I don't have SAP system here now).
    You must use:
    name = sales order number
    language = 'E'?
    object = 'VBBK'
    ID = found in SE75 tcode.
    Regards,
    Valter Oliveira.

  • How to read Production Order Long Text data in ABAP program

    Hi friends,
      I have the issue in reading the ' Long Text '  tab view data of production order
    in CO03 transaction.Please can some body help me out to get this in ABAP program.
    Regards,
    Rajesh Akarte

    ok goto the long text, double click it, or use the small pencil, so that you proceed to the text editor.
    Once you are there, use the menu: goto->head
    a small popup will come up, stating the information you need.
    what you need is OBJECT, ID, Language and NAME.
    with those information you can feed the FM READ_TEXT.
    and woooohooo there you go

  • Qosmio X300-11S - How long for processing order?

    Hello,
    I just purchased a Qosmio X300-11S and 3 year warranty.
    I got an e-mail saying "Thank you for purchasing from Toshiba, your order has been received and is now being processed." Does this mean my product is being still being looked at or is being sent? WIll I be notified by e-mail again saying the estimated time of delivery or is there another way to find this out?
    Thanks for input on this query in advanced.

    Hi,
    I guess its in process which means its not already sent and you should get a confirmation when the machine will be shipped. Since the machine is pretty new, I could take some time till the shipment of the notebook but not longer then some weeks. ;)
    Dont worry, the machine will arrive. :)
    Greetings

  • How to read service order change document data

    Hi Experts,plz help me,my requirement is to read the service order change document data,for that one i need to read from cdhdr and cdpos tables,so what i need to do.in input parameters for cdhdr table in place of ibjectclass and objectid what i need to pass.plz help me.

    Same for CDHDR and CDPOS.
    OBJECTCLAS = 'ORDER'
    OBJECTID = combination of client(AUFK-MANDT) + Order category(AUFK-AUTYP) + Order number (AUFK-AUFNR)
    for example
    OBJECTCLAS = 'ORDER'
    OBJECTID = '10030004001108788'
    Chaiphon

  • FEFO logic in batch determination for process order release

    Batch determination for a particular material in a process order was following FIFO logic . We needed to change it to FEFO hence we made the necessory changes in COB1 how ever the process order relase is still taking the batch whihs is not the first expiry batch
    Kindly help in batch determination with FEFO for process order release.

    Rk
    The blw explation for inventory side, i don't have idea for prod order side
    If Batch Management is active for the materials then use following process;
    First create characteristic in CT04 for Batch Creation Date, under "Addnl data", enter Table Name MCH1 or MCHA (As per Batch Class 022 or 023) and Field ERSDA and save it.
    Assign this characteristics in CL02 in your Batch Class.
    CU70 - Create a Sort Rule and specify the Characteristic of Batch Creation Date and activate "Ascending" indicator.
    Now assign the Sort Rule in MBC1 and keep Selection criteria as "O" for the Strategy type.
    Now do batch determination in MIGO.

  • Process Order against Sales order

    Hi guys
    How to create Process order against Sales order...
    In Disc mfg by using co08 we create Production order against sales order like wise i want to create Process order..
    Regards,
    Srihari.

    Hi
    I know creation of of Process order with reference to Planned order and assigning Sales order in Md11
    I am looking for Create process order wrt sales order like Co08..
    Regards,
    srihari

  • Cancel process order

    how to cancel process order confirmed in z program
    i mean details for cqancellation of process order phase wise and operation wise like tables, bapi

    Get the confirmation number (RUECK) and confirmation counter (RMZHL) by plugging in order number in AUNFR in the table AFRU. Use the following BAPI to cancel confirmation.
    CALL FUNCTION 'BAPI_PRODORDCONF_CANCEL' "Cancel production order confirmation
    EXPORTING
      confirmation =              " bapi_pp_conf_key-conf_no  Confirmation
      confirmationcounter =       " bapi_pp_conf_key-conf_cnt  Confirmation Counter
      postg_date =                " bapi_pp_confirm-postg_date  Posting Date
      conf_text =                 " bapi_pp_confirm-conf_text  Confirmation Text
    IMPORTING
      return =                    " bapiret1      Return Parameter
      locked =                    " bapi_coru_param-locked  Indicator: Order is locked
      created_conf_no =           " bapi_pp_conf_key-conf_no  Confirmation of Cancellation Record
      created_conf_count =        " bapi_pp_conf_key-conf_cnt  Confirmation Counter for Cancellation Record
    BAPI format courtesy:
    http://www.se80.co.uk/sapfms/b/bapi/bapi_prodordconf_cancel.htm
    Edited by: Jeevan Sagar on Feb 9, 2012 12:03 PM

  • How to read the Variance Analysis report S_ALR_87013139,  Pdt cost by Order

    Hi,
    Could someone tell me how to read the variance analysis report, S_ALR_87013139 - Cumulative for product cost by order. The report has the following fields, Target (Debits),     Actual (Debits),     Scrap,     Var. Without Scrap,     Work in Process(WIP),     Control Costs.
    I am looking to find how the numbers add up.
    Thanks for your help.
    Ram
    Message was edited by:
            Ram R

    Thanks Sridhar,
    When I analyse the report S_ALR_87013139 - Cumulative , for a product for a period (with no scrap), I get the following
    Target (Deb) -   46,855.55
    Act (Deb) - 58,315.87
    Scrap - 0.00
    Var W/O- Scrap -  11,269
    WIP- 0
    Control Cost - 0
    Here Actual - Target is not equal to Variance. What could be the issue?
    Could you please tell me how SAP would update this report  with target & actual costs with respect to open production orders, carried over from previous periods.
    Thanks,
    Ram

Maybe you are looking for

  • Services not transferred to CO

    Hi All, I'm an FI/CO consultant working in an organisation using IS-H and am learning on the job so apologies if this is an obvious question. at month end we run transaction NCo1 in order to transfer the services which have been performed on cases ov

  • I recently purchased iTunes Match. How do I delete music previously downloaded on iPad? It is just using space on my iPad now.

    When I check my storage, I notice there are 5gb of music being stored on my iPad. With iTunes Match this should make storage of my music on iPad no problem. I would like to remove the music that was previously downloaded on my iPad, however, there is

  • FCP Problem HELP!

    Hi! I have a problem with my Final Cut Pro. I have FCP 5.1.1 and Quicktime 7.1.1. Everytime I tried to export using quicktime conversion, FCP just quits unexpectedly. I tried to reinstalled it but the problem still persist. On the other hand, exporti

  • HP Elite 7100 freezes randomly

    Mostly brand new (about 3 months old) HP Elite 7100 mT (i5 750, 4GB RAM, ATI 5450) freezes randomly. Tried reinstalling OS with clean Windows and fresh drivers of HP website and/or INTEL/AMD accordingly, still happens. When it freezes, the windows lo

  • Urgent issue, Suddenly no data is extracted Once I create new infopack

    Hi, I have an urgent issue and need help. We were loading data after activating business content. Every thing worked fine and the delta load was also smooth. However, in order to start everything afresh, I deleted all the info package, deleted the "I