Free goods based on selecting 5 material from a list of material

Is there a way this can be done.
I know FG cannot be done with 1:2 or 2:1, but if there was a way the list of material can be a selection list or something..Thanks

first maintain material determination for freegood with multiple options of 5 products.. and then give maintain the freegoods record in CS01...
Example  for X .. Y free good...
material determination for Y... 1,2,3,4,5, products...
so when ever you enter x you will get 1,2,3,4,5 options..
Try with these.. hope you get your desired solution...
reward if it helps
Ramki

Similar Messages

  • Javascript needed - need checkbox to check automatically based on selected item from dropdown list

    I am building a fillable form.  In this form, I have created items in a dropdown list.  Based on the item picked from the dropdown list, I need a corresponding checkbox to be checked.  I am certain there is an easy javascript to resolve my current problem.  Please assist.
    For example: dropdown list field (SubSupplier1) -   Demolition                            export value 2
                                                                                    Rough Carpentry Labor       export value 4
                                                                                    Rough Carpentry Material    export value 3
    I need the corresponding checkbox (SalesTax1) to automatically be checked when Demolition (export value 2) or Rough Carpentry Material (export value 3) is selected.
    Thank you,
    Jennifer

    Hi Jennifer,
    This should help you do what you need. Place it in the Custom Calculation property of the dropbox and select "commit selected value immediately" in the fields options:
    var drop = this.getField("SubSupplier1");
    var check = this.getField("SalesTax1");
    if ((drop.value == 2) || (drop.value == 3)){
    check.checkThisBox(0,true);
    else {
    check.checkThisBox(0,false);
    The code is asking if the export value of the field is either '2' or '3' and if so, check the box.
    Otherwise uncheck the box.
    If you don't want it to uncheck on other selections, remove the 'else' section of code.

  • Free Goods  based on order value

    Hello,
    We would like to setup a new promo - if your order exceeds $X, get a specified material for free.
    Is it possible to setup and how?
    Thank you for all your help!
    Mila.

    Yes. This scenario is very much possible, although I haven't tried.
    Refer the following SDN thread, which discussed of a similar sort requirement:
    - Exclusive Free Goods Based on Value irrespective of the material.
    In case of any further information or clarification or face any difficulty in applying the same, please do revert.
    Regards
    JP

  • How to stop Mail from selecting addresses from the list of Previous Recipients?

    How to stop Mail from selecting addresses from the list of Previous Recipients?

    This is a related question.
    I deleted ALL my previous recipients and when I create a new e-mail it STILL is getting addresses that I don't want - they pop up and I don't know how to stop this!
    I switched from one ISP to another - I deleted the old e-mail account in MAIL - I DID use the same name on the account - is that why it keeps bringing up the old address? 
    ARGH!

  • How to create a report  based on selected item from Select list?

    Hi,
    I have created a tables_LOV based on:
    select table_name d, table_name r from user_tab_cols
    where column_name like '%_type%'
    Then I created a page item ListOfTables,  Display as select list and pointing to tables_LOV.
    I run the page, and i can select the table i want from the drop down list.
    How to create a report  based on the selected item? (ex: select * from selected_table)
    many thanks in advance
    Salah

    Hi Salah,
    Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
    I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
    The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
    To recreate my example you should:
    1) create an (interactive) report on your collection
    SELECT *
       FROM APEX_collections
    WHERE collection_name = 'MY_COLLECTION'
    2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
    3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
    end;
    Make sure you add your page_item to the "Page Items to Submit" section.
    4) Add an extra true action that does a refresh of the report region.
    Here are two pictures describing the da:
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
    Good luck and regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • Free goods not reflecting in PO from Info Record

    Hi,
    My requirement is , when ever i order 100 qty from a vendor 10 qty should be delivered free of cost.
    I am trying to maintain Info record for the same..
    Now when i created PO for the same...I entered 100 qty..it is not reflecting 10 qty in another line in PO..
    Where i am wrong?
    Uts

    HI,
    Have maintained the values in
    *Spro-Purchasing-Discount in kind-Define & assign discount in kind schema-Maintain free goods schema*
    It will be available in standard SAP if not do the following configuration
    Here
    Usage -N
    Application -M
    create procedure NR0001
    In control data
    step-10
    Cond Type-NR00
    Then save.
    Next
    Define free good schema
    Here assign ur schema grp of vendor
    Then assign the procedure created previously (i-e) NR001 & THEN SAVE.
    The above configuration is very important for the free goods scenario to work.
    Then go to MM and in purchasing view and give the value 2.
    Then in MBN1 create the condition record for the IR -0.
    Then create the PO it will work definetly.
    9884057038
    murugan
    Edited by: Murugan mgl on Jun 17, 2009 6:58 AM
    Edited by: Murugan mgl on Jun 17, 2009 6:59 AM

  • Free Goods based on Quanity

    Hi All,
    I have a scenario, If we buy M1 material 10 qty - I get M2 material free, If I buy same M1 20 Qty - I get M3 material free, If I buy M1 30 then I get M4 free.  How to handle this in free goods,
    Please let me know in what way can we handle this situation in SAP.
    Appreciate your help.
    Regards,
    Harish.

    Hi,
    in standard sap system u can give gree goods like buy 10 get 1 or 2 free, but not buy 10 and get 1 x mat free, and buy 20 and get 1 y mat free and but 30and get 1 z mat free.
    I believe this may not be available in standard system
    to achieve this  create a ZTABLE and mention all combinations u want to give and connect it to ur free goods combination through development.  for this sit with abaper and u can definitely do it.
    hope u get it
    regards,
    sadanandam kasarla

  • Select value from dropdown list

    hi All,
    we have a bsp application MVC based, we have a dropdown list,  what we require is when user selects an entry from drop down list and presses a button, we want to select that value from drop down list and then pass it to the method that will be called when button is pressed event..
    I want to know two things
    1. How do i get the selected value from dropdown ?
    2. hw can i retain it to send it to method call in handle_event bit
    thank you all

    Hi,
    If your application is stateless you have to capture the selected value in do_handle_data and assign it to the controller class attribute and later use this value in do_handle_event directly.
    If your application is stateful, on your dropdownlist htmlb tag click F1 you can read the documentation which also shows how to capture the value of dropdownlist in do_handle_event. In the same documentation you can even find few samples provided and check those samples in your system.
    Hope this helps.
    Regards,
    Abhinav

  • How to get the selected values from multiselected list

    Hi,
    I have a multiselect list displaying all the years from 2003 to 2008 (used dynamic LOV). The user can choose one or more years as per his needs, and then when user clicks on the link the selected values of the list are to be captured and a pop up page of a Discoveror report needs to be opened where these years get passed as a parameter. I tried several methods to capture the value, but either one or all are getting passed but not exactly what the user has chosen.
    This is how it looks:
    P2_FISCAL_YEAR is a multiselect list containing values from 2003,2004... 2008
    If user chooses 2004 and 2007
    then I want the url to capture these values and pass as parameters for my discoveror reports. as '&qp_fiscal_year=2004,2007'
    Any help is appreciated!
    Thanks in advance,
    Sapna.

    Hi,
    I have a multiselect list displaying all the years from 2003 to 2008 (used dynamic LOV). The user can choose one or more years as per his needs, and then when user clicks on the link the selected values of the list are to be captured and a pop up page of a Discoveror report needs to be opened where these years get passed as a parameter. I tried several methods to capture the value, but either one or all are getting passed but not exactly what the user has chosen.
    This is how it looks:
    P2_FISCAL_YEAR is a multiselect list containing values from 2003,2004... 2008
    If user chooses 2004 and 2007
    then I want the url to capture these values and pass as parameters for my discoveror reports. as '&qp_fiscal_year=2004,2007'
    Any help is appreciated!
    Thanks in advance,
    Sapna.

  • About selecting record from a list

    hai sir ,
               i have displayed on list using alv function module . but ,i want to select one or more record from the list.
    and press any function key it shoud display the records which i was selected.how its possible give some idea.

    hi,
    u can easily do ot using a alv grid control as follows
    1.create a class with handle toolbar method by which u can create customized button .Here i have given the function code as DISPLAY.In the handle user commad u have to write the command for displaying the selected row.Using the get selected row methos ,u will get the selected row index so that u can read the internal table with that index to get the record.After getting the selected row u can display it as pop up by calling the function module POPUP_WITH_TABLE_DISPLAY
    For enabling the selection in grid ,set the layout like this ls_layout-sel_mode = 'A'.
    for pasiing it to set_table_for_first_display
    *--->class defenition and implementation
    *class defenition
    CLASS cl_eventhandler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive,
          handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm,
          handle_hotspot_click  FOR EVENT hotspot_click OF cl_gui_alv_grid
                IMPORTING e_row_id e_column_id es_row_no.
    ENDCLASS.                    "cl_eventhandler DEFINITION
    *class implementation
    CLASS cl_eventhandler IMPLEMENTATION.
      METHOD handle_toolbar.
        DATA: ls_toolbar  TYPE stb_button.
        CLEAR ls_toolbar.
        MOVE 'DISPLAY' TO ls_toolbar-function.
        MOVE icon_print TO ls_toolbar-icon.
        MOVE 'Print warranty sheet' TO ls_toolbar-quickinfo.
        MOVE 'Print warranty sheet' TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
        CLEAR ls_toolbar.
      ENDMETHOD.                    "handle_toolbar
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'DISPLAY'.
    CALL METHOD gr1->get_selected_rows
              IMPORTING
                et_index_rows = lt_rows.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
      METHOD handle_hotspot_click .
        READ TABLE it_alv INTO wa_alv INDEX e_row_id-index.
        IF sy-subrc EQ 0.
          CHECK NOT wa_alv-vbeln IS INITIAL.
          SET PARAMETER ID '/DBM/ORDER_NUMBER' FIELD wa_alv-vbeln.
          CALL TRANSACTION '/DBM/ORDER03' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDMETHOD.                    "handle_HOTSPOT_CLICK

  • Javascript help to copy selected items from one list to another list on same site

    Hello,
    So I have a request that I am not sure how to handle. I have created a page with a list view webpart that displays all the items from one list.
    The user is then supposed to select off multiple list items and click on a button (most likely a ribbon button) that will take the selected items and copy them to another list on the same SharePoint site.
    I would like to do this with JavaScript, but have only found an example that copies library items to another library.

    Hi KansaiKel,
    According to your description, my understanding is that you want to copy selected list items to another list.
    I suggest you can use JavaScript Client Object Model to achieve it.
    Here is a code snippet for your reference:
    <script type="text/javascript">
    var context = SP.ClientContext.get_current();
    var siteUrl = 'http://sp2013sps/sites/test';
    var clientContext = new SP.ClientContext(siteUrl);
    var web = context.get_web();
    context.load(web);
    var sourceId = SP.ListOperation.Selection.getSelectedList();
    var source = web.get_lists().getById(sourceId);
    var oList = context.get_web().get_lists().getByTitle('Copy');
    context.load(oList);
    var selectedItems = SP.ListOperation.Selection.getSelectedItems(context);
    alert('debut');
    for(var i in selectedItems)
    var currentItem = source.getItemById(selectedItems[i].id);
    context.load(currentItem);
    context.executeQueryAsync(Function.createDelegate(this,test),Function.createDelegate(this,error));
    function test(sender, args){
    var itemCreateInfo = new SP.ListItemCreationInformation();
    var oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', currentItem.get_item('Title'));
    oListItem.update();
    oList.update();
    alert('done');
    function error(sender, args){ alert('error');}""
    </script>
    Here is a detailed article for your reference:
    Complete basic operations using JavaScript library code in SharePoint
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Exclusive Free Goods Based on Value irrespective of the material.

    Dear Community,
    Our Client wants to provide a stock clearence scheme to his customers that
    for a billing of INR 100000 or above his customers can make another purchases worth of INR 10000 as free.
    how can we customize the same in our system.
    Ram Rastogi

    Dear Ram,
    Our Client wants to provide a stock clearence scheme to his customers that
    for a billing of INR 100000 or above his customers can make another purchases worth of INR 10000 as free.
    You can acheive this by using Group condition.
    Create one condition type( Better copy from K007) and configure as following
    Use same access sequence K007
    Cond. class   - A Discount or surcharge
    Calculat.type - B Fixed amount
    Select Group condition check box
    Scale basis   -B Value scale
    Add this condition type in pricing procedure at appropriate position.
    Maintain Condition record for the customer enter Amount as 10000.00 and click on scales
    maintain scales as From 110000 Amount 10000
                                            220000 Amount 20000
    This will give discount of 10000 on total purchase of 110000
    and value of discount will be splitted in all items in proportion of the value.
    try creating sales order and Update
    Regards
    Mayank

  • Result table data to be populated based on selection in the result list

    Hi,
    We have a parent data source "P" containing all the record types. Further we have two child data sources each having filters on exclusive record types(for ex. child1 containing record types X, Y, Z and child2 containing record types A, B).
    In our page we have a result list associated with data source child1(record types X, Y, Z) and result table associated with data source child2(record types A, B). There exists common attributes among the attributes present in result list and in the result table.
    Rest of the containers in the page namely search, breadcrumbs, guided navigation point to the parent data source("P") containing all the record types.
    Whenever we select a value from the guided navigation using the common attributes both the result list and result table are getting filtered.
    What we require is that, whenever an attribute(common attribute) is clicked in the result list, the data in the result table needs to get filtered based on the value of the attribute that is clicked.
    Is this possible? If so, pl. suggest how.

    Take a look at the Studio release notes for EID 2.4 http://docs.oracle.com/cd/E35976_01/studio.240/RELNOTES.txt a lot of little bugs like the one you describe have been resolved. If you haven't already done so you should upgrade to 2.4.

  • Problem in getting selected values from multiselect list

    Hi,
    I have two multiselect listboxes in my page. In List1 the data will be retrieved from DB and listed.I will have buttons to move the values from List1 to List2 and viceversa.
    After selecting the needed values,I can rearrange them in List2 using some buttons. I have coded this moving and reordering using javascript.
    What happens is while submitting the page I want the values from list2 which are rearranged. But im getting the order in which I moved from list1 to list2.
    I am using html:selectfor both lists
    List1
    <html:select name="CustForm" property="custName" multiple="true" size="10">
           <html optionsCollection property="CustomerNames" value="custName" label="id"/>
    </html:select>I am having a customer form which has a arraylist CustomerNames. This arraylist has customer bean which has proeprties custName and id. The custForm also has a String custName.
    List2
    <html:select name="CustForm" property="selectedCustName" multiple="true" size="10">
           <html  option value=""/>
    </html:select> The custForm also has a String[] selectedCustNames from where I get the selected values in list2
    Please let me know what am I doing wrong here.

    use a treeSelectionListener, that will give you all the selection changes you need.
    thomas

  • Select items from a list

    Hi,
    in a backing bean (MyBean) which exposes a List of MyItem objects.
    I show this list in a report page using a dataTable.
    I associate a link "details" to each row and I want that selecting this link a detail page is shown, with all the data for the specific item selected.
    How can I do this ?
    Pietro

    ok! I've wrapped my item List in a ListDataModel obejct with very few changes to my code and set up detail method as:
    /** list bounded to the report page */
    private ListDataModel myList;
    /** detailed item */
    private MyItem myItem;
    /** action called from a single report page row */
    public String itemDetails(){
    this.myItem = (MyItem) myList.getRowData();
    // goes to the item details page
    return "details";
    and it works well.
    thanks!
    Pietro

Maybe you are looking for