Find purchase order of a material batch added in a delivery for a report re

Hi,
I create purchase orders in ME21N and do the inbound delivery in VL31N referring the purchase order. Sales order entry is done in VA01 and once goods is in-house allocation is done in J3AB. Outbound delivery is created in VL01N.
For a report requirement I need to find the purchase order of the outbound delivery material batches.
We donu2019t maintain the purchase order number any ware in the material batch. Please advice me on how to find the purchase order of a material batch added in a delivery.
Thanks,
Sam

use Mb51, enter material number and batch number and movement type 101, then execute.
You get the receipt, go into the detail and you will see the PO number
Technically spoken, material movements are stored in MKPF and MSEG table
Edited by: Jürgen L. on Apr 26, 2011 8:24 PM

Similar Messages

  • Excise Invoice Number through Purchase Order no. or Material Document no.

    Hi,
    Is there any report through which I can find Excise Invoice Number (J1IEX) with the help of either Purchase Order no. or Material Document no.?
    Can anyone provide some idea in this regard?
    Thanks in advance

    Using transaction code J1I7,You canfind excise invoice no in report,with purchase order no. or Material document no. as inputs.

  • Last Purchase order of a material

    Hi All,
    I have a requirement to retrieve the last/latest purchase order for a given material/plant combination. Currently I am using the following logic. Here is the pseudo code I am using.
    Select EKPO records where MATNR = given material
                                                  WERKS = given material
                                                  BSTYP  = 'F'
                                                  LOEKZ  = space.
    select EKKO records where EKKO-EBELN = EKPO-EBELN.( for all EKPO records of unique EBELN)
    sort EKKO record by AEDAT DESCENDING.
    read table EKKO index 1.   "This is the record I need.
    This logic seems to be not good. As I am reading all the purchase orders of the material for entire period which will cause more database hit and memory issue. Say if we have maintained the system for 5 years and I am reading EKPO table for a material there will be more purchase orders for this material.
    Can you please suggest if there is a better logic to handle this?
    Regards,
    Srinivas.

    My approach will be to first speak with functional consultant to find what will be the most probable period in which you will find last PO for given material/plant.
    For example you might get an answer that you will find last PO of given/material within last week (or last month) for most of the combination.
    Once you get the period in which you will find the data, you can then construct logic as below
    date : r_date type range of ekko-aedat .
    fill range with last period (last week for example)
    DO .
    select field
      from ekko inner join ekpo on ekko~ebeln = ekpo~ebeln
    where ekko~BSTYP = 'F'
         and ekko~LOEKZ = space.
         and ekko~aedat in r_date
       and ekpo~werk = given plant
       and ekpo~matnr = given material
    if sy-subrc = 0 .
    * you got your record , sort and pick the right one
    * break the loop.
    else.
    **Check for exceptions
    * fill r_date with last to last period and so on...
    endif.
    ENDDO.
    Now about the exceptions, there might be some NOT SO ACTIVE material/plant for which last PO was create 3 years back (for argument sake). Again here you have to ask you functional consultant if he/she really want to see that old record or NOT SO ACTIVE material. If his/her answer is yes then he/she have to live with long execution time. Otherwise logic will be not to look beyond the time limit given by you functional consultant. For example, if you do not find PO in last 1 year then stop looking.
    Edited by: Pawan Kesari on Dec 11, 2009 10:35 PM
    Edited by: Pawan Kesari on Dec 11, 2009 10:37 PM

  • Purchase order Field LIke Material , Non editable by using Trax code Me22n

    Guru
    How to make Purchase order Field LIke Material , Non editable by using Trax code Me22n
    Thanks

    Hi
    Check this in SPRO- SAP IMG- Material Management - Purchasing- Purchase order- Define screen lay out at document level
    In this select the particular field selection key and change the material field to display.
    Hope it will do
    Regards,
    Raman

  • LSMW - Purchase Order Text in Material Master

    All MM Experts,
    I tired to create simple Batch Input Recording but the screen does not get recorded for Purchase Order text maintenance in mass for article master data. we are maintaining Purchase Order Text in article master data in basic data screen on additional data button under purchase order text tab.
    Any suggestion on creating LSMW for purchase order text.

    LSMW has a standard direct input for long texts, hence it is not necessary to do a recording.
    help.sap.com gives real good help for loading loading long texts with LSMW, further has this been discussed many many times here in MM  and in the data migration forum.
    try to search a bit, you dont really need more than the words you already have used on the subject to get a good variety of answers

  • View "Purchase Order Text" in Material Master

    Hi,
    I need replicated text of  view "Purchase Order Text" in ECC to Material Master in SRM.
    Or When We create a shopping cart in the way in which the text replicated "Purchase Order Text" from the the Material Master(ECC).
    Regards
    Angie

    For Purchase Order text in Material Master:
      use this code for Purchase Order text,
    DATA:  l_lsize(3)  TYPE n VALUE '132'.
      DATA:   lwa_tline     TYPE tline,
                lwa_thead     TYPE thead,
                lwa_valid     TYPE ty_input(flat file data),
                lwa_temp      TYPE ty_input.
      DATA: lit_tline TYPE STANDARD TABLE OF tline.
      lwa_thead-tdobject   = 'MATERIAL'.
      lwa_thead-tdid       = 'BEST'.
      lwa_thead-tdspras    = 'E'.
      lwa_thead-tdlinesize = l_lsize.
      LOOP AT pu_it_valid INTO lwa_valid.
        lwa_temp = lwa_valid.
        AT NEW matnr.
          CLEAR: lwa_thead-tdname,
                 lwa_tline-tdformat.
          lwa_thead-tdname     = lwa_temp-matnr.
        ENDAT.
        IF lwa_tline-tdformat IS INITIAL.
          lwa_tline-tdformat = ' \ '.
        ELSE.
          lwa_tline-tdformat = '='.
        ENDIF.
        CLEAR lwa_tline-tdline.
        lwa_tline-tdline = lwa_valid-text_line.
        APPEND lwa_tline TO lit_tline.
        AT END OF matnr.
          CALL FUNCTION 'SAVE_TEXT'
            EXPORTING
              client          = sy-mandt
              header          = lwa_thead
              insert          = c_x
              savemode_direct = c_x
            TABLES
              lines           = lit_tline
            EXCEPTIONS
              id              = 1
              language        = 2
              name            = 3
              object          = 4
              OTHERS          = 5.
          IF sy-subrc = 0.
            REFRESH lit_tline.
          ENDIF.
        ENDAT.
        CLEAR: lwa_temp,
               lwa_valid.
      ENDLOOP.

  • How to find purchase order bapi

    can any one help how to find purchase order bapi.

    This isn't a Web Dynpro Specific question - moving to ABAP general.
    However have you considered going to SE80 and searching for function modules that begin with the name BAPI and have purc in the name?  Or maybe going to the BAPI Browser transaction (T-Code BAPI) and searching either in the Hiearchy or Alphabetical list.  Probably not too difficult to find the purchase order object.

  • BBPIV09: Find Purchase Order Functionality

    Hello SRM Experts
      I am trying to create an Invoice using Invoice Clerk role in IMS . Transaction BBPIV09. When I try to find POs from this screen system takes me to the find Invoices screen. This screen has two options either create invoices or display invoices.
    When I press creat invoice button to go back to the Invoice Entry page ,and then again select Find Purchase Orders, system takes me to the PO Search screen.
    Has anyone encountered this problem in IMS to help me out on this?
    Thanks in Advance
    Regards

    I got a solution to this problem. This was a bug in the Standard SAP System. SAP corrected the code and that fixed the problem. The note created by SAP to resolve this is 1294017
    Regards
    Virender

  • To create service purchase order by giving material code

    hii
    experts
    can i create service purchase order by giving material code in service po.generally when i give material code in service purchase order the system doesnt accept it.is there any other way where i can create po for service material but my condition is that i should give material code.experts do u have any valuable inputs.
    warm regards
    thanks
    subhash kulkarni

    Hi
    Will you please let me know scenarion under which you want to create service PO with material code?
    Service PO is raised with item category D  and account assignment ( K, P etc) which does not permit to assign any material code, only description of service is mentioned at header and details of service is entered at item level. If service code is created in AC03, enter it at item level, all details mentioned in service master will be fetched else you will have to mention details of services manually.
    creation of service code is not mandatory and also not much useful. it helps in reporting and automatic GL determination which can be mapped with the help of material group.
    Hope, it must have enlighten some knowledge.
    Regards
    Susheel

  • Display the purchase order using plant & material  in reports

    Hi experts,
                 i wanna print purchase order based on plant and material.   in the purchase order i need date(cretion date of po) , po item, po num ,quantity , available quantity.
                i could not able to find the table in which date  , quan & available quantity available .please tell me the table name.
    thanks in advance,
    regards,
    srikanth.

    Hello Srikanth,
    Please check the tables below:
    MARA General Material Data
    MARC Plant Data for Material
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    EKBE History per Purchasing Document
    EKET Scheduling Agreement Schedule Lines
    EKKN Account Assignment in Purchasing Document
    For more table names please check the link below:
    http://www.sap-img.com/materials/common-tables-used-by-sap-mm.htm
    Hope that helps!
    Regards,
    Saba
    Edited by: Saba Sayed on Feb 18, 2011 6:29 PM

  • Imort Purchase Order-Additional conditions to be added

    Dear Guru's
    The business practice we follow for import PO IS
    we have  4 vendors
    1. Comminnisher of customs
    2. Octori -Muncipal Corpor. Grater Mumbai
    3. CHA -Clearing agent Charges
    4. Bank Charges
    Under the delivery cost conditions in Purchase Order ,we have added the condition types for customs duty. ecs, sec. ECS , octori etc.but we have skipped the CHA Charges & Bank Charges
    The MIRO transaction for Planned Delivery Cost for this PO is allready done,
    and the payment has gone to
    Comminnisher of customs
    Octori -Muncipal Corpor. Grater Mumbai
    Now to process the payment for
    CHA -Clearing agent Charges
    Bank Charges
    when we are adding the further delivery cost in the same PO for Bank Charges & CHA Charges , System is not allowing us, we want to load this cost so that the material valuation will be updtaed 
    Please suggest,
    Regards
    sameer
    Edited by: sameer  saN on Feb 12, 2009 2:02 PM
    Edited by: sameer  saN on Feb 12, 2009 2:03 PM
    Edited by: sameer  saN on Feb 12, 2009 2:03 PM

    hi
    create a vendor invoice with reference to the po and post the values.

  • HOW to AGGREGATE TRANSFER ORDERs per same material/batch?

    Hello All,
    My company runs ordering system via web. Customers usually post web orders numerous times during sales campaigns, which result uncountable no. line items on sales and delivery documents (same ship to) even if the material/batch is the same.
    1. Could somebody help me to find a way, if there is at all, how I can create Transfer Orders per the same material/batch <b>NOT</b> per delivery line items?
    I have tried to do a test scenario via <b>2-step picking</b>. Crated a valid Group but the next error came by running <b>LT0E</b> <i>"Selected group 2703 for 2-step picking not relevant"</i>
    I do not have any clue if the 2-step picking is good for solving the above issue.
    I was not able to configure WM view up to now.
    2. How should I do that for 2-step picking?
    Many thanks for any help on this,
    Ferenc

    This response may be a little too late.
    The following may help:
    Customer exit
    Text
    Description
    MWMTOAU1
    Selection of TRs for automatic TO creation
    This task allows you to influence the selection of transfer requirements for the automatic creation of transfer orders.
    MWMTOAU2
    Selection of TRs for automatic TO creation via groups
    This task allows you to influence the selection of transfer requirements for the automatic creation of multiple transfer orders using groups.
    If you have already resolved the issue, please let me know. I have the same problem

  • Purchase order text in material is replicated from ECC to SRM?

    Hello experts,
    In the standard process of replicating materials from an SAP ECC system to SRM, is the purchase order text tab in MM03 replicated to SRM?
    I've tried searcing for this text in SRM but I guess it is not replicated.
    Is there a way to do this?
    Regards,

    hi,
    Generally speaking, product longtexts are not automatically replicated to SRM via MW.
    The filters of text headers and text lines are not taken into consideration.
    -- In case in transaction R3AC1 object MATERIAL has inactive filters for tables STXH and STXL, please remove flags and synchronize the filters.
    -- In the backend table CRMOBJTAB still shows inactive entries for both tables.
    -- Check the notes no. 555520 and 839995. Please apply and follow the instructions given in the longtext.
    Now the filters should work and the basic longtext should get replicated.
    thanks,
    Ashwin
    Do reward points for useful suggestions

  • Purchase Order text in Material Master

    Hi experts,
    A material code ( for ex  10000000 ) is opened in plant X and is also extended to plant Y.  We want to enter purchase order text in the same material code  10000000  ( thru tcode MM02 ) for plant X only.  At present, the purchase order text which we entered for plant X is also depiciting in plant Y for above material code.
    Our requirement is that the purchase order text which we entered for plant X should not appear in plant Y.
    Please suggest.
    Solutions / suggestions will be highly appreciated.
    Regds,
    ( Rajneesh Gulati )

    Hi,
    You can try doing in 2 ways of keeping Purchase order text.
    1. If you do not want the text maintained in Plant X and not to maintain the same in Plant Y , you can delete the same in Plant Y and save so that It wont appear.
    2. IF you don want the the text to be maintained in Plant Y, You need not extent the purchase order text view in plant Y.
    Regards
    Ram

  • MASS-Display of Purchase Order Text in Material Data

    Hi,
    I want to display via SE16 the Purchase Order Text for a list of Materials but I don't know in which table this kind of information is stored. Con anyone please help me by telling me in which Table I can find the desired Information. If there is a SAP transaction which I can use to obtain this kind of information I'll gladly use it but I prefer to work with SE16 and Tables.
    Thanks for your answers.
    Regards
    Bogdan

    HI,
    With my SAP rights I'm not able to do that. This is why I'm asking if tehre's another way to retrive this Info in another way using  "SAP standard tools", like transaction or tables.
    Für Deine Antwort Jürgen vielen Dank im voraus.
    Gruss,
    Bogdan

Maybe you are looking for