05-22-2006 8:01 AM
hi,
i displayed some documents with check boxes the customer will select some documents .what ever the documetns that was selceted by the customer i need to save them in to a table
the display is like this
( ) xxxxxxxxxxxxxxxxx
( ) xxxxxxxxxx
( ) xxxxxxxxxxxxxxxxx
Thanks in advance
05-22-2006 8:04 AM
The checkboxes will have a 'X' set for them in the program when they are checked.Use this condition and save the respective documents into the table.
<i>Reward helpful answers</i>
Cheers
Nishanth
05-22-2006 8:04 AM
The checkboxes will have a 'X' set for them in the program when they are checked.Use this condition and save the respective documents into the table.
<i>Reward helpful answers</i>
Cheers
Nishanth
05-22-2006 8:07 AM
Hi,
follow the follwoing steps
1) hide the fields u need to catch
2) under the sy-ucomm event catch the value of the checkbox
3) if its X move the values to another ITAB
4) Update DB from ur ITAB.
Hope it helps
Anirban
05-22-2006 8:13 AM
Hi,
after selecting the records in display you need to trigger some user-command through that you can trigger the event at user-command event. there you can do some thing like this...
at user-command.
case sy-ucomm.
when 'SAVE'.
do upldate your DB here.
Regards
vijay
05-22-2006 8:13 AM
Hi Ravi,
Take the internal table with Check box value along with the other fields, whatever you want to display on the output.
use the following steps:
READ LINE SY-INDEX INDEX LSIND FIELD VALUE itab-check_Val.
IF SY-SUBRC = 0.
CHECK itab-check_val NE SPACE.
move all the data into another internal table.
Then use sy-ucomm, there you can write code for SAVE to your table
I hope it helps you. If the same please reward points
Regards
Prabhakar
05-22-2006 8:16 AM
after displaying the ALV
when save button is clicked
when 'SAVE'.
loop at itab where checkbox = 'X'.
modify ztable from table itab.
endloop.
ENDLOOP.
Message was edited by: Chandrasekhar Jagarlamudi
05-22-2006 8:24 AM
HI
GOOD
AS PER YOUR REQUIREMENT YOU WANT TO STORE THE DOCUMENT NAMES IN THE FORM OF XXXX
TRY THIS PROCESS
STORE THE NAME IN A VARIBLE.
CHECK WITH EACH AND EVERY CHARACTER OF THE NAME AND REPLACE THEM WITH THE X AND THEN YOU PASS THAT VALUE TO THE DATABASE TABLE.
THANKS
MRUTYUN