Purchase order number of the customer equals to the batch number

At our case, purchase order number of the customer equals to the batch number. Purchase order number will be written on the sales document (VBKD - BSTKD).
1. How can the production department can see what is written in this field (on md04 or etc...)? The batches will be created by the PP module so they have to see what is written on this field to give the right number to the batch externally (when creating the batch manually).
2. If batches are automatically created, how can we make the batch number to be equal to the purchase order number which is written on the sales document (VBKD - BSTKD)?
I'll be happy for the answers and I'll also be happy if you can give me the names of the user exits for the above questions. Thanks in advance for the answers....

Hi Yasar?
Did you evaluate working with valuated sales order stock?
This way your PP people could use Make to Order style manufacturing and produce for a special "batch" => The sales order special stock.
Can be used in Repetitive Manufacturing and has no impact in costing, therefore a nice option for the situation you are describing.
In MD04 a special segment will appear for the the Sales Order stock and this stock will only be able to be shipped for this special order.
Best Regards,
Franck

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

  • Customer purchase order number at schedule line level in scheduling agreeme

    Hi,
    We have one typical requirement from scheduling agreement functionality. The scenario is we receive the schedule lines from Idocs from customer with purchase order number for each schedule line. We need to print that PO number on packing slip and ASN. How do we capture the schedule line po number in SAP SA?
    Please share your ideas on this.
    Regards, Lakshmikanth

    Hi Chandrasekhar,
    Thanks for your reply, here we create one delivery for each schedule line quantity, we need to copy the respective purchase order number into delivery. There is no Corelation between schedule line number and additional data field, so we can not use very freely.  Do we have any other option?
    Regards, Lakshmikanth

  • Customer purchase order number in Billing document

    Hi Experts
    Billing documen --> Item double click --> Last Tab is PO Data
    Table (VBKD) --Field (BSTKD) -- Customer purchase order number
    How do I get populated my PO here in this field. I am not using the sales order. Only P.O --> D.O --> Billing.(inter Co. STO)
    Any help can be appreciated
    regards
    RG.

    Hi,
    You have the PO number in the delivery (in items, LIPS-VGBEL) or in VBFA table.So, you can achieve it in the copy rules from delivery to invoice (in a VOFM in VTFL). Check so the splitting of invoice (structure ZUK or field ZUKRI), so, see SAP Note 11162 - Invoice split criteria in billing document.
    I hope it helps you
    Regards
    Eduardo

  • 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

  • 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

  • Purchase Order : function to determine the purchase order number

    Hi,
    I'm working on data migration to create purchase order. I must use the internally range number. Does anybody knows which function must i use to create the purchase order number before calling the bapi bapi_po_create ?
    with regards
    Jean-Luc Ledoux

    Hi,
    The BAPI is designed to generate the next free number that is defined by the company and allocate it in series.
    This is taken care internally.
    explain the scenario like as from what data ur creating the PO and wht exactly do u mean by having ur own internal number range.....
    No body will have 2 number ranges to define PO....
    if ur uploading data from legacy system then u can have 2 fields called as old purchase order number and purchase order number in new erp system.
    if this is ur scenario ask how the functional mapping is done in the company to accomadate legacy purchase order numbers.
    Regards,
    Jayaram Maganti

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

  • 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

  • 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

  • Update Purchase order number in Sales order item level from inbound ORDCHG iDoc

    Hi Gurus,
    I want to update purchase order number from the iDoc 'ORDCHG' to sales order item level (sold to party purchase order number) i.e, VBAK-BSTKD.
    Which exit I need to use?  where to update?  Can you please help.
    Thank you in advance.
    Regards,
    San

    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.

  • Problem in Shipment purchase order number

    Hello Experts,
    At time of shipment count number(VI02), purchase order and service entry is created automatically. But whenever created new shipment count same purchase order number is updated ie sequentially not taking, but service entry has not problem.
    Pls tell why this problem is occured.

    Hi,
    It depends on customizing settings for the PO for shipment costing. You can set a period for validity of the PO. In standard it is set to a month (I believe). It will split up per forwarding agent.
    Quote of help.sap:
    The purchase order can be valid for the following periods:
    Day
    Week
    Month
    In Customizing the purchasing organization, the purchasing group and the plant must be assigned to the corresponding transportation planning point and the shipment cost type. You make these settings in the IMG. Choose Logistics Execution ® Transportation ® Shipment costs ® Settlement ® Assign purchasing data.
    End quote.
    MdZ

  • Defining Purchase Order Number as a Required Entry

    Dear All,
    I've cut and pasted the contents of sap.help.com below, I'm trying to make the Purchase order Number in sales order document a required entry but I'm unable to locate the checkbox in VD02 as mentioned in help text. can some one help me out.
    Defining Purchase Order Number as a Required Entry:
    Use:
    If a customer order number appears on the order for that customer, you can define the PO number (purchase order number) field as a required entry.
    Procedure:
    Choose Logistics ® Sales/distribution ® Master data ® Business partners ® Sold-to party ® Change ® Change.
    Enter the customer and select the Control data view in the General data area of the screen and choose Enter.
    The system now displays the Customer Change: Control Data screen. In the Reference data/area section, select the Purchase order req. checkbox. Save the customer master.
    Result:
    You will have to enter the purchase order number on the Order Entry screen for this customer in all future orders.

    Hi
    TRy transaction VOV8
    select sales document type and go to general control and select Enter PO number check box.
    Otherwise you can create your own incompletion procedure in OVA2 and maintain whatever field you want mandatory and asign this procedure to  sales document type with transaction VUA2 and mark IC dialog.
    regards
    Srinivas

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

Maybe you are looking for

  • My firefox crashes when I try to open it and it will not start in safe mode.

    I have updated all of my plug-ins, but it still will not open.

  • DDL statements in Graphic builder 6i

    Hi. Is there possibility to perform DDL statements in Graphic builder 6i? Something like FORM_DDL in Forms and SRW.DO_SQL in Reports. I want to set role. Report has own statement SET_ROLE. Our application use classic security model: User has granted

  • Mac Mini: Bluetooth Module (Creating a Buzz)

    I have a high pitched buzzing sound coming from my Mac Mini's audio out right channel whenever the Bluetooth module is active. I have tried numerous recommendations and suggestions, but nothing seems to eliminate the buzz. Outside of disabling the Bl

  • Parameter screen and report in the same page?????

    Hi Gurus... Here is what i am trying to do ..I am trying to show the customization screen and the report in the same page 1.the user selects some data from the lov .. 2.Based on the lov selected field the below report should change .. like if the use

  • Problem to zip a file

    in the file management when i select a file and zip it , the size of the file does not change ? Solved! Go to Solution.