BW purchase invoice number

Hi,
we need to extract data in this structure
purchase invoice number
purchase invoice item
order document number
order document number
+ additional keyfigures and infoobject
my question is if there is some standard extractor which provide this structure or some extractor which can be enhanced by purchase invoice number and item
Thanks for advice
PP

Hi Sandeep,
I have not worked on this datasource but yes technically you can do it.
As I understand, 2LIS_02_SCL is for header details of PO and PO has one to one relationship with Material Doc number.
Therefore, if you requirement is to only bring in the header details for this Material doc, only enhance this datasource.
Append this field to the datasource, then write the customer exit for this datasource.
In this customer exit, you can write your code for deriving the Material doc number from EKBE based on the details available in e_t_data (for this datasource).
But, if your requirement is to fetch line item details as well, you need to append the other datasource as well. And by writing the exit you can again derive the details from the table.
Please note that the appended fields cannot be used to trigger any deltas, so if your requirement includes to trigger the delta if your material document changes, it cannot be done.
Hope this helps.

Similar Messages

  • Goods receipt number and purchase invoice nubember info objects

    hi experts
    i have the requirement to build the report with the  info objects of goods receipt number(document) , purchase invoice numbers and purchase document numbers from standard cubes or ods.i have checked in inventory management and purchasing cubes&ods i am not success got the purchase document number it is from ods   (0PUR_O02)  the InfoObject  is 0OI_EBELN(purchasing document number),like this i want InfoObject  for Goods receipt number and purchase invoices from where can i get these fields.
    if u need any more information i will provide.
    thanks and regards
    Sreenivas.

    Hi Ahamed,
    thanks for your reply,do u have any information about purchase invoice number.
    i need one more help from you, how to find out Debtors turnover ratio from Acceount Receivables(AR) (or)G/L (General ledger account).is there any standard queries from Business content,i was checked and i was failed,if you have any solution for this please let me know.
    thanks and regards
    Sreenivas.

  • Update Purchase Order number.(Link GL to PO)

    Hi all,
    Currently i am using the below query for one of our report(R12). However there is a need to update Purchase Order Number .Could anyone please help on how to link GL to PO and provide the updated query.The query is as follows.
    SELECT gjl.je_line_num,
        gjl.code_combination_id,
        SUM(NVL(GJL.accounted_dr, 0))                                     AS Accounted_DR,
        SUM(NVL(GJL.accounted_cr, 0))                                     AS Accounted_CR,
        ( SUM(NVL(GJL.accounted_dr, 0)) - SUM(NVL(GJL.accounted_cr, 0)) ) AS Accounted_Balance,
        gjb.actual_flag,
        NULL     AS "Check Number",
        gjb.name AS "Batch Name",
        TO_CHAR(gjh.currency_conversion_date, 'DD-Mon-YYYY') currency_conversion_date,
        ROUND(gjh.CURRENCY_CONVERSION_RATE,4) CURRENCY_CONVERSION_RATE,
        gjh.currency_conversion_type,
        NULL                                                          AS Document_Number,
        SUM(NVL(GJL.entered_dr, 0))                                   AS Entered_DR,
        SUM(NVL(GJL.entered_cr, 0))                                   AS Entered_CR,
        ( SUM(NVL(GJL.entered_dr, 0)) - SUM(NVL(GJL.entered_cr, 0)) ) AS Entered_Balance,
        gcc.segment1
        || '.'
        || gcc.segment2
        || '.'
        || gcc.segment3
        || '.'
        || gcc.segment4
        || '.'
        ||gcc.segment5
        || '.'
        || gcc.segment6
        || '.'
        || gcc.segment7
        || '.'
        || gcc.segment8 "Account Code",
        gl.currency_code AS "Ledger Currency",
        gjh.name         AS "Header Name",
        gjl.description  AS "Journal Line Description",
        NULL             AS party_name,
        NULL             AS party_id,
        GJH.period_name,
        TO_CHAR(gjh.POSTED_DATE, 'DD-Mon-YYYY') POSTED_DATE,
        NULL AS "Purchase Invoice Number",
        NULL AS "AP Invoice Line Description",
        NULL AS "Sales Invoice Number",
        gcc.segment1 Company ,
        gcc.segment2 Account,
        DECODE(gcc.segment2,NULL,'',apps.gl_flexfields_pkg.get_description_sql(gcc.chart_of_accounts_id,2,gcc.segment2)) AS "Seg2 Desc",
        gcc.segment3 AS "Business Model",
        gcc.segment4 Region,
        gcc.segment5 AS "Cost Profit Center",
        gcc.segment6 AS "Product Group",
        gcc.segment7 AS "Related Company",
        gcc.segment8 AS "Reserve",
        gjl.status   AS "Journal Line Status",
        GL.name      AS "LEDGER NAME",
        GJH.currency_code,
        GJH.je_category je_cat_f,
        GJCT.user_je_category_name je_category,
        GJH.je_source,
        NULL AS "Sales_order" ,
        NULL AS "Purchase Order Number"
      FROM APPS.gl_je_headers gjh,
        APPS.gl_je_batches gjb,
        APPS.gl_ledgers gl,
        APPS.gl_je_lines gjl,
        APPS.gl_code_combinations gcc,
        (SELECT je_category_name,
          user_je_category_name
        FROM APPS.GL_JE_CATEGORIES_TL
        WHERE language='E'
        ) GJCT
      WHERE gjh.je_from_sla_flag IS NULL
      --AND gjh.EXTERNAL_REFERENCE IS NULL
      AND gjb.je_batch_id         = gjh.je_batch_id
      AND gjh.ledger_id           = gl.ledger_id
      AND gjh.je_header_id        = gjl.je_header_id
      AND gcc.code_combination_id = gjl.code_combination_id
      AND GJH.JE_CATEGORY         = GJCT.je_category_name(+)
      AND GL.name NOT IN('NL ABX RepCorp USD (EUR)')
      GROUP BY gjl.je_line_num,
        gjl.code_combination_id,
        gjb.actual_flag,
        gjb.name,
        gjh.currency_conversion_date,
        ROUND(gjh.CURRENCY_CONVERSION_RATE,4),
        gjh.currency_conversion_type,
        gcc.segment1
        || '.'
        || gcc.segment2
        || '.'
        || gcc.segment3
        || '.'
        || gcc.segment4
        || '.'
        ||gcc.segment5
        || '.'
        || gcc.segment6
        || '.'
        || gcc.segment7
        || '.'
        || gcc.segment8,
        gl.currency_code,
        gjh.name,
        gjl.description,
        gjb.je_batch_id,
        gjb.status,
        gjb.posted_date,
        gjb.description,
        gl.name,
        gjh.name,
        GJH.period_name,
        gjh.posted_date,
        gcc.segment1,
        gcc.segment2,
        gcc.segment3,
        gcc.segment4,
        gcc.segment5,
        gcc.segment6,
        gcc.segment7,
        gcc.segment8,
        GL.name,
        gjl.status,
        GJH.je_category,
        GJCT.user_je_category_name,
        GJH.je_source,
        GJH.currency_code,
        DECODE(gcc.segment2,NULL,'',apps.gl_flexfields_pkg.get_description_sql(gcc.chart_of_accounts_id,2,gcc.segment2))

    Finally Resolved the problem by writing 2 exits.
    one exit 'EXIT_SAPLVEDB_007'  for identify correct item in the sales order by updating the customer purchase order item number i.e., VBAP-POSEX.  if we update the POSEX field then it wont create new item instead, it will update the item which it is referring to .
    2nd exit for updating the purchase order number. 
    I have tried to pass the program name, screen number, field name, field value etc to bdcdata in the exit 'EXIT_SAPLVEDB_002'. but I observed that it is not going to that screen in the debugging.
    when I try E1EDP02 with QUALF '044' it will update ship-to party's purchase order number.  so to update ship-to party's purchase order number it is going to that screen. 
    so I have used that thing to update purchase order number in sold-to party's purchase order number.
    so when it is going that screen iam changing the field name 'VBKD-BSTKD_E' to 'VBKD-BSTKD' in bdcdata.  Then it is worked.
    This is the solution I found in my time.
    Any way it is solved.  Hope it will be helpful for others who will get this problem.

  • 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.

  • Purchase Order history is not updated with Invoice number

    Hello Experts ,
    Please suggest some inputs/solution for my problem.
    Scenarios is :
    PO --> SO --> Invoice
    I am creating the invoice with the medium EDI , when I click on Save button IDOC is generated with the message " IDoc 'xxxxxxxxxxxxx' was created and forwarded for transmission " and it showing the status as 03 i.e, The IDoc was sent to an R/3 System or an external program via a transactional RFC ...but the problem is if I got to the Purchase Order history Its not updated with the Invoice number.
    What could be the problem , please suggest.

    Hi!
    I'm not sure, in which process you link PO and SO. There are some different ways, which are totally different scenarios - if you need help here, describe more detailed.
    Your invoice is probably only created with reference to SO, so check the invoice itself. In this case also the SO history should include the invoice.
    Regards,
    Christian

  • Open the field purchase document number in vendor invoice

    Hi,
    I've to open the purchase document number field in the vendor invoice transaction (FB60) for the reconciliation vendor account?
    I've done these operations in customizing:
    - set the field purchase order in the Field status group like optional
    - set the tield purchase order in the posting key control (31 and 21)
    Could you suggest me how to open the field?
    Tks!
    Regards,
    Gaetano

    Hi,
    Can you please provide me the solution for this as I too am facing a similar problem. While posting an entry using FB01/F-43, for posting key 31(Vendor Invoice), despite making Purchasing Document field optional in field status group of the posting key as well as Reconciliation (GL) Account, the Purchasing Document field is not appearing.
    Thanks and Regards,
    Sumita

  • Printing invoice number and purchase order

    Hi All,
             I am newbie to SAP scripts.By using standard script ( f110_prenum_chk  ) modifying the script layout.and also need to print some extra fields.those are ,
                                --  Invoice number
                                --  Purchase order number
                                --  TDS
    from the above  i am able to display TDS by using the field &regud-sqste& .Is this right field to print the TDS ?
    and from which table i can fetch the details of invoice number ,and PO number ?i have the document number (reguh-vblnr).can i use this field to fetch the details of  invoice and PO numbr.please Help me out.
    Thanks and regards
    Naresh
    Edited by: naresh bammidi on Oct 12, 2011 2:17 PM

    Hi,
    You ERP system should be upgraded to Enhancement pack 3 to avail this datasource. Could you confirm the patch level of your ECC system. Or you can use 2lis_06_inv datasource to get the PO Number and accounting information.
    Thanks,
    RRR.
    Edited by: Rammi on Feb 18, 2010 10:11 AM
    Edited by: Rammi on Feb 18, 2010 10:12 AM
    Edited by: Rammi on Feb 18, 2010 10:12 AM

  • BI : Invoice number in Purchase Order

    Hi Experts,
    I am doing Standard extraction for having purchase order related data in BI. we are using the below data sources :
    2LIS_02_itm, 2lis_02_cgr,2lis_02_scn & 2lis_02_sgr. Our requirement is we want to have the invoice number(XBLNR,REBZG)  in the extraction but none of the standard PO related Datasource has these fields. Kindly advise how can we bring the invoice number for purchase order extraction.
    thanks & regards,
    M.S

    Hi,
    You ERP system should be upgraded to Enhancement pack 3 to avail this datasource. Could you confirm the patch level of your ECC system. Or you can use 2lis_06_inv datasource to get the PO Number and accounting information.
    Thanks,
    RRR.
    Edited by: Rammi on Feb 18, 2010 10:11 AM
    Edited by: Rammi on Feb 18, 2010 10:12 AM
    Edited by: Rammi on Feb 18, 2010 10:12 AM

  • Can 2 invoice number be created with the same Purchase Order number

    HI,
    I have created one invoice number with a Purchase order number 4500020000. Now is it possible to create a another invoice number with the Same PO

    In me23n transaction go to Invoice tab(In items), there will be a check box for <b>Final Invoice</b>. If it is checked, full amount is invoiced.
    The same can be checked in table EKPO.
    Field EREKZ = 'X' means final invoice done.
    another method is:
    foe each item:
    go to table EKPO and see the quantity.
    then go to table ekbe and get all the invoiced quantity by passing VGABE = '2'. for the PO item.
    add all the records with SHKZG = 'H' and subtract the total of all SHKZG = 'S' records.
    If this quantity is equal to the ekpo quantity, then there is no more quantity to be invoiced.
    Get the PO Item quantities
      SELECT EBELN
             EBELP
             MENGE
        FROM EKPO
        INTO TABLE IT_EKPO
       WHERE EBELN IN R_EBELN.
    Get the Invoice Receipt Documents for the POs
        SELECT EBELN
               EBELP
               BEWTP
               MENGE
               GJAHR
               BELNR
               BUZEI
               SHKZG
          FROM EKBE
          INTO TABLE IT_EKBE
          FOR ALL ENTRIES IN IT_EKPO
         WHERE EBELN = IT_EKPO-EBELN
           AND EBELP = IT_EKPO-EBELP
           AND VGABE = C_VGABE_2.
    logic to check if the IR Quantity equals the PO Quantity for each Item
      LOOP AT IT_EKPO.
        CLEAR V_BPMNG.
    For each line item, calculate the total Invoiced Quanity
        LOOP AT IT_EKBE WHERE EBELN = IT_EKPO-EBELN
                          AND EBELP = IT_EKPO-EBELP.
    Change the sign of the quantity for debit
          IF IT_EKBE-SHKZG = C_SHKZG_H.
            IT_EKBE-MENGE = -1 * IT_EKBE-MENGE.
          ENDIF.
          V_BPMNG = V_BPMNG + IT_EKBE-MENGE.
        ENDLOOP.
    If the PO Item Quantity is equal to IR Quantity
        IF IT_EKPO-MENGE = V_BPMNG.   "ARAO
    write:/ 'No more quantity to be invoiced'.
        ENDIF.
      ENDLOOP.
    Regards,
    ravi
    Message was edited by: Ravi Kanth Talagana

  • Cannot query AR invoices based on the purchase order number in R 12 1.3

    Hi,
    We need to query invoices based on the purchase order number, However when we try to Ct+F11 get the message *"Please fill in selective criteria in at least one of the following fields for performance reasons: GL Date, NUmber,Bill to etc."*
    Is this a new feature or a bug?
    Thanks and Regards,
    MPH

    Hi All,
    I found the solution in the following note.
    *How to prevent Blind Query or Query on Non Indexed Column in Transaction, Receipts, Collections forms? [ID 753222.1]*
    Thanks and Regards,
    MPH

  • How to show invoice number on Receipt Buy page for PayPal purchases

    In our Receipt Buy layout we include the invoice number tag as
    {tag_invoicenumber}
    However, when a customer completes a purchase using PayPal as the payment method, the invoice number is not shown here.
    Is there something else that we need to do here or a different tag to display for PayPal?
    Also, we show the authorisation code for credit card purchases but would like to hide this for PayPal. Is there a way to do this?
    Thanks,
    Colin

    Sounds like you not quite set up Paypal properly, comon thing to happen.
    You need to ensure you follow the paypal standard setup guide exactly.

  • Purchase Order report with MIRO invoice and/or FI invoice number

    Hello,
    I am searching for a standard report which will allow PO number as input and dispaly the MIRO invoice number/s and if possible the corresponding FI document numbers.
    I have exhausted all the reports I know of - ME80FN. ME2* series, FBL3N.
    These are two options I know of but want to avoid:-
    SQVI query
    Z-report
    If there are no standrad reports, can someone explain use of Flexible analysis to create such a report.
    (Must confess that I have not fully explored that option yet).
    Thanks,
    Saurav.

    Hi,
    You can get invoice number in RSEG table
    pass this invoice number in BKPF into field  AWKEY field where you will get invoice number+fiscal year and in same table you will get BELNR FI dc for same invoice number
    Regards
    Kailas ugale

  • Invoice number  - in the return order purchase order tab page

    Hi
    User needs invoice number in the PO Tab  of the return order when Created with reference to invoice .
    usually PO number of the Sales order will be comming .
    what needs to be done for this
    Regards
    Anil

    Hi,
    If you are creating Return order with respect to Invoice then you can write a Data transfer routine for business data to copy invoice no to PO no field in VTFA .

  • Invoice number ,ivoice date against Billing,delivery ,sales order,purchase

    Hai,
    Can you please help me for getting the fields for achieving invoice number and invoice date against
    1.PO
    2.SO
    3.Billing
    4.Delivery
    5.Goods receipt.
    Please tell me the table and the field name so that it would be really helpful for me.
    It urgenttttt.....
    Neeraj

    PO- ekko, ekpo
    SO- vbak,vbap
    Billing-vbrk,vbrp
    Delivery-likp,lips
    Goods Receipt-
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • How can i get an old itunes invoice number if I permanently deleted it from my email

    I need an old itunes invoice number to fix an itunes ID issue but i delete these invoices every three months from my email and email trash i can i get a copy

    Login to the iTunes Store.
    From the menu bar click Store > View My Account
    Click Purchase History from the Account Information window.

Maybe you are looking for

  • How to view stocks in third party subcontracting process

    Hello, We have created a 3rd party subcon Sch.agr(LPP). We need to track the movement for the materials in the system. Do we have any tcodes for the same. Manoj.

  • HttpURLConnection and bandwidth

    I have written a program which downloads files from net using the HttpURLConnection class. I want to specify the percentage of bandwidth that should be used for downloading the files, so that it does not slow down by other net surfing work. Can anybo

  • Process getting killed automatically

    Hi I am using jdk 1.5 and java processes are getting killed automatically on server. Processes were working on test servers. Is anybody facing the same issue or knowledge about the same. Regards, Niraj

  • Memoria RAM lenovo c260

    Hola queria saber cual es la memoria Ram de una lenovo c260 ya que se la quiero cambiar y cuales puedo comprar de preferencia de 4gb y si hay de 8gb

  • Can't add skype credit

    Hi guys, I've been having some issues with my skype credit. During the last week, my credit has been automatically delivered and then reversed without me trying to add any credit and without my credit going under the $4.00 limit. I contacted live cha