Tutorial Program not working correctly

I've FINALLY got the program to run, from the tutorial Creating a Web Dynpro Applicaton Accessing ABAP Functions, https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/355b9c90-0201-0010-d2a8-89fece426526
When I run the program, I get the first screen where I can enter test information "Frankfurt" and "New York", but when I hit search, the screen blinks, but I don't get the results view.  No errors are generated. 
Does anyone have any idea what is happening?
Here's a screenshot of what I'm seeing: http://www.adamsblueguitar.com/test/FlightListInit.jpg
Help!  I'm so close!

Hi,
there might be different reasons to not displaying.
1) might be data not available on your giving input.
2)the function module you are using the Group is not authrised in the JCO.
Your are asking the second one call your bapi execute method in init() method map the output into default View for thta you need to hardcode the input values.
But you have seen there View set As per your option you can change view.
this might helps
Thanks
Lohi.
It might helps.

Similar Messages

  • Program not working correctly-Help!

    class Sort
         /* method takes an array of integers as an input,
         * and returns a copy with the element values sorted
         * by select method.
         int[] selectSort(int[] input)
              /*declare variables to be used in array */
              int x, y, max, temp;
              int[] select = new int[input.length];
              /*This loop reads the entire array */
              for(x = input.length - 1; x>0; x--)
                   max = 0;
                   /*This loop checks to see if any number is
                   lower possible greatest number /
                   for(y = 0; y <= x; y++)
                   {//Returns number if lowest number
                        if(input[y] > input[max])
                             max = y;
                        }//end of if statement
                   }//end of inner loop
                   /*Switches the values */
                        temp = input[x];
                        select[x] = input[max];
                        select[max] = temp;
              }//end of outer loop
              return select;          
         } //end of selectSort()
         /* method takes an array of integers as an input,
         * and returns a copy with the element values sorted
         * by bubble method.
         int[] bubbleSort(int[] input)
              int[] bubble = new int[input.length];
              for (int x = 1; x < input.length; x++)
                   for (int y = 0; y < input.length - 1; y++)
                        if (input[y] > input[y+1])
                             int temp = input[y];
                             bubble[y] = input[y+1];
                             bubble[y+1] = temp;
              return bubble;
         } //end of bubbleSort
    **********************Test Class**********************
    class TestSort
         public static void main(String[] args)
              /* count variable used as loop counter when
              * result table display is generated
              int count;
              /* variable for object of class Sort */
              Sort x;
              /* create object of class GroupEx2 */
              x = new Sort();
              /* create a source array of integer elements */
    int[] y = new int[5];
    /* assign values to array elements to be sorted     */     
              y[0] = 8;
              y[1] = 5;
              y[2] = 3;
              y[3] = 9;
              y[4] = 1;
              /* create variable for target of select sort array */
              int[] ss;
              /* create variable for target bubble sort array */
              int[] bs;
              /* call method to return an array with element values select sorted*/
              ss = x.selectSort(y);
              /* call method to return an array with element values bubble sorted*/
              bs = x.bubbleSort(y);          
              /* display original and sorted arrays in three columns*/
              System.out.print("Input Array" + "\t");
              System.out.print("Select Sort" + "\t");
              System.out.println("Bubble Sort");
              for (count = 0; count < y.length; count++)
                   /* Column 1: original array */
                   System.out.print("input[" + count + "] = " + y[count]);
                   /* tab between columns 1 and 2 */
                   System.out.print("\t");
                   /* Column 2: select sorted array */
                   System.out.print("select[" + count + "] = " + ss[count]);
                   /* tab between columns */
                   System.out.print("\t");
                   /* Column 3: bubble sorted array */
                   System.out.println("bubble[" + count + "] = " + bs[count]);
              } // end of display for loop
         } // end of main()
    } // end of class TestSort

    Thanks for the Bash! I'm surprised you had the time
    for it.Go back and look at your original post. A whole bunch of code, and the only description of the problem is "not working correctly." Do you honestly think that's a reasonable way to ask for help? Do you go to the doctor and say, "I'm sick" and then just wait for him to cure you? Do you take your care to the mechanic and say only, "It's broke"?
    Look, this is your problem and it's your responsibility to fix it. There are people here who are happy to help you, but it's up to you to provide a reasonable statement of what's wrong, what you've tried, what you don't understand. For instance:
    Does it compile? If not, post the complete error message.
    Does it run, but throw an exception? If so, post the stack trace.
    Does it not throw an exception, but not behave the way you expect? Then describe the expected beavior and the observed behavior.
    Do you really need to be told this stuff? It seems like common sense that when you're asking people to spend their time helping you, you should give them the information they need to be able to do so.

  • Why is the Up to date program not working correctly and letting me download Lion when I have a qualifying system?

    The Apple online store doesn't seem to recognize my serial number or says it is not correct?  What is going on with this???

    Well I finally figured out why my serial wasn't working. Apparently it was because my system was customised as opposed to off the rack, not sure why this should be a problem though.
    Anyway, I used the old paper and fax method and have received confirmation that it is on it's way. If you haven't received confirmation I'd recommend chasing Apple to find out where it is.

  • Elements 13 crashes - Windows message - this program is not working correctly - windows will close it.

    I bought Elements 13 4 days ago through Amazon - so far it has not run for more than 5 minutes before Windows closes it down with the message - this program is not working correctly, windows will close it. I know this is not unusual but has anyone got a solution - apart from returning  it
    with a very unfavourable review? I have tried all the suggested fixes on the Adobe help site with no result.  Elements 10 runs OK on the same machine.
    Alternatively, is there any possible way to get support from Adobe?

    juliana
    Do you have any version of Premiere Elements 13 or only Photoshop Elements 13 which comes with Elements Organizer 13?
    Let us look at the following for Elements Organizer 13....
    1. Deletion of disabling the Elements Organizer 13 setting file which is named psa.prf. In Windows 7, 8, o 8.1 64 bit, it is found in the
    path
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Elements Organizer
    13.0
    Organizer
    and in the Organizer Folder is the psa.prf file that you delete or disable by renaming it from psa.prf to psa.prfOLD.
    2. If the above gains you successful entry into the Elements Organizer 13, then you can
    a. create a new catalog
    and/or
    b. repair or optimize the current one
    See Elements Organizer 13/File Menu/Manage Catalogs/Catalog Manager.
    3. There are times that certain formats will bring the Elements Organizer down when you try to import those formats into
    it.  But, from what you wrote, your current problems do not sound media related.
    3. At your earliest opportunity, please update Elements Organizer 13 to 13.1 using its Help Menu/Updates.
    Please review and consider and then let us know the outcome.
    Thank you.
    ATR

  • Email pushing not working correctly for office email - 3 seperate devices/carriers

    We switched email hosts several months ago and since our email pushing has not worked correctly. Our host/IT guy has been very unwilling to help me through this (I get the pleasure of being the in-house IT source)
    I personally am on AT&T have no problems with the other 3 emails I have set up on my blackberry. However I receive my work account one time a day at roughly 6:15. Another user is on Alltel and he receives spotty emails throughout the day, but his gmail account comes through instantly. The third user is on nextel and he receives his 2-3 times per day.
    I began to think this was an email host issue since the three of us are all on different carriers, until I found out a fourth user, also on nextel, receives his emails fine.
    Users 1-3 are on Outlook 07 on various versions of the Curve. We have all our messages to stay on the server.
    User 4 is on the older nextel blackberry push to talk, and is not on outlook. 
    We do not have an exchange server. Our emails were all set up through our devices.
    Any suggestions? The answers I have received through our carriers is to make sure that our messages are set to be left on the server. Everyone else at the office has given up - but for me this is the quest for the Holy Grail.......I'm determined find the answer!
    Thank you in advance for any suggestions.
    Caitlin Talbot 

    Potential solution for windows for a side-by-side install. This works for me.
    To setup a firefox install side by side so that links from external programs (like email) can open (so you don't get a "Firefox is already running but is not responding" message) do the following.
    The solution entails the use of the -no-remote switch. Don't use it for the default browser. Use it for the non default browser.
    I'll use firefox 3.6 and firefox 4.0 as examples but this should work for future versions.
    + Install firefox 3.6 and Firefox 4.0 in different directories. Eg.
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\Program Files\Mozilla Firefox 4\firefox.exe
    + Open profile manager. Start > Run : firefox.exe -ProfileManager
    + In profile manager create Two Profiles.
    firefox3.6
    firefox4
    + In profile manager select firefox 4 as your default (assuming you want to default to the latest) and tick "Don't ask at startup"
    + Create two windows shortcuts.
    * General: Mozilla Firefox 4 (default). Shortcut > Target: "C:\Program Files\Mozilla Firefox 4\firefox.exe". Shortcut > Start In: "C:\Program Files\Mozilla Firefox 4"
    * General: Mozilla Firefox 3.6. Shortcut > Target: "C:\Program Files\Mozilla Firefox\firefox.exe" -p firefox3.6 -no-remote. Shortcut > Start In: "C:\Program Files\Mozilla Firefox"
    That's it. Links from external programs should now open in your default browser.
    Further details see. [http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile Opening a new instance of your Mozilla application with another profile]

  • Filters not working correctly

    We have the strange situation, that filters in calendar views are not working correctly (anymore?).
    If i set up a filter to search for my name as attendee, teaming still shows all entries instead of only just mine. This behavior applies to customized and standard calendar views.
    Filters for (customized) file folders still work as expected.
    Any ideas?

    jasi,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Bootcamp not Working Correctly on Macbook Pro

    Hello,
    I am trying to install Windows 7 or 8 onto my Macbook Pro with Bootcamp.
    Once I have opened the Bootcamp program it all works fine and I can go through the steps perfectly, it will appear to partition the HDD correctly and it will recognise the Windows install DVD correctly.
    However, once my Macbook Pro restarts at the end of the process it boots up and the screen stays white, nothing happens and since I have a gaming keyboard and mouse the lights light up on it for about 5 seconds when it restarts then they go off (Off meaning they aren't powered). The screen will stay white for aslong as I can tell, I left it for 3 hours and the screen was still white.
    So I thought there may be a problem with how it selects the the startup disk, so I boot it up into disk utility then select the DVD again and it stays white, again.
    Anyone know why this is not working correctly? I have tired this with mutliple install DVD's whether they be Windows 8 or Windows 7. I also do not want to use a program that creates a virtual machine, I would like to run Windows 7 to the full so that I can play games with the maximum amount of FPS.
    If you have any questions do not hesitate to let me know.
    Thank you for your time.
    Best Regards,
    Kieran J.

    Does it now work only on battery? or using the power supply?
    If only on the power supply use a grounded plug.
    Otherwise try reseating touchpad cable. Post the size and year of your MBP.

  • Mouse scroll wheel not working correctly.

    Just installed Firefox 4 and my mouse scroll wheel is not working correctly. When opening the program, I can scroll as normal for about 5/10 minutes. Then, suddenly, the mouse scroll wheel no longer works. I've since found that it is actually scrolling outside of Firefox. E.g. I had Outlook open and it was scrolling through my Outlook even though Firefox was the open window. I checked this multiple times and it always seems to be the case.
    Checked about:config as advised, everything looks correct on the mousewheel settings (i.e everything is set to default). Mouse drivers are up to date. No problems with any other programs. This issue started occurring in Firefox 4 beta. I switched back to 3.6 so I could continue scrolling. Updating to Firefox 4 caused the issue to recur.

    It seems a lot of people are having problems with the Mighty Mouse's scroll ball. I actually thought I was done for after just a few weeks of using my first (wired) one. But here I am years later with my wireless variant, beeing perfectly happy with it (in case you don't know, the wireless Mighty Mouse is a much better option due to it's laser based tracking system). In my experience, getting rid of fluff that interferes with the ball is quite easy on both types. Try blowing really hard directly at the trackball (optionally while you press it down with some pointed device) a few times. Rotate it and repeat as needed. Alternatively roll the mouse upside down on the microfiber cloth that probably came with your Mac.

  • Keyboard not working correctly on laptop. What do I do?

    so I was using windex to clean my laptop and it went on my keyboard too. I cleaned it off but I noticed that it was not functioning properly. Some letters were not even working. After 24 hrs. almost everything is working but not correctly. Some keys be typing weird things and opening programs. Like w types out 2w and e opens a program. F8 doesn't work either. Please help.

    Hello gurmeet1126,
    Welcome to the HP Forums!
    I understand the keyboard is not working correctly. I'll do my best to help, but first I require the following information:
    1. The computer's model number. If you require assistance locating this information, please reference this website: Guide to finding your notebook product number
    2. The computer's operating system. If you require assistance locating this information, please reference this website to determine your Windows operating system.
    3. Does this occur on certain programs, or all programs?
    4. Have you installed any new software or drivers on this computer, before the issue appeared?
    Also, try another keyboard. This will help determine whether or not the issue is with one keyboard or several. Thanks!
    Mario
    I worked on behalf of HP.

  • [solved] NFS client will not work correctly

    I have all my $HOME on an NFS Server. So long I used suse and debian, now I want switch to arch but the nfs-client ist not working correctly:
    I start "portmap nfslock nfsd netfs" over rc.conf. When I do a "rpcinfo -p <ip-arch-system>" I got the following
    stefan:/home/stefan # rpcinfo -p 192.168.123.3
       Program Vers Proto   Port
        100000    2   tcp    111  portmapper
        100000    2   udp    111  portmapper
        100021    1   udp  32768  nlockmgr
        100021    3   udp  32768  nlockmgr
        100021    4   udp  32768  nlockmgr
        100003    2   udp   2049  nfs
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100021    1   tcp  48988  nlockmgr
        100021    3   tcp  48988  nlockmgr
        100021    4   tcp  48988  nlockmgr
        100003    2   tcp   2049  nfs
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100005    3   udp    891  mountd
        100005    3   tcp    894  mountd
    As you see "status" is missing, so the statd is not running. It sould look like the result on my suse box:
    stefan:/home/stefan # rpcinfo -p 192.168.123.2
       Program Vers Proto   Port
        100000    2   tcp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  32768  status
        100021    1   udp  32768  nlockmgr
        100021    3   udp  32768  nlockmgr
        100021    4   udp  32768  nlockmgr
        100024    1   tcp  35804  status
        100021    1   tcp  35804  nlockmgr
        100021    3   tcp  35804  nlockmgr
        100021    4   tcp  35804  nlockmgr
    There is the "status" line and so the statd is running.
    How can I fix that problem, so that statd ist running on my arch box too?
    Last edited by stka (2007-06-10 15:59:48)

    The Problem ist solved.
    I use ldap for authentication. During the setup of the ldapclient I copied the nsswitch.ldap to nsswitch.conf. But the line for "hosts:" was:
    hosts:          dns ldap
    but in my dns ist no localhost entry. After I changed this line to:
    hosts:          files dns ldap
    everything was ok. The statd is now running and I can start to migrate to archlinux ;-)

  • NEED ASSISTANCE IMMEDIATELY- FORM PROGRAMMING NOT WORKING

    I  have a form created at this link:
    https://adobeformscentral.com/?f=knSTJdfXDaxklyZ1l1ppVA
    It is filled with many lines of Show/Hide programming rules.  However, they are not working correctly.
    All responses are showing for certain sections, and wierd one offs are popping up in other locations. 
    Are you having trouble on your end with the servers?

    I have looked at your form and without further information from you it will be very difficult to debug. I do wonder if this for has recently stopped working or if it is a new form. If you could send me a private email ([email protected]) with your contact information I will call you and work out the issues you are seeing.
    Andrew

  • Focus under Win2k does not work correctly

    Hi,
    we've found out that the focus does not work correctly under Windows 2000 in
    Seamless Mode (App is a Windows Application running on Windows Terminal Server
    2003), the same application has no problems under Windows XP, Apple Macintosh
    and Linux.
    Example: The application has a button which pop's up a small calendar window
    giving that window focus. In Tarantella under Win2k however you just see the
    window popping up shortly and then going in the background. As the window is in
    the background and you can't get the window back and you also cannot work
    further in that application as the rest is inactive.
    Only way is to do a right-click on the application in the taskbar, which brings
    the window in the foreground again. What makes this problem even harder to
    analyze is, that it sometimes even works correctly (around 3 of 10 times).
    We've mostly recognized this with modal windows. The native client does not have
    this problem, however as far as I know it does not support seamless mode.
    2. The second problem we got is, that if you click with the mouse into the
    initializing Window while the application starts up after you have clicked on an
    application Link in SGD (I mean the Pre-Login window of Windows which shortly
    shows up just before the Login Process begins),
    the application is not started seamlessly but is started within that window and
    you have no chance but closing an restarting the application to get it in
    seamless mode. This is seen on all Client Operating Systems by us and not only
    Windows 2000.
    The Client runs:
    Windows 2000 SP4 all updates installed
    Java: 1.5.0-5
    Browser: IE6.0 and Firefox 1.0.7
    Server: Windows 2003 Terminal Server (all updates installed)
    Tarantella: 4.20.909
    I hope that someone has at least a workaround.
    Regards
    Carsten

    I have organized some testcases attached are 3 Test Programs which work
    nice natively but got these problems under Tarantella under every Windows
    Operating System (the error is not Windows 2000 as I previously mentioned but
    also occurs on Windows XP).
    The interesting thing is that the Test Program made with .NET does not show this
    problem.
    Could someone please test these and tell if this error is reproducible on your
    systems as well ?
    Run these Testprograms natively, they show no misbehavior.
    Execute this from a SGD Webtop Session in Seamless Mode, see that
    the Modal window is not modal but shifts into the background on every 2 -3 click.
    Regards
    Carsten
    [ModalTestPrgs.zip]

  • Sorting not working correctly for date field in alv report

    Hi All,
    My report displays many rows also containing date type fields of bldat,budat .
    When I sort the report selecting field of type bldat budat the sorting is not correct for the year.
    Ex:
    Invoice doc dat
    01-25-2011
    01-21-2011
    02-02-2011
    10-25-2010
    11-20-2010
    If I use ascending then it is sorted as :
    Invoice doc dat
    01-21-2011
    01-25-2011
    02-02-2011
    10-20-2010
    10-25-2010
    Why the sorting is not working correct for year.(2010 records should have been first).
    The field wa_tab-bldat is of type char10.
    It is populated as wa_tab-bldat = bsak-bldat.
    Kindly suggest what can be done.

    The field wa_tab-bldat is of type char10
    Then what it does is correct.
    Refer to type datum...it will work

  • If statement within a view is not working correctly ?

    Hi all,
    maybe i am wrong but i think the if statement within a view is not working correctly. See code down below.
    I would like to use the Hallo World depending on the page attribute isFrame with or without all the neccessary html tags. Therefore i have embedded the htmlb tags in an if statement. But for any reason if isframe is initial it isn't working. It would be great if anybody could help me.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if not isframe is initial. %>
      <htmlb:content design="design2003">
         <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    hallo world
    <% if not isframe is initial. %>
         </htmlb:page>
      </htmlb:content>
    <% endif. %>
    thanks in advance and best regards
    Matthias Hlubek

    Matthias,
    The short answer: your example is <b>NOT</b> going to work. The long answer will probably 5 pages to describe. So first let me rewrite the example so that it could work, and then give a short version of the long answer. Do not be disappointed if it is not totally clear. It is rather complicated. (See the nice form of IF statements that are possible since 620.)
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if isframe is <b>NOT</b> initial. %>
    <htmlb:content design="design2003">
      <htmlb:page title = "Top Level Navigation view">
        hallo world
      </htmlb:page>
    </htmlb:content>
    <% else. %>
      hallo world
    <% endif. %>
    So why does your example not work? Let us start with a simple tag:
      <htmlb:page title = "Top Level Navigation view">
      </htmlb:page>
    Now, for each tag, we have effectively the opening part (<htmlb:page>), an optional body, and then the closing part (</htmlb:page>). We are now at the level of the BSP runtime processing one tag. What the runtime does not know, is whether the tag wants to process its body or not. Each tag can decide dynamically at runtime whether the body should be processed. So the BSP compiler generates the following code:
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
      ENDIF.
      tag->DO_AT_END( ).
    You should actually just debug your BSP code at ABAP level, and then you will immediately see all of this. Now, let us mix in your example with our code generation. First you simplified example:
    <% if isframe is NOT initial. %>
      <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    <% if isframe is NOT initial. %>
      </htmlb:page>
    <% endif. %>
    And then with our generated code. Look specifically at how the IF/ENDIF blocks suddenly match!
    if isframe is NOT initial.
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
    endif.
    if isframe is NOT initial.
      ENDIF.
      tag->DO_AT_END( ).
    endif.
    You can see that your ENDIF statements are closing IF blocks generated by the BSP compiler. Such a nesting will not work. This is a very short form of the problem, there are a number of variations, and different types of the same problem.
    The only way to solve this problem, is probably to put the body into a page fragment and include it like I did above with the duplicate HelloWorld strings. But this duplicates source code. Better is to put body onto a view, that can be processed as required.
    brian

  • ** Filtering is not working correctly in ALV (REUSE_ALV_GRID_DISPLAY)

    Hi Friends,
    We have one Z report that output is displayed in ALV. We are using the standard FM 'REUSE_ALV_GRID_DISPLAY. 
    We have requirement to remove leading zeros for the field like Material Number (MATNR), Equipment Number (EQUNR) etc. We did the changes by applying the field catalog properties as below.
    lw_fieldcat-lzero = space.
    lw_fieldcat-no_zero = 'X'.
    After this, the MATNR and EQUNR is displayed correctly in the ALV. (Leading zeros are suppressed). But, when we do filter for these fields, in the filter window it displays all the values with leading zeros.
    1. We don't understand why it is showing in the Filter widow with all leading zeros. All it shows all the records instead of unique items.
    Later on, we removed the above fieldcat coding. Then, we have called the CONVERSION_EXIT routines (in the domain) for the fields to remove leading zeros.
    Now, the MATNR and EQUNR is displayed correctly (without leading zeros) in ALV. When we do filter, it is also doing filtering correctly. But, when we do filter which have EQUNR having long values (after zero suppression), it is not working correctly. i.e no items are displayed in the ALV.
    Not only for this items. If we filter character columns which have long text, it is not filtering correctly.
    2. It is not able to understand why the filtering is not working for long items. But in the standard report, the filtering is working correctly.
    We are using SAP ECC 6.0.
    Friends, can you clarify the about doubts. It is surprising for me.
    Kind regards,
    Jegathees P.
    Our customer is asked to remove the leading zeros for the numeric field

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

Maybe you are looking for