2006 Oct 10 7:34 AM
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
2006 Oct 10 7:40 AM
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
2006 Oct 10 8:14 AM
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
2007 Mar 12 6:15 AM
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
2007 Mar 12 6:31 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |