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: 

Execution of Report with Tabstrips in Background Mode

Former Member
0 Kudos

Hi everyone,

I have used 2 tabstrips in my report. When I choose the second tabstrip, give the related I/P's and then execute in Background mode. The O/P generated is coming for the 1st tabstrip instead of what I'd selected.

How could I execute the report in Background Mode for my Second Tabstrip? Any changes to be done in my Coding?

Please throw some light into this !!!!

Regards,

Ramakrishnan.G

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You may have attached user command to your tabs in definition -

<b>DATA : TAB1, TAB2.

SELECTION-SCREEN BEGIN OF TABBED BLOCK TB FOR 2 LINES.

SELECTION-SCREEN TAB (15) TABNAME1 USER-COMMAND TAB1 DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (15) TABNAME2 USER-COMMAND TAB3 DEFAULT SCREEN

102.

...

...</b>

Now in

<b>

INITIALIZATION.

TABNAME1 = 'TAB1'.

TABNAME2 = 'TAB2'.

AT SLECTION-SCREEN.

IF TB-ACTIVETAB = 'TAB1'.

TAB1 = 'X'.

TAB2 = ' '.

ELSE.

TAB1 = ' '.

TAB2 = 'X'.

ENDIF.

START-OF-SELECTION.

IF TAB1 = 'X'.

PERFORM ROUTINE_FOR_TAB1.

ELSE.

PERFORM ROUTINE_FOR_TAB2.

ENDIF.</b>

Cheers.

( Dont forget to reward if answers helped )

4 REPLIES 4

Former Member
0 Kudos

Hi,

Create a variant of your program. Create the job using SM36 or SM37. There is a field for the variant to be used.

Svetlin

P.S Please award useful answers.

Former Member
0 Kudos

Hi

You may have attached user command to your tabs in definition -

<b>DATA : TAB1, TAB2.

SELECTION-SCREEN BEGIN OF TABBED BLOCK TB FOR 2 LINES.

SELECTION-SCREEN TAB (15) TABNAME1 USER-COMMAND TAB1 DEFAULT SCREEN 101.

SELECTION-SCREEN TAB (15) TABNAME2 USER-COMMAND TAB3 DEFAULT SCREEN

102.

...

...</b>

Now in

<b>

INITIALIZATION.

TABNAME1 = 'TAB1'.

TABNAME2 = 'TAB2'.

AT SLECTION-SCREEN.

IF TB-ACTIVETAB = 'TAB1'.

TAB1 = 'X'.

TAB2 = ' '.

ELSE.

TAB1 = ' '.

TAB2 = 'X'.

ENDIF.

START-OF-SELECTION.

IF TAB1 = 'X'.

PERFORM ROUTINE_FOR_TAB1.

ELSE.

PERFORM ROUTINE_FOR_TAB2.

ENDIF.</b>

Cheers.

( Dont forget to reward if answers helped )

0 Kudos

Thankyou Mr.Sanjay,

I have solved the problem based on your I/P. The solution was very helpful.

Regards

Ramakrishnan.G

Former Member
0 Kudos

Welcome to SDN.

If u have two radio or checkbox in ur selction screen and depending on the selection made if u display the tabs then u can arrive what u want.

Else the default tab will be the first one and u cant get the output in background mode.

By default this will show the first tab.

Hope u got it. Gte back if u have any queries.