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

Transaction Variant.

Former Member
0 Likes
811

Hi all,

I want to disable a field on selection screen.

How can achive this?

I have a programme with some selection fields. Now i want to disable one of the field on selection screen. With out chaning the code. Hw can i achive this?

Hi all,

I want to disable a field on selection screen.

How can achive this?

I have a programme with some selection fields. Now i want to disable one of the field on selection screen. With out chaning the code. Hw can i achive this?

7 REPLIES 7
Read only

Former Member
0 Likes
767

Hi ,if you want to change code then you can do LOOP AT SCREEN in event at selection sceen output.

However if you are using LDB and the default selection screen is comming for the LDB then you can modify it by making report category

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
767

Hi,

Changing the mode of the parameters taken on selection screen without using coding can be done as:-

Goto transaction SE80 --> Open your program --> Select screen from the left hand side window --> double click on screen 1000 (default selection screen) --> double click on the parameter which need to be disabled --> using properties window set it as output only.

This will disable the field for input.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
767

Hi,

Create screen variant using the transaction SHD0 make it default and move it to all clients.

Regards,

Nandha

Read only

dev_parbutteea
Active Contributor
0 Likes
767

Hi,

Create a variant where you fill in all required data and check the :

- "hide field" check box when saving the variant to remove it form selection

- "protect field" to disable/Grey out the field

Read only

Former Member
0 Likes
767

Hi Dude,

If you want to invisible a particular field on the standard application you can work with SHD0 Tcode

SHD0 for Transaction variant. then select the transaction variant.

Here you can do the things for filed like content,invisible, outputonly required

So according to your requirement you can hide or disable the filed

Hope it may helps for you

Thanks & Regards

Ramakrishna Pathi

Read only

Former Member
0 Likes
767

Hi,

check with below code

TABLES: vttk, kna1.

SELECTION-SCREEN BEGIN OF BLOCK box WITH FRAME TITLE text-001.

PARAMETERS: p_email AS CHECKBOX USER-COMMAND flag .

SELECT-OPTIONS: email FOR kna1-kunnr LOWER CASE NO INTERVALS MODIF ID pd1.

SELECTION-SCREEN END OF BLOCK box.

AT SELECTION-SCREEN OUTPUT.

PERFORM set_screen.

FORM set_screen .

IF p_email EQ 'X'.

LOOP AT SCREEN.

IF screen-group1 = 'PD1'.

screen-input = '1'.

screen-invisible = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSE.

LOOP AT SCREEN.

IF screen-group1 = 'PD1'.

screen-input = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDFORM.

Regards,

Madhu

Read only

Former Member
0 Likes
767

This message was moderated.