Material Document from PO

Hi all,
I am trying to find how do we get the Material Document number created (Good Receipt Document, txn MIGO) from a PO number. I am looking for the table-field where I find the this info.
I create the GR doc from PO using MIGO.
Can anyone help me in this ??

Hi Karthik,
from PO number, you can read table EKBE with the following keys
EBELN = PO number
EBELP = PO item
ZEKKN = '00'
VGABE = '1' (good rec.)
in fields: GJAHR, BELNR, BUZEI you will find all Material document numbers linked to the PO
Best regards,
Manuel

Similar Messages

  • Remove material document from worklist

    Hi Gurus,
    We are using Warehouse management and though we transfer material documents from ECC , due to some reasons some times we create manual declarations, those  materials docs remain in the work-list.please let me know if there is a way to clear those material docs from GTS work list.
    Version 10.0
    Thanks
    Karthi.

    Hi Karthi,
    There's no standard way to remove warehouse-relevant Material Documents, and that makes perfect sense.  With warehouse management, those Material Documents have 2 functions:
    To create the inventory records for Customs purposes
    To create the associated Customs Declarations
    You can, as you say, create the Declarations manually, but you still need the inventory postings - and that's not possible using manual Declarations.
    If you really must create the Declaration manually for submission to the Customs authority, the work-around is to create the additional Declarations from the work-list in the usual way, but then (in the "Communications" tab) disable the active message, and afterwards use Transaction /SAPSLL/CDOC_ACT_CLO to close the Activity and thereby remove the document from the work-list.
    Regards,
    Dave

  • Production Order Co01 enhancement to link the Material Documents from Mater

    Hi Friends,
    I have a reqirement I need to link the Material documents in the Production order, for Header material & Component material based on some condition, can any one tell which Enhancements will work for this.....
    Thanks,
    Ravi

    Hi Ravi,
    If you want to change the header field values during saving of the production order, Function Exit   EXIT_SAPLCOZV_001 can be implemented of enhancement PPCO0007.
    Regards,
    Surender Yadav

  • Repair error in material documents (from non-valuated to valuated)

    Hi Gurus,
    We have a urgent problem, for one mistake in material document type, the valuated flag was change to not valuated, it was create 500 material document without financial document. Now, the mistake was corrected and now generates again material documents with financial documents for this material type. My questios is: is there any way (programs develop for you, so on) to re-generate the financial document for material document non-valuated?
    Really, I don´t think so but.....
    Thanks in advance & regards

    No you can not do that except you reverse all the non valuated material document and the recevie again then only you can generate the FI documents

  • How to print material document in header level?

    Hi Guys,
    How to print material document from header level. I can only print them in item level. But i want that in header level. For example, I have 4 movements inside a material document and I want to issue only one output from the header level.
    I can see the option Goto -> Additional Function -> output, but it is disabled. Please let me know hot to acheive this and if you need further info on this. Please throw some light on this.
    Thanks
    Yasin.

    HIi
      Your question is not clear.  What exactly you want to be.
    1.  To print material header in your smart form / Sap Script what is the problem. Itu2019s quite easy you can do it. Let me know what problem you are facing.
    2. The option is disables because of business functionality ask your functional guys to help you on the same.
    Regards
    Swati

  • Material Document schedule job printing.

    Dear All ,
      I had configured all configuration to print the material document details in a smartofrm . All details are copied in the material document from output determination.
    if i set printing preference  4.send immediately (when saving the application) i am getting the output in the printer. Here the status is green .
    Here my user want to set the preference as 1.send with periodically scheduled job , so that all the material documents will be printed at the same time.
    How to schedule this in back ground job . I had tried in MB90 its not working there.
    Thanks in advance.
    Regards
    Srihari.P

    Hi,
    You can schedule the Job for the Despatch time  3. Send with application own transaction  also, for this you have to select the program to run for the Job, as you said you can schedule the JOB on the program of MB90
    for Using the Despatch time 1. 1. Send with periodically scheduled job, you have to run or setup job for the Program RSNAST00
    Manually you can also run the program RSNAST00 in SE38 to chcek whether the OUTPUT was processed or not
    Goto SE38 and with the RSNAST00 ,, execute and enter the Details of Application area ME and OUTPUT type and the Document number.
    Then  in the Menu click on Program--Exdcute in Back ground. It will run and in SM37 you can find the Processed outputs or Logs if any in case if they are not processed. you can then trace the error
    In the foreground you cant identify the eror or reason of why it was not processed.
    regards,
    santosh

  • Billing Document and Material Document Relation

    Dear all,
    i need to know about the relation between Billing document and Material document.
    Please let me know if there is any Function Module or Some View available to get these details.
    my only requirement is to get only Material document From Billing Document.
    Thanks In Advance.
    Pradeep.

    Hi
    So the material document should be linked to the delivery
    The document flow:
    Delivery->Outgoing moviment->Delivery->Bill->FI invoinces
    If you start from FI:
    - Get the bill number from header data: BKPF-AWKEY
    - get the delivery number from bill item VBRP-VGBEL
    - get the document flow for the delivery: VBFA: here you can find out the material document
    Max

  • Material documents that make up the ACtual figures in MCRE/MCRO

    Dear all
    I would like to see all the material documents which resulted in ACTUAL figures of of MCRE & MCRO.Sometimes u see actual figures in  negitive quantity.Why is it so?
    Thanks in advance
    Charan

    Bobby/Bhanu/Charan,
    You can get the material documents from MSEG.
    First select all the material document header rows from MKPF for the posting date (BUDAT).
    Enter these material documents in the MSEG table to get the details of the documents. Here the field AUFNR would give the order number (Discrete and REM order).
    Hope this is useful.
    Regards
    Ram

  • Delta update - delete material documents

    Hi,
    We have some problem during delta updates for 0IC_C03 (material movement).
    In the source system, we have deleted the material master, but its material documents and accounting documents still exist.
    The delta updates shows error saying those deleted material doesn't exist while loading the material documents.
    please help.
    we have problem deleting the materials document and accounting documents in the source system.
    In BI side, how to enable the delta updates?
    regards,
    zl

    Hi,
    After the error, we have deleted the materials and material documents from the source system.
    May I know why the delta update still select the deleted materials and material documents from the source system in the PSA?
    May I know how to modify the extraction logic?
    Thank you.
    regards,
    zl

  • Issue using material document number as dynamic bin for purchase orders

    Hi...
    We are currently using the material document number as a dynamic bin at receiving because we expect to have multiple receipts of the same purchase order.  The current setup has everything going into quality inspection, and an inspection lot creates for each goods receipt.
    When QM rejects parts to return to vendor, a 122 movement is automatically generated.  When this 122 movement generates, the WM stock overview shows a negative balance using the material document number of the 122 movement as the dynamic bin.  The positive balance still shows as the material document from the 101 movement.
    Is there any configuration that can be set up to fix this issue or will SAP always take the most recent material document as the dynamic bin?
    Thanks for the help!

    I've tried the following configuration with movement type configuration:
    Quality stock in 902 storage type with material document as dynamic bin (requirement type configuration updated).  When a return to vendor is completed, there is a positive balance in 902 with the GR material doc number as the bin and a negative balance with the 122 material doc # as the bin. 
    I also tried configuring this with using GR-DOCK as a bin, and had the issue with the quant record being updated by the most recent inspection lot #. 
    I also tried using the PO as dynamic bin, and have the same error as above with the quant.
    Error:
    Error during creation of transfer orders for material document 0026001535
    Date: 05/16/2008
    Time: 10:52:23
    Post.chge not. HR1 2000000011
    No quants exist for posting changes
    So as according to the OSS note I should use material doc # as dynamic bin to avoid this...but when I set this up I get the issue with positive and negative balances in my stock overview because SAP uses the most recent material document number for each posting.

  • How to fetch accounting document number from known material document number

    Hi,
    Using MIGO transaction, by giving mblnr(material document number) as input, I get accounting document number by clicking FI document.I have to add this accounting document number in my report for corresponding known mblnr(material document number) values.
    My question is how to fetch the accounting document number present in MIGO to add in my report program.
    I used the xblnr(Reference Document Number) which is present both in mkpf and bkpf tables to fetch values.
    I extracted xblnr values with known mblnr values from mkpf (Header: Material Document table).
    and then extracted belnr(accounting document number) from bkpf (Accounting Document Header table) by using xblnr values.
    But the query is running for a long time.
    Is there any other method  to extract the values in a simpler way.
    Kindly advise.
    Thanks and Regards,
    Sanjeev

    I had the values of xblnr and some other fields such as mblnr, budat etc in wi_item table.
    I created a new internal table i_xblnr and got down those values.
    And then created a new internal table i_belnr and tried to get values of belnr in it.
    The code I wrote is given below:
    IF not wi_item[] is initial.
    loop at wi_item.
       at new xblnr.
        ws_xblnr-xblnr = wi_item-xblnr.
         append ws_xblnr to i_xblnr.
       endat.
    endloop.
      select belnr xblnr from bkpf into table i_belnr for all entries in i_xblnr where xblnr = i_xblnr-xblnr.
    ENDIF.
    Kindly look after it.Thank you.
    Regards,
    Sanjeev

  • Link to find Accounting document number from Material document number / PO

    Hi
    We are working on a custom report, in which we need to print purchasing details (from EKPO, EKKO & EKBE) as well as accounting details (from BSEG & BKPF). We need to hit BKPF/BSEG with the accounting document number, since it is the only key field (though PO number is there in BKPF, we can not use this because it is not a key field)
    My question from which table we get the accounting document number ? We need to provide a link between purchasing & accounting through accounting document number, but how to find the accounting document number. ?
    Thanks
    Venkat.

    Venkat,
      I guess you are trying to fetch Accouting Documents for goods receipt against PO.
      To do this, you need to look at the PO History table (EKBE) and find out the Corresponding material document (VGABE = 1 for good receipt).
      Get the value of BELNR and GJAHR.
      Concatenate BELNR and GJAHR into your refernce key (like BKPF-AWKEY).
      Then use this key to read table BKPF with the following key
       AWTYP = 'MKPF' for Material document
       AWKEY = reference key generated above.
       AWSYS = the value of the logical system (if used) or blanks
    This will get you quicker access as compared to what you've described below. In this case, the system uses a standard SAP Index "Index by application type and key" to fetch the relevant records.
    Hope this helps.

  • BAPI to create Transfer order(WMS) from Material document

    Dears,
           We have activited WMS and we have not found any BAPI to generate TO in WMS from Material document to post GR to a specific bin. Is there any BAPI available for particular operation?
    Can anyone tell me about name of BAPI?
    Regards,
            FR

    Try with Function Module  L_TO_CREATE_TR
    also try
    Use this function module to create TO (transaction LT01) L_TO_CREATE_SINGLE
    CALL FUNCTION 'L_TO_CREATE_SINGLE'
    EXPORTING
    i_lgnum = ti_lqua-lgnum
    i_bwlvs = l_bwlvs
    i_matnr = zwwmugeori-matnr
    i_werks = ti_lqua-werks
    i_lgort = ti_lqua-lgort
    i_bestq = l_bestq
    i_letyp = l_letyp
    i_anfme = l_anfme
    i_altme = l_altme
    i_vlpla = l_vlpla
    i_vlenr = l_vlenr
    i_nlpla = l_nlpla
    i_nlenr = l_nlenr
    i_commit_work = space
    IMPORTING
    e_tanum = l_tanum.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 11:33 AM

  • How to create Transfer order from material document   uFF08Move type is 101uFF09

    Hi all,
    is there any function module, BAPI to create transfer order from a material document number?
    I want to use FM L_TO_CREATE_SINGLE,but the result is "Movement type 101 for manual transfer orders does not exist".
    Is the parameters error?
    Thank you in advance
    Regards

    The error message you get is number 196 from message class L3, do a where-used on it from transaction SE91 and then put a break-point on each line result.  Afterwards, re-execute your function call and see which break-point is hit and investigate from there.
    With that said, you really should be using Bapi BAPI_GOODSMVT_CREATE for all goods movement operations.  It shares code with MIGO and executes the same Badi's and user-exits, so data integrity is not broken.  Don't forget Bapi BAPI_TRANSACTION_COMMIT to commit changes in the database after a successful call.
    cheers

  • How to create Transfer order from material document

    Hi gurus,
         is there any function module, BAPI to create transfer order from a material document number.
    waiting for positive reply.
    thanks
    vinod

    Hi,
    The FM L_TO_CREATE_SINGLE or L_TO_CREATE_MULTIPLE could solve your problem.
    Hope it helps.
    Chang

Maybe you are looking for

  • Follow Up Transaction Default screen in Solution Manager

    SAp has provided Screen profile and Function code for creation of incident.Chnage request in Solution Manager.But when i try to create a new incident/CR from existing Incident as follow up transaction, the same screen doenot get defaulted.Item detail

  • "This '.mpg' file is damaged or unsupported"

    I looked everywhere but i cant find the answer; Every time i try to import a .mpg file, it doesn't work. it says what the title says. then it creates an .xmp file in the folder that the original file was in. I have the full version of after effects c

  • Will not allow me to do much of anything with Barracuda Networks frustrating use Safari OK?

    My ISP uses Barracuda Systems as a spam filter. I cannot choose the items I want to classify, the little box that I need to check in 3 dots. If I mouse to the three dots the box appears someplace else on the screen the vanishes when I move away from

  • Cfdocument repeat header issue

    Using cfdocument, we are trying to have a dynamic title bar repeat on each page with rows of data underneath. It is currently a row in a table which displays once at the very top of the first document. When put in the header however, the column shrin

  • Queue Monitoring

    Hi Experts, I got this error in SAP Queue Monitoring anyone explain me Error:The assert condition was violated Also give me some link to understand the Queue monitoring in SAP. Regards, Manigandan