Items and Purchase Orders...

Help...Please...
We have a problem, we run stock close to minimum at all times, (we supply short dated food stuff), and often our customers ask when the next delivery is due in.
Now, we can drag and relate etc but often our staff just don't have time to search through the purchase orders to find the correct item and then when it's due in etc...
I am trying to create a UDF that sits on the item master data and for each item runs a query that states the date the item is due in from the purchase order.
So, in english/sql I need,
Select item shown and find appropriate purchase orders, select top 1, (ie the next delivery date), and enter it into the UDF...
I really am stuck in a way to code it, I've tried various ways but I think I'm going about it the wrong way or I'm missiong something, a date function / variable...
Can anyone help?
Cheers,
Gary

Hello Gary,
Here is the sql:
SELECT TOP 1 T1.ShipDate FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.ItemCode =$[OITM.ItemCode] ORDER BY T1.ShipDate desc FOR BROWSE
Just save it and link to the UDF.
RGDS,
Zsolt

Similar Messages

  • Standard program for unbilled  sales orders and purchase order items

    Can anyone advice,  is there any standard program which gives the unbilled sales order and purchase order items.

    Hi,
    Use the T.Code VA05/VA05n for list of all the sales order s which are open.
    Take T.Code:VA05N
    Select the option "Open Sales Orders".
    Execute.
    It will give you all the orders which are open.
    The standard program for this is:"SD_SALES_ORDERS_VIEW".
    The same you can also get by using the T.Code VF04.
    In this if your scenario is "Order related",then select the option "Order related".
    Else if it is "Delivery related",then select "Delivery-related".
    Execute.
    The standatd program for this is:"SDBILLDL".
    T.Code:VF05/VF05n is for list of billing documents.
    Regards,
    Krishna.
    Note:Pls search the forum.

  • Item Supply Demand and Purchase Orders

    Hi All,
    I am facing strange issues -
    1: Purchaser changes Need By and Promise Date in Purchase Order. But when we query item in Supply/Demand, it shows old dates.
    2: There are few items where purchase orders are not shows.
    I verified that -
    1: Planning Manager is running
    2: The Subinventory on Purchase Order is Nettable
    3: PO is approved
    Appreciate any pointers on this please.

    1009226 wrote:
    I am running oracle ebs 12.1.3 with oracle database 11g. I did go through the documents you provided but they seem irrelevant to me. Is there something that I am missing ?please see this
    https://cn.forums.oracle.com/forums/thread.jspa?messageID=10958380
    MTL_SUPPLY_DEMAND_TEMP Table Is Too Large [ID 182490.1]
    ;) AppsMasti ;)
    Sharing is Caring

  • How to bifurcate production order and purchase order

    hi all,
    is it possible to bifurcate all open production order and purchase order quantity of items.
    ex:i have one item like ffp001 it is showing 100 order quantity.but i want only open purchase quantity.i checked (item master data-->righ click--->Avail to promise) its showing open production and purchase quantity.so i need only open purchase quantity.
    Plz tell me the process of Bifurcation of open orders.
    thanks&Regards,
    P.Pratap

    Hi,
    By default there is no option , as a workaround you can use below method,
    Create 2 warehouse , for example Purchase , Production
    When ever you create purchase order use "Purchase" warehouse, Use production warehouse in production
    In the "Available to Promise" Report you have warehouse filter option.
    Using this filter you achieve can achieve your requirement.
    OR
    Right click "Filter Table"
    Document -> Start with-> PO
    Now you can see only PO
    Refer below image

  • Report with purchase requisitions and purchase orders: how?

    Hi,
    I need to get a list of items bought with their purchase requisitions and purchase orders (when they exist). This can be done looking at each purchase order (ME23N), ou purchase requisition (ME53N), and writing it down. But in some cases, I have to do it on about 450 operations. I'd like to get this list without having to search for each requisition ou order. I can get a complete list of orders and requisitions, but without any relationship between them (they are mixed as if they were the same thing, but there´s a field telling it that row is an order or a requisition). Using some macros in excel, I can find this relationship in 40% of the cases (for example, if item 421351 was purchased only once, an order for item 421351 is related to a requisition for item 421351). Is there any way to get this list automatically? Or is there any field that tell me this relationship?
    Thanks,
    Francisco Morbiolo
    Votorantim Cimentos
    Votorantim, SP - Brazil

    Sorry, I forgot to tell this: I don´t have access to SQ01/SQ02/SQ03.
    I get the orders and requisition reports using ZGLPS020.
    Thanks,
    Francisco Morbiolo
    Votorantim Cimentos
    Votorantim, SP - Brazil

  • Tables for credit Memo and Purchase order

    Hi all,
    I need to develop a report to dispaly all the credit memos for the open qty,
    My issue that is  there any table where we can have information for credit memos and purchase order,
    like the input fields is company code,customer number,fiscal year,
    hope you understnad,
    Please let me know if you need any more information,
    Thanks&Regards,
    Cghand

    Hi
    Invoice Verific. table:
    RBKP - Document Header: Invoice Receipt
    RSEG - Document Item: Incoming Invoice
    Regards
    Prasanna

  • Transaction code for sales order totals and purchase order totals

    Hi i am using alv grid report to display the sales order and purchase order totals by productline(profit center)
    Now i have to call standard transactions from first list to display the totals of sales order and purchase order.I have to display these transctions for specfic orders and their specfic lineitems only.
    in VA05n transaction it is allowing me to enter only the document numer but not item.
    Can any one help to find the standard transaction to display the totals for only specific orders and line specific line items

    Hi Polite,
    The transaction CRMD_ORDER is the superset for all the transactions mentioned by you. So it is better to remember just one transaction instead of remembring the subsets . Once you use the transaction CRMD_ORDER and then Follow the menu Business transaction -> Create (F5) you will get the list of transactions you can create this is nothing but the the transactions you have mentioned.
    If you know the transaction no. you can directly open that in transaction CRMD_ORDER. The other opetion is to use the SAP Menu instead of transactions.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.

  • "All items from purchase order cannot be invoiced"

    Hello,<br />
    <br />
    I'm on a SRM 7.0 SP 5 system (ext-classic scenario). Here i try to create an invoice with reference to a Purchase Order, but none of my Purchase Orders can be used for reference. I get the following warning message 'All items from purchase order cannot be invoiced'.<br />
    <br />
    - Created via POWL (create with reference -&gt; invoice/credit memo) i always get the warning message 'All items from purchase order cannot be invoiced'. And no items are converted / can be used for invoicing. Additionally when i use the search option 'find purchase order' within the create invoice transaction i can not find any purchase order to use, it shows 'There is no search result' while there are plenty purchase orders marked with 'invoice expected'.<br />
    <br />
    I am able to create invoices without reference.<br />
    <br />
    I tried vendors set up only for 'invoice expected' and 'GR', 'invoice expected' / 'GR' / 'GR-based-IV' and 'invoice expected' only none of them works, indicators set on vendor master are correctly used on the created purchase order. Outputting PO doesn't make any difference neither.<br />
    <p />
    I have not set up the following (do i need to?):<br />
    - Deactivated the 'CRME' transaction type, no Credit Memo transaction type has been configured/is active.<br />
    - I have not defined the 'INV' transaction type as a follow-on document for my ECPO transaction type within the define transaction type transaction.<br />
    - Tollerances<br />
    <br />
    <b>edit</b> -&gt; i've already searched thorougly for SAP notes but no note seems to cover this particular problem.<br />
    <br />
    Help is very much appreciated

    Solved! Added SYS attribute for back-end system in organisational scheme.

  • Linking document info record and purchase order

    Hi all,
    I hope that someone can help me because I'm having a problem with creating links between document info records and purchase orders.
    By default in SAP I can create links between document info record and purchase order ITEMS! When I create that link, I can see it in document info record under Object links tab, but when I double click on the number of purchase order nothing happens (I expected that this purchase order will open).
    Why is that so?
    Why can't I access purchase order from document info record even though the link exists?
    The other question is about creating object links to purchase orders, not purchase order items! Is it possible to link document info record with purchase order?
    I would appreciate quick answer because we're in the middle of a project and we're stuck with that problem.
    Thanks!

    Hi Karlo,
             As you mentioned, object links could be linked to Purchase order items. In customisation you maintain these entries under the node SPRO > Cross Application Components> Document Management--> Control Data --> Define Document Types --> Define Object Links.
    There are many links in the standard system (possible entries).
    The system automatically determines the screen number (dialog box) where the key data for the object is maintained for document maintenance.
    You can check the screens when the screen entry is missing or contains errors by doing the following:
    Start the Object Navigator and display the objects for the development class  CV.
    Expand the function group 130. The structure nodescreens lista all screens that can be used for object links.
    You can make an object link to SAP objects that are not shown in the possible entries list. To do this, proceed as follows:
    In the standard system, there are already two special screens for the module pools SAPLCV130 and SAPLCV140 for the linked SAP object.
    You must create two new screens with the same number for the module pools SAPLCV130 and SAPLCV140 .
    The processing logic must follow that of screen 1204 in program SAPLVC130.
    Create function module OBJECT_CHECK_XXXX (XXXX = object name)
    If the object can be classified, this function module already exists .
    Otherwise copy the function module for linking equipment DOCUMENT_CHECK_EQUI and change it as required for the new object.
    Hope the above instruction helps in solving your problem,
    Sojan
    Note : Award points if you find the information useful

  • How to map values between Contract and Purchase Order...

    Hi friends,
                        We are using SRM 5.0 (ECS). I am facing a problem with Purchase Order.
    . I am creating Contract locally through Live Auction. After that I am creating Purchase Order through Live Auction. So in Purchase Order Quantity, Net Price, Gross Price, and Long Text etc. not coming which is defined in Contract.  PO capturing the values from Live Auction, means no relation between the Contract and Purchase Order. After making Contract again I have to changes in the Purchase Order.
                So how to map the values from Contract to PO in SRM?  I want to map between contract and Purchase Order like R/3. At the time of creation of PO ( in R/3 )  we can adopt the Contract so all the relevant values comes from Contract to PO. In SRM how will I do?
    Please suggest me.

    When you create PO and a contract from a Live Auciton, they will not be mapped.
    While creating a PO (BBP_POC - Process Purchase Order); in the PO line item assign the contract and item reference. Only then they will be linked.
    Hope this helps.
    Regards
    Kathirvel

  • Not to include item from purchase order to the delivery order

    Hi,
    i need some guidance on above topic. The user requested to have the functionality not to include the item from purchase order to delivery order when the item having  order balance quantity more than the available stock.
    In other words, if a PO contains several items, those order balance quantity which is more than the available stock will not be included in the DO.
    is the above scenario possible?
    please advise.
    Thanks.

    Hi Yue ,
    u can do it , but in this case u have to make use of user exit or BADI.
    option 1 .
    by using user exit , u can delete/change picking/confirm qty .
    option2:
    while doing  the PGI , do can cross check stock avail with PO qty and raise error messages.
    LE_SHP_GOODSMOVEMENT --> see its documentations in se18.
    Regards
    Peram

  • Masive charge of Purchase requsition and Purchase order.

    Hi gurus
                    I would like to know how tho charge/create in a massive way a purchase requisiton and purchase order.
    I have to create 1000 items. Its possible tu upload a file? Or any other solution?
    Regards in advance for the help
    Enzo

    Hi,
    You can upload 999 Line items in one PR(as per my knowledge) for this you can use LSMW program or MEMASSRQ Tcode
    for LSMW please see the link
    http://help.sap.com/saphelp_47x200/helpdata/en/f7/3b79a4563211d3b519006094b9476a/frameset.htm
    Regards,
    Ninad

  • Uploading sales text and Purchase order text for material master

    Hi,
      I have created, material master with LSMW  byt not updated SALES TEXT and Purchase order text with LSMW  now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text  when i have done the recording with SHDB  i have not found filed in recording.
    regards,
      zafar

    Hi,
    I have made the code in se38
    as below but still it is not working
    REPORT  ZTEST_TEXT.
      data: headerl like thead occurs 0 with header line.
      data itab3 like tline occurs 0 with header line.
    headerl-tdobject = 'MATERIAL'.
    headerl-tdname = '00000000000LSMW123'.          "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
    headerl-tdid  = 'BEST'.
    headerl-tdspras = 'E'.
    append headerl.
    move '*' to itab3-tdformat.
    move 'Testing PO text' to itab3-tdline.
    append itab3.
    call function 'SAVE_TEXT'
      exporting
        header                = headerl
      insert                = ' '
       savemode_direct       = ' '
      tables
        lines                 = itab3
    exceptions
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       others                = 5.
       IF SY-SUBRC = 0.
         CALL FUNCTION 'COMMIT_TEXT'
           EXPORTING
                OBJECT   = headerl-tdobject
                NAME     = headerl-tdname.
       ENDIF.
       break-point.
    regards,
    zafar

  • Purchase requisitions and purchase orders

    Hello Gurus,
         In contrast, by default, both purchase requisitions and purchase orders can be generated automatically for the item category ALES, will you please tell me the sequence and where to create purchase requisitions and purchase orders  ?
    Many thanks,

    Hello,
    The PO is getting created automatically because of the Create PO automatically check in the item categroy ALES.
    But in normal case, the PR will be generated, it is a request for purchase, it should get approved by the purchasign dept, then create PO with reference to the PR.
    Prase

  • Liquidity Report not picking up Noted item and Sales orders

    Hi Experts,
    I created planning levels from source as PSK, yet the liquidity is not picking up these items from sales orders and purchase orders. Also while creating noted items, i have given planning levels in the configurarion and the same is not picking up in the liquidity too
    Please advice
    Thanks in Advance

    Hi Hien,
    We have created planning levels separately for MM and SD and we have created under SDF and MMF respectively.
    IT is working for group created for direct FI entrly and linked the same with PSK and the same is working fine.
    I am new to FSCM. Can you please elaborate FDFD?
    Thanks and Regards

Maybe you are looking for