Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to save in to the table

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

nishanthbhandar
Contributor
0 Kudos

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

6 REPLIES 6

nishanthbhandar
Contributor
0 Kudos

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

former_member480923
Active Contributor
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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