Help plese...

Hi Experts,
i want to develop an interactive report in that in my basic list displaying Meterial number folowed by check box, if i select some check boxes in basic list, the respective meteriala will display in my secondary list.
but i need the logic for 2nd list how to find the what are the check boxes whixh i selected. 
Thanks in advance,

Hai.
check the example codes.
TABLES:MARA.
DATA:BEGIN OF GT_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF GT_MARA,
GV_CB,
GV_CBV,
GV_LINES TYPE I,
INDEX TYPE I,
SY_INDEX TYPE I,
GV_LINES1 TYPE I,
MATNR LIKE MARA-MATNR.
SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.
SELECT
MATNR FROM MARA
INTO TABLE GT_MARA
WHERE MATNR IN S_MATNR.
IF SY-SUBRC = 0.
DESCRIBE TABLE GT_MARA LINES GV_LINES.
ENDIF.
LOOP AT GT_MARA.
WRITE:/ GV_CB AS CHECKBOX,
GT_MARA-MATNR.
ENDLOOP.
CLEAR GT_MARA.
WRITE:'Total num of records is ',GV_LINES.
SET PF-STATUS 'DEL'.
AT USER-COMMAND.
IF SY-UCOMM = 'DEL' OR SY-UCOMM = 'PICK'.
DO 50 TIMES.
SY_INDEX = SY-INDEX.
READ LINE SY_INDEX FIELD VALUE GV_CB
GT_MARA-MATNR INTO MATNR.
IF GV_CB = 'X'." AND MATNR IS NOT INITIAL.
LOOP AT GT_MARA." WHERE MATNR = MATNR.
DELETE GT_MARA.
CLEAR GT_MARA.
ENDLOOP.
delete gt_mara index sy_index.
ENDIF.
ENDDO.
DESCRIBE TABLE GT_MARA LINES GV_LINES1.
WRITE:'Total num of records is ',GV_LINES1.
CLEAR:GV_LINES .
LOOP AT GT_MARA.
WRITE:/ GT_MARA-MATNR.
ENDLOOP.
ENDIF.
for interactive list.
report yh645_secndry_alv.
type-pools: slis.
data: fieldcat type slis_t_fieldcat_alv,
fieldcat_ln like line of fieldcat,
fs_layout type slis_layout_alv,
t_layoout like standard table
of fs_layout.
data: begin of fs_spfli,
carrid type spfli-carrid,
connid type spfli-connid,
countryfr type spfli-countryfr,
cityfrom type spfli-cityfrom,
airpfrom type spfli-airpfrom,
countryto type spfli-countryto,
cityto type spfli-cityto,
airpto type spfli-airpto,
fltime type spfli-fltime,
deptime type spfli-deptime,
arrtime type spfli-arrtime,
distance type spfli-distance,
distid type spfli-distid,
fltype type spfli-fltype,
period type spfli-period,
checkbox,
color(3),
end of fs_spfli.
data:
begin of fs_table,
carrid type spfli-carrid,
connid type spfli-connid,
end of fs_table.
data: begin of fs_sflight,
check,
color(3).
include type sflight.
data:end of fs_sflight.
data:
begin of fs_table1,
carrid type sflight-carrid,
connid type sflight-connid,
fldate type sflight-fldate,
end of fs_table1.
data:
t_spfli like standard table
of fs_spfli.
data:
t_table like standard table
of fs_table.
data:
t_table1 like standard table
of fs_table1.
data:
t_sflight like standard table
of fs_sflight.
data:
t_sbook like standard table
of sbook.
data t_layout type slis_layout_alv.
select *
into corresponding fields of table t_spfli
from spfli.
perform start_list_viewer.
perform get_spfli_details.
*& Form SUB1
text
-->RT_EXTAB text
form sub1 using rt_extab type slis_t_extab.
data: flight type slis_extab.
flight-fcode = 'SFLIGHT'.
append flight to rt_extab.
set pf-status 'SFLIGHT'. " EXCLUDING RT_EXTAB.
endform. "SUB1
*& Form START_LIST_VIEWER
text
--> p1 text
<-- p2 text
form start_list_viewer .
data: pgm like sy-repid.
pgm = sy-repid.
fs_layout-box_fieldname = 'CHECKBOX'.
fs_layout-info_fieldname = 'COLOR'.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = pgm
i_callback_pf_status_set = 'SUB1'
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'SPFLI'
is_layout = fs_layout
tables
t_outtab = t_spfli
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " START_LIST_VIEWER
*******Process Call Back Events (Begin)**************************
form user_command using ucomm like sy-ucomm
selfield type slis_selfield.
case ucomm.
when 'SFLIGHT'.
selfield-refresh = 'X'.
perform get_spfli_details.
select *
from sflight
into corresponding fields of table t_sflight
for all entries in t_table
where carrid eq t_table-carrid
and connid eq t_table-connid.
perform display_sflight.
when 'SBOOK'.
selfield-refresh = 'X'.
perform get_sflight_details.
select *
from sbook
into corresponding fields of table t_sbook
for all entries in t_table1
where carrid eq t_table1-carrid
and connid eq t_table1-connid
and fldate eq t_table1-fldate.
perform display_sbook.
endcase.
endform. "USER_COMMAND
*& Form SUB2
text
-->RT_EXTAB text
form sub2 using rt_extab type slis_t_extab.
data: flight type slis_extab.
flight-fcode = 'SBOOK'.
append flight to rt_extab.
set pf-status 'SBOOK'. " EXCLUDING RT_EXTAB.
endform. "SUB2
*& Form DISPLAY_SFLIGHT
text
--> p1 text
<-- p2 text
form display_sflight .
data: pgm like sy-repid.
pgm = sy-repid.
clear t_layout.
fs_layout-box_fieldname = 'CHECK'.
fs_layout-info_fieldname = 'COLOR'.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = pgm
i_callback_pf_status_set = 'SUB2'
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'SFLIGHT'
is_layout = fs_layout
tables
t_outtab = t_sflight
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_SFLIGHT
*& Form GET_SPFLI_DETAILS
text
--> p1 text
<-- p2 text
form get_spfli_details .
loop at t_spfli into fs_spfli.
if fs_spfli-checkbox = 'X'.
fs_spfli-color = 'C51'.
fs_spfli-checkbox = '1'.
fs_table-carrid = fs_spfli-carrid.
fs_table-connid = fs_spfli-connid.
append fs_table to t_table.
modify t_spfli from fs_spfli.
endif.
endloop.
endform. " GET_SFLIGHT_DETAILS
*& Form GET_SFLIGHT_DETAILS
text
--> p1 text
<-- p2 text
form get_sflight_details .
loop at t_sflight into fs_sflight.
if fs_sflight-check = 'X'.
fs_sflight-color = 'C71'.
fs_sflight-check = '1'.
fs_table1-carrid = fs_sflight-carrid.
fs_table1-connid = fs_sflight-connid.
fs_table1-fldate = fs_sflight-fldate.
append fs_table1 to t_table1.
modify t_sflight from fs_sflight.
endif.
endloop.
endform. " GET_SFLIGHT_DETAILS
*& Form DISPLAY_SBOOK
text
--> p1 text
<-- p2 text
form display_sbook .
data: pgm like sy-repid.
pgm = sy-repid.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = pgm
i_structure_name = 'SBOOK'
tables
t_outtab = t_sbook
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_SBOOK
regards.
sowjanya.b.

Similar Messages

  • HT201401 My iphone 3GS keeps freezing and showing the apple logo during phone calls.  Can anybody help plese ? Bee

    My iphone 3GS keeps freezing and showing the apple logo during phone calls.  Can anybody help plese ? Bja

    Hiya thankyou for the answer.
    Trying to set it up as a new device but can't find the backup to save it.
    I have no "mediasync" folder in my library/application support. Did these folders get moved around with Lion?
    Thankyou again,

  • Can you download the ios 4 5 0r 6 updates on i phone 3g? it isnt in my update menu. help plese

    i need help can i update a iphone 3g to ios 4 or 5 or 6? if so how?

    Update it from iTunes on a computer as described at the bottom of this article; devices running an iOS version prior to 5.0 can't be updated straight from the device. It will be updated to the newest iOS release supported by the device’s hardware, which is iOS 4.2.1 for the iPhone 3G and second generation iPod touch.
    (95553)

  • Newest version of Firefox 3.6.4 build 3 won't allow Norton Confidential toolbar for anti-plishing to work as before. It cannot load. Help plese.

    Every time Firefox 4.6.4 build 3 open, Norton Confidential (part of Norton Internet Security 4( cannot load it;s toolbar as before (last version of 3.6.4 work fine). So Norton Confidential ask to load. If click yes, Norton Confidential fail to load and ask me to get a newest version of Firefox. So Norton Confidential cannot do anti-plishing protection now
    == This happened ==
    Every time Firefox opened
    == I use version 3.6.4 pre 3 ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    I tried to add the norton toolbar of norton internet security 2009 in the firefox 3.6.2 but the toolbar didn't work!If i'll update the firefox in 3.6.4 as the official mozilla website recommends, the toolbar will works?At the moment i use the firefox 3.5.10 and the norton toolbar works perfectly!
    Thhank you

  • Help, iphone 3gs battery life go down in 3h abroad

    Hi everyone, my iphone 3gs battery in italy is perfectly normal, when i go for example in spain or in greece ( no different voltage) the phone is 100% in the morning but after 4 h without call, message, wifi or 3g activated run out at all.
    I try to close all the app, close all tab of safari, roaming is off for the data, i clear history and i reset it....
    I dont know what else i could do...
    Help plese! Thanks

    F1l0 wrote:
    Yes but as i told you i have 3g off operator is in manual mode ( vodafone es) and no wifi or other connetion are on....
    Update of the firmware?
    Thanks
    That is NOT what you said previously. You said: "I try to close all the app, close all tab of safari, roaming is off for the data" We are NOT psychic. Your original statement does NOT indicate that you have 3g off.
    If the phone is unable to lock onto the preferred  provider you set in manual mode, it will be constantly searching for the carrier signal. This will drastically reduce battery life. If you are out of range of the carrier you want to use, put the phone in airplane mode.

  • Major help needed for a fool :)

    specs
    ms 6728 ver 1
    865pe neo 2
    p4@3Ghz
    512mb pc3200cl2 ddr dimm
    ati radeon 9800
    win xp pro
    The Problem.
    Thanks for reading this issue im not the most tech head person around so please forgive me if some of the following doesnt quite make sence as it should do in a technical way..
    I have owned this PC for abut 1 year all was running fine until recently the machine would not boot windows would just hang until a complete power off. after some investigations the normal cleaning up inside case etc getting rid of dust the problem seemed to cure, until recently.
    it was then i feel i did something rather silly i opened the manual that came with the machine and was reading thou the bios items all seemed the check out quite well with what the manual said but i did notice some items namely the clock speed for ram and burst speed seemed to high so i deciced to reset bios to default.... big error..
    Now when i boot machine i get he following msg..
    sata tx2 plus biis version 1.00 1030.26 promise tech 2001 2005
    no device found
    bios isnt installed
    then the machine goes looking for a boot drive.
    now the main issue being my machine has a sata hdd and it seems the machine cannot find any way of finding this?
    so of course it then asks for a boot disk which i  have one i created with winxp so install that it runs thou a few bits then sits with the A: cursor..
    my issue is how do i get my pc to reconsise my hdd when it is sata as i cannot find anything in bios to help me with that maybe im just overlooking something...please help
    plese note i do not have any of the orginal cds that came with the machine ie bios install etc as machine was purchased second hand
    many thanks
    shifter

    Quote from: shifter on 02-August-06, 04:50:37
    i found the item in bios named "intergrated prephirals" inside that found the option "ON CHIP CONFIGURATION"
    i changed the "ATA configurtaion" from disabled to  S-ATA only..
    Go back into the bios and change it to S-ATA & P-ATA (Or Both)
    That should get you IDE CDROM Drives back up and working. 
    Know you said when windows loads it Just Reboots itself......
    Try tapping "F8" right after it gets past the Bios, and befor you see the WinXP logo.
    Chose "Last Known Good config" If this dose not work then try "Safe Mode".
    This should get you back into windows. 
    But let it be known if you are having problems with your "Windows Installation" than its best to Back UP as much data as you can. Then run a Clean Windows install.

  • Sql*loader and nested tables

    I'm having trouble loading a nested table via sqlldr in Oracle 10g and was hoping someone could point me in the right direction. I keep getting the following error:
    SQL*Loader-403: Referenced column not present in table mynamespace.mytable
    Here's an overview of my type and table definitions:
    create type mynamespace.myinfo as object
    i_name varchar2(64),
    i_desc varchar2(255)
    create TYPE mynamespace.myinfotbl as TABLE of mynamespace.myinfo;
    create table mynamespace.mytable
    Info mynamespace.myinfotbl,
    note varchar2(255)
    NESTED TABLE Info STORE AS mytable_nested_tab;
    My control file looks like this:
    load data
    infile 'mydatafile.csv'
    insert into table mynamespace.mytable
    fields terminated by ',' optionally enclosed by '"'
    TRAILING NULLCOLS
    Info nested table count(6)
    Info column object
    i_name char(64),
    i_desc char(255)
    note
    Example mydatafile.csv would be something like:
    lvl1,des1,lvl2,des2,lvl3,des3,lvl4,des4,lvl5,des5,lvl6,des6,a test data set
    I can't figure out why sqlldr keeps rejecting this control file. I'm using 'direct=false' in my .par file.
    Any hints?

    I just noticed that my email is wrong. If you can help, plese send email to [email protected]
    thanks.

  • I cannot get my projector to fully recognise my macbook pro

    When I connect my projector to my pro, I see a screensaver type screen as an output. When I action on the pro, the projector shows changes being made, but will not show as an output what I see on my Pro.
    Can someone help plese?

    Backup your Profile
    * [[Backing up your information]]
    -> Restart your System in Safe Mode
    * http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode
    You will need to Reinstall Firefox because your previous Installation did not end properly or it got Corrupted.
    -> [[Uninstalling Firefox]] - Completely Uninstall Firefox
    * REMOVE USER DATA AND SETTINGS
    * Restart your system
    -> Check your Hard Disk for Errors
    * How to perform Disk Error Checking in Windows XP
    * http://support.microsoft.com/kb/315265
    * Restart your system
    -> Download latest Firefox version from one of these links using some other Web Browser:
    * http://www.mozilla.com/en-US/firefox/new/
    * http://www.mozilla.com/en-US/firefox/central/
    * http://www.mozilla.com/en-US/firefox/fx/
    * http://www.mozilla.com/en-US/firefox/all.html
    -> [[Installing Firefox on Windows]]
    * http://kb.mozillazine.org/Installing_Firefox_on_Windows
    Check and tell if its working.
    After that, you can Restore your Firefox Profile
    * [[Restoring a profile backup]]
    Make sure that your [[Firewalls]] and other Security softwares are not interfering with Firefox installation.
    * Try Disabling your security softwares in order to make sure that the installation goes uninterrupted.

  • SQL elements int an array?

    I want to get the names from each record in the following table and store them in an array according to their club.
    The database looks like this:
    PlayerID     PlayerPosition     PlayerFirstName     PlayerLastName     Club
    1     GK     S     Taylor     ARS     
    2     GK     J     Lehmann     ARS     
    3     GK     S     Postma     AV     
    4     GK     T     Sorensen     AV     
    5     GK     N     Vaesen     BIR          
    class GetPlayersFromDatabase
         public GetPlayersFromDatabase() throws IOException
                   String [] ClubNames = {"ARS", "AV", "BIR", "BLA", "BOL", "CHA", "CHE", "EVE", "FUL", "LEE", "LEI", "LIV", "MC", "MID", "MU", "NEW", "POR", "SOT", "TOT", "WOL"};
                   String tempClubName = "";
                   int size = ClubNames.length;
                   for ( int index=0; index < size; index++)
                        String sql = " SELECT Club FROM PlayerTable WHERE Club ='" +tempClubName+ "';               
                        String []ARSNames = {};
                        String []AVNames = {};
                                                                                          //all the way to
                         String []WOLNames = {};
         }I want ARSNames = {Taylor,Lehmann,<->,Henry,etc.} , AVNames = {Postma,Sorensen,<->,Solano,etc.}
    all the way to WOLNames = {}.
    Basically once I've got what I want from the SQL statement above how do I insert each field into the array?
    Any help plese guys and girls???

    Ugh. I used "Club" because that's what your SQL statement is retrieving. My guess is that you will want to restructure that query so it grabs the name, rather than the Club; otherwise, you're going to get a big List of the same string....
    P.S. look at creating a "Player" class to encapsulate that information...

  • How can i pool out financial report of just a period on sap

    Dear Professionals in the house,
    Please I have been trying to pool out Financial Reporting of a particular period on SAP but no good result till now.
    At reporting period on: S_ALR_87012284, i used 06 to 06 ( Inicating the month of June 2011) but still coming with cummulative report of Jan 2011 to June 2011.
    Whereas I need only report of june 2011.
    Someone should help, plesea.
    Tks alot.
    Moderator: Please, search before posting

    Hi,
    This transaction code can be accessed by F.01. Go to 'Special Evaluations' tab. Select First option 'balance sheet type' and assign 3. Fill all required fields and execute F8.
    Regards

  • SQL Loader Constraints with Column Objects and Nested Tables

    I am working on loading a Table that (god forbid) contains columns, column objects, and nested tables (which contains several depth of column objects). My question is does SQL Loader have a hidding undocumented feature where it states how the column objects must be grouped in refereneced to the nested tables within the loader file? I can load the various column objects, and nested tables fine right now, however, I am loading them all in strange and insane order. Can anyone answer this question? Thanks.
    Peter

    I just noticed that my email is wrong. If you can help, plese send email to [email protected]
    thanks.

  • Select into file with PRO*C

    Hi, i use ANSI C and ORACLE 10g. I wanna write a table into a file with PRO*C. The way I know is: exec sql; select col1, col2 into :var1, :var2 from tab; end exec; Than i open a file an write var after var into a file. i think u laugh now :-) but plesse help me and tell me an easy way to do this. can i do the select direktly in a file or can i select diffrent cols in only 1 variable? need help (plesas no spool with SQL*PLUS) thx oli

    If you insist on using Pro*C then you can concatenate and format the fields in the SELECT statement.
    For example:
    select col1 || chr(9) || col2 into :varx from tab;
    Then you will have only one variable to print into the file. Not that it makes any difference.

  • What  should I do to update my OSX 10.6.8 or later

    Help Plese dont know what to do

    You can upgrade to v10.7 Lion if your Mac meets the requirements >  Apple - OS X Mountain Lion - Read the technical specifications.
    v10.7 Lion is no longer available from the App Store.
    You will have to call Apple >  800-767-2775
    You can upgrade directly from v10.6.8 to v10.8 Mountain Lion if your Mac meets Mountain Lion requirements > System requirements for OS X Mountain Lion
    Mountain Lion is avaiable from the App Store.

  • Why won't the re download link on my order history page for my product PSE10 not work?

    Hi Folks,
    I purchased PSE 10 Jan 30, 2012.
    I lost some apps due to some bad blocks and now I wish to re download my product, PhotoShop Elements 10. The download link on "MY ORDERS" page <https://www.adobe.com/account/account-orders.html> is unresponsive. I click and double click and nothing happens.
    I had a dmg in my download folder and when I double clicked I got this message:
    Can anyone help plese. Time is of the essence.
    Thanks,
    Gareth

    Hi Manish-Sharma,
    Thank you for your reply. It is very much appreciated.
    I tried answering in the forum on the message page, but as previously, the forum entry level for some reason rejected my screen name, which is "stehkoyeh", saying it was already taken and yes, I am properly logged in. I guess it's not my night.
    Regarding attaching the jpeg image, I looked for a reply field, but I guess not having my screen name accepted prevented me accessing it. I thought therefore it could go on the email, but I was unaware it couldn't be done.
    I can 'see' now my email reply posted, but I honestly didn't realize that only text gets through, not images.
    I am really grateful for now being able to download PSE10, which is downloaded and safely installed and working fine. I thank you personally for making this possible.
    Anyway, thanks also for staying with me, it being so late on a Sunday here on Vancouver Island, BC, Canada.
    Your Help service, although difficult for me personally, has been wonderful, because it did what it was supposed to, in spite of my errors!
    Regards,
    Gareth

  • How to refresh frame1.jsp from frame2.jsp?

    Hi,
    I have main.jsp that holds frameset that contains "frame1.jsp" and "frame3.jsp".
    on submit at "frame3.jsp" it goes to "frame2.jsp", now I want to refresh "frame1.jsp"
    p.s.
    I don't mind to refresh the "main.jsp", I guess that will refresh the frames inside him too - include "frame1.jsp".
    BUT, how can I do it?

    Hi,
    this seems to be a HTML/JavaScript problem, not JSP related.
    The file frame2.jsp could refresh frame1.jsp using "onLoad" on the <body> tag.
    You could also do this before loading frame2.jsp, while pressing the submit button. Instead of using a submit buton you could use a JavaScript function that would submit the form and reload another frame.
    Good Luck!
    PS: If this isn't enough help, plese post the contents of main.jsp (the frameset) so you can get some real code back.

Maybe you are looking for