Material document number and financial document number

Hai Friends,
How can i link material document number and financial document number

Hi,
I did below for my requirement to get payment document number. It will useful to you
FORM GET_PAY_DOC .
  data: wa_bkpf TYPE bkpf.
  data: wa_obj_key TYPE bkpf-AWKEY,
        wa_AUGBL TYPE bsak-AUGBL.
SELECT SINGLE belnr GJAHR from ekbe into (it_table-belnr, it_table-GJAHR)
          where ebeln eq it_table-ebeln AND
                ebelp eq it_table-ebelp AND
                BEWTP eq 'Q' AND
                XBLNR eq it_table-tknum.
CHECK sy-subrc eq 0.
CONCATENATE it_table-belnr it_table-GJAHR INTO wa_obj_key.
SELECT SINGLE bukrs belnr GJAHR from bkpf into CORRESPONDING FIELDS OF wa_bkpf
  where awtyp = 'RMRP' AND
        awkey = wa_obj_key.
  CHECK sy-subrc eq 0.
  SELECT SINGLE AUGBL from bsak into wa_AUGBL
    where bukrs eq wa_bkpf-bukrs AND
          lifnr eq it_table-tdlnr AND
          belnr eq wa_bkpf-belnr AND
          GJAHR eq wa_bkpf-GJAHR.
CHECK sy-subrc eq 0.
  SELECT SINGLE belnr budat from bsak into (it_table-belnr1, it_table-Budat)
    where bukrs eq wa_bkpf-bukrs AND
          lifnr eq it_table-tdlnr AND
          AUGBL eq wa_AUGBL AND
          GJAHR eq wa_bkpf-GJAHR AND
          blart eq 'KZ' and
          belnr ne wa_bkpf-belnr AND
          SHKZG eq 'S'.
ENDFORM.                    " GET_PAY_DOC

Similar Messages

  • 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

  • Link between inv. number and accounting document number

    Hi Frnds,
    When i receive  a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?

    Hello,
    Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
    Regards,
    Ravi

  • Link between Invoice verifycation number and Accounting Document number

    Dear All
                   I want the Link between invoice verifycation number (MIRO) an accounting document number the same MIRO. in which table the both two numbers avilable.
    How can identify. can any one tell me the table name for this
    Regards
    Kumar.

    Hi..
    What is the link or join condition for these two tables
    BKPF and RBKP. and RSEG and BSEG.
    In this i want to Accounting document number and invoice verifycation number in a single report.
    Regards
    Kumar

  • Link between invoice number and accounting document number

    Hi Frnds,
    When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?

    hi
    try these tcodes
    FBL5N
    FB02
    regards

  • Relation accounting document number and clearing document number

    Hi everyone,
    What is the relation between accounting document number and clearing document number.

    For every accounting document when it is posted it should be available in BKPF Doc header table.. Once that document is closed or cleared..there is any entry made to BSAK for Vendors (Cleared Items) or BSAD for Customers (Cleared Items).
    Eg: When a invoice is generated for a PO it gets created and is still not cleared or is not closed , it makes an entry in BSIK. Once it is closed it is available in BSAK.
    Same is the case with Sales order..

  • MM Document number and FI document number is a single table

    Dear Friends,
    Could you please let me know the table where both MM document number and FI document number will be available. I checked in BKPF and it is only updating FI document number and not MM document number and in MKPF it is only updating MM doc number and not FI document number.
    Also let me know if there is any report/tcode/program available to view this at one place itself.
    Regards,
    Dwarak.

    hi
    i dont think you can view both table in one screen.
    in T-CODE:SE16N you can see one by one table.
    Regards
    ramana

  • Shipment document number and cost document number for vendor invoice

    Hi,
    Given a Vendor invoice number ( MIRO) how to find out the shipment number and cost docuemnt number?
    Regards,
    Krishna prasad.

    Hi,
    Please try using SREL_GET_NEXT_RELATIONS. Please try to search on SDN and you should find an example fo this. The only thing you need to pass is the Business Object Name for Vendor Invoice number. Or if you have an alternal field like even PO that you can pass , that will be of great help as well.
    You may want to take a look at:
    SREL_DISPLAY_LIST_OF_NEIGHBORS
    SREL_GET_NEXT_RELATIONS
    Pls reward points if useful.
    Thanks
    Ganesh.S

  • Invoice Number and Performa invoice number

    Hi all
      I want to get the combination of invoice Number and Performa invoice number, I have got the VBFA Table, but it’s very slow, any alternative program or function please help me
    Thanks
    Kanishka

    Try AC_DOCUMENT_RECORD. It returns all kind of accounting documents.

  • PO from SO via DI API:Base document card and target document card do not ..

    HI All,
    I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox.
    I got the error message: -5002-Base document card and target document card do not match.
    The message itself can be understandable, because the Customer and Supplier has a different CardCode.
    I am sure I am using a correct code
    oPo.Lines.BaseType = BoObjectTypes.oOrders
    oPo.Lines.BaseEntry = sDocEntry
    oPo.Lines.BaseLine = iLineNum
    Where oPo is a Purchase Order document.
    sDocEntry is a Sales Order docentry and iLineNum is a Line number of Sales Order
    For other A/R to A/R and A/P to A/P documents are working fine.
    Has anybody found this error or has anybody created application like this?
    I am using sbo2007PL46
    Regards,
    J.

    Hi guys,
    this is still on the suggestion page:
    Link existing Purchase Orders to (Sales) Orders via DI API : View Idea
    I tryed with 9.1 PL 4 and it didn't work.

  • Line item number and ledger item number posted differently

    Hi Friends ,
      I have a BAPI for posting the documents in SAP from another system.This BAPI is using the standard BAPI -  'BAPI_ACC_DOCUMENT_POST' to post the documents.But when I post the document using this BAPI the line item number and ledger item number in the document are posted differently. ie . for line item no 1 ledger item is 24 .But when I am posting it directly it is same ie for line item no 1 ledger item no is also 1.Lot of other programs in our R/3 system is dependent in this logic.What could be the parameters in BAPI that could affect line item and ledager item ? Can anybody help me in finding out the reason for this ?
    Thanks in advance ,
    Joby

    Hi ,
    Anybody can help me on this issue ?
    Thanks in advance ,
    Joby

  • PO number and Finance doc number connection

    Hi Experts,
    In our project we got a requirement like we need to show fields from fs10n, fields are, GL account number,
    FI document number, PO number, Amount in local currency and PO description.
    I didnt see any datasource which bring PO number, FI GL account number and Finance document number together, so please guide me in this regards.
    how can i bring finance and purchase data together?? which is the appropriate data source for this?
    Thanks,
    urs raghu

    >
    ursraghu.bw wrote:
    > Hi Experts,
    >
    > In our project we got a requirement like we need to show fields from fs10n, fields are, GL account number,
    > FI document number, PO number, Amount in local currency and PO description.
    >
    > I didnt see any datasource which bring PO number, FI GL account number and Finance document number together, so please guide me in this regards.
    >
    > how can i bring finance and purchase data together?? which is the appropriate data source for this?
    >
    > Thanks,
    > urs raghu
    U can do a multprovider on both Purchasing and Finance InfoCube.
    In R/3, table BSEG has a field call EBELN. So I believe in BW you can use DataSource 0FI_GL_14 as it contains PO num, acct doc, etc. As long with these keys, it is easy to do a join or lookup DSO or even a multiprovider.
    hope it helps.

  • Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Download Error - Contact customer support. Indesign wont load application have gone from the control panel. CS photoshop loads and wants a serial number - and my serial number dosent work?

    Hello Bradley,
    sometimes the "opm.db file" is the culprit. In this case you should delete it.
    But as much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool.
    Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: ... helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    If necessary and for further questions click through http://helpx.adobe.com/contact.html or http://helpx.adobe.com/de/contact.html and if "open" please use chat, I had the best experiences.
    Good luck!
    Hans-Günter

  • Purchase requistion number and line item number linkage with work order opr

    Hello,
    I want to know what is the link between Purchase requisition number along with its line item number with work order operation number.
    For the non stock component assign to Work order operation ( say operation 10) the PR get generated for that component which assign to that operation .
    in which table we can find that PR as input and output as Work order number along with its operation .
    In AFVC table if we put PR as input then it does not show any entry for that PR number?
    Regards
    Vaibhav

    HI Vaibhav,
    If you have the Work Order Number AUFNR, then you can get AUFPL from AFKO.
    Then Pass AUFPL to AFVC table to get BANFN(Purchase requisition number) and BNFPO(Item number of the purchase requisition in the order).
    Regards,
    Ravi

  • BOM Item number and the pr number created through network

    We can create PR through network. If we know the PR number and the item number, how do we find the BOM item number in the network?
    BOM item number
    Item number of the BOM components copied into the order.

    RSDB
    RSBD POSNR

Maybe you are looking for

  • How to use VBA in Excel to convert a pdf file to XML?

    Hello,     I need to convert pdf to XML format so that it can be imported into Excel workbook and the information can be extracting out and mapped to existing excel cells. What is the easiest way to get it down without introduce any additional tools/

  • "Communication Error" Trying to Have a Video Chat

    Hello I've never tried to have a video chat before, but today I wanted to try it and it won't work. I get a "Communication Error" (exact text at the bottom of the post). I get this error both connecting to my friend and the connection bot 'appleu3tes

  • Oracle 8i Enterprise

    I have installed the Oracle 8i Enterprise on a NT4.0 sp3 platform. I wonder how to use it, as I couldnot find any step by step tutorial. Can someone help me. Thanks in advance.

  • Sms group

    How can I get a group sms to send each time without text messaging freezing up?

  • Trying to do a simple prototype

    I'm trying to do a simple prototype that uses Templates. I've taken the code from the Developer's Guide chapter 10 and modified it a bit, but don't really know enough to implement the SingleSelectionTemplate (and the MetadateState and SourceGenerator