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

Query in dialoque programming

Former Member
0 Likes
956

Hi friends,

I have 4 fields in the table with F4 values from internal tables.

My flow logic looks like:

PROCESS ON VALUE-REQUEST.

FIELD istock-field1 MODULE f4_field1.

FIELD istock-field2 MODULE f4_field2.

FIELD istock-field3 MODULE f4_field3.

FIELD istock-field4 MODULE f4_field4.

FIELD istock-field5 MODULE f4_field5.

Now the query is if at runtime if i did not get any values in internal table for

any one of the fields then user should able to input any value in the field.

Thanks & regards,

Praveen Lobo

Mobile: 9892612459

9 REPLIES 9
Read only

former_member188827
Active Contributor
0 Likes
932

if istock[] is initial.

screen-input = 0.

modify screen.

endif.

reward points if it helps.

Message was edited by:

abapuser

Read only

0 Likes
932

Sorry sir,

with this its not working

Read only

0 Likes
932

've u created ur own screen or is it standard selection screen?

Read only

0 Likes
932

Created the own screen

Read only

0 Likes
932

if istock[] is initial.

loop at screen.

screen-input = 0.

modify screen.

endloop.

endif.

Read only

Former Member
0 Likes
932

Hi Praveen,

If the Select query does not return anything, then show an information message 'No data found for help'. and set a flag.. like no_data = 'X'.

In the PBO of the screen, Check this flag and if the flag is 'X',

LOOP AT SCREEN.

IF screen-name = <your field name>.

screen-input = 0.

MODIFY screen.

ENDIF.

ENDLOOP.

CLEAR no_data.

Thanks and Best Regards,

Vikas Bittera.

Read only

0 Likes
932

Dear Vikas Bittera,

I again want to clarify my query.

I want the field allow user to enter any value without F4 functionality

if i did not find any entries to show in F4_function.

Thanks & regards,

Praveen Lobo

Read only

0 Likes
932

Hi,

Then you should not face any iossue at all.. If the F4 help does not have anything.. then nothing will happen..

And the user will be able to put whatever value he want.. but make sure that in the PAI, you do not have any validation logic in CHAIN...ENDCHAIN..

Thanks and Best Regards,

Vikas Bittera.

Read only

0 Likes
932

Hi Vikas Bittera,

I got your point. In fact i defined the field attribute Dropdown as Listbox with key,

so it is not allowing me to enter any values. But if i remove that option i am not able to see the description of th key value.

Thanks,

Praveen Lobo