Dynamically selecting campaigns and number of prospects / contacts

Salut,
My customer, Swiss general insurance company, has the following requirement:
1. the HQ is defining the yearly marketing strategy and plans campaigns per year
2. the general agencies (about 80, covering each a specific region) can choose which campaigns they want to be part of
3. each agency can then decide:
3a) when they want the campaign to be executed
3b) which salesreps of the general agency should be part of the campaign execution
3c) how many leads / contacts / prospects should be assigned to each salesrep per week during the execution timeframe
Can we cover such a requirement with our solutions? Did anyone answer such a requirement, or knows of a customer who did something similiar?
thanks and regards,
jean-claude

Waves and Segment Trees should be able to do what you need.

Similar Messages

  • Question on Dynamic Select Lists and Checkboxes

    Hello,
    I am new to APEX, and this is my first posting, I have a question about how to implement dynamic checkboxes from a select list.
    Basically I would have a select list, and based on what item is selected a set of checkboxes would appear.
    I was originally using the Select and Submit property on the select box, which works fine, all of the checkboxes appear appropriately. But the thing is, APEX refreshes the page each time, and since this select box is lower in the page, the user would have to scroll all the way down to where they were before.
    The main requirement is so that the user won't have to scroll down the that position where the select box is each time they select a new option.
    So a work around attempt is to create a javascript that will automatically scroll down to that position on page load ...
    i.e.
    function pageScroll() {
    window.scrollBy(0,50);
    But that didn't work, because for some reason the javascript wasn't appearing.
    Is there a way to either:
    1. Have a dynamic checkbox appear using ajax? -or-
    2. Have the javascript scrolling effect
    Sorry if this is a confusing question, I was wondering if anyone else came across this issue.
    Thanks in advance!!

    Since this Select List plays such an important role on the page, why not create a side-region and put that select list there so you don't have to overwhelm the user and his 'persistence of vision ' with a page that scrolls all by itself to the 1000th line to, then , change the options ?
    just an idea.

  • Dynamic Select with different number of rows

    Hi all,
    I have a procedure who receives a table name and array of column names of that table.
    I need to create a specific select statement with this parameters. Of course, this could change because the number of column names may differ from each invocation the this procedure.
    Here's my procedure:
    PROCEDURE column_scramble (pv_table_name
    VARCHAR2,
    ptbl_col_names
    tbl_col_names)
    IS
    lv_query
    VARCHAR2 (32000);
    cur_handle   INTEGER;
    temp    
    NUMBER;
    BEGIN
    IF ptbl_col_names.COUNT > 0
    THEN
    lv_query := 'SELECT old.id, ';
    FOR i IN ptbl_col_names.FIRST .. ptbl_col_names.LAST
    LOOP
    lv_query :=
    lv_query
    || 'new.'
    || ptbl_col_names
    || ' as new_'
    || ptbl_col_names (i);
    IF i < ptbl_col_names.LAST
    THEN
    lv_query := lv_query || ',';
    END IF;
    END LOOP;
    lv_query :=
    lv_query
    || ' FROM (  SELECT ROWNUM rr, '
    || pv_table_name
    || '.* FROM '
    || pv_table_name
    || ' ORDER BY '
    || pv_table_name
    || '.id) old, (SELECT ROWNUM rr, a.* FROM (  SELECT id,';
    FOR j IN ptbl_col_names.FIRST .. ptbl_col_names.LAST
    LOOP
    lv_query := lv_query || ptbl_col_names (j);
    IF j < ptbl_col_names.LAST
    THEN
    lv_query := lv_query || ',';
    END IF;
    END LOOP;
    lv_query :=
    lv_query
    || ' FROM '
    || pv_table_name
    || ' ORDER BY DBMS_RANDOM.VALUE) a) new WHERE old.rr = new.rr';
    END IF;
    DBMS_OUTPUT.put_line ('LV_QUERY: ' || lv_query);
    cur_handle := DBMS_SQL.open_cursor;
    DBMS_SQL.parse (cur_handle, lv_query, DBMS_SQL.native);
    temp := DBMS_SQL.execute (cur_handle);
    LOOP
    IF DBMS_SQL.fetch_rows (cur_handle) = 0
    THEN
    EXIT;
    ELSE
    lv_query := 'UPDATE ' || pv_table_name || 'SET ';
    FOR s IN 1 .. ptbl_col_names.COUNT
    LOOP
    lv_query :=
    lv_query
    || ptbl_col_names (s)
    || '='
    || <return_value(s)>;
    IF s < ptbl_col_names.COUNT
    THEN
    lv_query := lv_query || ',';
    END IF;
    END LOOP;
    lv_query := lv_query || ' WHERE id = ' || <return_value_id>;
    END IF;
    END LOOP;
    DBMS_SQL.close_cursor (cur_handle);
    END column_scramble;
    Thanks in advance,
    Filipe

    Avoid using the "cumbersome" DBMS_SQL, try this:
    CREATE OR REPLACE TYPE tbl_col_names IS VARRAY (100) OF VARCHAR2 (40);
    CREATE OR REPLACE PROCEDURE column_scramble
        ( pv_table_name VARCHAR2, ptbl_col_names tbl_col_names
        , pmy_cursor OUT SYS_REFCURSOR)  --<<< NOTE: I added this parameter
    IS
      lv_query     VARCHAR2 (32000);
      cur_handle   INTEGER;
      temp         NUMBER;
    BEGIN
      IF ptbl_col_names.COUNT > 0
      THEN
        lv_query   := 'SELECT old.id, ';
        FOR i IN ptbl_col_names.FIRST .. ptbl_col_names.LAST
        LOOP
          lv_query      := lv_query || 'new.' ||  ptbl_col_names ( i)
                        ||  ' as new_' || ptbl_col_names ( i);
          IF i < ptbl_col_names.LAST
          THEN
            lv_query   := lv_query || ',';
          END IF;
        END LOOP;
        lv_query      := lv_query ||
          ' FROM (  SELECT ROWNUM rr, ' ||  pv_table_name || 
                  '.* FROM ' ||  pv_table_name ||
                   ' ORDER BY ' || pv_table_name ||'.id) old
                 , (SELECT ROWNUM rr, a.* FROM (  SELECT id,';
        FOR j IN ptbl_col_names.FIRST .. ptbl_col_names.LAST
        LOOP
          lv_query   := lv_query || ptbl_col_names ( j);
          IF j < ptbl_col_names.LAST
          THEN
            lv_query   := lv_query || ',';
          END IF;
        END LOOP;
        lv_query      := lv_query || ' FROM ' || pv_table_name ||
                       ' ORDER BY DBMS_RANDOM.VALUE) a) new WHERE old.rr = new.rr';
      END IF;
      DBMS_OUTPUT.put_line ( 'LV_QUERY: ' || lv_query);
      OPEN pmy_cursor FOR lv_query;
    END;
    -- And to execute do this:
    VAR my_cursor REFCURSOR;
    DECLARE
      emp_col   tbl_col_names;
    BEGIN
      emp_col      :=
        tbl_col_names (
                       'DEPTNO'
                     , 'MGR'
                     , 'EMPNO'
                     , 'ENAME'
      column_scramble ( 'EMP3', emp_col, :my_cursor);
    END;
    PRINT my_cursor;
    PL/SQL procedure successfully completed.
            ID NEW_DEPTNO    NEW_MGR  NEW_EMPNO NEW_ENAME
             1         10                  7839 KING     
             2         20       7566       7788 TIGER    
             3         30       7698       7499 ALLEN    
             4         10       7839       7782 CLARK    
             5         20       7566       7502 TIGER    
             6         30       7698       7654 MARTIN   
             7         30       7839       7698 BLAKE    
             8         20       7839       7566 JONES    
             9         20       7566       7788 SCOTT    
            10         20       7788       7876 ADAMS    
            11         30       7698       7521 WARD     
            12         20       7902       7369 SMITH    
            13         30       7698       7844 TURNER   
            14         30       7698       7501 BRWN     
    14 rows selected.

  • Does apple account sync automatically with the person name and number saved in contact list.

    I have a contact saved in my phone only contact number is saved.. Does iPhone automatically synchronizes the email id related to that contact if that contact person is having an apple id??

    Ur correct buddy. This is what we supposed to do.. But I have saved one contact number without email Id information entered. When u am searching that name in search box I am receiving contact details along with email id.. This is mysterious to me...

  • I likr to how you can recover a name and number from your contacts

    Hi,
    I like to know if there is a way to recover a delete contact

    If you previously sent that person an email, their email address will still be in the "Previous Recipients" list.

  • TS2755 When I iMessage, I type in my friends name, then select her cell number that is in my contacts.  When I start the iMessage, her husband's name shows up as the default name for who I am messaging.  How do I change it so that her name shows up?

    When I iMessage, I type in my friend's name, then select her cell number from my contacts.  When I start the iMessage, her husband's name automatically fills in as the default name.  My friend is getting the iMessage, but this is confusing to me, the sender.  I want her name to automatically be the default when I select her cell number.  How do I change this? Using the 3rd generation iPad with retina display.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • How to create a Type Object with Dynamic select query columns in a Function

    Hi Every One,
    I'm trying to figure out how to write a piplined function that executes a dynamic select query and construct a Type Object in order to assigned it to the pipe row.
    I have tried by
    SELECT a.DB_QUERY INTO actual_query FROM mytable a WHERE a.country_code = 'US';
    c :=DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(c,actual_query,DBMS_SQL.NATIVE);
    l_status := DBMS_SQL.EXECUTE(c);
    DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
    FOR j in 1..col_cnt LOOP
    DBMS_SQL.DEFINE_COLUMN(c,j,v_val,2000);
    END LOOP;
    FOR j in 1..col_cnt LOOP
    DBMS_SQL.COLUMN_VALUE(c,j,v_val);
    END LOOP;
    But got stuck, how to iterate the values and assign to a Type Object from the cursor. Can any one guide me how to do the process.
    Thanks,
    mallikj2

    Hi Justin,
    First of thanks for your reply, and coming to my requirement, I need to report the list of items which are there in the dynamic select statement what am getting from the DB. The select statement number of columns may vary in my example for different countries the select item columns count is different. For US its '15', for UK it may be 10 ...like so, and some of the column value might be a combination or calculation part of other table columns (The select query contains more than one table in the from clause).
    In order to execute the dynamic select statement and return the result i choose to write a function which will parse the cursor for dynamic query and then iterate the values and construct a Type Object and append it to the pipe row.
    Am relatively very new for these sort of things, welcome in case of any suggestions to make it simple (Instead of the function what i thought to work with) also a sample narrating the new procedure will be appreciated.
    Thanks in Advance,
    mallikj2.

  • How to save a variant with dynamic selections parameters

    Anybody knows how to save a variant for an ABAP that uses a Logical database with Dynamic Selections?
    Have a look for example to the following:
    SE38 - DEMO_PROGRAM_GET - Execute - Shift F4 - Connection Number.
    How to save 0820 as Connection Number?
    Function Group SVAR seems good but FREE SELECTIONs are not easy to manage...

    Hello,
      I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
    Thanks,
    Venu

  • Dynamic select

    hi to all,
            i am working in the dynamic select scenario. i want to select the fieldnames  from the tables dynamically using report editor as per the requirement as new to abap can some one please help me out and also kindly mention the table name for example DD03L.
    Thanks,
    Devi

    Hi priya...
    I am sure about its may help you....please mention if you solve your questions..
    REPORT  ZNKS_TEST19.
    *TABLES : SFLIGHT.
    type-pools : slis.
    data : it_tab  type table of SFLIGHT,
          wa_tab  like line of it_tab.
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          g_exit type c,
          ispfli type table of spfli.
    parameters :
                carrid  type SFLIGHT-CARRID,
                connid  type SFLIGHT-CONNID,
                date  type SFLIGHT-FLDATE,
                price  type SFLIGHT-PRICE.
    data l_where(100) occurs 0 with header line.
    start-of-selection.
      perform data_retrivel.
      perform build_fieldcatalog.
      perform display_alv_report.
    form build_fieldcatalog .
      fieldcatalog-fieldname   = 'CARRID'.
      fieldcatalog-seltext_m   = 'carrid'.
      fieldcatalog-col_pos     = 0.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'CONNID'.
      fieldcatalog-seltext_m   = 'connid'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'FLDATE'.
      fieldcatalog-seltext_m   = 'date'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PRICE'.
      fieldcatalog-seltext_m   = 'price'.
      fieldcatalog-col_pos     = 3.
      fieldcatalog-outputlen   = 20.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
       fieldcatalog-fieldname   = 'CURRENCY'.
      fieldcatalog-seltext_m   = 'currency'.
      fieldcatalog-col_pos     = 4.
      fieldcatalog-outputlen   = 20.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
       fieldcatalog-fieldname   = 'PLANETYPE'.
      fieldcatalog-seltext_m   = 'planetype'.
      fieldcatalog-col_pos     = 5.
      fieldcatalog-outputlen   = 20.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    form display_alv_report .
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program      = gd_repid
          i_callback_top_of_page  = 'TOP-OF-PAGE'  "see FORM
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat             = fieldcatalog[]
          i_save                  = 'X'
    *      IS_VARIANT              = G_VARIANT
        tables
          t_outtab                = it_tab
        exceptions
          program_error           = 1
          others                  = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "DISPLAY_ALV_REPORT
    form data_retrivel .
      if carrid is not initial.
    append 'CARRID = carrid' to l_where.
    endif.
    if connid  is not initial.
      if l_where is initial.
        append ' and ' to l_where.
      endif.
      append 'CONNID = connid' to l_where.
    endif.
    if date  is not initial.
      if l_where is initial.
        append ' and ' to l_where.
      endif.
      append 'FLDATE = date' to l_where.
    endif.
    if price is not initial.
      if l_where is initial.
        append ' and ' to l_where.
      endif.
      append 'PRICE = price' to l_where.
    endif.
    select * from sflight into corresponding fields of table it_tab
    where (l_where).
    endform.                    " DATA_RETRIVEL
    form top-of-page.
    *ALV Header declarations
      data: t_header type slis_t_listheader,
            wa_header type slis_listheader,
            t_line like wa_header-info,
            ld_lines type i,
            ld_linesc(10) type c.
    * Title
      wa_header-typ  = 'H'.
      wa_header-info = 'Z  report'.
      append wa_header to t_header.
      clear wa_header.
    * Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      concatenate  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) into wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary = t_header.
    endform.    
    // Dynamic Selection
    Thanks and Regards ,
    Niraj Sinha

  • Add field in dynamic selections of FBL3N

    Hi,
    I know this question has been post before and i have followed the sap note 188663  and 832997, and also I read it in the wiki tab, "Enhancing Selection Views in the dynamic selection of FB03, FBL3n, FBL5n and etc".
    But no available for me.
    Requirement: Accounting document entry date(BKPF-CPUDT) need to be added in the dynamic selection in FBL3N.
    I did the following customizations, but it doesn't work.
    1.Execute Transaction code SE36.  Enter "SDF" in Logical database field.
    2.From the initial screen of SE36, Choose from the path EXTRAS>> Selection Views
    3.Change the selection views "CUS".
    4.double click table BKPF, and enter "02" in function group of Accounting document entry date(BKPF-CPUDT).
    But, when I execute FBL3N, the custmized filed was not displaying in dynamic selection.
    And then, I found there is no BKPF table in dynamic selections setting in front screen of SE36. ( Menu path : Extras >>Dynamic selections ).
    So, I modified the Selections of Subobjects as belows.
    "SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE BKPF."
    When I use a test run(F8) in SE36, I could get the additional field in the dynamic selection.
    However, I still could not get it in executing FBL3N.
    I see that there is a Edit -> generate -> selections and program in front screen of SE36, and when I selected, the message was displayed as "The slections for LDB SDF cannot be generated (already exist)".
    Please assist me.
    Thanks in advance.
    Weiyang

    Dear  Weiyang         
    kindly note that as per SAP note 310886 Only certain tables or fields are permitted
    Permitted tables:
    SKA1: all fields
    SKB1: all fields
    BSIS: all fields
    no other table is allowed
    so your field BKPF-CPUDT is not allowed in dynamic selection
    Hope your query is solved
    Cheers
    IMK

  • Dynamic select / function module for select queries

    Hello experts,
    Is there any function module to build dynamic select queries and also to build standard select queries .
    Thanks,
    krishnakumar

    What are you meaning by 'to build' ???
    BR, JAcek
    Message was edited by: Jacek Slowikowski

  • Working with dynamic selection screen in LDB FMF

    Hi Guys,
    I am working with LDB FMF and I have a requirement where user need the selection field in initial screen which is already comming in dynamic selection option.
    Is it possible without changing the standerd LDB.
    Atul
    Edited by: Atul Dhariwal on Jun 16, 2009 6:27 AM

    Hi,
    my requirement is to list fields from dynamic selection to appear in the main selection screen.
    user doesn't want's to click on dynamic selection option and select the fields.
    I hope i am clear this time.
    Atul

  • HowDoI copy a phone number from a contact and paste it into a text

    Z10 HowDoI copy a phone number from a contact and paste it into a text message?
    Help Please. It should be so simple but in the maze of approaches to contacts from the phone or home screen which ever way you get there; how do I select a phone number, copy it and paste it into a text message to another contact so that I can send it on?
    The logic of the interface is totally baffling to me most of the time. Can't there just be one contacts interface so that when you enter it from anywhere it presents the same options to edit etc. Cannot the three blobs be called up to allow a proper edit menu - copy/cut/paste/delete.
    Can the favourites be held permanently in screen at the top with the rest of the contacts scrolling below them?
    Can it be set up so that contact pictures do not show to save screen space?
    Any help on any of these - much appreciated.
    Solved!
    Go to Solution.

    Hey jbee,
    Welcome to the BlackBerry® Support Community Forums.
    How Do I copy a phone number from a contact and paste it into a text message?
    The only option would be to to select the edit option on the contact and hold your finger on the number and select the copy option on the left side panel.
    Can the favorites be held permanently in screen at the top with the rest of the contacts scrolling below them?
    This feature is currently not available. 
    Can it be set up so that contact pictures do not show to save screen space?
    This feature is currently not available.
    Let me know if you have any other questions.
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How can I choose what default number my iPhone 4 chooses when I select a number with multiple contacts as a favorite?

    Everytime I click on a contact to add to "My Favorites", it randomly selects the info that it will use as a default contact for that number, and recently it's only been choosing the e-mail for FaceTime (which not all of my contacts have) instead of the mobile number, which is what I would like to have it default to for each contact. Please Help!!!

    Go to Phone > Favorites.
    Select the + button to add a Favorite.
    Select the phone number for the chosen contact that you want to add as a Favorite. You can add the cell phone number and the home number or office number as separate Favorites for one contact.
    And I just used the Add to Favorites option for a contact. When I selected Add to Favorites for a contact with more than one phone number entry, I'm provided a list of the phone numbers to choose from for the number to be added to Favorites.
    Message was edited by: Allan Sampson

  • Dynamic Select Options/Ranges Maintain and Display in my screen

    Hi I am trying to figure out if I can create a screen which will will read various select-options I have stored in a custom table but am having trouble finding something which will allow me to display each of 'select-options' in my dynpro... has anyone ever done this?
    I'd rather not reinvent the wheel or mimic - does anyone know of a way to basically use a loaded range and display it on a screen for display or maintenance using standard SAP routines/classes?
    Thanks in advance!
    Roc..

    @Adrian - I got your email regarding the code sample, here is a quick example of how to popup a dynamic selection for up to 5 tables...
    *& Report  ZRS_DYNAMIC
    REPORT  zrs_dynamic.
    * START Dynamic Range Selection Definitions
    * Definition of the selection_if variable, which is used to reference
    * the selections obtained
    DATA: gv_selid TYPE rsdynsel-selid.
    * Definition of the TABLES_TAB table for use in providing the list of
    * fields available for creating select options from
    DATA: gt_tables TYPE STANDARD TABLE OF rsdstabs.
    DATA: gs_tables TYPE rsdstabs.
    PARAMETERS: p_tab1 TYPE tabname DEFAULT 'KNA1',
                p_tab2 TYPE tabname DEFAULT 'KNB1',
                p_tab3 TYPE tabname DEFAULT 'KNC1',
                p_tab4 TYPE tabname DEFAULT 'KNVV',
                p_tab5 TYPE tabname DEFAULT 'KNVP'.
    START-OF-SELECTION.
      gs_tables-prim_tab = p_tab1 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab2 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab3 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab4 .APPEND gs_tables TO gt_tables.
      gs_tables-prim_tab = p_tab5 .APPEND gs_tables TO gt_tables.
    * Definition of Table which includes the select-option range for field
      TYPES: ty_selopt_t TYPE  rsdsselopt OCCURS 10.
    * Definition of field name and select option range table
      TYPES: BEGIN OF ty_frange,
               fieldname TYPE rsdstabs-prim_fname,
               selopt_t TYPE ty_selopt_t,
             END OF ty_frange.
      TYPES: ty_frange_t TYPE ty_frange OCCURS 10.
      TYPES: BEGIN OF ty_range,
               tablename LIKE rsdstabs-prim_tab,
               frange_t TYPE ty_frange_t,
             END OF ty_range.
      TYPES: ty_range_t TYPE STANDARD TABLE OF ty_range.
      DATA: it_ranges TYPE ty_range_t.
    * work areas
      DATA: gs_ranges TYPE ty_range.
      DATA: gs_frange TYPE ty_frange.
      DATA: gs_selopt TYPE rsdsselopt.
      DATA: gt_ranges TYPE ty_range_t.
      DATA: gt_frange TYPE ty_frange_t.
      DATA: gt_selopt TYPE ty_selopt_t.
    * Definition of the fields list avaiable
      TYPES: ty_fields TYPE STANDARD TABLE OF rsdsfields.
      DATA: it_fields TYPE ty_fields.
      DATA: gs_fields TYPE rsdsfields.
    * END Dynamic Range Selection --------------------------------------------
      CALL FUNCTION 'FREE_SELECTIONS_INIT'
        EXPORTING
          kind         = 'T'
        IMPORTING
          selection_id = gv_selid
        TABLES
          tables_tab   = gt_tables.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
        EXPORTING
          selection_id    = gv_selid
          title           = 'Select WHERE criteria for Rule'(s12)
          as_window       = 'X'
          start_row       = 7
          start_col       = 10
        IMPORTING
          field_ranges    = it_ranges
        TABLES
          fields_tab      = it_fields
        EXCEPTIONS
          internal_error  = 1
          no_action       = 2
          selid_not_found = 3
          illegal_status  = 4
          OTHERS          = 5.
    Edited by: Rocco Scocco on Jun 17, 2010 3:48 PM
    Edited by: Rocco Scocco on Jun 17, 2010 3:49 PM

Maybe you are looking for

  • My iphone suddenly started to react really slow, what should i do??

    So, in the last days, my 8 month old iPhone 4S started to react super slow! about 30 percent of the time. When I am at an appclication (Settings as an example) and want to get to the home screen by pressing the home button of course, and when i press

  • Database access JSP page

    I am currently writing a JSP program to add/modify/delete projects. If the user wants to add or modify then I show textboxes or select inputs for the inputs and if it's delete, I just display the text. In order to populate the select inputs, I need t

  • This device cannot start. (Code 10) for built-in iSight webcam on Windows 7 Ultimate

    The built-in iSight webcam of my MacBook Pro 15 inch (late 2009, early 2010) suddenly became not working toady on Windows 7 Ultimate 64-bit (Bootcamp) with a yellow ! on the device on Device Manager. I rebooted the MBP to MacOS X and the device worke

  • Installing a third party program on macbook air

    Can someone please tell me how to install a third party program from a CD onto a Macbook Air? I've spent the last 8-10 hours trying to figure this out and I keep going around in circles. The program I want to install is on my desktop. I've tried Migr

  • Thunderbolt firmware update 1.1 wont intall on mountain lion on my macbool pro

    I downloaded the update for the Thunderbolt Firmware (1.1) but it will not install.  The AppStore updater just keeps "checking for updates" without performing the update.  If I try to close the AppStore to restart it a message appears that says it ca