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

grey out fields in selection screen

Former Member
0 Likes
10,887

experts help needed

i want to display in the selection screen like this

sales org k918

doc type zior

divison 10

distribution channel 20

file name /info/ordersinfo/india/incomming/order/order.txt

1) i want all the sales org ,doc type ,division,dis channel to be greyed out in the selection screen

2)file name : the path i have mentioned is the application server path where my text file

order.txt will be there.

this i want the user to type this text and also i need to display this as default value.

i tried like this

parameters : p_file type string default /info/ordersinfo/india/incomming/order/order.txt.

it is giving error. Please help me how to do this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,610

Hi,

Try like below:parameters : p_file type string default '/info/ordersinfo/india/incomming/order/order.txt.' obligatory.

and then in order to grey out your other fields


at selection-screen output.

Loop at screen.
 if screen-name  = 'SALES ORG'. <<<Name of the parameter that you have declared 
screen-input = 0.
modify screen.
endloop.

Similarly you can do for other fields too.

Regards,

Himanshu

experts help needed

i want to display in the selection screen like this

sales org k918

doc type zior

divison 10

distribution channel 20

file name /info/ordersinfo/india/incomming/order/order.txt

1) i want all the sales org ,doc type ,division,dis channel to be greyed out in the selection screen

2)file name : the path i have mentioned is the application server path where my text file

order.txt will be there.

this i want the user to type this text and also i need to display this as default value.

i tried like this

parameters : p_file type string default /info/ordersinfo/india/incomming/order/order.txt.

it is giving error. Please help me how to do this

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,610

For "parameters : p_file type string default /info/ordersinfo/india/incomming/order/order.txt.", I have this message, isn't it clear ?

Field "/INFO/ORDERSINFO/INDIA/INCOMMING/ORDER/ORDER" is unknown. It is

neither in one of the specified tables nor defined by a "DATA"

statement. "DATA" statement. "DATA" statement.

Read only

Former Member
0 Likes
2,611

Hi,

Try like below:parameters : p_file type string default '/info/ordersinfo/india/incomming/order/order.txt.' obligatory.

and then in order to grey out your other fields


at selection-screen output.

Loop at screen.
 if screen-name  = 'SALES ORG'. <<<Name of the parameter that you have declared 
screen-input = 0.
modify screen.
endloop.

Similarly you can do for other fields too.

Regards,

Himanshu

Read only

Former Member
0 Likes
2,610

Hi,

1) Use loop at screen in AT-SELECTION SCREEN OUTPUT to grey out the fields on the selection screen

2) Use like this

parameters : P_file type char128.

initialization.

p_file = /info/ordersinfo/india/incomming/order/order.txt.

Regards

Krishna

Read only

former_member194669
Active Contributor
0 Likes
2,610

Error is due to you are missing single quote


parameters : p_file type string default '/info/ordersinfo/india/incomming/order/order.txt'.

Read only

0 Likes
2,610

make sure you have the default value in single quotes as its a string value and

make sure the path : /info/ordersinfo/india/incomming/order/order.txt exists.