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
493

Hi Guys.

I am getting some problem when I use list box.

I am working on 4.6c version.

In My requirement I have list box in selection screen having 2 options.

When select 1st option,I am disabling some parameters. when 2nd option I am disabling some parameters.

Almost it is working fine.

When I select 3 rd time for 1st option,all parameters r disabled.

It is going directly to “ at selection screen on field” event.

I have one more question:

In 4.7 version I used list box like :

Parameters: p_list type I as listbox visible length 15 user-command uc.

If I use this stmt in 4.6c ,it is not working.

I am getting error like “listbox and user-command not together”.

how can i pass the user command to list.

Plz help me on this.this is udjent.

Thanks & Regards,

Rayeez

Hi Guys.

I am getting some problem when I use list box.

I am working on 4.6c version.

In My requirement I have list box in selection screen having 2 options.

When select 1st option,I am disabling some parameters. when 2nd option I am disabling some parameters.

Almost it is working fine.

When I select 3 rd time for 1st option,all parameters r disabled.

It is going directly to “ at selection screen on field” event.

I have one more question:

In 4.7 version I used list box like :

Parameters: p_list type I as listbox visible length 15 user-command uc.

If I use this stmt in 4.6c ,it is not working.

I am getting error like “listbox and user-command not together”.

how can i pass the user command to list.

Plz help me on this.this is udjent.

Thanks & Regards,

Rayeez

2 REPLIES 2
Read only

Former Member
0 Likes
454

Hi Rayeez,

You cannot attach user-command to a listbox like

Parameters: p_list type I as listbox visible length 15 user-command uc.

You can assign a Function code only when you are working in screens.

What you can do is use a FM called DYNP_VALUES_READ to find out the value you have selected. Depending on the value, you can enable or disable the parameters.

<b>Close the thread once the problem is resolved.</b>

Regards,

SP.

Read only

naimesh_patel
Active Contributor
0 Likes
454

Hello Reyaaz,

It is not possible to have list box and User command both in parameter declaration in 4.6 C.

You can check in the event AT SELECTION SCREEN ON P_NUM by pressing ENTER..

Regards,

Naimesh