2010 Feb 16 6:49 PM
Hi Experts,
I am using Select Options to fetch and display 2 data fields.
My requirement is I should get the second data field based on the first selection.I am getting the data properly once Enter key is pressed after first selection.If Enter key is not pressed data is not getting displayed properly.I am using a Ztable to store these data.
Eg: 1st selection is Work Area(using F4)
If I select a Work Area,all the Process which is stored against that Work Area should only be displayed in the second Option.
How to refresh select option without pressing Enter Key?
Regards,
Sam
Hi Experts,
I am using Select Options to fetch and display 2 data fields.
My requirement is I should get the second data field based on the first selection.I am getting the data properly once Enter key is pressed after first selection.If Enter key is not pressed data is not getting displayed properly.I am using a Ztable to store these data.
Eg: 1st selection is Work Area(using F4)
If I select a Work Area,all the Process which is stored against that Work Area should only be displayed in the second Option.
How to refresh select option without pressing Enter Key?
Regards,
Sam
2010 Feb 16 9:32 PM
This may not be helpful...but....
On selection screens, I use the addition user-command <command>. When the value changes, event SELECTION-SCREEN OUTPUT is triggered, whereby I can change other field attributes, contents, etc. However, there are limitations...I've not tried using the user-command addition on anything except checkbox and radiobutton elements. I seem to recall a one-byte limitation on field size that user-command could be applied to.
2010 Feb 17 5:27 AM
Hey Dave,
However, there are limitations...I've not tried using the user-command addition on anything except checkbox and radiobutton elements
FYI ... You cannot use the USER-COMMAND addition with SELECT-OPTIONS / PARAMETERS
Cheers,
Suhas
2010 Feb 17 5:51 AM
Hi Suhas,
I think user-command can be used with parameters:
http://help.sap.com/abapdocu_70/en/ABAPPARAMETERS_SCREEN.htm
Regards,
Swarna Munukoti
2010 Feb 17 6:01 AM
Hello Swarna,
Anyways as per SAP jargon radiobuttons, checkboxes, listbox are all PARAMETERS.
But what i meant was you cannot use USER-COMMAND with a param declared like:
PARAMETER: P_BUKRS TYPE BUKRSSorry for the ambiguous statement.
BR,
Suhas
2010 Feb 16 9:41 PM
2010 Feb 17 5:14 AM
hi Sam,
there are two ways for ur query on select-options(s_option)
let s_option = 'abc'.
1. you can use user command event where u can set the value for ur select options.
2. you can use radio button(RB), can code like,
if RB = 'x'.
set s_option = 'xyz'.
hope this will help u in solving ur problem.
Regards
Neha
2010 Feb 17 8:08 AM
Hi Experts,
Thanx for ur valuable tips.
I am using 2 Select options for displaying data.If i select 1 field from 1st Select option, based on this selection i should get values in 2nd Select option.
I am using F4IF_INT_TABLE_VALUE_REQUEST Function module to fetch data based on 2nd select option.
How to avoid Pressing Enter key for displaying data in 2nd selection screen.
Regards,
Sam.
2010 Feb 17 8:20 AM
Hi Sam,
Try using function modules DYNP_VALUES_READ and DYNP_VALUES_UPDATE for this.
Please refer to following link :
http://abap-explorer.blogspot.com/2008/07/populate-screen-field-withot-triggering.html
Hope this helps.
Regards,
Chandravadan
Edited by: Chandravadan Jaiswal on Feb 17, 2010 1:56 PM
2010 Feb 17 8:48 AM
Have you tried using SET USER-COMMAND
I've never used it before but worth giving it a try.
2010 Feb 17 9:26 AM
Hi Sam,
Use the following function module: DYNP_VALUES_READ
Regards,
Pranaam.
2010 Feb 17 9:26 AM
Hi Sam,
Use the following function module: DYNP_VALUES_READ
Regards,
Pranaam.
2010 Feb 17 9:27 AM
Hi Sam,
Use the following function module: DYNP_VALUES_READ
Regards,
Pranaam.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |