2009 Sep 02 7:33 PM
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
2009 Sep 02 7:39 PM
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
2009 Sep 02 7:39 PM
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.
2009 Sep 02 7:39 PM
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
2009 Sep 02 7:41 PM
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
2009 Sep 02 7:44 PM
Error is due to you are missing single quote
parameters : p_file type string default '/info/ordersinfo/india/incomming/order/order.txt'.
a®
2009 Sep 02 8:07 PM
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.