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

Similar Messages

  • How to determine the purchasing group using BADI BBP_PGRP_FIND

    Hello Friends
    We use SRM Server 5.5 (Classic scenario).
    As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group. 
    In our case, we should determine the purchasing group using other criteria.
    MM side is OK to determine the purchasing group using specific criteria.
    Because Material Master has the purch. Group information. 
    In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.
    But I’m not sure how to use this badi.
    We want to determine the purchasing group based on the following logic.
    If described shopping cart without product ID
    Do Standard purchasing group determination logic.
    Else
    Assign the purch group from MARC- EKGRP (Purchasing Group)
    Is it possible to determine above the logic?
    If yes, Could you give me some information?
    Thank you,
    Best regards,
    SH
    Message was edited by:
            So Hee Lee

    Thank you for your answer.
    I found the way to develop the our logic using BADI: bbp_pgrp_find.
    But I’m not sure the following logic is correct.
    To differentiate described req. or product id req, We check the E_ITEM – PRODUCT using BBP_PD_SC_GETDETAIL.
    IF E_ITEM – PRODUCT is blank, Read the category ID to find the purchasing group.
    To find the purch. Group, we can use FM:  BBP_OM_DETERMINE_RESP_PGRP.
    Import parameter: IS_RESP_ITEM_DATA – Category _ID
    Export parameter: ES_PURCH_DATA
    ELSE
    CALL the customer function to read the R/3 purchasing group from MARC- EKGRP
    Search the HRT5500-TABNR using purchasing group from R/3.
    Search the HRP5500 – OBJID using HRT5500-TABNR
    Call the FM:  BBP_OM_DETERMINE_RESP_PGRP
    Import parameter: IS_RESP_ITEM_DATA – PROC_GROUP – OBJID
    Export parameter: ES_PURCH_DATA
    Thank you
    Best Regards
    SH

  • Use SQL function to get the original order number using the invoice number

    Hi All,
    wondering is someone can help me with this challenge I am having?  Often I need to return the original order numbers that created the resulting invoce.  This is a relatively simple seriese of joins in a query but I am wanting to simplify it using a SQL function that can be referenced each time easily from with in the SELECT statement.  the code i currently have is:
    Use SQL function to get the original order number using the invoice number
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    RETURN @OrderList 
    END
    it is run by the following query:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number here'
    The issue is that this returns the order number for all of the lines in the invoice.  Only want to see the summary of the order numbers.  ie if 3 orders were used to make a 20 line inovice I only want to see the 3 order numbers retuned in the field.
    If this was a simple reporting SELECT query I would use SELECT DISTINCT.  But I can't do that.
    Any ideas?
    Thanks,
    Mike

    Thanks Gordon,
    I am trying to get away from the massive table access list everytime I write a query where I need to access the original order number of the invoice.  However, I have managed to solve my own problem with a GROUP BY statement!
    Others may be interested so, the code is this:
    CREATE FUNCTION dbo.fnOrdersThatMakeInvoice(@InvNum int)
    RETURNS nvarchar(200)
    AS
    BEGIN
    DECLARE @OrderList nvarchar(200)
    SET @OrderList = ''
    SELECT @OrderList = @OrderList + (cast(T6.DocNum AS nvarchar(10)) + ' ')
    FROM  OINV AS T1 INNER JOIN
          INV1 AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
          DLN1 AS T4 ON T2.BaseEntry = T4.DocEntry AND T2.BaseLine = T4.LineNum INNER JOIN
          RDR1 AS T5 ON T4.BaseEntry = T5.DocEntry AND T4.BaseLine = T5.LineNum INNER JOIN
          ORDR AS T6 ON T5.DocEntry = T6.DocEntry
    WHERE T1.DocNum = @InvNum
    GROUP BY T6.DocNum
    RETURN @OrderList 
    END
    and to call it use this:
    Select T1.DocNum, dbo.fnOrdersThatMakeInvoice(T1.DocNum)
    From OINV T1
    Where T1.DocNum = 'your invoice number'

  • Sales Order value updating in the Internal Order Revenue Planning

    Dear All, 
    We have created an Internal Order and entered the planned value of the Revenue & Costs.When we create the Sales Order ,the Planned Revenue value of the Internal Order is updating by the Sales Order Value,but as per the client requirement ,the planned value of the Internal Order should not get updated by the sales order value.
    Please note that we have activated the CO-PA.Is this CO-PA activation is affecting the Internal Order planned values by the Sales Order value?.If so how to come from this issue.
    Please help me as how to resolve this issue.
    Regards
    Subbu

    Hi,
    Thanks for giving the appropriate SAP Note and I have referred the said note,but in note the SAP has said that
    "The attached modification deactivates the update for the order for all order categories (CO internal order, PM order, CS order)."
    In our scenario we need to update the planned vales in the CO Internal Order ,PM Order and CS Order except the Sales Order value.Is there any other alternative solution without affecting the CO Internal Order,PM order and CS Order?
    Please share as we are in the process of testing.
    Thanks
    Subbu

  • Function which determines the selection period dropdown on MSS Reporting

    Hi
    I need the function which detemines the dropdown of the selection period on the MSS reporting screen on the Portal.
    I know that function: HRWPC_GENERAL_KEYDATE_GET determines the default keydate.
    Can anybody please assist?
    Regards
    Margariet

    Hi
    Is there anybody who can assist me with this please?
    iet
    Regards
    Margar

  • I can't re-download Audiobooks I purchased. I have tried the purchased queue and re-purchasing but iTunes tells me I will be charged again, lastly it is not in my available downloads. How do I download my old audiobooks?

    I can't re-download Audiobooks I purchased. I have tried the purchased queue and re-purchasing but iTunes tells me I will be charged again, lastly it is not in my available downloads. How do I download my old audiobooks?

    "I can't re-download Audiobooks I purchased."
    That is true.
    " I have tried the purchased queue and re-purchasing but iTunes tells me I will be charged again, "
    True also.
    " lastly it is not in my available downloads." 
    True again.
    " How do I download my old audiobooks?"
    You don't.
    You get one download.  It is your responsibility to back up your contents.

  • I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?

    I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?

    Do I understand correctly that I have to buy the new version for $149.00?
    You can upgrade for $79.
    Products

  • In a game i'd like to make an in-app purchase but everytime i select the purchase i'd like it says "Purchase fail cannot connect to Itunes store". I am logged into my itunes store what do i do?

    In a game i'd like to make an in-app purchase but everytime i select the purchase i'd like it says "Purchase fail cannot connect to Itunes store". I am logged into my itunes store what do i do?

    Just make sure if it wifi is connected. if this doesn't work reboot your iPhone. If it's still doesn't work contact the game service center or something. lastly, make sure u have your credit card sign in. hope this help.

  • Determining the VAT registration number

    Hi All,
    As per my understanding, we can control Determining the VAT registration number through Certain pre defined rules (first either Sold to Party or Bill to Party & then Ship to Party).
    My requirement is to determine VAT Reg number based on Ship to Party which is not there in standard VAT determination rule.
    Can some one guide me if there is any enhancement / Exit or any other config available through which I can make Determining the VAT registration number based on Ship to Party.
    Regds
    Amit Kumar

    Hello Raghavendra,
    Thanks, The issue has been resolved as per SAP note suggested by you.
    Amit

  • JDeveloper was unable to determine the HTTP port number

    Hi,
    I am trying to deploy my application from Jdeveloper(9.03) to Oracle Application server(9i). Both the servers are running on the same machine.[oc4j is running]
    When I deploy my applicaion (web war), I am getting the following error:
    "http://Anil:????/ManApp
    Note: JDeveloper was unable to determine the HTTP port number of the remote server for the above URL(s)."
    I have specified 8888 port in the connection dialog and it is successfully connecting to the Oracle AS.
    Please help me sort this out.
    Regards
    ~anil.

    JDEV Version: 10.1.2.17.84
    ORACLE AS - 10.1.2.0.0

  • Purchase requisition got deleted in the sales order..

    Hi All,
    I got stuck up with an issue in AFS.
    The issue is that after creating a P.O with the help of a TAB order,the user has assigned a rejection reason at the item level in the sales order.
    Then again the rejection reason was removed and now the purchase requisition is not appearing in the sales order.
    Now how can i get back the purchase requisition??Is there any option to retreve the purchase requisition with the help of a correction report??
    Can any one please help me out..
    Thanks.

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • Purchase order per mail to the purchaser

    Hi
    I want to mail the purchase order to the purchaser and not to the vendor. It is only possible for me mailing the purchase order to the vendor.
    I use the 5. external send.
    Can anybody provide we how to do?
    Thanks in advance
    Best regards
    Lone

    if your simple case is to send PO to purchaser instead of vendor ALWAYS, then change the vendor master email address to email address of purchaser.
    there is a similar thread on this just 4 hours ago.
    if you need more details and other details,you can also refer to the link below.
    http://scn.sap.com/thread/621196

  • Which Factory Calendar is used to determine the Sales Order delivery date

    Hi ,
    There is Factory calendar assigned to sales Org and shipping point as well.
    I want to know which Factory calendar is used to determine the promise date on sales order acknowledgement and which one is used to determine the delivery date?
    Appreciate your help/inputs.
    Regards,
    Ram

    Ramy,
    I am not sure what you mean by 'promise date'.  For a given sales order item confirmation schedule, the system calculates the following dates:
    Delivery Date
    Goods Issue date
    Loading Date
    Material Availability date
    Transportation planning date.
    These dates are dependent upon what you have configured, and what your master data is.  If you have transportation scheduling turned on (IMG>SD>Basic Functions>Delivery scheduling and transportation scheduling), then the durations are:
    Route duration (transit), - affected by factory calendar assigned to the route (0VTC, that's a zero)
    Picking time, packing time, Transportation planning time, and Loading time- affected by the factory calendar assigned to the shipping point (OVLZ, not a zero)
    In addition, the Material availability date will be affected by the calendar assigned to the plant (WB03).  The calculated dates may also differ on a given order schedule line, based on whether the sales order is backward scheduled or forward scheduled.  This is particularly important when the calendars all have different holiday schedules.
    Standard SAP help on the matter, with a couple of nice pictures.
    http://help.sap.com/saphelp_erp60/helpdata/en/dd/5607e7545a11d1a7020000e829fd11/frameset.htm
    Rgds,
    DB49
    Edited by: Dogboy49 on Feb 16, 2010 5:08 AM

  • How do I determine the best Order to run my butterwort​h filter at?

    I'm lowpass filtering a signal that was sampled at 200hz through a 40Hz butterworth. I need to determine the optimal filter order. How do i create a quantitative comparison of the effects of the butterworth filter on the frequencies above 40Hz based on varying order?
    I have tried using the FFT to create a chart in the frequency space, but am not sure how to proceed. Any help would be greatly appreciated. What I want to compare is the path immediately before and immediately after the butterworth filter.
    Also is there an alternate way to read in a column of numbers from a text file without using the Read from Measurement file Express VI?
    Solved!
    Go to Solution.
    Attachments:
    frequencydomain.JPG ‏131 KB

    I have my filter working correctly now. I just need a quantifiable way to justify picking any one order of filtering over another.
    Here is my front panel, How can I compare the (After/ Before) graphs of varying orders (in a quantifiable way)? How can one tell which is the best?
    I was thinking I could compare the (Integral from 0 to 40)/40 and the (Integral from 40-inf). The order that yeilds the closest to 1 and 0 respectively should be the one I go with. Does that sound logical?
    How do I compute a definite integral with a lower bound and an upper bound?
    Attachments:
    order2.JPG ‏240 KB
    order5.JPG ‏240 KB
    order10.JPG ‏240 KB

  • How do determine the work orders for a sales order?

    I'm forced to calculate our costs by sales order.  So for a given sales order number, how is this linked to the work order that created the items on the sales order?
    Thanks

    Hi,
    Check this:
    Re: Open Production Orders List with a Field from Sales Order
    Thanks,
    Gordon

Maybe you are looking for

  • Safari 4.01 keeps crashing and now won't open at all

    Hi everyone. I have read through all the threads regarding Safari crashing and tried most of the relevant solutions. No luck! I have created a new account and found that Safari works perfectly. However on the original account, after removing the plis

  • Error trying to run the HelloMidlet.java in Java(TM) ME Platform SDK 3.0

    Hi! I can not run the example-midlet. I get this error: pre-init: pre-load-properties: exists.config.active: exists.netbeans.user: exists.user.properties.file: load-properties: exists.platform.active: exists.platform.configuration: exists.platform.pr

  • Problems with activation after reset iphone!!!

    Good afternoon. I dropped my iphone 4 settings of the operating system of IOS 7 and I can not activate it. APPLE ID registered on which he does not fit after a reset. but this device registered in My Support Profile In my apple ID iphone 4 - Serial n

  • Is Reatil Problem in Outbound Idoc

    When I process POS outbound idoc wpdtax01 it will give error msg “Error in ALE service” and it have status 29, who can I resolved that problem can any method for reprocess POS outbound idoc thanks Amit Shivhare

  • Newest MacBook Air and Final Cut Pro X?

    I'm in the market for a new laptop for work. I'm a former video editor (still on FCP 7) that's been able to produce 100's of videos on my 2011 MacBook Pro: OS 10.7.5, 2.2 GHz Intel Core i7 8GB 1333 MHz DDR3 RAM AMD Radeon HD 6750M 1024MB Graphics Car