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

FOCUS ON THE TAB

Former Member
0 Likes
1,299

HI ABAPERS,,

I HAVE TABSTRIPS WITH TAB CONTROL.

I AM DOING VALIDATION IN TAB2.

IF THE VALIDATION IS NOT SUCESS I DONT WANT TO PROCEED FURHTER AND WANT THE CURSOR TO BE IN THE TAB2 ITSELF.

WHEN IAM USING THE LEAVE LIST-PROCESSING IT IS FOCUSSING ON TAB1(DEFAULT TAB).

BUT I WANT THE CURSOR IN TAB2 ITSELF.

pLS HELP ME TO DO THIS

REGARDS,

PRIYA

HI ABAPERS,,

I HAVE TABSTRIPS WITH TAB CONTROL.

I AM DOING VALIDATION IN TAB2.

IF THE VALIDATION IS NOT SUCESS I DONT WANT TO PROCEED FURHTER AND WANT THE CURSOR TO BE IN THE TAB2 ITSELF.

WHEN IAM USING THE LEAVE LIST-PROCESSING IT IS FOCUSSING ON TAB1(DEFAULT TAB).

BUT I WANT THE CURSOR IN TAB2 ITSELF.

pLS HELP ME TO DO THIS

REGARDS,

PRIYA

8 REPLIES 8
Read only

Former Member
0 Likes
1,261

Hi Priya

Dont give Leave List-processing it will go the first tab.

do the logic for going to the next tab if the validation is successful.

regards

kishore

Read only

0 Likes
1,261

Hi Kishore,

Thanks for the immediate reply... But I don't know how to arrive that logic...That's y i posted...

regards

priya

Read only

0 Likes
1,261

HI Priya

post that part of code.

what is the validation?

regards

kishore

Read only

0 Likes
1,261

Hi kishore,

I am using tabstrip control in alv report.

I have 5 different tabs.

I have the second tab which contains field which is a ogbligatory.

But if the user wants to change to another tab it is asking to fill the mandatory value before coming out .

To over come this, i have declared the field as not obligatory but i want to check this condition before populating in my itab.

I tried it in this way,

if field1 is initial. " where field1 is an obligatory

leave list processing.

endif.

Here, it is coming out of the program and cursor is in the first tab but i need it in the secont tab itself.

Please help me out

Regards,

Priya

Read only

0 Likes
1,261

Hi priya

you can validate the field using

At selection-screen on <fieldname>.

<validation>

if you are using different screen for diferent tabs then you can use

leave to screen <screen number>

regards

kishore

Read only

0 Likes
1,261

Hi kishore,

AT selection-screen field validation did not hold good.

I have given the field as not obligatory.

So the user can execute without giving any value on this field.but i dont want that to happen.

Read only

Former Member
0 Likes
1,261

Hello Priya,

R u using paging in SAPgui or on application server? That is do u have separate screens for ur tabs or one screen for all the tabs becasue it will be easy with one screen as on error the current screen remains active whereas if u have different screens as of in SAPgui then field check would happen for all screens.

u can use TABSTRIP1-ACTIVETAB = 'TAB1'. to activate a perticular tab when the error occurs.

Read only

Former Member
0 Likes
1,261

hi priya !!!

resolve you problem ? i have problem similar !!