Data in itab does not show when using FM REUSE_ALV_POPUP_TO_SELECT

Hello Experts,
I am using the said FM to display some data when the user clicks on a
custom button I made. But no data is displayed in the popup window. I
debugged it and the itab I am passing has a value in it. Below is my code:
WRITE icon_green_light AS ICON TO wa_legend-legend.
        wa_legend-column      = text-t05.
        wa_legend-description = text-d01.
        APPEND wa_legend TO lt_legend.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        DEFINE m_fill_fieldcat.
          wa_fieldcat-fieldname = &1.
          wa_fieldcat-tabname   = &2.
          wa_fieldcat-seltext_m = &3.
          wa_fieldcat-icon      = &4.
          wa_fieldcat-outputlen = &5.
          append wa_fieldcat to lt_fieldcat.
          clear wa_fieldcat.
        END-OF-DEFINITION.
        m_fill_fieldcat 'LEGEND'      'ITAB' text-t04 'X' '14'.
        m_fill_fieldcat 'COLUMN'      'ITAB' text-t11 ''  '50'.
        m_fill_fieldcat 'DESCRIPTION' 'ITAB' text-t12 ''  '50'.
        CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
          EXPORTING
*           I_TITLE                       =
*           I_SELECTION                   = 'X'
*           I_ALLOW_NO_SELECTION          =
            i_zebra                       = 'X'
*           I_SCREEN_START_COLUMN         =
*           I_SCREEN_START_LINE           =
*           I_SCREEN_END_COLUMN           =
*           I_SCREEN_END_LINE             =
*           I_CHECKBOX_FIELDNAME          =
*           I_LINEMARK_FIELDNAME          =
*           I_SCROLL_TO_SEL_LINE          = 'X'
            i_tabname                     = 'LT_LEGEND'
*           I_STRUCTURE_NAME              =
            it_fieldcat                   = lt_fieldcat[]
*           IT_EXCLUDING                  =
*           I_CALLBACK_PROGRAM            =
*           I_CALLBACK_USER_COMMAND       =
*           IS_PRIVATE                    =
*         IMPORTING
*           ES_SELFIELD                   =
*           E_EXIT                        =
          TABLES
            t_outtab                      = lt_legend[]
         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.
Hope you can help me guys. Thank you and take care!

Hi,
check this code and modify your FM accordingly then it'll work,
Q. i_checkbox_fieldname = 'CHECKBOX'
A. If the table output in the popup has checkboxes at the beginning of the rows (e.g. for multiple selection), the internal table must contain a field containing the value of the checkbox.
Assign the name of this field to the parameter I_CHECKBOX_FIELDNAME.
Q. i_tabname = 'TLINE'
A. This is the name of ur input help internal table
Q. it_fieldcat = fieldcat[]
A The table u gonna display has to have a fieldcat.
Q. it_excluding = extab[].
A. In case u wanna exclude some functions.
Below is a working example, paste it in se38 and activate.
!!! Warning SAVE IT AS A LOCAL OBJECT !!!
report ztests1.
type-pools: slis.
data: index type i.
data: l_kunnr like kna1-kunnr.
data: input(10) type c,
text(4) type c,
text1(5) type c.
data: begin of itab occurs 10,
kunnr like kna1-kunnr,
name1 like kna1-name1,
end of itab.
data: e_exit.
data: fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
parameter: p_kunnr(10) type c.
at selection-screen on value-request for p_kunnr.
select kunnr name1 up to 10 rows
from kna1
into table itab.
fieldcat-tabname = 'ITAB'.
fieldcat-fieldname = 'KUNNR'.
fieldcat-seltext_m = 'Cust'.
fieldcat-ddictxt = 'M'.
fieldcat-outputlen = 10.
APPEND fieldcat.
CLEAR fieldcat.
fieldcat-tabname = 'ITAB'.
fieldcat-fieldname = 'NAME1'.
fieldcat-seltext_m = 'Cust Name'.
fieldcat-ddictxt = 'M'.
fieldcat-outputlen = 30.
APPEND fieldcat.
CLEAR fieldcat.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TITLE = 'Customer Selection'
I_SELECTION = 'X'
I_ALLOW_NO_SELECTION =
I_ZEBRA = ' '
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_CHECKBOX_FIELDNAME =
I_LINEMARK_FIELDNAME =
I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = 'ITAB'
I_STRUCTURE_NAME =
IT_FIELDCAT = fieldcat[]
IT_EXCLUDING =
I_CALLBACK_PROGRAM =
I_CALLBACK_USER_COMMAND =
IS_PRIVATE =
IMPORTING
ES_SELFIELD =
E_EXIT = e_exit
tables
t_outtab = itab
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.
seshu.

Similar Messages

  • SSIS Data flow item does not show on the Tools Choose Tools Item

    I would like to add share point to my data source for my SSIS project.
    After I installed Share Point Source and Destination list, I went to Tools Choose Tools Item, but SSIS Data Flow tab does not show. I went to SSIS Tools box, but the components are not there.
    I would like to know are there any way to add Share Point Data source using SSIS.
    Your help and information is great appreciated,
    I use SQL Server 2012 and VS 2010.
    Regards,
    Souris,

    Hi Souris,
    I have installed the SharePointListAdaptersSetup-Beta-2012-01-28.msi in my SQL Server 2012 test environment, the SharePoint List Source and Destination adapters is listed in the Common type items of the SSIS Toolbox. To narrow down the root cause, please
    try the following steps:
    Make sure the SharePointListAdapters.dll exists in the C:\Program Files (x86)\Microsoft SQL Server\110\DTS\PipelineComponents folder.
    Make sure it is installed to GAC successfully, the SharePointListAdapters.dll should exist in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\SharePointListAdapters\v4.0_1.2012.0.0__f4b3011e1ece9d47 folder.
    Refresh the Toolbox and check the Common type items.
    Since the SharePoint List Adapter is a third-party component, I would suggest you ask a question in its dedicated discussion plate:
    http://sqlsrvintegrationsrv.codeplex.com/discussions
    Regards,
    Mike Yin
    TechNet Community Support

  • TS1410 My iPod shuffle ( 1st or 2nd generation) will not recharge and does not show when the doc is connected to my MacBook Pro. I'm running the latest updated version of iTunes.

    My iPod shuffle ( 1st or 2nd generation) will not recharge and does not show when the doc is connected to my MacBook Pro. I'm running the latest updated version of iTunes.

    Hello Jane Benstock,
    Thank you for using Apple Support Communities
    It sounds like the next best step to take would be to reset the iPod Shuffle.
    Check out this article named Resetting iPod shuffle found here http://support.apple.com/kb/HT1655.
    All the best,
    Sterling

  • My external hard drive does not show when I am trying to open a document in Office Org??

    My external hard drive does not show when I am trying to open a document in Office Org?? When looking in the about IMAC system support it shows as being connected. Any ideas??

    Does the drive show up under 'Devices' in Finder?

  • Need to send my back up email a reset security questions email but the option does not show when I click on password and security

    Need to send my back up email a reset security questions email but the option does not show when I click on password and security

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (97456)

  • How do I set up a mail group on mac mail?  All the advise on line seems to refer to 'address book' and I only have 'contacts'.  The guidance does not work when using 'contacts' - can anyone help me?

    How do I set up a mail group on mac mail?  All the advise on line seems to refer to 'address book' and I only have 'contacts'.  The guidance does not work when using 'contacts' - can anyone help me?

    Create a group and send mail
    http://www.dummies.com/how-to/content/how-to-create-a-basic-contact-group-in-mac -os-x-li.html
    http://www.macworld.com/article/1165582/how_to_email_groups_with_mail.html
    Best.

  • Hello, the "sign" feature does not show when i open a pdf document with reader (MAC)

    Hello, the "sign" feature does not show when i open a pdf document with reader (MAC)

    Hi mentane,
    Thank you for posting on the Adobe forums, what is the version of Adobe Reader you are working with.
    Open Adobe Reader>Adobe Reader>about Adobe Reader.
    Thanks,
    Vikrantt Singh

  • Siri does not work when used for calling a contact function

    Siri does not work when used for calling a contact function

    Very strange, try to turn off/on your iPhone. Or make a reset (home+power button)...
    If it continues try to restore it.

  • Using Firefox (and having ZoneAlarm), when logging into my work email (Lotus Notes) through a secure Citrix program, a quesitonmark types as and accented "E". This does not happen when using IE (which I prefer not to use). I have turned off the anti-key

    Using Firefox (and having ZoneAlarm), when logging into my work email (Lotus Notes) through a secure Citrix program, a question mark types as and accented "E". This does not happen when using IE (which I prefer not to use). I have turned off the anti-keylogger in ZA (an old, and no longer successful fix). Can anyone help? I need my question marks at work.
    Thanks!
    PS. my keyboard language is not set to French.
    == This happened ==
    Every time Firefox opened
    == I tried to type a "?" in a work email using remote access.

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Lenovo S8-50LC Wlan(WiFi) Does not work when use Sim Cart(3G)

    Hi
    Tablet Lenovo S8-50LC
    Wlan(WiFi) Does not work when use Sim Cart(3G).
    What is the solution for this problem?
    Build Number : TABS8-50LC_S000200_150121_ROW
    SoftWarw Version : TABS8-50LC_150121

    Right, but if you have the SIM in the tablet and you put the tablet in airplane mode, does wifi work then? If so, it may be a bad SIM. Do you have another SIM you can try?

  • My iphoto 09 keeps on downloading duplicates to a temp folder without asking when I drag a photo from firefox over to iphoto to import it.  It does not happen when using safari.  can some one please help?

    My iphoto 09 keeps on downloading duplicates to a temp folder without asking when I drag a photo from firefox over to iphoto to import it.  It does not happen when using safari.  can some one please help?

    You're in the wrong forum. Post to iPhoto for iLife, not iPhoto for iOS.

  • My entire TV show library does not appear when using home sharing to ipad

    I've tried everything to get my entire library to show when using home sharing on the ipad but it only displays the shows under letter A to the beginning of F.  Is there a limit on the seasons that can be displayed? Im streaming from itunes on a PC.

    I figured out my own problem. Thanks dmule you're a genius. All I had to do was turn off home sharing on my iPad and then turn it back on. Now all the video art work matches their proper movies.

  • Data roaming setting does not show up on iPhone 4S

    My wife got a new iPhone 4S from Verizon a few weeks and and she's been using it with no probolems since then. Yesterday we crossed the board into Canada and I tried to turn "Data Roaming" off on her phone but the "Data Roaming" setting does not exist in Settings->General->Network. On my Verizon iPhoen 4S it has the optios "Voice Roaming" and  "Data Roaming" but on hers only "Voice Roaming".
    I was able to turn off all cellular data but that's actually inconvenient because we're right on the border and often go in an out of US cell converage areas, so with data roaming off it lets me use data whenever there's a US cell signal and otherwise prevents me from using data on a Canadian signal, but with all cellular data off, you have to constantly be toggling the setting when you think you go from a cell tower in the Canada to one in the US.
    Does anybody have any idea why the "Data Roaming" setting does not exist on her phone yet it does on mine? Both phones are running iOS 5.0.1.

    On your wife's phone: Dial *228. When prompted, select 2 to update her roaming capabilities. When complete, you will hear a confirmation message. In about a minute, you will also see an alert that your service update is complete. See if doing that fixes things.

  • Using term set as refiner in content search web part does not show all used terms

    When you create a terms set (12 terms with +/- 10-20 child terms) , attach it to a site column and allow multiple values to be selected the search service does not find all used values in the REFINERS tab of the content search web part.
    Example:
    Field ‘Tags’ is the term set which can be refined. We want to do this in the REFINERS tab of the content search web part.
    Tags is containing following fields:
    •Course document
    •Poster
    •ALS
    •Before
    •During
    •CPR/AED I
    In all libraries we used +/- 15 different tags already.
    Example of a tag field in the library:   "Poster;ALS;Belgium"
    The problem is we can’t see all of the used tags in the refiners tab when you open it for the first time.  (You can see Belgium or Cyprus is not in the list of tags.)
    When you select one tag and add it as a refiner, the others eventually do show up. But never all of them together.   It’s like he is only showing the most used (and maybe first selected?) tags first. I also think he might be having some trouble
    with multi value selections in the tag field.
     Does anyone else have the same issue as we do? And is there a solution already?

    Hi Sasha,
    According to your description, my understanding is that all the used terms cannot display in the Refiners in Content Search web part.
    If the results display in the Search Result Preview, then the terms used in these results can be displayed in the Refiners tab.
    I tested the same scenario per your post, and when I first opened it I can view all the terms which were used in the search results listed under owsmetadatafacetinfo.
    I recommend to do a full crawl and then you can view all the terms used in the search results are displayed under owsmetadatafacetinfo.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • The sequence does not show when exporting media from premiere

    hi
    i have the following setting for my sequence-
    editing mode- main concept bluray
    time base-25.00
    preview file format -mpeg bd 1080 50i vbr 34 mbps
    width 1920
    height- 1080
    maximum render quality
    issue is when i export media the adobe media encoder does not show the sequence
    and when i export in some other format- it only shows h.264 option and not h.264 bluray. as a consequence cannot write any bluray since all the option are progressive
    do i need to reinstall something/anything
    issue with mainconcept?
    is there a tab where one can add presets in media encoder?
    thanks

    If you installed AME through the Creative Cloud, then this is a known issue which was fixed in an update released just a couple of days ago. To get this update, select Updates in the Help menu.
    If you're not on Creative Cloud, then please specify which product or suite you installed that included AME, and also indicate whether it's activated or running in trial mode.

Maybe you are looking for

  • How do I use panorama

    Hi I tried to use Panorama on my camera on my 4S today, and not sure I'm doing it right. I hit the options button then panarama, then hit the camera button and moved slowly as specified but it didnt see to work. Has anyone else experienced this?

  • Multiple level headers in column of an ALV report

    Hi All, I have  a requirement . I need to display a two level coloumn in alv grid display . Example :                           | Cust no    |   Address        |                                                                                |        

  • Setting system level deployment.user.cachedir in deployment.config

    G'day, I've been experimenting with JRE 1.5.0_04 on Windows XP. By default deployment.user.cachedir is set to <user home>\Application Data\Sun\Java\Deployment\cache. However, I want it to be <user home>\Local Settings\Application Data\Sun\Java\Deploy

  • How to animate JFRAME

    hi all , any body know how to animate the JFRAMEwindow on closing and minimizing or whatever or place the application in the systray and to invoke the same in java

  • Read contents inside pdf file programmatically in SharePoint

    I have a SharePoint document library, My Requirement is when user add PDF file on the document library the event receiver fire and read contents inside pdf file programmatically. After the start workflow according to the result of event receiver.