‎2009 Jun 02 5:48 AM
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...
‎2009 Jun 02 6:00 AM
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.
‎2009 Jun 02 6:07 AM
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...
‎2009 Jun 02 6:13 AM
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