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

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 )

Similar Messages

  • Control_flush_error with GUI_DOWNLOAD in Background mode

    Hi Friends
    When I have executed the FM: GUI_DOWNLOAD in Background mode,
    I am getting the error: Control_flush_error .
    Can anyone please let me know Is we can use the FM: GUI_DOWNLOAD & GUI_UPLOAD in Background mode?
    If not can anyone please provide me the relevant SAP(OSS) Note.
    Points are assured for useful answers.
    Thanks
    Regards,
    Sree

    Hi,
      No you can't do that, the GUI_DOWNLOAD method of the class CL_GUI_FRONTEND_SERVICES, and the function module GUI_DOWNLOAD are dependent on the gui. You can not use these in the background. You must download to the application server, using the dataset statements.
    OPEN DATASET
    TRANSFER
    CLOSE DATASET
    Regards
    Kiran Sure

  • Execution of report with dynamic selection in method

    Dear Experts,
    I need to execute report 'RCATS_APPROVE_ACTIVITIES' in background in the method after populating field-'Processing status'. Also there is a option of dynamic selections for this report in menu bar. In Dynamic selections, there is a field - 'CREATED BY' which also i want to populate before execution.
    Here I am able to populate field- 'Processing status' like code below:-
    DATA: rspar    TYPE STANDARD TABLE OF rsparams,
         wa_rspar TYPE rsparams.
    wa_rspar-selname = 'LDBSTAT'.
    wa_rspar-kind = 'S'.
    wa_rspar-option = 'EQ'.
    wa_rspar-sign = 'I'.
    wa_rspar-low = '10'.
    APPEND wa_rspar TO rspar.
    CLEAR wa_rspar.
    SUBMIT RCATS_APPROVE_ACTIVITIES
         USING SELECTION-SCREEN 1000
        WITH SELECTION-TABLE rspar
    But I am not able to populate the dynamic selection field- CREATED BY.
    Please suggest(if possible with code) how to resolve this.
    Regards
    Nitin

    Dear KArri,
    Thanks for the reply but this i am performing in the Method of BO and want to execute this method in my workflow. That is the reason, I have posted this in workflow forums.
    For this I have created a customised BO to use in CATS workflow.
    Regards
    Nitin

  • Execution of Reports phase error during SAP EHP4 upgrade with EHPi

    I started getting an error message in the "Execution of reports after put" phase
    (within the Downtime phase) during the SAP EHP4 upgrade with Enhancement
    Package Installer.
    ***** LIST OF ERRORS
    AND RETURN CODES *****
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~XPRA ERRORS and RETURN CODE in SAPRB70104.OPQ
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1AETR012XProgram terminated (job: "RDDEXECL", no.: "09064300") Long
    text: Cause Program "&V#&", which was started in the background, was
    terminated abnormally. System Response The system created a job log for
    the terminated program. What to do Proceed as follows: Log onto the
    system in which the program was executed. The system is specified at the
    beginning of the transport log. Then call transaction SM37 to display the
    job log. Enter "&V#&" as job name and "DDIC" as user name. Restrict the
    starting date to the starting date specified in the transport log. For
    the other selection criteria, select only jobs with the status
    "cancelled". Then press <LS>Execute</>. A list of the jobs satisfying the
    selection criteria is displayed. You can display the log by pressing
    <LS>Job log</>. If the list contains several jobs, you can select the job
    with the ID " &V#&" with <LS>Display</> -> <LS>Job details</> or define
    further details for the selection criteria in the initial screen of
    transaction SM37. If the ABAP processor reports cancellation,
    double-clicking on the corresponding message in the job log branches to
    the display of the corresponding short dump. 1AEPU320 See job
    log"RDDEXECL""09064300""OPQ" 1 ETP111 exit code : "12" >>> PLEASE READTHE REPORT DOCUMENTATION OF THE REPORTS MENTIONED ABOVE <<< XPRAs are
    application reports that run at the end of an upgrade.
    Most XPRA reportshave a report documentation that explains what the report does and how
    errors can be corrected. Call transaction se38 in the SAP system, enter
    the report name, select 'Documentation' and click the 'Display' button.
    >>> The problematic XPRAs are mentioned in messages of type PU132 above
    <<<
    I tried to follow the instructions in note 1269960, but the enhancement spot
    CLASSIFICATION_TOOL was already active. I activated it again and reran the phase
    but got the same error. Also, I couldn't implement the note using SNOTE because it is
    the middle of the upgrade process.
    I also found the following long text in ST22
    "Internal error during syntax check: ("//bas/710_REL/src/krn/gen/scsymb.c#11"
    Processing had to be terminated because an internal error
    occurred when generating the ABAP/4 program
    "CL_CLS_BADI_CHARACTERIZATION==CP".
    The internal system error cannot be fixed by ABAP means only."
    I am on a 64 bit System with CentOS Linux. 8 GB RAM, 250 GB HD with 20 GB free space.
    So far, I could not find any information on this. Any help would be greatly appreciated!
    Thanks,
    Victor

    Hi Victor,
    Go to SM37 and put in the username as DDIC and see the job log.
    Also check  Sm50 and see whether you have BTC processes available.
    Last but not the least check your filesystem space  usage too.
    Gerard

  • Running a Dynpro-based Report as a Job/in Background mode

    Hello,
    i've got a report which hasn't got a selection-screen as its startscreen, but a complex dynpro and is based on different start-buttons and not only the "basic" F8/Run-Button. the users still would like to be able to run the report in background mode and as an automated weekly job. moreover they want to use their own configuration/variant for date-fields etc., just like they are used from a selection-screen. is this possible "out of the box" with a dynpro-based report or how can i archive this through my own programming logic?
    thanks for your help,
    dsp

    Hi,
    I guess yes, but since you seem to have several processes possible at startup (those buttons), you will have to code a new bit of code at the start of your application. This to choose the correct process... you should have a new statement like
    IF sy-batch IS NOT INITIAL.
         "Perform batch process
    ELSE.
         "Perform normal run
    ENDIF.
    For the variant, I'm not sure to really get the idea... Do the users already use variants with the actual version? or is there no selection screen at all? If not, you should use one and set-up parameters to pre-fill your dynpro fields...
    Kr,
    Manu

  • Background processing of S_ALR_87013558 report with output in txt file

    Dear Friend's,
    Here I have a requirement of, to execute standard report S_ALR_87013558 (Budget/Actual/Commitment/Rem Plan/Assigned) in background processing mode. Here we have to run this report in background on daily basis at a particular given time.
    Once this report gets executed in background, output of this report should get converted automatically into txt file and this converted txt file must be downloaded in a respective folder automatically by giving desired path.
    After completion of this process, downloaded txt file they have to use for internal MIS reporting purpose.
    Is this possible via standard PS or else I have to go for the development.Please suggest, what should be the approach?
    Regards,
    Sandeep

    Hi Sandeep,
    Check if you can create batch job to run for S_ALR_87013558 using SM36
    The Program name is GP8YTY7TBR1TYRPCIPKAC6X9GZG
    Please check with ABAP.
    Regards,
    Nitin

  • Execution of report in background and foreground

    Hi all,
    I have a report in which i have two radio buttons on selection screen.
    1, Foreground
    2. background
    could you please tell how to do foreground and background execution of report depends on user selection.if you could send some sample code its really helpful.
    thanks

    If the Background radio button is selected the you need to use the SUBMIT command to submit your program in background.
    Example
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately providing the user has the relevant authorization.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Cheers
    VJ
    Message was edited by:
            Vijayendra  Rao

  • Report with BDC not displaying success message when run in Background

    I am running a  BDC report in Background mode.The below statement  is not capturing the Success message when a document is posted.But when I am running the same in ForeGround mode it is capturing and is displayed in the output.Can anyone please help me in understanding why this is happening and how can I resolve this.
    CALL TRANSACTION 'MB1C' USING bdcdata MODE mode UPDATE 'S'
         MESSAGES INTO messtab.

    Hi Madhu,
    I think your BDC didnt generated any document when you run it in 'N' screen mode.
    Debug your program when you run it in background
    Goto Tcode :SM37
    Select the job ( march checkbox )
    ==> in command prompt enter 'JDBG'
    ==> Then you can start reexecting the job .
    You can check the sucess messages accordingly in debug mode
    Also add a read statement on messtab for msgtype = 'S'.
    Thanks
    Bhanu

  • Background execution of report

    With same output device and format (X_65_512/2)
    , the report when executed in background , the spool output is fine, in development server. However as I  do the same in quality server, the last few columns are chopped off(not displayed)
    what can be the likely reason?

    Hi,
    is the list ALV? any layout active but not transported latest version?
    ... just  o n e  possibility.
    Regards,
    Clemens

  • Using a report layout in background mode

    Is is possible to apply a saved report layout like you apply to the alv grid to a csv file run in background mode?

    Hi Cynthia ,
    I can figure out one way :
    SUBMIT ZREPORT TO SAP-SPOOL LAYOUT 'ZLAYOUT'
    VIA SELECTION-SCREEN
    DESTINATION 'locl'
    KEEP IN SPOOL 'X'
    IMMEDIATELY 'X'
    WITHOUT SPOOL DYNPRO
    AND RETURN.
    This will return the report in your layout to the spool and can be downloaded as well.
    Thanks
    Naresh

  • Background processing for ABAP report with selection screen

    Hi ABAP Gurus,
    I m facing a strange problem in scheduling a background job for my report with a selection screen. I have a variant for the report.
    I scheduled a job, but it seems to be not doing anything though all the system resources are available. The job overview shows "Acive" for the job. The job is neither stopping anything, it is just sitting there In SM50, the status shows "On Hold".
    Any ideas/comments on the problem and how this can be overcome?
    Qucik replies and solutions will be highly appreciated as this is a crucial part for a go-live project.
    Thanks in advance.
    Shivani.

    Yes. My report has a selection-screen which requires user input. But I have created  a variant for the report and trying to run it in background using this variant. But facing this problem.
    Strange thing is, instead of the usual SM36/SM37 option where we schedule and monitor background jobs, this option does not work for my report.
    But I tried through SE38, and from my selection screen I selected "Schedule background job" and "run immediately" option, and this works. Though I still use SM37 to monitor this background job.
    I have never faced such a situation before.
    Any hints/tips why this happens and how this can be overcome in the future?
    Thanks in advance.
    Shivani.

  • Oracle Reports - Unable to generate report with colored image in bitmap mod

    Hi,
    I am using Oracle reports 6i.
    I am generating a post script[.ps] file using bitmap mode.
    The layout contains an image. The image is stored in oracle database which is colored image.
    But when the report is generated same is being generated with gray color.
    Could any one advise on resolving this issue? The objective is to generate the report with colored image and not gray or black&white

    What kind of images do you have? Reports only supports a few formats, e.g. JFIF. So, if you have JPG images with EXIF meta information in the header, you have to remove those first.
    when the report is generated same is being generated with gray color.What happens if you sent the output directly to the printer?
    And what happens if you create a PDF file instead of Postscript?

  • Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode.

    Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.

    I rewrote code for debugging purpose and tried to catch error using GetLastError();  method,
    but it only printed 0. Below is code snippet; I think Create() throw an exception
    and code goes to catch block. 
    LONG ConnectTS(CString strIP, UINT n_Port)
    try{
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
    // Exception Line
    n_Err = GetLastError();
    return NET_INIT;
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image
    System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Output: -
    ConnectTS is calling Create [is going to call]
    Image System
    0

  • BO fails to display cloned reports with DATE_TIME data in View mode

    Problem: We create a table using Rebean API. The table contains cells displaying DATE_TIME data (Detail). The cellu2019s formula is correct and the Applet shows the data alright. But when in view mode, there stand u201CINPUT_DATE_TIMEu201D text. If we open the report in the Applet and just click the cellu2019s formula without changing anything, the report starts to draw itself properly in view mode too.
    We have to manually touch cloned reports with DATE_TIME values.  Didn't find anything same in the search..
    Can anyone help with this problem?
    Great thanks,
    Oleg

    Hi Oleg,
    It may help if you post the code that you are using to create the block (table) with the DATE_TIME data.
    Please include the code from when you open/create the WebI document up to the point when you save the WebI document.
    Regards,
    Dan

  • Running Crystal Reports in background mode

    Ist there any way to run Crystal Reports against R/3 (ECC) in background mode instead of as a dialog user? We're having timeout issues since the dialog timeout is set to 30 minutes. We have several reports that run quite a bit longer than that.
    Update: I just answered my own question. Pages 58-59 of the install and configuration guide shows you how to do this.
    Edited by: Mike Garrett on Jan 22, 2009 4:57 PM
    Edited by: Mike Garrett on Jan 22, 2009 8:41 PM

    Hi,
    SIA should be all you need because it is starting the other processes as well. Keep in mind that if you do that that most likely all you reports will run in batch mode (also those called on demand.)
    Ingo

Maybe you are looking for

  • PSE9 - how to create photo calendar portrait A4

    How do I create a photo calendar orientated in portrait A4 rather than the available landscape orientation? I have Photoshop Elemenst 9. Thanks!

  • HTLM Tag Injection - Cross Site Scripting

    Hello, I have a basic app with JSP pages and Servelts running on Tomcat. I been told my application in vulnerable to tag injection that could be used to cross site scripting & phishing attacks. What is the best way to prevent these kind of attacks? I

  • Creating a forms program listing

    Is there a way to generate a listing of the code just for triggers and program units? I've tried File=>Administration=>Object List Report but it creates much more than I am looking for. I am also looking for a way to create a cross reference of the f

  • PCS PMA 1000Base-X Stuck in Reset

    We are trying to get some initial testing done with our Artix 7 15T using the 1000Base-X component.  We instantiated the PCS PMA in 1000Base-X mode using the GMII interface with the shared logic integrated into the component.  We have configured an M

  • FM to get transaction number based on product

    Hi, Do we have any FM to get all the transction number which are using the product?