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

Similar Messages

  • Billing Document and Material Document number and Date (Goods Issue)

    Dear Experts,
    Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
    Thanks

    Hi Abid
    Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
    You have to follow the flow from the billing document to the material document. This will only work if the billing document comes from a delivery note.
    Billing document => Delivery
    LIPS-VBELN = VBRP-VGBEL
    and LIPS-POSNR-VBRP-VGPOS
    So you have LIPS + LIKP with the LIKP-WADAT_IST as the goods issue date.
    Delivery => Material Document Number
    You can use the table VBFA with the delivery item as the preceding document number (VBFA-VBELV) and item (VBFA-POSNV) ; you will also have to define the preceding document type as J (delivery) and the document category of subsequent document as R (material document).
    Because in SAP nothing is simple, there might more than one material document, because the goods issue (601) movement might have been canceled and issue again. So you will have to decide what to do in that case.
    Best Regards,
    Franck

  • Establish link between Billing document and material document

    Hi All,
    I have billing document for some materials created using the FM BAPI_BILLINGDOC_CREATEMULTIPLE and I have created the material document for the corresponding materials using the FM BAPI_GOODSMVT_CREATE. Both these documents have been created in separate FM calls.
    My requirement now is that I have to establish a link between these documents, so that the material document appears when  the "Document flow" button is clicked in billing screen (VF02). Does have any suggestion for making this happen ? Any help will be highly appreciated .
    Cheers,
    Sandeep

    hi Meenakshi,
    Check with this i hope it will work
    you can have the data from BKPF through fields like AWKEY and AWTYP and VBRK (vbeln).
    in bkpf there is a field called AWTYP  in which you have to specify 'VBRK',and you have split AWKEY depending o upon the vbeln .
    bkpf-awtyp = 'VBRK'
    bkpf-awkey = vbrk-vbeln
    bkpf-bukrs = vbrk-bukrs.

  • Creating freigth cost document and material document

    Dear all,
    when creating a freigth cost document the system automatically generates a service entry sheet, and a material document with its accounting document. This is standard behaviour.
    When creating freigth cost document we've activated user exit V54C0001 so that field 'Description for reference' (VFKP-POSTX) is populated with outbound delivery number (instead of transport number). We need to know how could we automatically fill field 'delivery note' (LFSNR) in material document with that number.
    Best regards
    Joana Trigo

    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

  • Relation between Material Number and Material document Number.

    hi xperts,
         I want to Know Is there any Relation ship between the <b>Material Number</b> and <b>Material Document Number</b>.
      If So can i get any Tcodes to check them?
    Thanks in advance.
    Message was edited by:
            STALIN JOSEPH

    Hi,
      Thanks for your reply.
    I want to Load the Inventory Management Data into Business warehouse ,there the Only way i correlate the Data between is by taking some material Number.
    and Material Document.
    In step 1 i load Material Number data and step 2 i load material document data,so i want to make cure those two loads i load the same material numbers.
    Please help me to collerate between them.

  • Relation between goods receipt and material document number

    guyz!
    i got stuck up at one functional doubt. can any one say link between goods receipt and material document number. in other way, i wanted to know difference between these two i.e. goods receipt and material document number. or both are same.
    awaiting for reply
    manas

    Hi,
    Just have a look if this thread can solve ur problem.
    Re: display goods receipt
    Rgds,
    Prakash

  • PO print OUT And material Document Print Out is coming In English

    HI all.
    I have Created Vendor In ZH(chinese Language,)and in material master I have maintained description in Chinese language.
    I'M taking PO and material Documents print outs  in Chinese Server log-in.
    even Though Im taking Print outs in Chinese Log-In server, IM getting Print outs in English Language only not In chines language..
    At the Time Of PO creation the Communication Language is ZH(Chines)..
    I have read some related post even 89899..
    But I have not find solution
    plz help me.
    thanks and regards
    ramesh reddy.'

    Check SAP Note 894444 - Tool for server-based printing on Windows (SAPSprint) for your requirement,
      Installation
    Before you install SAPSprint, delete SAPLPD manually. To do this, you normally need to completely delete the installation directory only. If you installed SAPLPD as a service using the srvany tool, you can remove the service by calling 'Instsrv SAPLPD remove'.
    You can download SAPSprint as a self-extracting executable file from SAP Service Marketplace:
    1. Entry by Application Group (on the left)
    2. SAP Frontend Components (on the right)
    3. SAPSPRINT (on the right)
    4. SAPSPRINT <Release> (on the right)
    5. SAPSPRINT <Release> (on the right)
    6. Win32 (on the right)
    Start the program. After you enter the installation path, the system prompts you to enter the TCP/IP port.
    Normally, the default setting of 515 is suitable for the port. You should only change this setting if the Windows TCP/IP print service is also running on the computer. The SAPSprint Windows service starts as soon as the installation is over.
    We recommend that you set up the following options for the service in the Windows Service Control Manager:
    The service should run under a domain user that has the relevant authorizations for the required printers. After the installation, the service runs under "Local system account". This can access locally-defined printers only. You can set the user in the Windows Service Control Manager, in the options of the SAPSprint service.
    If you want to delete SAPSprint, you can do so using the normal Windows uninstall tool.
    We recommend that you install the SAPSprint service on a separate computer and not together with a SAP system, especially if you use a large number of printers. All printers that SAPSprint uses must be installed on the SAPSprint computer. This applies particularly to released printers from other computers. These should be installed as a queue on the SAPSprint server.
    Also note further settings in accordance with Note 1069483.
    Settings
    You can display the call parameters available for SAPSprint by calling 'sapsprint -?' on the command line. The most important parameters are those that set options, especially log options for troubleshooting.
    You can set the log level to 5 by specifying 'sapsprint -oi LogLevel 5'. Immediately after installation, no log level is set up, which means that no log file is created. By setting the log level to 1, 5, or 9, you can ensure that more information is available in the directory that you specified during the installation. A file called sapsprint.dbg and a print job specific file with a variable name are generated. The second file is deleted after successful printing. It is only retained if the printout is recognized as incorrect. If you set the option 'sapsprint -oi KeepFile 1', then both this file and the print file are retained. This is primarily intended for troubleshooting by SAP Support.
    All options are case-sensitive. You can display the most important SAPSprint options by calling 'sapsprint -?'. All possible options are described in Note 85469. Normally, the options described there are not necessary - you should use them only in exceptional circumstances.

  • Need help abt Purchase order and material document number

    1)Is there any releation ship between Purchse order number and material document number?
    2) I found aBAPI to get the goods receipt details. That is BAPI_GOODSMVT_GETDETAIL. But it is excepting Material document number and material document year as input parameters.Is there any BAPI to get goods receipt details by using purchase order number?

    hi kiran
    check this thraed. this gives you relatinship between Purchse order number and material document number
    Retrieving Accounting Document number based on PO numbers
    BAPI to get goods receipt details by using purchase order number is
    BAPI_GOODSMVT_CREATE
    thanks
    Sachin

  • Table name and field name for accounting and material document in MM

    Hi
    Table name and field name for accounting and material document in MM
    how can we diffreentiate the accounting document in MIGO and MIRO ?

    Hi,
    For Goods reciept documents you can search from the tables  MKPF-Header: Material Document and MSEG-Document Segment: Material,
    and for Invoice documents you can search in  tables   BKPF-Accounting Document Header and BSEG-Accounting Document Segment.
    For differentiating the Accounting documents in MIRO and MIGO based on posting key and document types for GRN -document key is -WE and for MIRO document is -RE.......
    Hope this may help you.....................

  • Sync of Material document and accounting document during MIGO

    Hi Friends,
    Can we synchronize the Document numbers between Material document (WE) for GR (101) and Accounting documents created for the MIGO transaction????
    We have 50 is assigned to WE. But, we have a gap in numbers of Material document number and Accounting document numbers??? though the document type WE is common for both.
    I have seen that "Buffer" is the culprit. But, not sure how to fix that.
    Appreciate your help in this regard.
    Dev.

    When the document type is same (WE) for both, how come the accounting doc has continuous numbers and Material doc has breaks ( from buffer)????
    document type WE is same for GR for material document and accounting docu but number range are stored diffrentely.
    OMBT is where u store the number range for material document
    and this number range is assigned to group of materia doc we wf wo ww
    OMBA is where u create diffrent number range for accounting document hear U assign WE to ur transaction code and in turn WE is assigned a number range what is created in OMBA, this number range is nothing to do with number range u have created in OMBT.
    when ever u post the docunemt in system
    SAp hav efixed the document type for GR that is WE
    it goes in OMBA in the group of Material documents for goods receipts
    check what is the year and number range assigned and current number so it assignes this number first
    than it go to OMBA  cheks what is the Tcode u are using and what is document type u have assigned to that tcode and it can be any WE or what ever u have assigned to that tcode
    taking that doc type it goes and see what Number range is assigned say 50 and then checks company code and year for this 50 and get the number for accounting doc
    so i think its is clear that material and account are 2 diffrent ranges
    skiping of numbers might be due to buffer
    also go throught following post it will be helpfull
    GR NO SEQUENCE - MISMATCH
    hope this helps

  • Resource Related Billing: Time and Material Scenario

    Can we use internal resource time through CATS for Resource Related Billing: Time and Material Scenario instead of external time of resources through service entry sheet

    Yes you can
    Please read sap help for more details

  • Link Between delivery and material document

    Dear All,
    how do we link between delivery document,
    and between delivery document and accounting document,
    with regards
    Mohammed Raees

    Hi there,
    Material doc is the PGI document which is created whenever there is material movement either GR or GI. In VL02N --> document flow, select the GD goods issue & click on display document. It will take you to the material doc. There is a field called material slip in that. The value stored in material display is the delivery num. That is how you link the delivery & material doc.
    From the material doc if you click on accounting docs, it will give you the A/c document num & the costing doc num (if available).
    From the material doc, select the item & click on details from ityem, it will give you the GL account for which the GI is posted.
    Regards,
    Sivanand

  • Same no ranges for both Billing doc and Accounting Documents

    Hi friends,
    My client requirement is he want to use same number ranges for both billing document and accounting document.
    Is it possible?
    Regards
    Sasi

    Hi,
    For Accounting Documents...Create a number range using the TCode : FBN1
    Give the range as the one which you specifed for the billing doc and make a check over the External Entry.
    Assign this Number Range to Your Accounting Doc. Type.. using the Tcode OBA7.
    Hope it'll work as per your requirement.
    Regards,
    Venkatesh.S.P.

  • Get Material Document Number and Material Document Year

    Hi everyone,
    Right now, i'm developed idoc program. I need material document number (MBLNR) and material document year (MJAHR).  I have information only BAPI2017_GM_HEAD_01 and BAPI2017_GM_ITEM_CREATE. Is there any FM to get this value ? Thank you
    Regards,
    Satria

    Ok, i will explain with more detail about my problem
    Here my pseudocode :
    -  Get data with type BAPI2017_GM_HEAD_01 from Idoc (let we say this X)
    -  Get data with type BAPI2017_GM_CODE from Idoc (let we say this Y)
    -  Get data with type BAPI2017_GM_ITEM_CREATE from IDoc (let we say this Z)
    -  IF Y-GM_CODE <> "06" THEN
           CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
               EXPORTING
                   GOODSMVT_HEADER = X
                   GOODSMVT_CODE     = Y
               TABLES
                    GOODSMVT_ITEM      = Z
       ELSE IF Y-GM_CODE = "06" THEN
           CALL FUNCTION 'BAPI_GOODSMVT_CANCEL'
                EXPORTING
                     MATERIALDOCUMENT = ???
                     MATDOCUMENTYEAR = ???
                    GOODSMVT_PSTNG_DATE = ???
    I know that material doc and mat doc year is in table MKPF. But the problem is they are  the primary key, so how i use X,Y,Z in select operation to MKPF? or is there another way using FM ? Thank you
    Regards,
    Satria

  • New document type for Physical and material documents

    All SAP Gurus,
    I have created new document type in OBF4.
    How to view that Document type in OMBT (number range for for Physical and material documents)
    Regards,

    Hi,
    on the menu bar of trxn  click "number range object" in that go into overview you will get number range object overview  of every documment type or else do shift F7.
    Regards,
    Archit

Maybe you are looking for