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

Refresh select option without pressing Enter Key

Former Member
0 Likes
6,567

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

12 REPLIES 12
Read only

Former Member
0 Likes
2,846

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.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,846

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

Read only

0 Likes
2,846

Hi Suhas,

I think user-command can be used with parameters:

http://help.sap.com/abapdocu_70/en/ABAPPARAMETERS_SCREEN.htm

Regards,

Swarna Munukoti

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,846

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 BUKRS

Sorry for the ambiguous statement.

BR,

Suhas

Read only

Former Member
0 Likes
2,846

Hello Sam,

Please refer to following link.

On the following thread check for the Jonathan Coleman's Reply.

Hope this helps.

Regards,

Chandravadan

Edited by: Chandravadan Jaiswal on Feb 17, 2010 3:17 AM

Read only

Former Member
0 Likes
2,846

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

Read only

Former Member
0 Likes
2,846

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.

Read only

0 Likes
2,846

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

Read only

Former Member
0 Likes
2,846

Have you tried using SET USER-COMMAND

I've never used it before but worth giving it a try.

Read only

Former Member
0 Likes
2,846

Hi Sam,

Use the following function module: DYNP_VALUES_READ

Regards,

Pranaam.

Read only

Former Member
0 Likes
2,846

Hi Sam,

Use the following function module: DYNP_VALUES_READ

Regards,

Pranaam.

Read only

Former Member
0 Likes
2,846

Hi Sam,

Use the following function module: DYNP_VALUES_READ

Regards,

Pranaam.