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

LISTBOX

Former Member
0 Likes
411

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

2 REPLIES 2
Read only

Former Member
0 Likes
384

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...

Read only

Former Member
0 Likes
384

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