Purchase order number  and there in voice number

Hi
   can Any buddy help me to find the PO number and its corresponding Invoice document number from table LFB1.
LFB1->PO->Invoice num.
thanks
imran

Hi,
LFA1-LIFNR has a link to EKKO-LIFNR.
Pick the respective EBELN and link with Sales table VBAK and VBAP with PO refrence number. Pick the sales order number VBELN for that document and query VBFA ( slaes document flow table ) and find the respective invoice number.
Regards,
Chandanroop

Similar Messages

  • "In FBL5N unable to view purchase order number and the sales order number"

    Hi,
    Below mentioned is the problem we are facing,
    In the Customer Line Item Display (FBL5N) it is vital for us to be able to view the customer's purchase order number as well as the sales order number for each billing document listed by customer.
    We need to be able to extract this information for each customer and import to an excel spread sheet for analysis, specifically for our larger customers that have over 500 plus lines.
    Kindly advise how to go about the same.
    Regards
    Harish

    Dear,
    Please also check note 152335. There, you will find a more detailed            
    explanation of the issue.                                                                               
    The only way to see some information regarding related PO-es in a Vendor       
    line items is a workaround. For example, it is possible to create              
    a substitution in order to fill in one of not currently used fields            
    like Reference, Text, etc.    
    I hope this helps You.
    mauri

  • Purchase Order Number in Vendor Line Item (FBl1N) and Clear Vendor (F-44)

    Hello,
    I am not getting the Purchase Order Number in Vendor Line Item.(FBl1N).
    Also during Clear of Vendor through F-44 i am not able to identify the Line item on the basis of Purchase Order Number.
    Could any one pleae help me out on this issue as i have to clear the vendor Line item in mass.
    Thanks
    Nitin Jindal
    Moderator: Please, respect the rules of the forum and search SDN before posting new thread. This question has been answered several times. Also, please choose proper forum to post your questions; this one is related to Financials and not to Controlling

    Based on my experience std feature from SD-FI . Depending on the SD Billing config which can be by delivery(VTFL) or sales order(VTFA). You can assign options of A: Cust PO No. B Sales order no. C Delivery no. D External delivery no.  E Actual invoice number to available header fields of Assignment No. or Reference No. Try it out

  • While executing TCode F13 and F13E, purchase order number is not appearing.how it should be displayed into tcode f.13, please any one help me

    While executing TCode F13 and F13E, purchase order number is not appearing.how it should be displayed into tcode f.13, what are the requirements need to display into tcode f.13, please any one help me, i am facing this problem in  production server

    Hi Nattu,
    Please check it will show the PO no under Purchasing doc field
    Check which layout you are applied.
    its should be
    SAP&F124
    Without Specification of Crcy
    Regd,
    Khan.

  • Table containeing both the purchase order number and the sales order number

    hi all!!!
    what is table that contains both the purchase order number and sales order number corresponding to that purchase order number.
    Moderator message: please search before posting.
    Edited by: Thomas Zloch on Jan 31, 2012

    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

  • 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

  • Connection between Purchase order number and Confimation number in SRM

    I have the purchase order number and need to find the confimation number. In which table can I find this? Can anyone help me finding the connection?
    /Anders Öhrling

    In SRM, go to Confirm Goods/Services screen, select Display/Process Confirmation in the drop-down of field 'Make a selection' , enter PO number here and click 'Start'. You should be able to see the Confirmation number below it.
    Is this one you are looking. If something else, please let me know.
    Thanks
    Venkat

  • Customer Purchase Order Number in line item and F.27

    Hi Experts.
    I was just wondering if its possible to populate customer purchase order number (entered in sales order) in line item, so that I can use in customer statement in F.27.
    The requirement is to populate customer purchase order number in customer statement (F.27) which is sent to the customer at month end.
    Is there a some other better way to do, please advice.
    Thanks in advance
    Best Regards
    Jen

    Based on my experience std feature from SD-FI . Depending on the SD Billing config which can be by delivery(VTFL) or sales order(VTFA). You can assign options of A: Cust PO No. B Sales order no. C Delivery no. D External delivery no.  E Actual invoice number to available header fields of Assignment No. or Reference No. Try it out

  • Copy purchase order number and date from one sales order to other sales ord

    Hi,
    I am creating sales order in va01. here i am entering purchase order number (p100) and date. Sales order number ex: 42000
    I am creating another sales order with reference to 42000. when creating sales order with reference to 42000, purchase order number (p100) and date has to be copied automatically from that order.
    Can anyone please give me a solution?
    Thanks in advance
    Babu

    Dear Babu,
    Currently, PO number is being mentioned in copy routine 101 but this  
    field VBKD-BSTKD is being cleared out.                                
    If we check this routine code:                                                                               
    FORM DATEN_KOPIEREN_101.                                              
    Data which is not copied                                            
    Pricing date for consignment issue by external service agent from   
    the scheduling agreement                                            
      IF CVBAK-VBTYP CA VBTYP_LP_EDL.                                     
        CLEAR VBKD-PRSDT.                                                 
      ENDIF.                                                              
    PO data should not be copied                                        
      CLEAR: VBKD-BSTKD,                    <<<<<                         
             VBKD-BSTDK,                                                  
    In order to achieve your requirement, you need to consider creating you
    own copying routines for VBKD fields copying standard copying routines
    (for example copying routine 101) according your business requirements
    and change them via transaction VOFM, in order to:                    
      - deactivate the LOCAL: statement                                   
      - delete the clear statements                                                                               
    Once you have created those two routines to match your business needs,
    you can insert them in transaction VTAA, so the sales order will copy 
    the PO date at item level.                                            
    I hope I was able to help you.
    Kind regards,
    Zsuzsanna

  • CREATION OF SET FOR PURCHASE ORDER NUMBER

    Dear Sirs,
    I want to create a basic set containing all purchase order number, even though i am using table MSEG and field EBELN, i am not getting and values in it. how to create a basic set containing all the available PO numbers, which can be used in FI validation.
    Give me the full setting to create a above mentioned set.
    Thanks and Regards

    i didn't get what u are saying please elobrate. let me put forth my issue clearly.
    my client want to check where there is any PO available are not, for payments exceeding 1,00,000/-
    So i am cofiguring a validation, for which i want to keep the  "set of PO numbers" in "CHECK" part of the validation. which i am unable to do. when ever i try to select the set it is saying no valid object found.
    SO please help me with ur expert knowledge in this regards
    Thanks & Regards

  • Purchase order number ranges plant wise

    Hi ,
    Requirement is , want to have purchase order number  plant wise. I know that we can have different number ranges for different document types in standard SAP. But how to achieve different number ranges for purchase order plant  wise.?
    Is there any user exits available for this?
    regards,
    abi

    Hi,
    it is possible through a BADI to get the separate number ranges for plant wise PR/PO,
    but u need to maintain a customised table with number ranges and plants,
    whenever the user try to save a PO/PR the syatem will pick the number range from the customised table,
    that BADI is ME_PROCESS_PO_CUST,
    it is very useful if any client has number of plants like 30 or 40 plants,
    and it is easy track the PO from where it has raised.
    rgds

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

  • Table name for Open purchase requisition / Purchase Order Number's

    Hi,
    I want to delete some Asset Number's. When i m deleting those, system give a error message You cannot delete. Open purchase requisition exists..
    From where i can found those Purchase Requisition / Purchase Order Number's. Is there any table, where i can found these numbers.
    Regards..

    hi,
    In the SAP Order Transactions ME21N, ME22N and ME23N, you can select by purchase requisitions in the document overview (selection variant -purchase requisitions).If you do so, it is possible to select explicitly by open and released purchase requisitions...
    OR
    In Transaction MEPO, in the document overview you can select by purchase requisitions. Here you can select only open purchase requisitions and execute...
    Regards
    Priyanka.P

  • How to get purchase order number from delivery number?

    hi all,
    how to get purchase order number and item if i have only delivery.
    and in same way how to get po number and item if i know only batch number.
    kindly give me some solution i need this urgently.
    thanks in advance.

    Check the logic below:
    * Selecting the Sales Documents from VBFA for corresponding Invoice
        SELECT vbelv
                     posnv
          FROM vbfa
          INTO TABLE gt_itab3
         WHERE vbeln EQ gt_itab5-vbeln
           AND posnn EQ gt_itab5-posnr
           AND vbtyp_n EQ 'J'.
        IF sy-subrc EQ zero.
          SORT gt_itab3 BY vbelv posnv.
        ENDIF.
      ENDIF.
      IF NOT gt_itab3 IS INITIAL.
    * Selecting the Purchase Orders from VBFA for corresponding Sales Documents
        SELECT vbeln
               posnn
          FROM vbfa
          INTO TABLE gt_itab4
       FOR ALL ENTRIES IN gt_itab3
         WHERE vbelv EQ gt_itab3-vbelv
           AND posnv EQ gt_itab3-posnv
           AND vbtyp_n EQ 'V'.
        IF sy-subrc EQ 0.
          SORT gt_itab4 BY vbeln posnn.
        ENDIF.
      ENDIF.
    Batch number will be there in delivery item.
    Regards
    Kannaiah

  • Purchase order number for the Delivery

    How do we get the Purchase order number from a delivery.
    Hello all
    Say i have an Purchase order [EKKO] and from that i have created a delivery.[LIKS]
    In my output for the delivery, i need the preceeding document number for the delivery which is the PO number.
    How do i get the same. what table should i look in. I checked the VBFA table, but i am not able to get the same there...
    is there any table with which we can get this info.
    thanks and Regards,
    Gauravjit.

    No, it will be at the line item level because you can potentially combine several PO (or sales order) line items into one delivery.

  • ME21 Purchase order number.

    hi friends,
             i am in the process of writing a BDC program for transaction ME21 to create P.O, to run in Background via JOB through Batch input session method.
             The purchase order number is generated internally, that means until P.O is created and saved, we don't know the P.O number, after only we save the P.O. the number is generated and shown to us as Information message.
             so i want to catch these numbers and push them into the presentation server as flat file. How do i catch these messages after the batch input, so that i can collect them in an internal table. or is there any other way to do it.
              My ultimate aim is to catch the purchase order numbers created in that batch input session.
    thanks and regards,
    sharon

    hello ram and prafulla,
      Thanks to both of u, for ur time.
    Ram's is a brilliant idea to read the logs, but for it to succeed i need ur help.. i just found out these things,
                  program rsbdc_protocol is responsible for transaction SM35 which shows the message logs, it uses a structure called bdc_protocol on the screen to display the messages, which inturn incldes a structure called bdclm, i went through the code, but could not find out the DB table from which ultimately the messages are coming, this program uses some function modules, may be they get the information i think, could u or any body else give me an idea, how to capture these messages..
               On the other hand when i gave a thought, after th batch has been processed, the P.O. created will have information stored in table EKKO and EKPO, from there also i cud get the P.O numbers, but what should be my search criteria, to get the correct P.O number created in that batch....
    thanks
    nivin

Maybe you are looking for