Application Development and Automation 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: 
Read only

Saving in Selection Screen

Former Member
0 Likes
1,281

hi..

i have a requirement that i have to save the entries in selection screen to the db.

if i click save button it is asking for variants.

suggest me..

reply asap.. thanks in advance...

3 REPLIES 3
Read only

Former Member
0 Likes
778

Hi,

Create a GUI status for the screen which contains the selection screen. Define the SAVE button with the function code as SAVE.Activate the GUI status.

In the PAI of the program write the following logic:

CASE sy-ucomm.

When 'SAVE'.

-


write logic for database update----


ENDCASE.

Hope it helps,

Regards,

Arnab.

Read only

Former Member
0 Likes
778

There is no procress such that, if you click on 'save' button it save's. That button is desperatrely for varients. So we need to write the code for it manually. Create a button and write a code in it...

Read only

Former Member
0 Likes
778

Hai Tommy.

Create your own PF status. There disable the SAVE button on STANDARD toolbar and add one customized button in APPLICATION TOOL BAR.

AT SELECTION-SCREEN.

ok_code = sy-ucomm.

CASE ok_code.

WHEN 'SAVE'.

move s_matnr-low to wa

move p_mbrsh to wa-mbrsh

INSERT ZTABLE from wa.

ENDCASE.

You can't use standard toolbar save button for saving the selection screen data to DB.

Hope this piece of code solves your problem.

Cheers,

Suvendu