‎2007 Apr 05 7:21 AM
i am using a tabstrip. In one tab I am using two listboxes and one output field.when I select the values from the listboxes the data should be retrived from the database and display in that output field.it is retriving the value and displaying only after i click the other tab.but the listbox values are not retained in it.how I should do
‎2007 Apr 05 7:31 AM
Magesh ,
Add below functionality to your code to trigger the event when you select the data from your check box.
copy and check the code.
TABLES sscrfields.
PARAMETERS: rad1 RADIOBUTTON GROUP rad USER-COMMAND radio,
rad2 RADIOBUTTON GROUP rad,
rad3 RADIOBUTTON GROUP rad.
PARAMETERS check AS CHECKBOX USER-COMMAND check.
AT SELECTION-SCREEN.
MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
START-OF-SELECTION.
WRITE text-002.
-
When you select the other tab againg PBO is getting triggerd and you initial functionality is again adding to your listbox.
For this you put some conditions in PBO like when sy-ucomm is not equals to your listbox function code .
Now it will work...
Don't forget to reward if useful...
‎2007 Apr 05 7:32 AM
Assigh a Function Code to the list box. Write the code to retrive the data from the database in the okcode - user command.
You can modify the field values of the screen structure so that the value retains in the screen.
Regards
Rusdiar