Need to apply on the order based on customes

Hi All
I need to apply hold on orders which was created by particular customers.. For that I used "oe_holds_pub.apply_holds" API by passing parameter like
v_hold_source_rec oe_holds_pvt.hold_source_rec_type
DEFAULT oe_holds_pvt.g_miss_hold_source_rec;
v_hold_source_rec.hold_id := v_hold_id;
v_hold_source_rec.hold_entity_code := 'C';
v_hold_source_rec.hold_entity_id := customer_id
oe_holds_pub.apply_holds
(p_api_version => 1.0,
p_init_msg_list => fnd_api.g_true,
p_commit => fnd_api.g_false,
p_validation_level => fnd_api.g_valid_level_full,
p_hold_source_rec => v_hold_source_rec,
p_hold_existing_flg => 'Y',
p_hold_future_flg => 'Y',
x_return_status => v_return_status,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data
When I executed the program it show return_status='S' mean "success", But, when i check the Order of particular customer(IN front end) it doesn't change to 'HOLD', I need information on this API? what are the parameters we need to pass?
Difference b/w hold_entity_code='C' and hold_entity_code='O'(is their any particular meaning for 'O' and 'C')?
hold_entity_id: Refers for?
Can any one send the link..........

Hi Suresh,
You can go to the technical settings and tick the check box Log Data Changes at the bottom of the screen.
Hope it helps...
Lokesh
Pls. reward appropriate points
Message was edited by: Lokesh Aggarwal

Similar Messages

  • We need to check whether the order is locked or not?

    I need to check whether the order is locked or not?
    I tried to use this RFC KAUF_ORDER_READ and passed Order no.
    I manually locked the order( using Tcode -IW32) but still Function module is not returning 'X' in FIELDS flg_locked and FLG_ENQUE of the structure E_KAUF.
    the FM should return 'X' in these fields.
    Please help.
    Coudl anybody suggest me how I can check using RFC/ Table fields etc that whether the order is locked or not?

    Hi Rohit,
    Try this code. Check the flag.
    Note : Order number should have left padding of Zero
    DATA : order_tab TYPE TABLE OF ord_pre,
           wa        TYPE ord_pre,
           flag      TYPE rc27x-flg_sel.
    wa-aufnr = '000004006789'. "Order number should have left padding of Zero
    APPEND wa TO order_tab.
    CALL FUNCTION 'CO_ZF_ORDER_READ'
    EXPORTING
       flg_dialog               = ' '
    *   FLG_ENQUEUE              = 'X'
    *   OBJECTS_IMP              = ' '
    *   EXPLODE_IMP              = ' '
    *   FLG_PROT_IMP             = ' '
    *   FLG_NO_EXTERNAL          = ' '
    *   FLG_NO_BANF              =
    *   FLG_CHECK_SIM            =
    *   IMPORT_MESSAGE_ID        =
    *   CHECK_STATUS_READ        = ' '
    *   FLG_NO_GOS               = ' '
    *   FLG_CALLED_TO_COPY       = ' '
    IMPORTING
       flg_enqueue_ok           = flag
    *   FLG_ESCAPE               =
      TABLES
    *   AUFNR_DEL_EXP            =
        aufnr_tab_imp            = order_tab
    EXCEPTIONS
       ORDER_NOT_FOUND          = 1
       RELEASE_NO_CHANGE        = 2
       OTHERS                   = 3
    IF sy-subrc = 0.
      WRITE flag. "If Flag is X order is not locked
    ENDIF.
    Regards
    Rajvansh
    Edited by: Rajvansh Ravi on Nov 27, 2008 12:33 PM

  • How to pick the data based on customer number

    Hi All ,
    greets....
    i have a requirement to select  the data based on customer number and then do furthur processing .
    example:
    this is some 10 dcouments in customer nr:v1000
    and 20 documents in customer v2000 in a internal table how to select that,
    thank s in advance.

    thier is an internal table which is having some 1000records.
    and their is 6 customers.
    in which i should pick the data based on customer number.
    how to write a code for that?

  • Search the order based on address through IW39....time out

    Hi,
    I am trying to run the report IW39 for getting the order list based on Address. I am getting this report in 20-25 min, some time it gives dump also as it passes max limit of 30 min.
    Is there any way to improve the performance of IW39.
    Thanks in advance,
    Regards,
    Sanjay

    Hi Rob,
    Thanks  a lot for quick response. As these notes are very old (dated 2000, 2001) and you know we are using now SAP 4.7. Will these notes be still valid ?
    Or should I check further.
    Regards,
    Sanjay

  • Save $20 promo not applying to The Order 1886

    Hello, I wanted to know why the save $20 promo applies to both versions of MLB The Show(normal and anniversary) but not to both versions of The Order 1886(normal and collectors) you have for sale? I already bought the Order a few weeks ago on the daily deal but would love to buy a second copy for the collectors edition. Thank YouRobert

    Hi Robert, 
    Our Save $20 on Select Sony Video Games offer is a fantastic deal! I'm ecstatic you are interested in participating and ordering the Collector's Edition of The Order: 1886. With that said, I'm sad to say that the Collector's Edition does not qualify for this offer and I apologize for any disappointment that this may cause you. If there are any other questions regarding this offer, please let us know and we will respond to the best of our abilities! 
    Regards, 

  • Populate Material no in sales order based on customer material no

    Hi,
    We have to pass material no from a custom table based on customer material no in each line in the sales order. I tried using couple of userexits to pass vbap-matnr and the material no is passed in that line but I am not able to enter quantity etc on that line. I'm using USEREXIT_MOVE_FIELD_TO_VBAP to populate vbap-matnr but I think this is not the right place to populate matnr in the line item. Can you please help.
    Regards,
    SA

    Hi,
    Can you help me where to pass customer material no to derive material no as my company is not using knmt but a custom table?
    Yeah, if we maintain an entry in knmt, the customer part no derives the material no but I don't know where to pass material no so that the appropriate tables are populated automatically.
    Regards,
    Sheel

  • Can you change the order of both, custom and predefined labels within Contacts for Yosemite & iOS 8?

    I have a ton of custom labeled and predefined fields for many of my contacts within the Contacts app; often the order in which those fields are displayed, need to be rearranged.
    For example, when viewing a specific contact's information, I may want their home number to show up before their cell number, or I may a custom label to show up before their work number, etc.
    I looked for options in the Contacts app from Yosemite, iOS 8, and iCloud.com with no resolve. The only solution I found is inefficient, and tedious; it involves deleting all the fields for a specific contact, and then re-inputing all the information in the order that I enter them in.
    Does anyone know an easier way to do this? Is there a third party iOS or Yosemite App.

    I am sorry to have to point out to you that you have changed SpryMenuBasicSkin.css so much that it is impossible to render any assistance.
    To start with, the menubar has an ID of MenuBar, yet in the CSS I only see this referenced as a CLASS as in
    .MenuBar  {
    background-color:#cccccc;
    font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
    MenuItem, and MenuItemLabel
    at a given level all use same definition for ems.
    Note that this means the size is also inherited to child submenus,
    so use caution in using relative sizes other than
    100% on submenu fonts. */
    font-weight: normal;
    font-size: 16px;
    font-style: normal;
    padding:0;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:0px;
    border-style: none none none none;
    I would suggest to start again.
    Once you have done that, supply a link to your site and we will assist you further.
    Gramps

  • Need to apply table fill color based on text content

    Totally new to Indesign-scripting – but really need a solution to this:
    I have a table
    I want to fill the table cell with a different color based on text content.
    If cell contents the text "Apple" fill color of cell should be color swatch "Red"
    If cell contents the text "Banana" fill color of cell should be color swatch "Yellow"
    Any help most appriciated!

    Hi Franke,
    Try the below code, may it will helpful:
    var myDoc = app.activeDocument
    //var myCell = app.activeDocument.textFrames.everyItem().tables.everyItem().cells.everyItem().getElement s()
    app.findTextPreferences = app.changeTextPreferences = null
    app.findTextPreferences.findWhat = "Apple"
    var myFound = myDoc.findText()
    for(i=0; i<myFound.length; i++)
        if(myFound[i].parent.constructor.name == "Cell")
        myFound[i].parent.fillColor = "aaa"
    If the above code helps you, then please give Helpful or Correct Answers.
    Because for the last 3 months only I started my Indesign Scripting Career.
    With the help of Forum legends I can able to reply for simple questions.
    Thanks all...
    Regards
    BEGINNER

  • I purchased Martha Stewart Living for IPad then realized it was free for me if I already received it in the mail. Now I need help in canceling the order and am having trouble finding the best way to do this easily and quickly. Please help.

    How can I most easily get refunded for subscribing to Martha Stewart Living on iPad in error?

    Normally there are no refunds, but you can try your luck.
    You can report issues with your iTunes Store purchases directly through the iTunes Store:
      http://support.apple.com/kb/HT1933

  • Problem in deleting the orders under Custom category.

    Hi friends,
            I am facing some problem in deleting the Orders which were created under custom category. In fact we are creating Intransits under Standard category "EI" as well as Custom Category "ZP". I am able to modify the intransits created under "EI" but when I tried to change or delete the orders created under Category "ZP", I am getting a messag triggered by BAPI as " Order can not be changed". atleast I need to delete the order if change is not possible. I am using the BAPI "BAPI_SLSRVAPS_CREATEINTRANS" to create intransits under "EI" and i am using the same BAPI with BADI implementation to "SAPAPO_DM_PO_CHANGE" to create intransits under "ZP". Based on the condition I am changing the am changing the category from EI  to ZP in the BADI.
           I am able to change or delete the orders created under the EI but when I tried to change or delete the orders under ZP its giving me a message as Order can not be changed.
           One more thing is If I go to Tcode /SAPAPO/RLCDEL trying to delete all the orders based on category. I am able to see all the orders under created under EI. If  I tried to delete the orders based on Custom category ZI it is giving me the message  as "No Orders exists in Live cache". But I am able to see the orders in tcode "SAPAPO/RRP3".
           Can any one help me out in making this done. Please help me out in this.
    Thanks & Regards,
    Ramana.

    Hi Visu,
               I really appreciate your gr8 help. Hope you can understand my problem that I am not a SCM person. Still you are responding to my questions with great patience.
               Here what I found is I found the record in OM19 transaction in the object "/SAPAPO/OM_ORDER_EXT_STR". But the interesting is its giving me the GUID as blank . there is empty value in that field. where as the program "/SAPAPO/OM_DELETE_INCON_ORDERS" is asking for the "order GUID".
             can you help me out in finding the order guid and deleting this order.
    Regards,
    Ramana.

  • Need Report based on "CUSTOM DATA field @ Shop Order Maintenance"

    Need the REPORT based on CUSTOM DATA field.
    Requirement - I am having the CUSTOM data at Shop Order Maintenance that is called as XXX, I need some report in SAP ME which can display the SFC related to particular Shop order based on XXX Number.

    Hi!
    As far as I remember there is no such base report. So, you may try to create it using SDK or request it as custom enhancement from SAP.
    If you want to create it using SDK, you can find the required data for report in CUSTOM_FIELDS table.
    Regards,
    Alex.

  • Need to apply payment for delivered items only, not full down payment

    Version: (8.8 PL18)
    Description of requirements: (Be able to handle the right amount of down payment when we copy a sales order to an invoice and there is a back order for some items. It actually works fine when we go on an invoice and we copy from a sales order, the system handles correctly the down payment amount when there is a back order. )
    Valid as of: (29/07/2011)
    Business needs: (They need to apply only the part of the payment for the delivered quantities, not ALL the payment.  In addition, the risk of errors to choose the wrong order is higher when you use the u2018copy fromu2019 function)
    Examples: (When you create a sales order with a down payment and you copy this document to an invoice and there is a back order, the amount of down payments should be adjusted according to the back order as it works now for the u2018copy fromu2019 function)
    Current Workaround:
    (We use the u2018Copy fromu2019 function.)
    Proposed solution:
    (The u2018Copy tou2019 function should work exactly as the u2018Copy fromu2019 function)

    It's not just a licensing requirement. Without the RIKLA you cannot make Reader plug-ins at all. Adobe will vet your proposal and decide if they will permit it, and what license fee you will pay.

  • How will create the orders in ACC?

    Hi All,
    Through ecomm site i placed one order. while placing the order i checked in ACC it's showing order status is Incomplete at this time only one order is there here. after providing all details like shipping information i submit my order. then i check i ACC here 3 orders are created like one is submitted, Template and Incomplete. In this process Incomplete order id status is changed to Submitted how will created remaining two orders like Template and Incomplete. wether it's should created by any pipeline process like ATG or we need to write any extended methods to create? any one help on this detail pls.
    Thanks,
    venkat

    karthik chopperla wrote:
    Its strange to see multiple orders being created when you submit one order. It should not be happening. Those orders might have been placed before. Hi karthik,
    Those orders (Template & Incomplete) related to submitted order only. if any promotion coupon is apply to the order that will effect to the Template order only that deducted amount is reflect to the next order. Here i placing the auto delivery order it means automatically it's drop the template order once scheduler completed the 28-day.
    Thanks,
    venkat

  • How to List Sales Orders based on Creation Date and Delivery Priority

    Dear all,
    How can we list Sales Orders based on creation date and delivery priority.
    I tried using vl10a transaction code, but there we can see sales order based on delivery date.
    we need to list all sales order based on delivery priority and sales order creation date.
    can any one of you tell me which standard report gives such kind of report. Your suggestions will be highly appreciated.
    Thank you
    Raghu Ram

    Hi Raghu,
    There is no st report available as per your req.
    Using SQVI, you develope one report that is list of sales orders based on your req.
    SQVI is used to convert a Quick View into a query.
    Quick Viewer:
    The Quick Viewer allows you to define reports without having to program yourself. The Quick
    Viewer is especially useful for new users and occasional use.
    Quick Viewer is a tool for generating reports. SAP Query offers the user a whole range of options for defining reports. SAP Query also supports different kinds of reports such as basic lists, statistics, and ranked lists. Quick Viewer, on the other hand, is a tool that allows even relatively inexperienced users to create basic lists.
    Quick View definitions are user-dependent. You can transfer a Quick View into SAP Query in order to make reports, for example, accessible to additional users, or to use the other functions available in SAP Query.
    The following is a comparison of Quick Views and queries:
    Quick Views possess the same functional attributes as queries. However, only basic lists may be defined with Quick Views.
    In contrast to queries, no user group assignment is necessary with Quick Views. Each user has his/her own personal list of Quick Views. Quick Views cannot be exchanged between users. Quick Views may, however, be converted to queries and then be made available to other users in a specific user group.
    Info Sets are not required for Quick View definition. Whenever you define a Quick View, you can specify its data source explicitly. Tables, database views, table joins, logical databases, and even Info Sets, can all serve as data sources for a Quick View. You can only use additional tables and additional fields if you use an Info Set as a data source.
    The Quick Viewer uses various controls. Certain hardware and software requirements must also be fulfilled before you can use the Quick Viewer.
    To define a Quick View, you select certain fields according to your data source that determine the structure of your report. The report can be executed in basis mode with standard layout or may be edited using drag and drop and the other toolbox functions available in WYSIWYG mode.
    Reports created using the Quick Viewer may also be passed to external programs (Excel, for example).
    Call the Quick Viewer using System -> Services -> Quick Viewer (or transaction SQVI).
    Enter the name of the Quick View. Quick View names can contain a maximum of 14 characters.
    Choose Create.
    Enter a title for the Quick View and remarks, if you think they are relevant.
    If you do not want to base your list on a table, use the possible entries pushbutton in the Data source field to select another data source. You can choose logical databases or Info Sets. In addition, you may also create table joins. For further information, see Selecting a Data Source.
    Choose Basis mode if you want to create the list directly with no list design. Choose Layout mode if you want to define the layout of your list yourself.
    SQVI Table Quick viewer – Used to created quick client dependent reports
    Probably the easiest and most flexible way to do this is thru one of the ABAP query transactions.
    Transaction SQVI can do this and it has a very good help function that explains how it works... the drawback is that it is only for one user.
    You can play around with it and see if it meets your needs...
    The query results will come back in an ALV Grid or Excel... you can select what fields are returned, and have a selection screen to enter the search criteria.
    You can get the report by joining the tables VBAK and VBAP.
    If you have any queries, i will forward screen shots to your id.
    Reward points pls.
    Regards,
    Govind.

  • To Default Warehouse In Sales Order Based On GOP Results

    Hi
    The Business requirements are
    During the import or manual entry of sales order,based on customer ship to address the warehouse field in the sales order should default from gop results.
    Gop can show you the availability from the ATP inquiry form attached to sales order.But how to default or populate the warehouse field automatically.
    No standard functionality is there.Enhancement request has been raised.Can anybody suggest any workaroounds.
    Thanks

    Take out the defaulting rules for Sales Order Line and the regular gop setups,the during scheduling it calls for the assignment set specified.and the warehouse field is populated.
    by the rank one warehouse in the sourcing rule.

Maybe you are looking for

  • ORADIM is throwing error while creating the service.

    I am trying to create SID manually, using ORADIM syntax, but, i am stuck at password file creation. ORADIM -NEW -SID Test11g -INTPWD sys -STARTMODE AUTO -PFILE G:\oracle\Ora11gR1\dbs\initTest11g.ORA OPW-00001: Unable to open password-file DIM-00014:

  • How can I remove lightspark pro virus malware from my Mac?

    I have a crazy virus that keeps popping up ads while I am browsing in Safari. It is driving me crazy. We tried to delete .exe files.  Ads keep popping up.  I blmae my kids and their crazy games...help!

  • Need JS to Display/Hide Region onFocus/onBlur

    I have finally gotten a region to change position based on which text item was just changed. Now I need the region to only show up when another text item has focus, and subsequently disappear when that text item loses focus. Most of my solution is sh

  • Changeover Cost, Time and Materials

    What is the best method for capturing changeover costs in a discreet manufacturing setting where production orders are used? Depending on the sequence of products being produced cleanout times and the quantity of cleaning agent used can vary. This ha

  • Issue with WebPass for Sunone webserver.

    Hi, I installed sunone web server 6.1 and OAM WebPass for Sunone webserver. When i installed sunone webserver and started the same it worked fine but after installing webpass for sunone webserver and when i try to start webserver i am getting the fol