Channel values read

Hi everyone,
I have a very trivial problem.In a SUD dialog I load and display some channels in a  channel-combo-box.So everythings perfect so far,but I have some texts channels and I have text entries which lenght may vary, but I cannot figure it out how to display the text channel values in a combo-box, after the corresponding text channel is selected.It can be very simple if there is a command which is sthg like 'read channel values'. I had an idea , which is more time consuming, I can create a dinamic array and use a enumeration-combo-box but I'm in kind of a hurry.So if you have an idea about it I'll be most grateful.
Thanks in advance
Solved!
Go to Solution.

Hello!
AFAIK is there no build in function in DIAdem. You have to do it yourself.
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  

Similar Messages

  • DAQmx Channels To Read Property Not Working

    I have an AI task configured with multiple channels and then set the Channels To Read property to the channel I want before calling the Read VI. If the Channels To Read property value that I set matches the value that was previously set the task passes all the channels to the Read VI rather than the single channel of the property. Does anyone have insight into what might be the problem?

    Hi, I'm using Labview 8.2 and DAQmx 8.8. I have attached screenshots of the code.
    Attachments:
    Post1.PNG ‏40 KB
    Post2.PNG ‏27 KB

  • The value read by visa read VI is not correct!

    I design a labview program to control Agilent E5072C network analyzer. When I want to get value from this instrument, I use the "VISA read" VI which listed in the block plate. However, the value read by this VI is last time measurement value. For example, last time the read value is 1.0 db and this time the measurement value is 1.2 db. But when I use "VISA read" VI to fetch the value, it is 1.0 db.
    Agilent also provide a VI for this device to read measurement value, and it alway read correct value. so could someone tell me why? do I need do any action before read value from this instrument if I want to use "VISA read" VI instead of Agilent VI?
    Solved!
    Go to Solution.
    Attachments:
    Read.vi ‏23 KB

    You are probably reading it too quickly.  By reading it in NI-MAX, you are doing it by hand, so it takes longer.  When you do it programmatically, it is "instant".  Try using the *OPC? command to turn your command into a query.  It will then return a "1" in the read buffer.  Read the "1" and then do the fetch command.
    To Dennis:
    I've had bad experiences with manufacturer-supplied drivers to the point where I don't even try to use them any more.  But if Agilent is as anal about their drivers as they are about their manuals, they should be no problem. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to display the max channel value on the report automatially?

    Hi all,
    I have 2 text boxes start and target ready on my report. I need one of my channel minimum value and the other channels max value to dispaly automatically in start and target box respectively.
    How do i go about it?
    Rsh
    Solved!
    Go to Solution.

    Hello Jason,
    There is an easy way to do this, and there is a more involved way to do this. I am hoping the "easy" way will solve your question, so I don't have to think about the solution that involves a little more effort:
    Starting with DIAdem 2010 there is a way to add properties to the legend (see image below) of any axis system. What I did for this example was to simply add the legend for the 2D graph (that's a simple check box in the "Curve and Axis definition" dialog, and then dragged the maximum value of any channel onto the legend. It will automatically add a new column to the legend table and display the maximum (or any other channel property) in the legend. This of course works separately for each axis system on a page.
    Starting with DIAdem 2011 there is a new "Curve Snippet" function that allows to create tables such as the one shown in the image below. Please have a look at the DIAdem 2011 example called "2D Tables as Legend and Legend for Axis System Labeling" to see how this was done, it's a little more effort, but it also adds extra flexibility:
    Do either of these look like a workable solution for you?
    Best regards,
         Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Communiocation channel: Value with name asmaBaseFileName not available

    Hi friends,
    After upgrade our Dev system to PI 7.1. Whne i try to start the communication channels  from Communication channel monitoring.
    I am getting error for all the channels as follows :
    Configuration error: Value with name asmaBaseFileName not available (Software version: 3.0.15)
    Kindly guide  me how to rectify this issue.
    Renu

    After upgrade our Dev system to PI 7.1. Whne i try to start the communication channels from Communication channel
    monitoring.
    Which metadata are the channels using...SAP PI7.0 or SAP PI7.1? If you dont import the metadata of SAP PI7.0 in the PI7.1 system then you may get an error for the communication channels....you should either change the channels to point to PI7.1 or import the metadata in ESR.
    @Kiran: The tpz reference you have given seem to be of SAP PI7.11 .... will it also work for SAP PI7.1
    Regards,
    Abhishek.

  • Channel Value Issue Between Photoshop 6 and CS3

    We use a specialized process that includes Channel operations to make separations for printing. When we use the same process that we have always used in any NEW photoshop, the value are completely different. This is best illustrated by opening a PS5 file and looking at the channels. we open the file in CS3 and look at the darkest value. we then they to fill an area of that same color in that channel and it is lighter, BUT CS3 says that it is the SAME value. we are blown away and cannot figure out what we are doing. We have tried color settings, everything. My boss even contacted Adobe tech support, had them recreate the problem and they say that they had no idea why it works like it does. I know that this is a long rambling post but if anyone has the slightest inkling of how to help i will accept any and all offers!
    Thanks.

    I am fairly certain that the way that Dot Gain was calculated or applied was also changed at some stage in the evolution of Photoshop?
    It seems that it did! I have just found this (it dates from a piece I posted in 1998!):
    Incidently, the Dot Gain algorithm has been changed in Photoshop 5.0.
    Dan Margulis has discovered the formula for translating these values and I am repeating it here in case people missed that posting.
    Starting with your known Photoshop 4 Dot Gain,
    Subtract that dot gain from 40
    Multiply the result by .33
    Add 3 to that number
    Subtract that number of points from your dot gain to get your PS 5 equivalent.
    That would make a PS 4 Dot Gain value of 29% work out as:
    40 - 29 = 11.
    11 x 0.33 = 3.63
    3.63 + 3 = 6.63
    29 - 6.63 = 22.37 Dot Gain in PS 5
    Hope that helps.

  • Triggered, Multiple channel Analog Read: TIMEOUT

    Hello,
    I am trying to read multiple AI channels (differential), triggered with a DigitalStartLine. To trigger, I generate a Hi-Low pulse on the trigger line. My readanalogF64 function always returns a Timeout.
    I have used the same trigger to write multiple AO channels and have succeeded but not with the read operations. I have also found that if I don't use a triggered read, I am able to do the read perfectly.
    Following is the piece of code:
    DAQmxErrChk (DAQmxCreateTask("",&ADC_taskHandle));
    DAQmxErrChk (DAQmxCreateAIVoltageChan (ADC_taskHandle, "Dev1/ai0:7", "", DAQmx_Val_Diff, 0, 10, DAQmx_Val_Volts, NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming (ADC_taskHandle, "", 1000, DAQmx_Val_Falling, DAQmx_Val_FiniteSamps, 1000));
    DAQmxErrChk (DAQmxCfgDigEdgeStartTrig (ADC_taskHandle, "/Dev1/PFI1", DAQmx_Val_Falling));
    DAQmxErrChk (DAQmxStartTask (ADC_taskHandle));
    DAQmxErrChk (DAQmxReadAnalogF64 (ADC_taskHandle, 1000, 10, DAQmx_Val_GroupByChannel,ADC_Data, 8000, &read, NULL));
    DAQmxErrChk (DAQmxStopTask (ADC_taskHandle));
    // To generate the Trigger pulse
    for(i=1;i>=0;i--)
    if(i==1)
    singleBit_array[0]=1.0;
    else
    singleBit_array[0]=0.0;
    DAQmxErrChk (DAQmxCreateTask ("", &taskHandle));
    DAQmxErrChk (DAQmxCreateDOChan (taskHandle, "/Dev1/PFI0", "", DAQmx_Val_ChanPerLine));
    DAQmxErrChk (DAQmxStartTask (taskHandle));
    DAQmxErrChk (DAQmxWriteDigitalLines(taskHandle,1,0,10.0,DAQmx_​Val_GroupByChannel,singleBit_array,NULL,NULL));
    DAQmxErrChk (DAQmxStopTask (taskHandle));
    The ERROR I receive is:
    Function DAQmxReadAnalogF64: (return value == -200284 (0xfffcf1a4))
    Some or all of the samples requested have not yet been acquired.
    Property: DAQmx_Read_RelativeTo
    Corresponding Value: DAQmx_Val_CurrReadPos
    Property: DAQmx_Read_Offset
    Corresponding Value: 0
    Any suggestions would be a great help.
    regards,
    Dwivedi

    Dwivedi,
    Sorry it's taken me a while to get back to you, I've had a pretty hectic day here.  However I was able to sit down this afternoon and write a C program which accopmlishes what you were trying to do with AO.  I have NI-DAQmx 7.4 installed and was testing using a PCI-6259.  My program was able to run without error.  Here is my code:
    TaskHandle aoTask;
    int32 err = 0;
    float64 dataArray[8192];
    int32 sampsWritten = 0;
    for(int i=0; i<8192;i++)
    if((i%200) < 100)
    dataArray[i] = 6;
    else
    dataArray[i] = -6;
    err = DAQmxCreateTask("TestAOTask", &aoTask);
    if(err != 0)
    printf("Error Creating task... Error Code %d\n", err);
    return 0;
    err = DAQmxCreateAOVoltageChan(aoTask, "Dev1/ao0", "aoChan", -10.0, 10.0, DAQmx_Val_Volts, "");
    if(err != 0)
    printf("Error Creating channel... Error Code: %d\n", err);
    return 0;
    err = DAQmxCfgSampClkTiming(aoTask, "", 50000.0, DAQmx_Val_Falling, DAQmx_Val_ContSamps, 8192);
    if(err != 0)
    printf("Error configuring sample clock... Error code: %d\n", err);
    return 0;
    err = DAQmxCfgDigEdgeStartTrig (aoTask, "/Dev1/PFI0",DAQmx_Val_Falling);
    err = DAQmxWriteAnalogF64(aoTask, 8192, false, 10.0, DAQmx_Val_GroupByChannel, dataArray, &sampsWritten, NULL);
    if(err != 0)
    printf("Error durring write... Error Code: %d\n", err);
    return 0;
    err = DAQmxStartTask(aoTask);
    err = DAQmxStopTask(aoTask);
    err = DAQmxClearTask(aoTask);
    return 0;
    Sorry, the text editor for this forum seems to insert an extra newline for every time I hit enter.  About the only difference I found between your code an mine is that I wrote the data before starting the task (which is what I would recommend for AO.  This will ensure that there is data available for the DAC's once the task is started).  If you re-order your code in this way do you see a change of behavior?
    Sorry again it took me this long.  Please let me know how this works.
    Dan

  • AI-100 Channel always reading 24ma

    I have a strange situation where I have a cfp-2110 with a number of cards, all of which have been running fine for 9mo. Recently, I had a situation where the DO-410 card turned channels 5&6 on for roughly 21hrs (until noticed) - I doubt my labview 8.2 code had anything to do with it. Around 14hrs into this strange situation, my AI-100 card had a channel input go to 24ma and stayed at this value with no wires connected to channel. After much troubleshooting, everything came back to life and is working fine except for the one analog channel. Any ideas?

    Centerbolt, thanks for the reply. I saw the link you posted and researched the TVSS listings. My concern however, these inexpensive suppressors only last so many times and when they fail there is no way of knowing that they've failed until its too late. Since I have 220VAC power to my 24vdc power supplies, a real surge suppressor (industrial rated) appears to be very expensive.
    It's difficult to determine what other devices are on the same line that I'm using, the equipment location is 6hrs away at a customer site. There was no other equipment in the facility that experienced any electrical issues on the days in question (transient noise, spike, etc.).

  • Dependent Values read only or all possible values

    Hello
    I have read the following instructions.
    [How to Configure Predefined Properties with Dependent Values (NW7.0)]|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b1ec90-0201-0010-6192-d3de721f8ae4?quicklink=index&overridelayout=true]
    I need this scenario in the Portal search.
    So my question is:
    Is it possible, if Country is empty, that the field City is read only.
    In the How to guide you can see , if no city is selected the property city is a text field(not Dropdown) and you can enter a sting.
    Or it is possible, if no country is selected that the field city shows all possible cities, not restricted by countries.
    For example no country is selected and the field city shows all cities.
    or no country is selected and the field city is read only.
    The html code of dropdown list country is
    <option value="&lt;empty&gt;"><option value="Germany">Germany<option value="France">France
    Value of no selection
    &lt;empty&gt = <empty>
    If no country is selected the selected value is &lt;empty&gt or <empty>.
    I tried this:
    "dependon=Country,*=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,<empty>=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,&lt;empty&gt=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    without success
    Can some one help?
    Edited by: Dirk Wiegele on Jan 23, 2011 12:21 PM
    Edited by: Dirk Wiegele on Jan 23, 2011 12:22 PM

    Hi
    Yes, it is possible to generate an excel file in SAP. You can use any of the following FM's for the same:
    1. EXCEL_OLE_STANDARD_DAT
    2. GUI_DOWNLOAD
    3. XXL_FULL_API
    Hope it will help.
    Regards,
    Nikita

  • Setting default value read from user session, for an LOV in Query component

    I want to set the default value of a field in VO that participates in a named view criteria and thereby in Query component. That field is configured with an LOV by mean of a view accessor. The values are Y and N and the corresponding display strings obtained from view accessor are true and false respectively.
    I am able to set the default value by setting the value of the criteria item corresponding to that field in view criteria. I am setting the value as either Y or N and I am able to corresponding display string as per the view accessor, on the query component when it is rendered.
    I want to read the defauilt value from the ADF BC user session and set it as default value. I tried setting the values as "adf.userSession.userData.usageFlag". Iam ensuring that the attribute usageFlag is set before the view activity that has the query component is invoked. But this is ending up showing no default value in the Query component when rendered.
    Can any one let me know how to go about with this?

    I made up your table since you didn't provide some example, but I'm sure this will give you the picture:
    SQL> var run_type varchar2(1)
    SQL> exec :run_type := 'A'
    PL/SQL procedure successfully completed.
    SQL> create table my_cycles as select level cycle_id
      2                            ,      level cycle_status
      3                            from   dual connect by level <= 5;
    Table created.
    SQL> select cycle_id
      2  from   my_cycles
      3  where  case
      4           when :run_type = 'D' and cycle_status  = 1 then 1
      5           when :run_type != 'D' and cycle_status  in ( 2, 3 ) then 1
      6         end = 1;
      CYCLE_ID
             2
             3
    2 rows selected.
    SQL> exec :run_type := 'D';
    PL/SQL procedure successfully completed.
    SQL> /
      CYCLE_ID
             1
    1 row selected.
    SQL>

  • How do you populate a page item in apex with a value read from excel

    Dear All
    I am working on application where I am uploading a csv file in oracle apex. I then need to access a value in Cell B2 of the csv file and populate a page item called
    :P2100_AUTHORISATION_ID with this value. Many of the examples I have found upload the data using v_data-array into a table but I don't need to do that I just need to get the value from the csv file and then display additional information about the file allowing the user to either or continue or cancel the request to upload. I am running into a small problem that I can't explain and wondered if anyone had any ideas.
    Here is the code I am using to try and populate and item called :P2100_AUTHORISATION_ID but when I poulate the item the value is always 0. But if I replace the line :P2100_AUTHORISATION_ID:= v_data_array(2) with a raise_application_error(-20001,v_data_array(2)); The correct value is displayed in the eror. Any Help would be appreciate and I apologise in advance if this akes no sense at all:-)
    declare
    --variables needed to read excel data from flow files
    v_blob_data BLOB;
    v_blob_len NUMBER;
    v_position NUMBER;
    v_raw_chunk RAW(10000);
    v_char CHAR(1);
    c_chunk_len number := 1;
    v_line VARCHAR2 (32767) := NULL;
    v_data_array wwv_flow_global.vc_arr2;
    v_rows number;
    v_sr_no number := 1;
    begin
    --------------------------------------get file info from www_flow_files
    select blob_content into v_blob_data from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER) and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    v_blob_len := dbms_lob.getlength(v_blob_data);
    v_position := 1;
    --Read and convert binary to char
    WHILE ( v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char := chr(p_bl_wd_data_entry.hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities </span>
    v_line := REPLACE (v_line, ',', ':');
    -- Convert each column separated by : into array of data </span>
    v_data_array := wwv_flow_utilities.string_to_table (v_line);
    --get filename from wwv_flow_files
    select filename into :P2100_FILE_NAME from wwv_flow_files where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER) and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    :P2100_AUTHORISATION_ID:= v_data_array(2);
    -- Clear out
    -- v_line := NULL;
    --v_sr_no := v_sr_no + 1;
    END IF;
    END LOOP;
    end;
    Best Regards
    Lynn

    Hi Joel
    Continuing on from my last question, there was something else I want to ask if you dont mind.
    Now that I have the v_data_array(2) value in a page item I would like to use as an input value to a procedure to return some information I need displayed on the page. To do this I need to convert it to a number but when I try to so this I get the following error
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    When I use the wwv_flow.debug that you told me about it is outputting a value '4851 ' so it look like there may be some sort of asii character causing a problem. I have tried using trim(v_data_array(2)) and ascii(v_data_array(2)) but nothing seems to work.
    Would you know how to convert a v_data_array value to a number? At the moment I am attemting to do it withiin the same code I attached in my earlier post but I have replaced the assignment of :P2100_AUTHORISATION_ID with the code below where P_BL_WD_DATA_ENTRY.getauthid is the procedure returning the values I need.
    :P2100_AUTHORISATION_ID:= P_BL_WD_DATA_ENTRY.getauthid(to_number(v_data_array(2)));
    Thanks
    Lynn

  • PI sender communication channel not reading files from NFS directory

    Hello,
    I have a sender communication channel configured to read file from NFS directory which is on ECC server. A program in ECC generates the file and puts it on the ECC server in the output directory. PI sender communication channel is supposed to pickup this file and process it. If I give the NFS path as the source directory, I am getting error: Configured source directory '//Server/DIR/OUT' does not exist. I tried putting '
    Server\DIR\OUT' too but same error. Do I have to add the NFS path of ECC into PI as logical path?
    Any suggestions?
    Thanks,
    Sangita

    Hello Sangita,
    Your ECC server is an external system, therefore you need to activate FTP service in that system and use the transport protocol FTP:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    You can use NFS protocol when you have a local directory in XI server.
    Best Regards,
    .Luis Bernal.

  • Mail-to-Mail scenario - Problem with comm. channel not reading message

    Good day,
    I am setting up a Mail-to-Mail scenario, where a received e-mail with an attachment is both processed into a file, as well as a monitoring e-mail needs to be send. The attachment processing is an existing process and is still working properly, but my e-mail isn't send. I am using Java mapping to create the destination e-mail based on the source e-mail. Everything is set up in the Directory as well, and through the Test Configuration feature I have tested my new addition to the existing process, I am seeing the result that I am expecting. I have sent a test message and XI picks it up just fine and processes it which is tested by both SXMB_MONI and the resulting file from the attachment.
    However, the monitoring e-mail is not sent. Using the runtime workbench, there is an error in the receiver communication channel, being the following error from the Audit Log:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: java.lang.NullPointerException; nested exception caused by: java.io.IOException: Parsing an empty source. Root element expected!
    Looking through the Message Content, I notice there is a SOAP document describing the source message and two payloads. The first payload being the source message in XML format, the second payload is entirely empty. I suspect this empty second payload is causing the NullPointerException, but I am at a loss as to why the payload is empty. The Test Configuration showed me that the message gets through just fine, so what is going wrong?
    Here is a link to the configuration of the communication channel, maybe something is wrong here: [Config of communication channel|http://roald.hoolwerf.net/images/cc-config.png]
    My question is: What can I do to find what is causing the communication channel to receive an empty payload, and how can I solve this?
    Searching for this issue, or the given error on both Google as these forums hasn't given any related posts, if I did miss them in that case I am sorry for posting and please refer to the related topics.
    Thank you in advance for taking time to look at this question.
    Kind regards,
    Roald Hoolwerf
    Edited by: Roald Hoolwerf on Feb 1, 2010 3:57 PM

    Try this.
    Unchecked  the configure use authentication.
    and use mail package (base64)

  • BPM payload value reading problem

    Hi all,
    In a bpm scenario, I have a switch that checks an element's attribute and another that checks an element's value.  In the former case, the TRUE branch gets executed when the condition is satisfied.  However, in the latter the condition is NEVER satisfied (even when it should be).  Here's an example message.  In my BPM, I have one switch that uses <user action="xxxx"> and another that uses <jobCode>.
    <ns1:AccessRequestReply xmlns:ns1="xxxxx">
       <ns1:AccessReply type="complete">
          <ns1:user action="update">
             <ns1:jobCode>1234</ns1:jobCode>
          </ns1:user>
       </ns1:AccessReply>
    </ns1:AccessRequestReply>
    During runtime, the integration server can read the <user> attribute "action" with no problems.  However, it cannot read the <jobCode> element.  From sxi_cache I went into the corresponding workflow and loaded a message into the XML object in question.  Sure enough, only the attribute "action" got loaded.  The <jobCode> element never gets loaded.  I verified the XPath expressions were correct.
    Any ideas as to what might be causing this?
    Thanks,
    --jtb

    Hi James,
    might this problem be related to a problem with the usage of namespaces? Normally XI does explicitly use namespaces only on root node level. But in your case, all elements are prefixed with namespaces.
    Could you simply try to send a message to your integration process, where there is only a namespace prefix on root node level, i.e.:
    <ns1:AccessRequestReply xmlns:ns1="xxxxx">
    <AccessReply type="complete">
      <user action="update">
        <jobCode>1234</jobCode>
      </user>
    <AccessReply>
    </ns1:AccessRequestReply>
    Best regards
    Joachim

  • Dynamic Internal table values read and assign it back

    Hi All,
            I want to get the internal table field name dynamically and fetch its value and do some calculation and asign the new value to the same field name.
           CONCATENATE '<WA_PIPE>-ZW' v_index INTO v_fld.
            CONDENSE v_fld NO-GAPS.
            FIELD-SYMBOLS <fs> TYPE ANY.
            ASSIGN (v_fld) TO <fs>.
            v_fld1 = <fs> * <wa_pipe>-zrate.
    Now i've the internal table field name as <WA_PIPE>-ZW1 in v_fld and v_fld1 is having the value of the same field.
    How to assign it to the internal table field.
    Thanks.
    Ashok

    *& Report  YY_TEST1
    REPORT  YY_TEST1.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
    <dyn_wa>.
    data: it_alvfc type slis_t_fieldcat_alv,
    wa_alvfc type slis_fieldcat_alv,
    it_fldcat type lvc_t_fcat,
    wa_fldcat type lvc_s_fcat.
    selection-screen begin of block b1 with frame title text-001.
      parameters: p_flds(5) type c.
    selection-screen end of block b1.
    start-of-selection.
    *build the dynamic internal table
    perform build_dyn_itab.
    *write 5 records to the alv grid
    do 5 times.
    perform build_report.
    enddo.
    *call the alv grid.
    perform call_alv.
    *Build_dyn_itab
    form build_dyn_itab.
    *Create the dynamic internal table
    data: new_table type ref to data,
    new_line type ref to data.
    *Create fields .
    do p_flds times.
    clear wa_fldcat.
    wa_fldcat-fieldname = sy-index.
    wa_fldcat-datatype = 'CHAR'.
    wa_fldcat-intlen = 5.
    append wa_fldcat to it_fldcat .
    enddo.
    *Create dynamic internal table and assign to FS
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = it_fldcat
    importing
    ep_table = new_table.
    assign new_table->* to <dyn_table>.
    *Create dynamic work area and assign to FS
    create data new_line like line of <dyn_table>.
    assign new_line->* to <dyn_wa>.
    endform.
    *Form build_report
    form build_report.
    *Fill some values into the dynamic internal table
    data: fieldname(20) type c.
    data: fieldvalue(5) type c.
    data: index(3) type c.
    field-symbols: <fs1>.
    do p_flds times.
    index = sy-index.
    *Set up fieldvalue
    concatenate 'FLD' index into
    fieldvalue.
    condense fieldvalue no-gaps.
    assign component index of structure <dyn_wa> to <fs1>.
    <fs1> = fieldvalue.
    enddo.
    *Append to the dynamic internal table
    append <dyn_wa> to <dyn_table>.
    endform.
    *CALL_ALV
    form call_alv.
    *Build FC for ALV
    loop at it_fldcat into wa_fldcat.
    wa_alvfc-fieldname = wa_fldcat-fieldname.
    wa_alvfc-seltext_s = sy-tabix.
    wa_alvfc-outputlen = wa_fldcat-intlen.
    append wa_alvfc to it_alvfc.
    endloop.
    *Call ABAP List Viewer (ALV)
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    it_fieldcat = it_alvfc
    tables
    t_outtab = <dyn_table>.
    endform.

Maybe you are looking for

  • Receive an Application Error (The memory could not be "read") when opening

    After I install Itunes the program works ok until I close it and try to reopen. When I do this I receive an Application Error that says: The instruction at "0x6686f183" referenced memory at "0x0fccc094". The memory could not be "read". Click OK to te

  • Unable to generate report for size of KM folder

    hi all, i want to generate report for size of folder in KM.I am havingthe following roles content admin,content management,system admin,home, are these roles sufficent to generate report or any roles are needed? And other issue is after going into Co

  • Jdev 11g Production: Connection Name FOD Not Defined (Tutorial: ADF Visuali

    I tried out the following tutorial: ADF Visualization Components. I follow the step by step to install Jdev 11g and the FOD schemas. The step by step tutorial is helpful but ran into a problem in the beginning when I tried to run the FOD Module as st

  • Files being overwritten

    I just upgraded to Dreamweaver CS3 from MX 2004. I have the following enabled for my site definition: Maintain synchronization information; Enable file check in and check out; and Check out files when opening. The problem is, every time I open a file

  • Dell server hardware component monitoring with scom 2012 R2.

    hello .. We have some dell poweredge r710 SFF 2X SIX CORE X5 SAS Servers ,I need to monitor its hardware components with scom2012 R2.I have installed os:windows server hyper-v server on this and windows server core OS management packs on scom and mon