Application Development 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: 

Creating custom transaction for Standard program RLS10034 (Transaction LT10).

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

atul_mohanty
Active Contributor
0 Kudos

Hi Manoj -

The stock category in the program 'RLS10034' is not under LDB. Rather it is on the line no 168.

 

select-optionsbestq 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-optionsbestq for lqua-bestq NO-DISPLAY.

Let us know, if it helps.

Regards,

Atul Mohanty

4 REPLIES 4

Former Member
0 Kudos

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


atul_mohanty
Active Contributor
0 Kudos

Hi Manoj -

The stock category in the program 'RLS10034' is not under LDB. Rather it is on the line no 168.

 

select-optionsbestq 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-optionsbestq for lqua-bestq NO-DISPLAY.

Let us know, if it helps.

Regards,

Atul Mohanty

0 Kudos

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

0 Kudos

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