Apply hold on sales order lines programmatically

Hi all,
  I am new to SCM and we have a requirement where Holds should be applied on Sales Order Lines based on some complex criteria that can not be met by the declarative "Apply Hold Criteria" option from Sales Orders window. So I want to know where can this custom code be hooked to put the Holds on the Lines when the criteria is met. Which of the following options are possible ?
1. Custom Extension (or Hook) of Order Lines.
2. Workflow Customisation
If none of the above are possible, I guess then the only option will be scheduling a Custom Concurrent Program to apply holds.
Please advise.
Thanks,
Sharath

You should be able to add this as a workflow customization, but you'd need to call a procedure with PRAGMA AUTONOMOUS TRANSATION since commits in the workflow code  itself could cause problems.

Similar Messages

  • Sales Order Line Hold Release from API

    Hi Expecrts,
    I need one help, by using pl/sql program i want to hold release sales order line, I can see the oe_hold_pub api. but it contain three release_hold procedures. Which one i can use? what parameter i need to pass for line level only. line level release_hold should not impact to header level holds.
    if possible, please can you provide the api and its parameters.
    Thanks
    reddy

    Put an audit trail on the ordered_quantity field and use oe_order_lines_all_ac1 view.
    It will give you what you need.
    Hope this helps,
    Sandeep Gandhi

  • Sales Order Line item status with Resource Related Billing

    Hi
    The Resource related billing is done based on the costs accumulated on account assigned WBS Element. The WBS Element system status is set 'Finally Billed'. The overall status of Sales Order line item is still 'open' and does show up in 'Open Order' reports.
    SAP vide their note 439288 recommends running report SDVBUK00 to correct the sales Order item status. However this note is applicable only upto 4.6C. Our system in ECC 6.0. We tried running this report and did not get desired results. We checked the program and discovered that the corrections suggested as per above note, are not available.
    Is there any new SAP note applicable for ECC 6.0 needs to be applied ? Or is there any other report needs to be run in case of ECC6.0?
    Thanks in advance
    with regards

    HI,
    Please raise message to SAP through service marketplace.
    Thanks,
    Vrajesh

  • Field added in Aditional data tab of sales order line item at screen 8459

    Hi all,
    My problem is .
    I have appended one field in VBAP table, given it a name "WBS ELEMENT"
    The field is getting displayed in VA23 as well as VA02 Transaction.
    when i create sales order with the quotation reference,
    the "WBS Element"  of line item of quotation should get updated in "WBS Eleement "  of sales order line item
             This i am doing by triggering user exit.
    Problem is:
    Once Quotation  line item get copied to the sales order line item
    and the screen is in front of you with those details,
    before saving sales order .
    if you go at the sales order line item withou saving the document
    The field i have created in the screen 8459 i.e WBS Element ,doesnt get displayed.
    how could i retain the field Ihave created on screen 8459
    while creating the sales order from quotation before saving that sales order.
    Pleas help .

    Hi Vikram,
    It seems as it has been coded only to save the values into the new field that you have appended to VBAP. But before saving if the user wants to see the field, it is blank. You can try coding in PBO (process before output) of the relevant screen as follows:
    1. Get the reference of the quotation. Something like XVBAP-VGBEL will give this number.
    2. Get the value of Z field in VBAP by passing this quotation.
    3. Copy the above value to the corresponding Z field in XVBAP (or any internal table which holds VBAP data before saving)
    Please reward if helpful.
    Regards,
    Krishna

  • Transaction VKM1 - Changes Sales Order Line Items Custom Fileds

    Hi,
    I have a challenge to indentify the impact of VKM1 on a Sales Order Line Item Customer Enhanced Fields. When credit hold for the customer is released in VKM1, I want to prevent some of the changes to the line items in the User Exit. The Problems I am not sure, How VKM1 is calling the Transaction VA02 or those Sales Order User Exits to modify certain customer enhanced fields. I tried Activation of Break Point in Update Task but did not stop at the Break points set up in the User Exit. How does Transaction VKM1 call the Sales Orders to execute changes? Is it through BAPI or Call Transaction VA02 or some thing else.
    Can any One please help me? Appreciate Your Help in advance.
    Thanks,
    Kannan

    VKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.

  • Number of Freight Charges in a Sales Order Line

    Hi
    How many Freight Charges can a Sales Order Line have??
    it is usually only one right??

    Hi,
    I don’t know if you can have more than one charge of the same type for one order line. I tried to do that here, but only one modifier was applied. But you can have charges with different types: one modifier for freight, other one for insurance…
    Having more than one modifier would be useful to compound the freight charge amount, for example:
    $10,00 if customer is customer A
    Plus 15,00 if order type is equal to OrderType1
    Regards,
    Ketter Ohnes

  • Items are not getting displayed in Sales Order Lines 'Ordered Item' field

    Hi All,
    Ordered Item field in Sales Order lines is not getting values When trying to create a Manual Sales Order.
    When clicked on Ordered Item LOV, no values are getting displayed.
    Thanks,
    Chandra.

    879035 wrote:
    Hi,
    I was unable to select any item (nothing is getting displayed in Ordered Item field when the LOV is clicked) in Sales Order Lines.
    The Sales Order header information i was able to enter & generate the Order Number.
    R12.1.3 is the version i am using.
    Thanks,
    Chandra.Have you done all the required setup in OM??
    Like system parameters...Imp one would be Item Validation Organization
    Make sure item is also available in the price list which you are using in order
    Mahendra

  • My customer is looking for a comp. open (unbilled) sales order line report

    Hello:
    My customer wants a listing of open (unbilled) sales order lines.  List of everything they have ordered and do not have a bill for yet.  That seems to be spread between 'Open' Sales Orders - see VA05 (no outbound delivery created yet) AND outbound deliveries that have not yet been billed - see VL06O with Billing Status not completely processed.
    How can both of these be merged into one? 
    Is there something else that can show this TOTAL picture?
    Thanks.

    Hi,
    To show all picture you can go for z report
    Take data from table VBAK,VBAP,LIKP,LIPS,VBRK,VBRP,VBFA
    Kapil

  • Need to report on sales order lines using specific pricing modifier

    Is there a report I can run for a specific modifier number that will give me all the sales order lines that were adjusted using that pricing modifier?

    Use oe_price_adjustments table and link that to the qp_list_headers and lines to get the details of the modifiers.
    Thanks
    Nagamohan

  • When running the workflow background process for drop shipment order, sale order line's status gets automtically closed instead of awaiting shipping

    Hello friends,
    I am created a drop shipment order with all the setups done . now i have booked the sale order as source type external. but when i run the workflow background process , after completing the report when i check the sale order line status it changes to "closed" instead of "awaiting shipping".
    Plz guide me if i have missed something in the setups.
    thanks,
    Sachin

    Hi Sachin,
    pls check the below notes from MOS
    Drop Ship Sales Order Cycle In Order Management (Doc ID 749139.1)
    Vision Demo - How To Create A Drop Ship Sales Order/Purchase Order (Doc ID 1060343.1)
    Thanks
    -Arif.

  • How to enter serial number for sale order line  which is in shipped status

    Hi All,
    We have 2 different items which are defined as Serialized at Sale order issue at item definition.
    In one sale order,User has forgot to add serial number to one of the item at Ship confirm stage.
    He has entered serial number correctly to other item.
    Now the both Sale order lines are in Shipped status if we view them through Shipping>transactions.
    I am technical guy and new to OM.Could you please let me know the process to enter the serial number for the item to which user has missed it
    Thanks,
    Satya

    Hi Satya,
    Since the item is already shipped, you cannot enter serial number for this line.
    you have to enter serial numbers after pick confirm only.
    check this note
    How to Enter Serial Numbers in the Shipping Transactions Form [ID 1235403.1]
    As a workaround for the previous lines do RMA and try to receive the goods back to your subinventory.
    For all new transactions follow the above notes.
    Thanks
    -Arif.

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • Sales order Total = Zero (0) No Sales order Lines

    Hi,
    Is there any possibility to accept Sales order Total = Zero (0) - No Sales order Lines for a specific customer?
    I assume it should be a parameter in SBO somewhere...
    Thank you,
    Rune

    Hi Rune,
    i think there's no parameter for this.
    Link
    "You cannot have a Sales Order without items unless it is a Service Invoice"
    regards
    David
    Edited by: David Nussböck on May 3, 2008 1:15 PM

  • Sales order line items delivery cancelled but still appears in MD04.

    Hi PP Gurus,
    In the sales there are 6 line items are there out of which for 1 line item delivery and PGI happened. And for remaining line items delivery got cancelled, but these line items for which delivery cancelled appearing in the MD04, I have rejected the sales order line items but these line items still shows in MD04. Please advise how to remove these line items from MD04.
    Thanks and Regards,
    SHARAN.

    Hi
    Pl refer SAP Note : 1166713 for the Problem which says " You have posted goods issue and therefore the delivery requirements should no longer be existing. These inconsistencies can be seen using report SDRQCR21"
    Regards
    Brahmaji

  • SALES ORDER LINE IS CANCELLED BUT DELIVERY DETAIL IS SHOING AS BACKORDERED

    SALES ORDER LINE IS CANCELLED BUT still the DELIVERY DETAIL IS showing as BACKORDERED it should be in cancelled
    status.The Sales order (only one ex:3904854) is cancelled , however order in shipping transactions screen indicates order is on backorder.
    at that time of order cancellation the line level workflow error out due to the Workflow package is inactive .
    I tried to resubmit the error out workflow using retry option from the responsibility “Workflow Administrator” the workflow is completed with forcible option but still the delivery detail is in back order status not changing it to cancel status.
    Error Name :-4068 [Error Process Error: WF Error Message: ORA-04068: existing state of packages has been discarded  
              ORA-04061: existing state of package body "APPS.XRX_SUPPLIES_NEW_WF_PKG" has been invalidated    
              ORA-04065: not executed, altered or dropped package body "APPS.XRX_SUPPLIES_NEW_WF_PKG"                         
              ORA-06508: PL/SQL: could not find program unit being called: "APPS.XRX_SUPPLIES_NEW_WF_PKG" [Error Process           Error: 3114: Activity 'WFERROR/R_ERROR_RETRY' is not a process.]
    Error Stack: Wf_Engine_Util.Function_Call(XRX_SUPPLIES_NEW_WF_PKG.XRX_CLOSE_LINE_DETAILS, OEOL, 55098479, 195982, RUN)
    [Error Process Error:   Wf_Engine.CreateProcess(WFERROR, WF5147218, R_ERROR_RETRY) ]

    Mohan
    You need a simple script to get the status corrected. Log an SR or search metalink for the script. I am sure there is one out there (if you search with the orphan reservations). This script supported, but not exactly targeted at your problem But it will solve it. You can log an SR and confirm.
    Thanks
    Nagamohan

Maybe you are looking for