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

list box

Former Member
0 Likes
615

Hi all,

i have 2 list boxes in selection screens. based on first listbox values the second list box values has to print .

example: first list box values : 1 , 2 , 3

in second list box if i select 1 in first list box in my second list box i have to get related values . if i don't select the first listbox i have to get all values in second list box.

Thanx

lakshmi

Hi all,

i have 2 list boxes in selection screens. based on first listbox values the second list box values has to print .

example: first list box values : 1 , 2 , 3

in second list box if i select 1 in first list box in my second list box i have to get related values . if i don't select the first listbox i have to get all values in second list box.

Thanx

lakshmi

4 REPLIES 4
Read only

Former Member
0 Likes
576

Hello,

Please use the function module

DYNP_VALUES_UPDATE.

You can assign an user command to the first list box in the selection-screen.

AT selection-screen on value request for lisbox 1.

write the code for list box 1.

subsequently write this..

refresh dynp_fields.

dynp_fields-fieldname = 'FNAME'.

dynp_fields-fieldvalue = Field value

append dynp_fields.

call function 'DYNP_VALUES_UPDATE'

exporting

dyname = $dyname

dynumb = $dynumb

tables

dynpfields = dynp_fields

exceptions

others = 0.

endif.

Regards,

Krishnakumar

Read only

0 Likes
576

Please do as follows:

1)Declare the paramter like :

PARAMETERS : P_KUNNR TYPE C MODIF ID SC1,

2)At selection screen output :

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_KUNNR' AND

SCREEN-GROUP1 = 'SC1'.

P_SDATE = '1'. "Seq no 1 to Sales

SCREEN-INPUT = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Using the code you can play around with selection screen.

rajesh

Read only

0 Likes
576

Hi ,

I have created two list boxes.if i select an item in first list box then the selected item should be add to second list box. can u help be in this

Read only

Former Member
0 Likes
576

Lakshmi/sudha,

See when you select value on list box some event has to triggerd, then only the program again will go back to event "AT SELECTION-SCREEN OUTPUT" where you can write the code for your functionality.

For your requirement there should be "PUSHBUTTON" or "RADIOBUTTON" or

"CHECKBOX".

Then only your requirement can fulfill.

Add one check box near your listbox.Select the value from listbox .write the code in AT SELECTION-SCREEN OUTPUT

if check box eq 'X'

wtite youe logic here.

Pls. reward if useful