Restriction for items from Purchase Order based on Sale Order

Hi !
       We create PO directly from Sale Order ( by ticking Option under Logistic tab, 'Purchase Order') for customer C01 (for eg).
From the PO created, we post GRPO.
Now our need is,
Assume if 10 Qty is been ordered in such a way and been received (GRPO posted). it 'll add on to the stock account i.e will increase stock qty at our whse.
is it possible to restrict these 10 qty of item from being sold to any other Customer other than whom hav ordered i.e if we create sale order for C02 the SBO should not take the items received from PO created based on Sales Order created for C01?
Meera.

Meera,
Which version of SBO are you using 2005 or 2007?
I don't think Serial numbers can help in this scenario.  There is no hard allocation or blocking possible using Serial numbers.
This is the Work around I am thinking about.
Set the items to be Batch Managed - On Every Transaction
When performing Goods Receipt, enter the Sales Order Number as the Batch Number
When creating the delivery, using SBO_SP_TransactionNotification we can easily check the Batch of the Item being selected and verify it with the BaseRef of Delivery lines to match with Sales Order number.
If the numbers don't match we can warn user with message, "The items batch reserved for Sales Order xyz"
Even if you make a mistake when entering the batch number same as Sales Order number when doing a goods receipt. It can still be traced and blocked during delivery.
Hint: The Batch table records the Goods Receipt transaction along with the BaseDocument number, Base Ref, etc
If you decide to go this route, I could help you further.
Let me know
Suda

Similar Messages

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

  • Delete item from Purchase Order

    Dear All,
    I want to cancel line item from Purchase Order.
    But  i am unable to do it as i have already made advance payment against PO/Item.
    Actually advance payment was against another Item of PO but by mistake selected wrong item while f-47.
    Now i want to delete item for which made avance payment and transfer advance payment with another PO item.
    How to do it.
    Regards
    Swati

    Hi,
    Your Issue
    Lets say, you have created two items in a PO, and made adv payment against item 10 instead of 20.
    Now you want to delete the item 10---
    Solution
    I hope you have not done any GRN to both items (10 & 20) of your PO.
    Then make your item 10 as same as your item 20. (Do change the material code, order qty, price etc)
    Then delete the item 20.
    So with this, you have made your errorised PO item as actual item, and deleting yout actual PO item as errorised item.
    This is as good as swaping the items from one item to another item in the same PO.
    This will resolve your issue.
    Thanks,
    Srinu

  • 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

  • Returns item from purchase order in SRM

    Hi,
    Is it possible to return item from a purchase order in SRM?
    meaning : to return goods to an external vendor.
    in ECC i know its possible. but i want to know if its possible in SRM.
    if yes, how?
    (i dont want to return by confirmation)
    we are using SRM550.
    regards,
    vered
    Edited by: Vered Madar on Aug 2, 2010 1:28 PM

    Hi,
    In SRM POs,  GR based invoice indicator for Goods item is ticked based on the Vendor Master. If the vendor master has the tick, then PO will have the tick for GR based invoice. However for a service PO/limit PO,  GR based invoice comes as default in PO and cannot be undone.
    Regards,
    Sanjeev

  • New TCode for retention from purchase order

    Hi
    I am in SAP Ecc6.0 with EHP3. There is a new TCode in SAP for downpayment - ME2DP. For using this tCode, we have to give downpayment category in payment processing tab in purchase order.
    Then we excute ME2DP. Similarly there is a Retention field in payment processing tab in purchase order. But i want to know the tCode where i can execute retention (as there is ME2DP for downpayment)
    Edited by: Deepak Agrawal on May 12, 2010 3:18 PM

    Meera,
    Which version of SBO are you using 2005 or 2007?
    I don't think Serial numbers can help in this scenario.  There is no hard allocation or blocking possible using Serial numbers.
    This is the Work around I am thinking about.
    Set the items to be Batch Managed - On Every Transaction
    When performing Goods Receipt, enter the Sales Order Number as the Batch Number
    When creating the delivery, using SBO_SP_TransactionNotification we can easily check the Batch of the Item being selected and verify it with the BaseRef of Delivery lines to match with Sales Order number.
    If the numbers don't match we can warn user with message, "The items batch reserved for Sales Order xyz"
    Even if you make a mistake when entering the batch number same as Sales Order number when doing a goods receipt. It can still be traced and blocked during delivery.
    Hint: The Batch table records the Goods Receipt transaction along with the BaseDocument number, Base Ref, etc
    If you decide to go this route, I could help you further.
    Let me know
    Suda

  • New on POO : get items from purchase order

    Hi,
    i'm new in OO, i must implement the BADI IF_EX_ME_PROCESS_PO_CUST~CHECK. In this method i would like to get items of my current purchase order, how can i do that ?
    Thanks a lot.
    Cheers

    Hello
    Please note that if you have understood this BAdI then you have understood the basics of ALL BAdIs dealing with business objects that have a header and one or more items.
    Example: BAdI ME_PROCESS_REQ_CUST (purchase requisition)
    METHOD if_ex_me_process_REQ_cust~check.
    * define local data
      DATA:
        lt_items      TYPE mmpur_requisition_items,
    *    ls_item       LIKE LINE OF lt_items,  " alternatively
        ls_item       TYPE mmpur_requisition_item,
        ls_header     TYPE mereq_header.
    " Change data types of local variables (compared to if_ex_me_process_PO_cust~check)
    " but use the very same coding to retrieve the items.
    * (1) Get the order items
    *  CALL METHOD im_header->get_items
    *    receiving
    *      re_items = lt_items.
    * Short version:
      lt_items = im_header->get_items( ).
      LOOP AT lt_items INTO ls_item.
        ls_detail = ls_item-item->get_data( ).
    *   do something ...
      ENDLOOP.
    * (2) Get header data
    *  CALL METHOD im_header->get_data
    *    receiving
    *      re_data = ls_header.
    * Short version:
      ls_header = im_header->get_data( ).
    ENDMETHOD.
    Regards
      Uwe

  • Suda! Again to restriction of items from PO based on SO

    Hi Suda!
    Let me remind u abt the thread "Restriction for items from Purchase Order based on Sale Order" ( Restriction for items from Purchase Order based on Sale Order ), after tht
    I have Tried in bringing out the stored procedure for Serial Number block too similarly from Batch Block stored procedure. as the client has many serial numbered item, i did so. it is working well Suda. But the problem is i cud'nt bring the SONO in the error message. Here is the procedure.
    IF @Object_type = '15' AND @transaction_type = 'A'
    BEGIN
    If NOT Exists (SELECT DISTINCT T0.IntrSerial AS 'GR PO Serial', T10.ItemCode AS 'GRPO ItemNo.',
    T10.BaseEntry AS 'GRPO DocEntry', T3.BaseEntry AS 'Delivery DocEntry'
    FROM  [dbo].[OSRI] T0
    INNER JOIN [dbo].[SRI1] T10 ON T0.SysSerial = T10.SysSerial AND T0.ItemCode = T10.ItemCode
    INNER JOIN [dbo].[PDN1] T1 ON T1.DocEntry = T0.BaseEntry
    INNER JOIN [dbo].[POR1] T2  ON T2.DocEntry = T1.BaseEntry
    INNER JOIN  [dbo].[SRI1] T3 ON T3.SysSerial = T10.SysSerial
    INNER JOIN  [dbo].[DLN1] T4 ON T4.DocEntry = T3.BaseEntry
    Where T2.BaseEntry != -1 AND T2.BaseEntry = T4.BaseEntry AND T4.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    DECLARE @SONO1 VARCHAR(10) SELECT DISTINCT @SONO1 = T3.DocEntry FROM  [dbo].[OSRI] T0
    INNER JOIN [dbo].[SRI1] T10 ON T0.SysSerial = T10.SysSerial and T0.ItemCode = T10.ItemCode
    INNER JOIN [dbo].[PDN1] T1 ON T1.DocEntry = T10.BaseEntry
    INNER JOIN [dbo].[POR1] T2  ON T2.DocEntry = T1.BaseEntry
    INNER JOIN [dbo].[ORDR] T3 ON T3.DocEntry = T2.BaseEntry
    WHERE T0.IntrSerial = (SELECT T4.IntrSerial FROM OSRI T4 INNER JOIN SRI1 T5 ON T4.SysSerial = T5.SysSerial and
    T4.ItemCode = T5.ItemCode where T5.BaseType = 15 AND T4.BaseEntry = @list_of_cols_val_tab_del AND
    T5.ItemCode = T0.ItemCode)
    SELECT @Error = 1, @error_message = 'This SERIAL no. linked with another Sales Order ' + @SONO1
    END
    END
    I think some where i am going wrong in this above high lightened Procedure. Kindly help me to bring the Value of @SONO1.
    i tried a lot to bring tht but failed to bring tht SONO num alone. The error msg is thrown as 'ADOC' alone.
    thanking you in advance,
    Meera.

    You had everything correct but instead of T5.BaseEntry you had it as T4.BaseEntry.  Please change it to T5.BaseEntry as shown below and it should work.
    where T5.BaseType = 15 AND <Font Color="Brown" > T5.BaseEntry </Font> = @list_of_cols_val_tab_del
    It had nothing to do with DataType.
    Suda

  • Item number from purchase order number....

    Hi,
    How do I get the POSEX (line item number)  field for a given Purchase order number LIKP-VBELN

    Hi,
    Let me be more clear.
    I have to find item number of the underlying purchase order (POSEX).
    So based on VBELN of LIKP table I have to find POSEX from VBAP table.
    ( I guess I need to find subsequent or preceding document stuff. I am not so sure about it. And then
    based on that I go in VBAP and find POSEX )
    <b>So what is the link between LIKP and VBAP table...</b>

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • Function Module / BAPI for Inbound Delivery from Purchase Order

    Hi,
    I need to create an inbound delivery from Purchase Order items and am looking out for some Function Module or BAPI for the same.
    The requirement is that i should be able to specify selected line items from PO for delivery.
    I tried the BDC method for VL31N , but the particular item selection is problem, since by default it shows all the items of PO and i want only selected items.
    Do reply.
    Thanks in advance.

    check these and their documentations.
    BAPI_INB_DELIVERY_CHANGE       Change inbound delivery
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries
    Regards
    Prabhu

  • Restrict print out of Purchase order only for Production system

    Hi,
    I want to restrict print out of Purchase order only for Production system, don't want to take it in devep or quality.
    is there any identifier to find the system is production or development.
    can anyone tell me how to restrict it,
    is there any function module, not based on client system.
    Thanx in advance
    Kesav

    Hi Kesavarathinam Vaidyalingam ,
    yes, I also use thomas' suggestion using
    t000-cccategory = 'P'.
    to determine productive client.
    Just one small hint: I found this condition as true in a test system: The admin had done a system copy to create a fresh test client - but forgot (or did not see a good reason) to change t000-cccategory = 'P. to  t000-cccategory = 'T'.
    Regards,
    Clemens

  • How to restrict the user to enter the item in purchase order?

    I want to restrict user to enter the item in purchase order.
    How can i do this?
    Please help
    Abhishek

    Hi,
       You may create a transaction variant for ME21N in SHD0 transaction. Make the item field as output only as shown below:
    Result:
       You may check the doc: Learning SHD0 with Example
    Regards,
    AKPT

  • How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery

    Hi SD Gurus,
    I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
    I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
    Is there any way to achieve the same? Can some expert show the way to achieve this.
    Thanks in advance.
    Warm regards,
    Rahul Mishra

    Hi Ravikumar thanks for u quick reply.
    This is wht is currently coded.
    concatenate values to get item text for read text function
       invar3+0(10) = invar1. "PO number
       invar3+10(5) = invar2. "PO line number
       SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
                                   AND tdname   = invar3
                                   AND tdid     = 'F01'
                                   AND tdspras  = sy-langu.
       IF sy-subrc = 0.
         invar4 = invar3.
    reading the text for the document items.
         CALL FUNCTION 'READ_TEXT'
           EXPORTING
             id       = 'F01'
             language = sy-langu
             name     = invar4
             object   = 'EKPO'
           TABLES
             lines    = it_itab.
    I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
    but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
    As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
    anyhelp will be appreciated and rewarded.
    thanks

  • Customisation settings for VC Configuration copy from Purchase order to GRN(Goods Receipt note)

    Hi Experts
    I was looking for Customisation settings for VC Configuration copy from Purchase order to GRN(Goods Receipt note),
    Please share.
    Regards
    Sandeep

    Hi Ritesh
    Thanks for your reply,
    I checked  both of these transaction  we need to select 3 option Characetrstics frm configuration(prio) and classification. I will check that, I had one more question
    In PO VC configuration is called for class type-300  and  in GRN VC configuration  is called for class type -023. How it will fetch the variant class configuration to Batch class configuration?
    Once we had faced some issues the copy from PO to GRN was happening for some batches & some batches it was not happening.
    yes we have activated Mill Functions in our ERP box.
    Regards
    Sandeep

Maybe you are looking for

  • SSL Error after upgrading to Windows 8.1

    After upgrade my Windows 8 to Windows 8.1, I got this SSL Error when I tried to go to "https://google.com": http://i.stack.imgur.com/2kaXO.png ...and this in IE: http://i.stack.imgur.com/7Gxbw.png I have did some research and tried to change my syste

  • Dual boot issues

    I've been attempting to get up to speed on labview, labview RT, the PXI (8106), and getting the PXI to dual boot labview RT and windows XP. Question here is only about dual booting. I have the PXI set up with a fat32 partition physically before (C th

  • Adding new parameter in ME28 selection screen

    Hi All, Did anyone know how to add in a new parameter(select-options) in ME28 selection screen? I'm only able found one enhancement for this requirement. In program i create a new implementation for ENHANCEMENT-POINT RM06EF00_02 and write the For eg:

  • [Gnome - GDM] Locale/Charset Problem

    Hi everybody, I´m using Gnome with GDM as Display Manager. I got a problem with my keyboard settings, but don´t know why The first charset/locale option is set in the /boot/grub/menu.lst kernel /vmlinuz26 lang=de locale=de_DE.UTF8 root=/dev..... I us

  • HT201263 [NAND] Find Flash Media And Keepout Error

    [NAND ] _FindFlashMediaAndKeepout :601 physical nand block offset 1 [NAND ] start :356 this 0x9f538400 PROVIDER=0x9f6b1f00 flashMedia=0x9f6b1f00 [NAND ] WMR_Start : 149 Apple PPN NAND Driver , Read/Write [NAND ] WMR_Start : 174 FIL_Init  [OK] [NAND ]