Value Assignment From A Dynamic Field

First I will do:
CONCATENATE 'itab-field' counter_value INTO <b>dynamic_field</b>.
Here the <i>counter_value</i> can be anything! So, dynamic_field can have any of the follwing: itab-field1, itab-field2,...itab-fieldn.
Then I have to do:
<b>output = contents of <b>dynamic_field</b>.</b>
I tried to use field-symbols but it is duplicating some values. Any help will be appreciated!

> Can you please post the data declarations of the
> variables that are used in the WHILE loop?
  DATA: l_plant     TYPE mard-werks,
        l_offset(2) TYPE n,
        l_exts      TYPE i.
  FIELD-SYMBOLS: <dest_plant>.
LOOP AT i_input INTO wa_input.
    g_totrec = g_totrec + 1.
    READ TABLE i_no_of_extensions INTO wa_no_of_extensions WITH KEY matl_no = wa_input-value_0001.
    IF sy-subrc = 0.
      l_exts = wa_no_of_extensions-exts.
    ENDIF.
    WHILE ( l_exts > 0 ).
      l_offset = 3 + sy-index + wa_mat_mast-extension.
      CONCATENATE 'wa_input-value_00' l_offset INTO l_buffer.
      CONDENSE l_buffer NO-GAPS.
      ASSIGN (l_buffer) TO <dest_plant>.
      IF sy-subrc = 0.
        l_plant = <dest_plant>.
      ENDIF.
      PERFORM standard_conversion USING l_plant CHANGING wa_mat_mast-dest_plant.
      MOVE: g_totrec TO wa_mat_mast-rec_no,
            sy-index TO wa_mat_mast-extension.
      APPEND wa_mat_mast TO i_mat_mast.
      l_exts = l_exts - 1.
    ENDWHILE.
ENDLOOP.

Similar Messages

  • Read Data from the dynamic Field Symbol with key ?

    Dear All,
    I've  2 dynamic internal tables in the form of field symbols.
    Now,I want to loop the item field symbol, read the header field symbol content and then move the corresponding into a final field symbol.
    How to read the field symbol with key ?
    When I'm trying to give the key clause in the paranthesis it's giving a syntax error.
    Any clues ?
    FYI .....
    * Get the Dynamic Field and Value for the Date/Year and convert it into Year value
      LOOP AT <fs_t_son> ASSIGNING <wa_son>.
        ASSIGN COMPONENT gwa_znrows_def-fieldname OF STRUCTURE <wa_son> TO <fs_year>.
        IF sy-subrc = 0.
          CLEAR gv_string.
          MOVE <fs_year> TO gv_string.
          CLEAR gv_year.
          gv_year = gv_string.
          <fs_year> = gv_year.
        ELSE.
    * When the Date/year Field is not in the Table then -->
    * Get the Dynamic Field and Value
          ASSIGN COMPONENT gwa_znrows_def-kfldname OF STRUCTURE <wa_rson> TO <fs_value>.
    * Populate field for Dynamic Where condition
          CLEAR gv_value.
          CONCATENATE '''' <fs_value> '''' INTO gv_value.
          CONCATENATE gwa_znrows_def-kfldname '=' gv_value INTO gt_where SEPARATED BY space.
          APPEND gt_where.
          CLEAR gt_where.
          READ TABLE <fs_t_rson> ASSIGNING <wa_rson> ( gt_where ).  "Key clause
        ENDIF.  " if sy-subrc = 0.  "Assign
      ENDLOOP.
    Thanks & regards,
    Deepu.K

    TYPES: BEGIN OF line,
             col1 TYPE c,
             col2 TYPE c,
           END OF line.
    DATA: wa TYPE line,
          itab TYPE HASHED TABLE OF line WITH UNIQUE KEY col1,
          key(4) TYPE c VALUE 'COL1'.
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    ASSIGN itab TO <fs>.
    READ TABLE <fs> WITH TABLE KEY (key) = 'X' INTO wa.
    The internal table itab is assigned to the generic field symbol <fs>, after which it is possible to address the table key of the field symbol dynamically. However, the static address
    READ TABLE <fs> WITH TABLE KEY col1 = 'X' INTO wa.
    is not possible syntactically, since the field symbol does not adopt the key of table itab until runtime. In the program, the type specification ANY TABLE only indicates that <fs> is a table. If the type had been ANY (or no type had been specified at all), even the specific internal table statement READ TABLE <fs>  would not have been possible from a syntax point of view.

  • Assignment field value different from sort key

    Dear Forum,
    I notice in the customer line item, the assignment field value different from sort key.
    sort key for customer i maintain as doc number + fiscal year, but i notice some line item's assignment is not this information.
    for example, billing posting. some customer line item assignment is document + fiscal year but some are delivery number in assignment field. no changes made in log file.
    may i know why?
    thanks

    dear,
    as i did mention, customer master sort key no change and in the same customer line item, assignment field which carry delivery number also no change log.
    may i know where to see the subsitution? i do not think that is due to substitution.
    thanks

  • Dynamic value assignment to a particular column in a vertical ALV

    Hi Friends,
    In the present program ALV has 44 fields and output row is only one(with some field editable).
    My requirement is to change present output to vertical ALV and editable field should be available
    as editable.
    Now I have changed this to transposed ALV manually(not dynamically) with required fields editable.
    Now there is 44 rows and two column "FIELD and "VALUE'.Some values in the second column is editable.
    Previously output was like this:
    field1   field2  field3 ...
    val1     val2    val3   ...
    Now output is like:
    FIELD   VALUE
    field1  value1(type INT)
    field2  value2(type char5) Editable(need F4 help)
    field3  value3(type date)
    My present structure declaration is:
    types: begin of ty_itab,
            field type char 50,
            value type char70,
            celltab type lvc_t_styl,(for editing some values in VALUE column).
           end of ty_itab.
    data: itab type standard table of ty_itab.
    Now the second column i have declared as CHAR70 which contains only char
    values because to put all differt types of values to one single column named
    'VALUE'.
    But as field1 field2 field3... had differnt type of value like integer char date...I need to validate some values
    (specially those which are editable) before saving to custom DB table.
    So I need dynamic value assignment to VALUE column when preparing internal table for display.
    What I want to say is that VALUE column should be able to contain different type of values like INT, DATE, CHAR...etc
    Is the requirement is feasible?
    If yes then How should I declare the structure and populate different type of values within single column 'VALUE'.
    Also is it possible to have F4 helps in the second column (VALUE)???

    Hi Manab,
    I did something comparable: We have a very complex transaction with several subscreens with multiple fields to be filled with complex logic to create a very special contract. The requirement was to create a method to create a copy of this contract being able to apply some changes.
    I created a wizard (transaction SBPT_WIZARD_BUILDER - Wizard-Builder) to accomplish that. I grouped all the fields to just 3 logical groups and thius created 3 stesp where the user gets an ALV as you describe, but we have the rows like FIELD  with the new value editable. Additionally I have hidden fields with table name and field name so that I can determine the characteristics (datatype) at run time.
    The value fields are just strings (every ALV field is a text field on the surface).
    For editable fields, you have an event DATA_CHANGED. I used this method as a handler for the event:
    (I will leave out the wizard part here - maybe a good idea for a blog to explain that)
    METHOD handle_data_changed.
        CALL FUNCTION 'RS_CONV_EX_2_IN'
          EXPORTING
             input_external                     = <mod>-value
             table_field                        = ls_tabfield
    I also created handlers for F1 and F4
    Handler for CL_GUI_ALV_GRID->ONF1
    METHOD handle_f1.
        CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
          EXPORTING
            called_for_tab   = lv_tabname
            called_for_field = lv_fieldname
          EXCEPTIONS
            object_not_found = 1
            sapscript_error  = 2
            OTHERS           = 3.
    Handler for CL_GUI_ALV_GRID->HANDLE_F4
    METHOD handle_f4.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname    = lv_tabname
          fieldname  = lv_fieldname
        TABLES
          return_tab = lt_return_tab
        EXCEPTIONS
          OTHERS     = 5.
        er_event_data->m_event_handled = abap_true.
    * if er_event_data->m_event_handled is not set to abap_true, system will handle it.
    * In this context the message 'Keine Eingabehilfe verfügbar' will be displayed
    ENDMETHOD.
    This is just an excerpt from my project. It shows that you can do more in ALV as you knew.
    I tried to post a little more but the formatting break down, possibly a result of the character limit
    Regards,
    Clemens

  • How to dynamically assign type to a field-symbol?

    Hi,
    I have two fields in one table, one for field name and one for table name.  These can be fields in different
    tables. I need to fetch value of this field in that table. So the type of this variable can change dynamically.
    I am trying to assign type of this field dynamically to a field-symbol. I have to use this field symbol in a
    select statement.  Currently it is showing a dumb, as the field type is dec7.  For some other types it is
    working fine.
    Regards,
    Sunil

    Hi all,
    I have the same problem.
    I tried with your helps but i can't fix them.
    A message is raised "Field <fs_bet> unknown" when i used code below
    FIELD-SYMBOLS: <fs_bet> TYPE any.
    DATA: c_bet TYPE string.
    DATA it_0008 type STANDARD TABLE OF pa0008 WITH HEADER LINE.
    DO 40 TIMES.
      CONCATENATE 'BET0' index into c_bet.
      ASSIGN (c_bet) to <fs_bet> CASTING TYPE pad_amt7s  .
      select * from pa0008 into it_0008
         where <fs_bet> = '1000'
         and pernr = 32.
         append it_0008.
      ENDSELECT.
    ENDDO.
    Please help me to solve it.
    Thanks so much,
    Sophie Tran

  • Assign component - dynamic field

    Hey experts,
    I want to do this:
    ASSIGN COMPONENT (wa_dd08l-fieldname) of structure  <wa_deleted> to <ls_id>
    but the (wa_dd08l-fieldname) is incorrect, I can't put there those parentheses.
    The <wa_deleted> is a dynamic field symbol and I need to get the ID from it, I have the fieldname of the ID in wa_dd08l-fieldname, but
    I can't use it in ASSIGN COMPONENT, so how could I get the value of the fieldname (wa_dd08l-fieldname) from <wa_deleted>?
    Regards,
    Robert    

    Why do you want to use the parenthesis?
    ASSIGN COMPONENT (wa_dd08l-fieldname) of structure  <wa_deleted> to <ls_id>
    ASSIGN COMPONENT wa_dd08l-fieldname of structure  <wa_deleted> to <ls_id>
    Max

  • Logic for retreiving the values from a dynamic internal table

    Hi all,
    I have an issue with the logic to fetch data from a dynamic internal table into fields. let me give you guys an example the sy-tfill = 9 (subject to vary). I need to populate the fields.
    Regards,
    Sukumar

    Hi,
    this is for printing out the info in a dynamic table,
    it will work likewise to insert data.
    PARAMETERS:
      p_tabnam TYPE tabname DEFAULT 'DB_TABLE_NAME'.
    DATA:
      lv_dref TYPE REF TO data,
      ls_dd03l LIKE dd03l,
      lt_fieldname TYPE TABLE OF fieldname,
      ls_fieldname TYPE fieldname.
    FIELD-SYMBOLS:
      <fs> TYPE STANDARD TABLE,
      <wa_comp> TYPE fieldname,
      <wa_data> TYPE ANY,
      <wa_field> TYPE ANY.
    REFRESH lt_fieldname.
    SELECT * FROM dd03l INTO ls_dd03l
                       WHERE as4local = 'A'
                         AND as4vers  = '0000'
                         AND tabname  = p_tabnam
                       ORDER BY position.
      ls_fieldname = ls_dd03l-fieldname.
      APPEND ls_fieldname TO lt_fieldname.
    ENDSELECT.
    IF NOT ( lt_fieldname[] IS INITIAL ).
      CREATE DATA lv_dref TYPE TABLE OF (p_tabnam).
      ASSIGN lv_dref->* TO <fs>.
      SELECT * FROM (p_tabnam) INTO TABLE <fs>.
      WRITE:
        / 'CONTENTS OF TABLE', p_tabnam.
      LOOP AT <fs> ASSIGNING <wa_data>.
        SKIP.
        WRITE:
          / 'LINE', sy-tabix.
        ULINE.
        LOOP AT lt_fieldname ASSIGNING <wa_comp>.
          ASSIGN COMPONENT sy-tabix OF STRUCTURE <wa_data> TO <wa_field>.
          WRITE:
            / <wa_comp>, <wa_field>.
        ENDLOOP.
      ENDLOOP.
    ENDIF.
    grtz
    Koen

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • Import screen field value into search help assigned to a different field

    Hi,
    I have created an elementary search help based on a custom DDIC table ZSH_SHHLDR. Dialog Type: Dialog depends on set of values, search help parameters:
    Parameter                       Import     Export   LPos SPos  SDis
    FOLIO                                X                       1       1         X
    CERTN                                             X         2       2
    where FOLIO and CERTN are fields in my table.
    There are two fields in my program defined as like FOLIO and CERTN respectively. These fields are screen fields in a custom dynpro created using Screen Painter. The search help is assigned to the CERTN field. In the screen, I want that the contents of the FOLIO field should be imported into the search help, i.e. on the screen:
    FOLIO: 21353
    CERTN: <F4>
    When I click on F4 help for CERTN, I want that the FOLIO parameter in the search help should contain the value for FOLIO that I entered in the text box on the screen. Is there a way to do this, through an exit for instance? Help is appreciated, thanks.
    Regards

    Hi,
    You need to use the below statement.
    process on value-request.
    field zcom_doa_users-zzjob_role module sub_tes_module.
    Here I declared three fields in the screen fields from structure zcom_doa_users. Try to name the fields with table name-field name. So inside the module in structure zcom_doa_users you will get given value for the other fields also.
    Now you can do your own processing for f4 help.
    Thanks
    Subhankar

  • Assigning External content type field column value using Client Object Model

    I have a problem assinging External column value to ListItem object with client object model-based application I'm developing. To be precise, I am able to retrieve data related to external content type by reading external list created from this content type
    but I don't know how to properly use it to assign value to this field. By doing some research on my own I concluded that BDC ID column from external list is the way to go since it uniquely defines selected row from external list but that doesn't
    tell me much since I don't know what to do with it. Currently I ended up with partial solution - to assign plain string value of picker column but that makes this value visible only in "View Properties" option on Sharepoint and not in "Edit Properties"
    which pritty much makes sence since it isn't properly related to rest of the data in specific row. Does someone have a better solution for this?
    Igor S.

    I think I understand your problem.
    In my example I have an external data column "Beneficiary Name", using a Beneficiary external content type (accessing a table of beneficiaries in a SQL table).
    I want to set the "Beneficiary Name" property using the client object model. I know the name of the beneficiary but not the ID value.
    It is a fairly simple solution. You just need to identify the name of the property SharePoint assigns to the ID field, in my case it is called "Beneficiary_ID". Then set the two properties as follows:
    thisItem["Beneficiary_Name"] = "Charitable Trust";
    thisItem["Beneficiary_ID"] = -1;
    thisItem.Update();
    Setting the ID property to -1 causes the server to do an automatic lookup for the ID from the value assigned to the item.

  • How to retrieve dynamic filter value submitted from control query to .....

    How to retrieve dynamic filter value submitted from control query to broadcast query.....
    I'm trying to change the hierarchy version determined by a userexit variable in the broadcast query.
    The Hierarchy Version should be dependent on the input filter delivered by the bursting query.
    But how do I catch the dynamic filter value which has been submitted by the bursting query,
    with other words:  where does the bursting query store it's out put while sequentially starting the broadcast query value by value?
    BTW: the filter value from the bursting query appears under "dynamic filter values" in the information of the broadcast query...
    Any thoughts are welcome!
    Edited by: Heinrich Krupp on Jun 24, 2009 1:25 PM

    Further information,
    Report is used via webi only, not Xcelsius or Dashboard.
    Report is consuming BI Web Services.
    Although we can pass in prompt values to BI Services, I couldn't find if we could pass a variable or dimension object into this field. Anyone knows?

  • Assigning values to a range dynamically

    Hello All,
    I want to assign the values to a range dynamically.
    For example in the following piece of code, I cannot directly assign wa-kunnr to
    r_kunnr-low.
    LOOP AT ITAB INTO WA.
    r_kunnr-sign = 'I'.
    r_kunnr-option = 'EQ'.
    r_kunnr-low = wa-kunnr.
    APPEND r_kunnr.
    ENDLOOP.
    Can this be done dynamically? If I use following code I am getting a short dump.
    lv_fnam = 'wa-kunnr'.
    LOOP AT ITAB INTO WA.
    r_kunnr-sign = 'I'.
    r_kunnr-option = 'EQ'.
    r_kunnr-low = ( lv_fnam ).
    APPEND r_kunnr.
    ENDLOOP.
    Could anyone please suggest how to do this?
    Regards
    Indrajit

    Hi Indrajit,
    this is working perfectly for me ...i did not get any error
    REPORT  ychatest.
    TABLES : kna1.
    DATA : wa TYPE kna1,
           lv_fnam(10).
    FIELD-SYMBOLS : <fs> TYPE ANY.
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr.
    INITIALIZATION.
      wa-kunnr = '100'.
      lv_fnam = 'WA-KUNNR'.
      ASSIGN (lv_fnam) TO <fs>.
      s_kunnr-sign = 'I'.
      s_kunnr-option = 'BT'.
      s_kunnr-low = <fs>.
      APPEND s_kunnr.

  • Can a pop list have a dynamic value assigned to it?

    Can a pop list have a dynamic value assigned to it?
    like Select actualValue, fullname from category;
    and assigning fullname to the list of values of the pop list and actualValue to each of the values returned...

    The following code will help you and define on when-new-form-instance trigger,
    DECLARE
    rg_name VARCHAR2(40) := 'EMP';
    rg_id RecordGroup;
    errcode NUMBER;
    BEGIN
    rg_id := Find_Group( rg_name );
    IF not Id_Null(rg_id) THEN
       delete_group(rg_id);
    END IF;
    rg_id := Create_Group_from_query(RG_NAME, 'SELECT ename, TO_cHAR(empno) FROM emp');
    errcode := Populate_Group( rg_id );
    -- Error occured while populating the record group
    if errcode != 0 then
    message(' Error occured while populating the record group');
    raise form_trigger_failure;
    end if;
    -- Clearing the list before populating it.
    clear_list('here you define block column name');
    populate_list('here you define block column name',RG_ID);
    exception
    when no_data_found then
    null;
    when others then
    null;
    END;  

  • Value '61218XZEF ' from field ANZVERTR is not convertible into the DDIC

    Hi All,
    I struggling with this error can anybody pls help me.
    <b>Value '61218XZEF ' from field ANZVERTR is not convertible into the DDIC
    data type DEC in data record 1 . The field content could not be  transferred into the typed transfer structure.</b>
    This is occuring only in Prod, i have tested the same in Dev & QA but i didn't get this error.
    here the R/3 field ANZVERTR of type DEC length 6 is assigned to infoobject 0UCCNTRCNT of type DEC length 17 ( data element /BI0/OIUCCNTRCNT).
    i dont think its a problem right coz the infoobject has same type and larger size.
    i have another 3 fileds with the same problem.
    Is it a problem in BW or probelm in data being uploaded from R/3 side. coz the hasn't received in BW yet. the error says " The field content could not be  transferred into the typed transfer structure"
    Even i have PSA in parallel but data hasnt even came to PSA.
    when i check job overview in R/3 i saw a msg " Function module /BI0/QI0UC_SALES_STATS_020001 does not exist"
    when i checked this FM with other guy( coz i dont have access) it is there and is active.
    Pls anybody help me.
    Regards
    Robyn.

    Hi Arvind,
    That filed is a keyfigure coming from standard datasource 0uc_sales_stats_02 it  uses various different tables, iam not able to figure out where is it comin from.
    Is it sure that the problem is in R/3 side???
    if it is a problem in BW at least that data should have come through to PSA right??
    keyfigures coming from std. datasources goes through various extraction programs, its not field to field mapping from R/3 to BW in case of key figures i guess. correct me if im wrong.
    Regards
    Robyn.

  • How can we use C# to read dynamic parameter's value list from .rpt?

    I'm using Cystal Report 2008. We know starting from CR XI we can create dynamic parameters, the list of items of this kind of parameter are fetching from database. So in general the SQLs to get the list of values for dynamic parameters are stored in the .rpt.
    In Crystal Report Designer, if I preview a report with dynamic parameters, it will first query the database and then show the input dialog with list of values from database for user to choose. My question is can we implement the same thing by our C# code? I'm planning to use C# code to read this dynamic parameter's value list from .rpt and render them on the web page. Then pass back the user selected values to the .rpt to run the report after user make the choice. I didn't find any APIs can do this. Is it possible?
    Thanks in advance!!

    Hi,
    Can you explain a bit in detail, I have similar scenario. I am using the following code but not getting the Column name for dynamic parameter list.
    foreach (ParameterFieldDefinition prm
                              in reportDocument.DataDefinition.ParameterFields)
                    try
                        string vParameterFieldName;                   
                        *vParameterFieldName = prm.ParameterFieldName.ToString();*
    Shakeel

Maybe you are looking for

  • Trying to add cutaway; menu not showing up even with advanced tools

    I have advanced tools enabled; however when I try to drag a clip on top of the other, it just gets moved in front of it. There is no kind of menu popping up along with it. It's really bothersome. Help! Thanks.

  • How to show club prices in online shop?

    I'm building a BC site with a shopping cart. Anyone can order products from the shop, but club members get a 10% or 15% discount, depending which of the two membership options they select when registering. Being new to BC, I'm not sure what the best

  • Were Can I SAFELY download my missing QTMovie.dll file from?

    The Itunes store keeps crashing and when I try the fix suggested by Apple I find that the file that needs moving - the QTMovie.dll file is not there so I need to install it if possible from a safe site. Any Ideas PLEASE!

  • Mini player in menu bar

    Hi not to sure if the request has been already raised (i am sure it has as i can not be the only one) I actually gave apple numerous times feedback on that request but it seems they are not reading it or not willing to do it. Basically my request is

  • RMBP won't even power on after 10.8.3 update

    I updated my 2012 rMBP to the latest 10.8.3 OSX release today. Immediately after the update my machine restarted and completed the install. I then turned it off when leaving the office. Got home and tried turning it on a couple hours later. Nothing w