ABAP Report to restart queues automatically

Hello,
We are facing the issue of needing to restart the smq1,smq2 and trfc queues to restart messages failed in PI. We really appreciate if anyone could provide us with an ABAP program which restarts these failed messages automatically. We wanted to know if anyone has implemented a solution to deal with this issue.
Thanks.
Kiran

Hi Kiran,
     As per as my knowledge, When ever queues are struck in SMQ1& SMQ2 , first we need to check the error, the error its shows the queues (or) any particular message is failed in queue, the remaining messages(processing after error message queue) are also in struck in queue.
In this time first u need to check the error and depends upon the priority of the message is important we will wait for some time (or) prirority is low first u delete the particular error queue and processing the remaining messages.
for this particular error queue we can process again in SXI_MONITOR,in SXI_monitor we check the particular error queue and select the 'Restart' option, again the message is processing.
Regards,
Sateesh n

Similar Messages

  • How to genarate performance monitoring report in SAP PI automatically

    Dear All,
    I have a requirement where I need to automatically generate a report of monthly data of Performance monitoring in SAP PI  and send it to business users.
    As per my understanding, this can be achieved by pulling the data every month from the tables where these data of Performance monitoring is maintained internally within SAP PI.
    Please provide me inputs as which table stores these data/ and solutions to acheive this.
    Thanks
    Azahar

    Refer below links .. You can write abap report to make it happen
    Re: Get count of the messages to particular Interface in a day and send email
    /people/gourav.khare2/blog/2007/12/12/interesting-abap-tables-in-xi-150-part-i
    http://wiki.sdn.sap.com/wiki/display/XI/UsefulABAPtablesinSAP+XI

  • Display jpeg in abap report

    Hi,
    I would like to display a jpeg image in the initial screen of an abap report. I already have an image uploaded to SAP using the transaction SMW0 and I've also learnt from other threads in the SDN that I can refer to the sample program SAP_PICTURE_DEMO for reference.
    However, I would like to have the picture to occupy the entire SAP window and would like the picture to resize automatically when the sap gui window is resized. Would anyone of you be kind enough to let me know if there are ways to do it.
    Thanks,
    Francis

    Hi,
    Please follow the links below
    Re: Bar Code  Generation in ABAP Report
    Create Barcode in ABAP : conversion to PDF
    also chk the link below, It also gives info about barcodes..
    http://www.mecsw.com/info/appnote/app_024.html
    hope it helps
    Regards,
    Manish

  • Use of foreign key check in ABAP reports

    Hi,
    I'm trying to understand if it's possible to use a foreign key integrity check in an ABAP reports. I have understood that this kind of check is deactivated for performance reasons, is it right?
    In this case I'd like to know if it is possible to activate the foreign key check "on demand", or just for a particular table.
    As an example, I'd like to use the foreign key defined on attribute AKONT of table KNB1, that points on the related attribute of table SKB1.
    Thanks,
    Gabriele

    Welcome on SCN!
    I'm trying to understand if it's possible to use a foreign key integrity check in an ABAP reports. I have understood that this kind of check is deactivated for performance reasons, is it right?
    Most likely yes. Integrity is turned OFF for Open SQL statements but is turned ON for screen fields.
    If you just create screen parameter like
    parameters pa_akont type knb1-akont.
    ...then input help for that field will be automatically provided. This means that you will not be able to pick or enter value different that this allowed from SKB1 table (foreign key relationship will be checked).
    You can explicitly assign different input help or search help for certain screen field independently of type it is refering i.e by means of fm F4IF_FIELD_VALUE_REQUEST .
    This however still relates only to screen fields, not fields used directly in ABAP statement.
    Regards
    Marcin

  • Save a attachment file in the shared folder of receiver using ABAP report

    Hi all
    Is it possible to save an attachment file in the folder of receiver's desktop using ABAP report?
    I am using the standard mail sending code to mail the excel file as an attachment.
    Consumer wants that file to be stored automatically in the folder of a shared drive he is using.
    Is it possible?

    You can do that via class CL_GUI_FRONTEND_SERVICES method gui_download. But this is not working in background. Reports running in background cant reach presentation servers.
    If you have XI/PI in place you can set up a scenario for that.

  • Running ABAP Report in background

    Hello,
    I am getting timed out error when I execute my report program.
    I believd running the report can do it for now.
    Can you please tell me detils on  how I should proceed on dev, qa and production environment.
    Regards,
    Sameer.

    Hello Sameer,
    You need to schedule the ABAP program in SM36 transaction.
    Following are the steps:
    1. Fill general data like Job Name, Job class and click on step button from application menu
    2. Fill ABAP program details on this screen like ABAP Report Name, Variant Name (If any) and save it.
    3. Go to SM37 transaction (Background Job monitor)
    4. On initial screen newly created job will be filtered by user name or using job name.
    5. it will be listed in job queue with Scheduled status.
    6. Select the Job from listing and click on Release button from application toolbar
    7. depending on your requirement you can release job immediately and it will start running as an when background wp is allocated to this job.
    8. Or else you can schedule it with some frequency using other options like Date/Time, or using other events to trigger it.
    Check if this can help.
    Thanks,
    Augustin.

  • ABAP Report WRITE, how to ouptut long lines without additional formatting?

    I am developing a program, which dumps objects as XML and I need to create one big XML file at the end. I would like to start it as a background job and get this XML as spooled output at the end. The problem is that the XMLs come from CALL TRANSFORMATION as one big string without any CR LF and in the report spooled output there are additional "formatting" like header, pages etc.:
    #COL0N#COL0H07.12.09 Programm EHFND_GENERATE_BO_DOCU                                       1
    #<bopf_bo><item><KEY>gB4L/AeoHd6tl1YoR5AdIg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
    #<bopf_bo><item><KEY>gB4L/AeoHd6tl2lLeQUKOQ==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
    #<bopf_bo><item><KEY>gB4L/AeoHd6tmEQlByTUEg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
    #<bopf_bo><item><KEY>gB4L/AeoHd6xjRciawUXeQ==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
    #<bopf_bo><item><KEY>gB4L/AeoHe6t31MGbgZYFg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
    P
    |#COL0N#COL0H07.12.09 Programm EHFND_GENERATE_BO_DOCU                                       2
    |#######################################################################################
    |#<bopf_bo><item><KEY>gCFaXDIYHe60jgYnuB9agQ==</KEY><PARENT_KEY/><ROOT_KEY>gCFaXD
    Is it possble to make the WRITE statement automatically insert CR LF so I do not loose the XML data and also do not output
    any additional symbols? My purpose is to get clean XML data at the end, which can be e.g. directly loaded into explorer.
    I already have a solution which fills a DB table with all XMLs and finaly I create the file with cl_gui_frontend_services=>gui_download but I would like to have a simplier solution using only the abap report output.
    Edited by: Rob Burbank on Dec 8, 2009 10:56 AM

    Better option would be writing this XML string to File on the application server using OPEN DATASET ... TRANSFER .... CLOSE DATASET. You can give the provision in the same program to download this application server file to Presentation.
    Regards,
    Naimesh Patel

  • How so we schedule a reports server restart

    We want to schedule a reports server restart each night that is scheduled in windows. Does anyone know the command to do this?
    The reason we want to do this is because our RDF reports often error out and a simple restart of the reports server solves the issue. Has anyone else encountered this issue and if so how did you get round it?

    Hi
    This is really a reports question. You can auto schedule with the queue manager to run reports on the 27th of the month in background, or have a batch script to initiate them or write a new report that initiates each ot the reports so that it can be user initiated
    Brian

  • ABAP REPORT pgm

    Hi Experts,
    I am Deethya, i am new in ABAP .so now i am doing one ABAP Report object can anyone help me how to write ABAP REPORT, here i attached my requrirement plz give me some suggestion i will give good points because this is my first program.
    Step 1:
    Selection screen : Document Number ( Multiple Selection)
    Step 2:
    Select all lines from EKKO where ( BSART = ZFR or BSART = ZPA).Check document number if it was filling in selection screen
    Step 3:
    Select the first line from EKPO where EBELN = EKKO – EBELN and
    EKPO – EPELP = ‘0010’
    Step 4:
    EKPO – LOEKZ is initial?
    IF YES go to STEP 5
    IF NO go to STEP 2
    Step 5:
    Select STPRS from MBEW where MATNR = EKPO – MATNR and
    BWKEY = EKPO – WERKS.
    Step 6:
    Call function Z_BAPI_PO_CHANGE and the informed parameters are
    Purchaseorder = EKKO – EBELN,
    POITEM – po_item = EKPO – EBELP,
    POITEM – net_price = MBEW – STPRS,
    POITEMX – po_item = EKPO – EBELP,
    POITEMX – net_price = ‘X’
    Step 7:
    This function will fill in the return table
    Step 8:
    Is there message type = E?
    IF YES go to STEP 9
    IF NO go to STEP 10
    Step 9:
    Create Log with following message :
    Contract Number : EKKO-NUMBER : XXXX
    Message : return-message ( this one we want to see in SM36)
    Step 10:
    Finish File
    IF NO go to STEP 2
    thanks and regards,
    deethya

    Hi,
    Code is almost there in the given requirement itself. Any way have a look at the pseudo code.
    data: i_ekko type standard table of ekko,
            i_ekpo type standard table of ekpo.
    data: w_ekko type ekko,
            w_ekpo type ekpo.
    data: v_stprs like mbew-stprs.
    Select-options: s_vbeln for ekko-ebeln.
    select * from EKKO into table i_ekko where ebeln in s_vbeln and ( BSART = 'ZFR' or BSART = 'ZPA' ).
    if sy-subrc = 0.
      select * from ekpo into table i_ekpo for all entries in i_ekko where ebeln = i_ekko-ebeln and epelp = '0010'.
    if sy-subrc = 0.
    loop at i_ekpo into w_ekpo.
    if wa_ekpo-loekz is initial.
    clear v_stprs.
    Select STPRS from MBEW into v_stprs up to 1 rows where MATNR = EKPO – MATNR and BWKEY = EKPO – WERKS.
    endselect.
    if sy-subrc = 0.
    * the function module u have provided is a 'Z' Function module. So, check the
    * parameters and call the FM with appropriate records.
    * After calling the function module, read the RETURN parameter with TYPE = 'E'.
    If sy-subrc = 0.
    * Write the log in appropriate format using WRITE statement
    * if the program executes in background then the output will go to SM36 automatically.
    endif.
    endif.
    else.
    endif.
    clear: w_ekpo.
    endloop.
    endif.
    endif.
    Hope this helps.
    Regards,
    Phani.

  • Regarding SET TITLEBAR in normal ABAP report

    Hi All,
        I  wnat to know the  use of SET TITLEBAR command in ABAP report . i have searched the forum but i am not find any sutable answers.
    for what purpose we  use the SET TITLEBAR in normal ABAP report.
    Regards
    CB

    SET TITLEBAR - Liste
    Syntax
    SET TITLEBAR title [OF PROGRAM prog]
                       [WITH text1 ... text9].
    Extras:
    1. ... OF PROGRAM prog
    2. ... WITH text1 ... text9
    Effect
    During list processing, this statement sets the GUI title, specified in title, for the display window of the current list level and all following list levels up to the next statement SET TITLEBAR. The statement has - for the most part - the same syntax and semantics as for screens.
    In contrast to the screens of dynpros, each list level automatically remains linked to the title set for it. When you return from the display of a higher list level to the display of a lower list level, the latter is displayed with the title that was set for it.
    Check the HELP file of SAP before posting your queries.

  • Convert abap reports into crystal reports

    Hi,
    We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
    Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
    Can you please guide us whether it is possible and if yes how should we go about it?
    regards,
    shital

    Hi, i suggest, 2 technies to do this, the first one, you can use,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        APPLICATION            = 'C:\Program Files\crystalreports.exe'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    where, exe file could be, a crviewer.exe, and, use a parameters  ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on  a repository, this way, rpt file, when launched, displaying file.
    the second choice, could be,  go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
    i hope so that my answers help you.
    greetings.

  • CALLING BUSINESS OBJECT FROM AN ABAP REPORT

    Hi friends,
               I have a business object to which a Custom Function Module is assigned in one of its method.This Function Module calls a Bapi to update a Service Order.I need to capture the status of Idocs regarding success or failure from the function Module in the ABAP Report.I would like to know if there is any way to call this business object from my report and get the status of IDOC.
    Regards,
    Dev Reddy

    sorry I think i was not clear in explaining .I am calling a BAPI to update 'Priority' field of service orders in a custom function module(remote enabled) and I have assigned this bapi to a custom business object. Also I have developed an ALE interface thru BDBG transaction which automatically generates custom basic idoc type,messsage type ,Ale i/b and o/b function modules.
    Actually my requirement deals with a report where we have list of service orders in an internal table and pass each service order to update Priority field.
    Is there any way to create an IDOC from the report and update the priority field and pass back the status of IDOC.
    I have tried calling ALE O/B function function module generated thru BDBG transaction in my report but as a result i am unable to get any of the message whether idoc is created or not.
    Here is my report code.
    data: it_methods type table of BAPI_ALM_ORDER_METHOD with header line,
          it_header type table of BAPI_ALM_ORDER_HEADERS_I with header line,
          it_header_up type table of BAPI_ALM_ORDER_HEADERS_UP with header line,
          RECEIVERS TYPE TABLE OF BDI_LOGSYS WITH HEADER LINE.
    T_METHODS-REFNUMBER = '000001'.
    IT_METHODS-OBJECTTYPE = 'HEADER'.
    IT_METHODS-METHOD = 'CHANGE'.
    IT_METHODS-OBJECTKEY = '000004000768'.
    APPEND IT_METHODS.
    CLEAR IT_METHODS.
    IT_METHODS-REFNUMBER = '000000'.
    IT_METHODS-METHOD = 'SAVE'.
    APPEND IT_METHODS.
    IT_HEADER-ORDERID = '000004000768'.
    IT_HEADER-PRIORITY = '2'.
    APPEND IT_HEADER.
    IT_HEADER_UP-ORDERID = '000004000768'.
    IT_HEADER_UP-PRIORITY = 'X'.
    APPEND IT_HEADER_UP.
    CALL FUNCTION 'ZZ_FM_SM_ORD_PRIOR_UPDATE'
    EXPORTING
       OBJ_TYPE                      = 'ZBOSMPRUPD'
       SERIAL_ID                     = '0'
      TABLES
        ITMETHODS                     = IT_METHODS
        ITHEADER                      = IT_HEADER
        ITHEADERUP                    = IT_HEADER_UP
        RECEIVERS                     = RECEIVERS
      COMMUNICATION_DOCUMENTS       =
      APPLICATION_OBJECTS           =
    EXCEPTIONS
       ERROR_CREATING_IDOCS          = 1
       OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks,
    Dev Reddy

  • Execution of abap reports

    Hi Everyone,
    Can anyone please provide me some tutorial on execution of Reports using TCD mode or SAPgui.
    it would be fine if i get only steps also.
    Also please let me know how and when to GETGUI.since i get the following error
    Check Whether the Requested Session Is Open and Whether Scripting Is Activated in the RequesteD
    SYSTEM.
    I have checked scripting is enabled in customize local layout
    Thanks in advance,
    best regards,
    Priya
    Edited by: Priya_Agarwal121986 on May 13, 2009 6:39 AM

    Hello,
    You can automate the reports using the transaction SE38.
    Create the script and in the pattern select the TCD RECORD mode and start the transaction SE38 , enter the code and run as you do manually.
    Once the recording is done , parameterize all the input fields and also if the running of ABAP report changes any table check the table if the values are updated.
    If not record the whole process in SAPGUI and use getgui to capture the values in the output and compare the values with your expected values.
    Hope it answers your question.
    Thanks & Best regards,
    Ajau

  • Sender/receiever assignment to abap report

    Hi guys,
    I have a query  which has assigned to user. now the requirement is we should merge these report with ecc abap report  and  Make sure when the query jumps to ECC, the logged on user id should be of the user.
    can anyone suggest me.

    Hi,
    If the user has access to the ECC ABAP report, the automatically the User Login Id should be populated in Logon screen.
    Regards,
    Suman

  • Report Error Through Queue Manager

    I have several reports that I have created over time. They are all currently set to run dynamically on the intranet.
    Now I am trying to setup reports that run automatically through the Queue Manger to generate html files. For some reason I end up with the following error ONLY when I try to run the reports through the Queue Manger:
    REP-1211: Object 'Body' is larger than its enclosing object 'SUB_COST_UNIT'.
    It doesn't matter what report I run. I get this object 'body' error on all my reports for various enclosing objects, but only when I use the Queue Manger. Does have ideas why I would be getting this? I'm thinking I just haven't set the job up correctly.

    What's the command you send from queue manager? Normally, it doesn't matter where you send the job request. You should see the error message from queue manager or from rwcli60 (in 6i) or rwclient (in 9i). You need double check the report name, where the report resides and see if the reports engine pick the right report (from REPORTS_PATH for 9i or REPORTS60_PATH for 6i).
    Apparently, report does matter in your case because the error message contains object name 'SUB_COST_UNIT'. Not every report contains that named object.
    Thanks,
    -Shaun

Maybe you are looking for