Alternative for fetching order number and batch

Hi All,
I am currently using CAUFV table to fetch order numbers based on material number and plant.
After that i am filtering these order numbers and fetching the batch  from AFPO table using the item number and the order
numbers obtained from CAUFV table.
Is there a table using which i can get the order number and batch based on the  material number and plant.
Regards,
Arjun

Use viwe IOAFPO and select it

Similar Messages

  • Production Order Number and Batch Number same during order creation

    Hi All,
    I wanted to keep the Production Order number and Batch Number same during creation.
    How I can do that during creation of order only. So during creation same number to be get assigned automatically in the background.
    One thing I can maintain ; the same number range for both.
    But how to activate other functionality.
    Regards,
    Amit

    Hi SAP2511,
    For Production order-
    1.You can define a Order type  and  Mantain the number range same as batch number range (in  OPJH transction)
    For Batch
    1.Activate Automatic internal batch assignment - (OMCZ)
    2.Number range for batch - for object - BATCH_CLT - (OMAD)
    For batch creation at time of Order creation -
    You can create Automatic batch at the time of order creation or order release
    1 Create Production scheduler Profile(OPKP) and assign in Work scheduling view of material master for which you want to create batch at the time of order creation or release.(Select automatic batch creation at the time of release or creation in OPKP)
    Things to be taken care -
    1 . What if you set deleation flag for order?
    Regards
    Girish
    Edited by: girish khobare on Aug 20, 2010 9:31 AM

  • No goods receipt possible for purchase order Number and Item number.

    Hello experts,
    When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
    No goods receipt possible for purchase order <PO number> <line item number>.
    But the GR is getting created manually using Transaction MIGO for the same PO number.
    I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
    In my case 
    1.deletion indicator is not set for the Purchase order line items
    2.And Movement type is 101
    3.And gm_code is 01.
    Could anyone please suggest me, what else could be the reason for this error?

    Here is the code what i have written.
      f_gmvt_header-pstng_date = sy-datum.
      f_gmvt_header-doc_date   = sy-datum.
      f_gmvt_header-pr_uname   = sy-uname.
      f_gmvt_header-ref_doc_no = p_ebeln.
      f_goodsmvt_code_tmp        = '01'.
    * Looping the PO details.
      CLEAR: gf_item,f_gmvt_item.
      LOOP AT gt_item INTO gf_item.
    * fill the bapi item structure details
        f_gmvt_item-material   = gf_item-material.
        f_gmvt_item-plant      = gf_sbms-werks.
        f_gmvt_item-stge_loc   = '0001'.
        f_gmvt_item-move_type  = '101'.
        f_gmvt_item-po_number  = p_ebeln.
        f_gmvt_item-po_item    = gf_item-po_item.
        f_gmvt_item-entry_qnt  = gf_item-quantity.
        f_gmvt_item-entry_uom  = 'PC'.
        f_gmvt_item-entry_uom_iso = 'PCE'.
        f_gmvt_item-po_pr_qnt = gf_item-quantity.
        f_gmvt_item-orderpr_un = 'PC'.
        f_gmvt_item-orderpr_un_iso = 'PCE'.
        f_gmvt_item-no_more_gr = 'X'.
        f_gmvt_item-ref_doc    = p_ebeln.
        f_gmvt_item-prod_date  = sy-datum.
        f_gmvt_item-mvt_ind    = 'B'.
        f_gmvt_item-move_reas  = '101'.
        f_gmvt_item-vendor      = gf_lfm1-lifnr.
        APPEND f_gmvt_item TO t_gmvt_item.
        CLEAR f_gmvt_item.
      ENDLOOP.
    * cALL THE bapi fm FOR gr POSTING
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = f_gmvt_header
          goodsmvt_code                 = f_goodsmvt_code_tmp
    *     TESTRUN                       = ' '
    *     GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              = f_gmvt_headret
    *     MATERIALDOCUMENT              =
    *     MATDOCUMENTYEAR               =
        TABLES
          goodsmvt_item                 = t_gmvt_item
    *     GOODSMVT_SERIALNUMBER         =
          return                        = t_return
    *     GOODSMVT_SERV_PART_DATA       =
    *     EXTENSIONIN                   =
      IF sy-subrc = 0.
    * For commit the changes use BAPI_TRANSACTION_COMMIT FM.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    *      MOVE: f_GMVT_HEADRET-MAT_DOC   TO WA_DET-MBLNR,
    *            f_GMVT_HEADRET-DOC_YEAR  TO WA_DET-MJAHR,
    *            f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
    *      APPEND WA_DET TO IT_DET.
    *      CLEAR WA_DET.
      ENDIF.

  • Enhancement for Production Order Release and Batch Fixing.

    Hi Experts,
    I have assigned a enhancement for production order.The user exit is also given in the req as PPCO0001 through which i have to call a Z-Program for Batch fixing using Trans CO01 and release the order before saving once it is assigned to components.
    Now my probs is where to start working for the enhancement -is it possible to use any BAPI instead of Batch (BDC) or I can use any BADI instead User Exit.
    So if you guys have similar scenario worked on it or have similar example approach to solve it.Please do help.I will reward for all helpful answers.

    I figured out thr friends !
    Thanks,
    SriRam

  • Map BATCH number corresponding to ORDER number and Material number .

    hi all,
    i want to map the BATCH number corresponding to Material Number .
    i searched tables MCHA which has two fields Material number and Batch number but it doenot have Order number.
    so how can i get Batch number as in table AFPO/AFKO i have all these three fields batch/material/order numbers.
    but the batch number column is blank for all .
    and in case of table MCHA , these is assigned batch number to every Material number .
    also i want to ask , either the Material number in both tables (MCHA AND AFPO) is same or different as i didnot found any relation to map these three field by other fields too.
    so please suggest me the Possible way to resolve this .....
    sunny

    hi dsk,
    thanks for your earliar reply,
    actually iam working on sapscript there i want to add batch number ,but i am not able to clear my doubt from where i get this.
    how can i map batch number with corresponding to PO num ber, '
    in the report i used structure vbplp with field charg"(batch num).
    also i want to know from which table i can get customer part number and Po number .
    how can i add batch num ,..
    from which table or with which field i can compare itr to get .
    sunny

  • MIGO-sales order number and line item not validated for 501E mvt in MIGO.

    Hi All,
    In MIGO i am trying to post for 501E(specisl stock=order on hand) movement type, here i am entering the material and in the where TAb even if I enter wrong sales order number or wrong sales order line item number. the system allows to post .
    its not validating the material against the sales order number and line item number that is entered to check whether that material really exists in that particular sales order or not.
    is there a way to fix this?
    Thanks
    Mahendra

    hi
    i dont think vvalidation is possibel
    as the system dont know whaich material is assigned to which SO
    as we r takeing the stock without PO
    if u want to validate then system can validate the quantity that is also with use of some user exit
    correct me if i am wrong

  • Fetch Sales order number and PO number from ship to party and sold to party

    HI,
    I need to get Sales order number and PO number
    from ship to party and sold to party.
    I have only ______sold to party and ship to party and req del date_______ in selection screen as mandatory
    Please let me know
    Sreekanth

    Hi,
    You can do this:-
    SELECT VBELN FROM LIKP
    INTO TABLE T_DELIVERIES
    WHERE KUNNR = SHIP TO PARTY
    AND     KUNAG = SOLD TO PARTY
    AND LFDAT      = DEL DATE.
    You will get a table containing the list of deliveries.
    Use VBFA to get the sales orders from deliveries.
    SELECT VBELV FROM VBFA
    INTO TABLE T_SALESORDERS
    WHERE VBTYP_N = 'J'
    AND     VBELN  = T_DELIVERIES-VBELN.
    T_SALESORDERS WILL give you list of sales orders.
    From Sales Orders you can get Purchase orders through EKKN Table.
    Using EKKN pass T_SALESORDERS-VBELN and get corresponding EBELN.
    Regards,
    SUbhashini

  • How to look for sales order number if I know outbound delivery number?

    How to look for sales order number if I know outbound delivery number?

    Hi ,
        If you want to see the Sales order Number from Outbound delivery or invoice,go to their respective T-codes,say for example,
    for delivery,Goto Tcode: VL02N / VL03N.There you will find Document Flow Icon,click on that,or press F7.
    You will get a window,there you can see the Sales order Number before your outbound delivery Number
    With Thanks and Regards,
    Priya

  • My CS 6 is asking for a serial number and I already entered it twice. Is it due to me installing Adobe CC?

    First off, my computer had to be wiped clean back in early January. All my programs was gone and that included my CS6 program. So I re-installed them. Then one day, I see this Adobe update and it had the Adobe Creative Cloud App. I think I did something stupid and I wanted to tryout not only the Lightroom version, but Photoshop CC as well. My CS6 already had a Photoshop on it. I thought it would be a separated (you know, a separated program on one side and the other one on one side) and not interfere with my CS6 program. Now it's asking for a serial number and whenever I input my serial number (oh by the way, I got CS6 through my school by online; so I got a non disc version) it saying my serial number experied. So here's my questions:
    1. If I remove the Adobe CC app off my computer, would the cc versions of my CS6 programs go away?
    2. How many time can you installed the non disc version of CS6?
    3. Cont. from the first question; If I re install CS6 and uninstalled the CC app would that help?
    I know I sound almost computer illiterate, but I need help with this issues. I am college student, and I can't afford one CS6 program, rather alone the whole CS6 and I really need that suite in order to complete my assignments while at home. What do I do?

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Table containeing both the purchase order number and the sales order number

    hi all!!!
    what is table that contains both the purchase order number and sales order number corresponding to that purchase order number.
    Moderator message: please search before posting.
    Edited by: Thomas Zloch on Jan 31, 2012

    Hi Sunny,
    Yes they are same. You will be creating a purchase order in ME21n. After creating purchase order you will shown a number for that order.
    Reward points if useful.
    Thanks,
    Swamy Kunche

  • Assign production order number to batch number automatically

    Hi All,
    I have been trying to assign production order number to batch number when clicked on create icon in t-code CO02, and successfully assigned Production order number to batch number through EXIT_SAPLV01Z_001
    Question:
    Now i want to assign same production order number to batch number automatically... is it possible"
    If yes, provide me the exit or badi.
    Best Regards,
    Krishna K

    Hi,
    Try to use any enhancement point in below mentioned  FORM.
    In Program : SAPLCOKO1
    Include : LCOKO1F3J
    Inside below FORM.
    FORM header_update.
      DATA: flg_q_upd.
      DATA: quan_old LIKE caufvd-gamng.
    ENHANCEMENT-POINT header_update_01 SPOTS es_saplcoko1 STATIC.
    ENHANCEMENT-POINT HEADER_UPDATE_05 SPOTS ES_SAPLCOKO1 .
    BR,
    Vijay

  • Merging of Prodn Order number and operation number into the unloading point

    Hi,
    I am creating the production order using the Tcodes Co01 or co10 and my requirement is that after creating the production number and then when I open that one in the change mode using co02 Tcode the unloading point which is present in the Goods Receipt tab should come as a concatenation of order number and operation number .
    Thanks for the help in advance.
    Regards,
    Venkat.

    Hello Rachit,
    The relation is as follows
    AFKO-AUFPL (Routing number is Order header)
    Use this routing number to get operations from AFVC
    AFVC-VORNR gives operation number
    AFVC-LTXA1 gives operation description
    For sub-operations, VORNR will be sub-operation number, and AFVC-SUMNR for this sub-operation corresponds to the respective superior operation(refers to AFVC-APLZL).
    AFVC-APLZL is a unique number for each operation.
    Hope this helps. You can check with some existing/new orders as well.
    let me know if you need anything about split operations as well.
    Best Regards,
    Subhakanth

  • Is the purchase order number and purchase document numer both are same

    is the purchase order number and purchase document numer both are same or different?
    thanks.

    Hi Sunny,
    Yes they are same. You will be creating a purchase order in ME21n. After creating purchase order you will shown a number for that order.
    Reward points if useful.
    Thanks,
    Swamy Kunche

  • XL Reporter - Prompting for Production Order Number - How to?

    I have watched the FlashBook's for creating reprots, and following the directions. When I go to create a new Paramater, the Document Number is not an available Dimension.
    Can anyone point me in the right direction in setting up an XL Reporter report that prompts for Production Order number / Document ID? How do you create prompts for record ID's?
    Thanks.
    Mike
    Edited by: Mike White on Jun 16, 2008 11:11 PM

    Thank you for the help. This gets me closer then I was before.
    To test, I am list listing the Production Order Document Number and the Due Date. Looking to list only the Production Order and Due Date from a prompted Production Order.
    I tried both Cell Expansion and Row Expansion using the parameter you suggested. Cell Expansion returns all documents, but with a document number of 0. Row expansion gives me an error.
    I have captured all the screen shots and posted them to the web. If you wouldnt mind taking a quick look. I am sure something I am doing is off, but feel I am close with your help.
    http://www.level8systems.com/xlerror.jpg
    Thank you.
    Mike

  • I have order number and order date with me want to down load adobe creative cloud can you advise how to go about it

    i have order number and order date with me want to down load abode creative cloud on my desktop pls can you advise me how to go about it pls

    Creative Cloud Help / Creative Cloud for desktop
    https://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Creative Cloud Help / Sign out, Sign in | Creative Cloud desktop app
    http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Creative Cloud Help / Install, update, or uninstall apps
    http://helpx.adobe.com/creative-cloud/help/install-apps.html
    Installing Creative Cloud Apps
    http://tv.adobe.com/watch/cs6-creative-cloud-feature-tour-for-video/installing-desktop-app s-from-creative-cloud/

Maybe you are looking for

  • Photo orientation question

    I have shown photo slide shows on my television with success -- with one exception. My portrait (vertical) photos are all in landscape (horizontal) mode on my Ipod and television. I loaded photos onto Ipod from Photoshop Elements 3. They are correct

  • Reg: Issues in Tcode: MIGO

    Hi,    Can anyone suggest me tht, as per client requirement, they need T.code :MIGO had to be Customised and they need range between G/L number(eg: From:50000076, To: 50000094), we can able to customize tht t.code or any other transaction code to do

  • Conditional hyperlinks to cells in Numbers spreadsheet

    I'm working on a project that consists of multiple spreadsheets for Excel, LibreOffice Calc and Numbers. The ones for Calc and Numbers are based on the Excel one because I have the biggest experience in it. So one of the main functions that I use is

  • WRT54G3G – "Router not found" when trying to configure broadband cable network

    Hi, I have a WRT54G3G, v.1.1 router. I have used it successfully for ~3 years with mobile Internet (Huawei E800 card). Recently I installed broadband cable network in my place, tried to configure WRT54G3G to work with it and failed- I tried manual co

  • Need to make # of periods and frequency required for certain prod category

    We have a requirement to make the # of periods and frequency fields required for a certain product category. I know I need to use a field validation for this but my issue is that the product category and product name fields are non-editable. I tried