12-13-2013 7:59 AM
Hello Experts,
I have a requirement to create a custom transaction for Standard program RLS10034 (Transaction LT10).
When called from this transaction the select option “Stock Category” should be greyed out i.e. Output only.
Now the problem is this t-code is using a logical database and thus has dynamic selection option which also has the parameter “Stock Category”.
This parameter also needs to be greyed out i.e. made output only but as this is dynamic button its name is random and changes every time the selection is made.
Kindly propose a solution for the about requirment.
Thanks.
12-13-2013 9:59 AM
Hi Manoj -
The stock category in the program 'RLS10034' is not under LDB. Rather it is on the line no 168.
select-options: bestq for lqua-bestq.
If you have copied your program the program 'RLS10034' to a custom program to disable the field for input. You can add the following piece of code under the event AT SELECTION-SCREEN OUTPUT . You can add following piece of code at the line 226 - end if. "^_n_691252 in the custom program.
LOOP AT SCREEN.
IF screen-name = 'BESTQ-LOW' OR screen-name = 'BESTQ-HIGH'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Another thing, if user is not going to input the field, then you can hide the field by the following code.
select-options: bestq for lqua-bestq NO-DISPLAY.
Let us know, if it helps.
Regards,
Atul Mohanty
12-13-2013 9:19 AM
hi Manoj
Go to SE36, input the name of logical database, chick the selections, you will see all the select-option here.
I try to find some document to enhance the screen of logical database, but have not find.
So if you have the key, modify the source code here, i don`t think this is right.
Let me know how you handle this, thanks.
Archer
12-13-2013 9:59 AM
Hi Manoj -
The stock category in the program 'RLS10034' is not under LDB. Rather it is on the line no 168.
select-options: bestq for lqua-bestq.
If you have copied your program the program 'RLS10034' to a custom program to disable the field for input. You can add the following piece of code under the event AT SELECTION-SCREEN OUTPUT . You can add following piece of code at the line 226 - end if. "^_n_691252 in the custom program.
LOOP AT SCREEN.
IF screen-name = 'BESTQ-LOW' OR screen-name = 'BESTQ-HIGH'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Another thing, if user is not going to input the field, then you can hide the field by the following code.
select-options: bestq for lqua-bestq NO-DISPLAY.
Let us know, if it helps.
Regards,
Atul Mohanty
12-13-2013 10:58 AM
Hi Atul,
thanks ,
the above solution you have given is working fine for this transaction but i need to greyed out the input field at the time when i click on to dynamic selection. on that screen when i click on batch .so there also i need to greyed out the input selection for that field.
thanks in advance
also io
12-14-2013 9:52 AM
Hi Manoj,
a little bit investigated, I don't find an option to grey out the field, However you can disable the field from selection. I think grey out or hiding the option is same as per your requirement!
Go to Transaction SE36 – Extras-SELECTION VIEWS
Press on Create -
Maintain the function group names as mentioned below: need to assign own function group names.
Maintain the required selections as required in dynamic selection screen, for example see below.Double click on LQUA, if you want to hide the Batch field; don’t assign the function group for the field. It will automatically hide in the selection screen.
Double click on the LQUA- don’t assign.
Execute
Message was edited by: kiran kumar