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

Tab in selection screen

Former Member
0 Likes
1,212

Dear All,

I have to developed a new report in which I have to diplay two different report.For that two different report there are two different selection screen.I have developed two tabs in selection screen for two different report.

There are some mandatory fields in each screen,Now problem is that I can't go second tab unless I fill value in mandatory field.

But my requirment is when I want to go for second report then I will go for second tab without filling any value in tab 1 selection screen

Please give a sollution.

Regards,

Amar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
810

Hi,

-Declare your fields as optional in the selection screen

-At selection-screen , check for values in the fields (which are supposed to be mandatory) in the current tab,give an error message if initial.

5 REPLIES 5
Read only

Former Member
0 Likes
810

Can you modify the mandatory screen attributes using LOOP AT SCREEN to ensure that when you click to move to Screen2 the Screen1 attributes are made optional.

Read only

former_member404244
Active Contributor
0 Likes
810

Hi ,

Sap does auto field checking before the execution of PAI..so u cannot navigate until u fill the mandatory fields..In order to overcome this you need to make as optional and do the validation inside the code if they are initial.

Regards,

Nagaraj

Read only

venkat_o
Active Contributor
0 Likes
810

Hi Amar, <li>You can achieve the same using Dialog program . Instead of selection-screen, use dialog programming, use MODULE mod_name AT EXIT-COMMAND to navigate one tab to another tab. Once you give input on any tab and want to display data use LEAVE TO LIST PROCESSING AND RETURN TO SCREEN 0. <li>Check the link: http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaa9535c111d1829f0000e829fbfe/content.htm <li>Normally AT EXIT-COMMAND is used to exit without giving mandatory fields. We can use for this situation. Thanks Venkat.O

Read only

Former Member
0 Likes
811

Hi,

-Declare your fields as optional in the selection screen

-At selection-screen , check for values in the fields (which are supposed to be mandatory) in the current tab,give an error message if initial.

Read only

Former Member
0 Likes
810

Hi,

-Declare your fields as optional in the selection screen

-At selection-screen , check for values in the fields (which are supposed to be mandatory) in the current tab,give an error message if initial.