Skip to Content
author's profile photo
Former Member

Execution of Report with Tabstrips in Background Mode

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 05, 2005 at 06:35 AM

    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 )

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 05, 2005 at 06:18 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 05, 2005 at 09:44 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded