Capture message after SUBMIT report

I have called submit report like below in  RFC function module .
submit rfitemap
              with kd_lifnr in r_it_lifnr
              with x_apar   eq abap_true
              with x_merk   eq abap_true
              with x_norm   eq abap_true
              with x_opsel  eq abap_true
              with x_park   eq abap_true
              with x_shbv   eq abap_true
              exporting list to memory and return.
how to capture  or skip  error or information populated by submit program ?
As the function module is a RFC function module, the FM is called from some SMDL program  .  Once the program executes  submit statement
is giving system failure exception and giving message like 'No connection with development system'.
Instead of giving messages populated in return table ,the SMDL program returns "NO connection"  message.
How to display the message from return table ?

Hello Kachana,
You can try like mentioned in the below thread with JOB OPEN, submit your program, JOB CLOSE and read the job log to get the messages raised during the submit program.
How do I capture error/information messages and Output of a report using SUMBIT statement, when called in a function mod…
Regards,
TP

Similar Messages

  • Message after submit report

    Hello all,
    I have a program that submits a report. This report sends the output to the spool. When the process executes the submit command I get the following message:
    Spool request (number &) created without immediate output.
    I need the spool request number for further processing. Does anybody know how to get the message and the spool request number at runtime? Kind of like the messages we get with a call transaction into the message table. By the way, the message is NOT available in the system structure SY(SYST).

    Here is what I've done in the past. 
    1) in the submitted program,  export the sy-spono to a memory id.  This should be the very last statement of the program.
    2) in the calling program,  after the SUBMIT statment, import the spool number into memory id.
    3) do what ever you need to do with the sy-spono.
    Regards,
    Rich Heilman

  • Getting the messages after SUBMIT report

    Hi,
    I have a requirement, wherein I'll SUBMIT a report(Report A) through a background job. I also have a custom table, which will have the job information (JOBNAME, JOBCOUNT).
    Now, I want to have a separate control report(Report B) which will read the custom table for the job information and will output the results of the report A submitted through the job. How can this be achieved?
    Also Is there any way, through which I can get the messages raised by the report A using the job information in report B?
    Thanks in advance.
    Sujit.

    Hi,
    I have a requirement, wherein I'll SUBMIT a report(Report A) through a background job. I also have a custom table, which will have the job information (JOBNAME, JOBCOUNT).
    Now, I want to have a separate control report(Report B) which will read the custom table for the job information and will output the results of the report A submitted through the job. How can this be achieved?
    Also Is there any way, through which I can get the messages raised by the report A using the job information in report B?
    Thanks in advance.
    Sujit.

  • Skip Error message in submit report

    Hello Gurus,
    I am using SUBMIT <REPORT> command inside a loop of my calling report. For one record the SUBMIT <report> is throwing an eror message due to which my report is getting stopped by displaying the error message.
    My requirement is to skip the record if there is any error in SUBMIT <report> and process rest of the records.
    Please help me out.

    Hi,
    Vasanth's idea regarding doing a CALL FUNCTION IN BACKGRUOND TASK does work, unless you need to get back some information from the SUBMIT, as export parameters can't be set when using IN BACKGRUOND TASK.
    As i need to get data from the SUBMIT, i'll keep looking for other alternatives, so other ideas are still welcome...
    Regards,
    mr.
    Hi Manuel,
    Try calling report in background task like below:
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            jobname          = c_name                    "this name can be any name defined in constants(you do not have to create a job name anywhere in system or SM36)
          IMPORTING
            jobcount         = w_number
          EXCEPTIONS
            cant_create_job  = 1
            invalid_job_data = 2
            jobname_missing  = 3
            OTHERS           = 4.
    *" Job opened successfully
        IF sy-subrc EQ c_0.
    *" Call program to process IDoc
          SUBMIT ZSubmit WITH <any value>                                                      " e.g. p_field1 EQ <value>
                          VIA JOB c_name NUMBER w_number
                          AND RETURN.
    [Note: In ZSubmit report you can send the data to calling program through ABAP memory i.e. Use EXPORT parameter to export data
    Ex: constants: c_memory(7) type c value 'MEMORY1'.
    At the end of ZSubmit report, before returning to the calling program write below statement:
    EXPORT i_message TO MEMORY ID c_memory1.]
    *" Successful processing of IDoc
          IF sy-subrc EQ c_0.
    "Here you can import data from ZSubmit report
    import i_message from memory id c_memory1.
    After retrieving the data, free the memory otherwise it will affect the performance of your report:
    Free memory id c_memory1.
    *" Close the job
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                jobcount             = w_number
                jobname              = c_name
                strtimmed            = c_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.
    ENDIF.
    ENDIF.
    Hope this helps!
    Regards,
    Saba

  • Prompt "Thank you" message after submit

    Hi folks,
    I would like to prompt the user with the "Thank you for submitting your information to us" message after the form has been submitted appropriately to the server.
    1. I don't have PostSubmit event, how can I do it without
    2. I also want to make sure that the form processing in the server-side was OK, how can I send back to the form some flag that say it that the server did it's job good or not.
    Actually I want to do it as a transaction.
    Any idea?
    Thank you,
    Yair Nevet

    You can return a reply from the server after it recieves the submission (no different than a web page). Typically you will send it back as soon as the data is recieved on the server, that way the user can move on if there are any problems with processing. You can wait until after the transaction runs but if there are any issues with the transaction (think hanging or system not  responding) then the user gets no feedback at all. Most people will send back a message indicating that the server recieved the transmission and will use a different means of communication for exception handling (think email).
    Just my 2 cents worth.
    Paul

  • How to change action message after submit

    Please advise.
    I'm new to APEX and Oracle for that matter. I've got a form that is being displayed with no data after pressing a <CREATE> button from interactive report(Page 1).
    I fill in the data and when I press <Save Changes> button from Page 2, internally the data is processed on insert and a trigger assigns a new Serial Number. When the screen branches back to same page, all data keyed goes away and is ready for my next add. However, what I would like is to be able to show the new serial number in the action message which defaults to "Action Processed". I'd like to be able to post the serial number followed by "added successfully".
    The item on the screen is P2_SERIALNUMBER and the database column is SERIALNUMBER. The serial number is created by a trigger, therefore the P2_SERIALNUMBER is just a disabled text fiield saving state.
    in the submit process, I tried setting an alert script where the current default message("Action processed") is, referencing the P2_SERIALNUMBER item but I don't think the new serial number generated from the trigger is populating the item.

    Thanks for the expeditious reply Matt.
    Apparently, did not work. I have a dozen or so fields for update on this page(2). There is an autonumber PK called PROBLEMID(hidden on form as item P2_PROBLEMID). The field I want displayed in the action message is P2_SERIALNUMBER. I tried returning the value to a secondary key on the ARP screen and tried using the message you gave me, but upon pressing <Submit Changes> button it just echoed back the message you gave me literally with no data substitution for the argument &P2_SERIALNUMBER. I also tried an alert statement in the message field using <script>alert(html_getElement('P2_SERIALNUMBER').value + " added successfully")</script>. What I got back after pressing the <Submit Changes> button is an alert message that said "false added successfully". So I don't know if the code is wrong or that nothing is getting sent back to item P2_SERIALNUMBER(defined as text field with state) and therefore returned it "false". Any more ideas would be gladly appreciated.

  • Passing Messages after Submit in Input Schedules

    All,
    I have a scenario where I would like to send messages to the user after they submit data from Input Schedule. This is very similiar to how we receive error messages when we submit entries to a parent node. My scenario is this: When users submit data, I always write data to a particular version and run thru from BADI logic for validations. If it passes the validation, I move the data to a final version or else, I would like to display the messages due to which the data is not posted to final version. Currently, I have a BADI written in default logic. Whenever I write messages to ET_MESSAGES, it appends it to the log and I do not see it on the screen. I tried raise exception using CX_UJR_EXCEPTION, but the text id is 32 characters so it displays only the first error message. In my case, if I reject 10 entries, I would like to provide info on all these 10 entries.
    Ideally, I would like to write entries similiar to ET_ERROR_RECORDS (table) in UJR_WRITE_BACK but I do not see a similiar logic for UJ_CUSTOM_LOGIC. Has anyone done this before? Any input is appreciated.
    Thanks in advance.

    This is because excel still stores the values internally in the original format. It just formats the data for the display. So you need to enter the data value correctly in the cells.
    The other alternate would be to have the numbers sent from another evdre where number are multiplied by 1000 from the input cells.
    Hope this helps.
    Badrish

  • To capture messages after CALL Transactiom

    Hi all,
    I am doing call transaction for IM32,CJ30 and IM52.But iam unable to capture the messages.
    when we enter a wrong budget values then it throws a error message saying 'Errors found-> see error log'(The same is present in BDCMSGCOLL). But we need the errors present in the error log not the error which mentioned above.
    So is there any possible way to catch those errors. Please help as early as possible.
    Thanks
    sagar.

    hi ,
    use the function module FORMAT_MESSAGE
    like this,
    CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
               id        = tb_msgtab-msgid
               lang      = sy-langu
               no        = tb_msgtab-msgnr
               v1        = tb_msgtab-msgv1
               v2        = tb_msgtab-msgv2
               v3        = tb_msgtab-msgv3
               v4        = tb_msgtab-msgv4
          IMPORTING
               msg       = tb_messages-message
          EXCEPTIONS
               not_found = 1
               OTHERS    = 2.
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 13, 2008 10:29 AM

  • Getting spool number after SUBMIT report statement

    Hello Everyone,
    Suppose there is a scenario, when 3 users are sharing same session and executing a program simultaneously.
    In the program, the users are submitting a program to sap spool such that a spool no is generated.
    and based on that spool no, the users read its log...
    How will we identify that which spool no belongs to which particular session so that the the user will read its own loag and not the other person/'s log...

    Hi,
    The program can be submitted as a job which has a unique job number and accordingly spool number will be generated which can read.
    See code e.g below:
    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.
    Hope it helps.
    Regards,
    Mansi.

  • Never ending "unknown time remaining"  message after submit

    Has anyone reached a satisfactory resolution on this issue w/ compressor. What do apple's techs have to say about it? It's not like apple to force their users to deal with major bugs and not chime in on the situation. This is more like the sort of garbage that I always here windows users complaining about.

    Ok, no resolution from within Compressor exists as far as I can see. Here is what I suggest you do...
    Compressor is the biggest pain in the but on the Suite, I don't see it as a conflict that can be solved with FCP Suite, it exists between OS and Program, so having said that I will say this, every time I have an issue with compressor (Which is quite often). I throw my hands up, grab my OS disk, do an Archive and Install. This resets the OS AND FCP Suite. Of course you have to every freaking update again. But it resets everything from the ground up and badaboom, new install of FCP Suite like new. You will have to put your user license back on too. You will have to tell your OS disk to custom install, meaning, you only need essential programs installed not language, etc. etc. The whole process will take about and hour and half, depending on your net speed to update...
    But sometimes "I got no fight as long as any man does what he's told...."

  • Endless "Waiting" message after Submit

    I've been having no luck getting Compressor to compress anything today. I left it processing a job overnight, and could not get it to come out of Sleep this morning, so had to restart. Ever since, no matter what quicktime movie I import, and no matter what compression settings I apply to it, it just hangs, with no "time remaining" readout. It just says "Waiting."
    I tried trashing Compressor (and the plist files) and reinstalling, and it has made no difference. I'm on Compressor 3.5.2.
    Thanks for any advice.

    Thanks for that advice. I discovered a different solution last night... Compressor - Reset Background Processing. For some reason, the job that I had left it doing overnight got corrupted, and Compressor was constantly trying to redo it, even though I had cancelled it and cleared the History. I thought clearing the History was the same as clearing the job queue, but apparently not.

  • Catching message errors after submit

    Is there any way to catch message after submitting report?
    I mean any type of message, i.e. E,S,I and so on. And if it's possible, I need to suppress them. Maybe this can work with help of the system calls?

    HI Vitaly,
    You can try the 'SUBMIT VIA JOB' option and then read the job log and/or spool for any messages. Here is a rough code.
      DATA: l_jobcount LIKE tbtcjob-jobcount.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = 'MYTESTJOB'
           IMPORTING
                jobcount         = l_jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                INTO i_return_messages-message.
        i_return_messages-type = 'E'.
        APPEND i_return_messages.
        CLEAR i_return_messages.
        EXIT.
      ENDIF.
      SUBMIT zbwm_sap_to_dsc_enr_rel_notice
        WITH p_relno = release_nbr
        USER sy-uname VIA JOB 'MYTESTJOB'
      NUMBER l_jobcount AND RETURN.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = l_jobcount
                jobname              = 'MYTESTJOB'
                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.
        MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                INTO i_return_messages-message.
        i_return_messages-type = 'E'.
        APPEND i_return_messages.
        CLEAR i_return_messages.
      ENDIF.
    After this, you will have to check if the job has completed or not(in a loop). To do that you can call the function module SHOW_JOBSTATE. This will tell the status of the job. Once the job status is 'FINISHED' or 'ABORTED', you can then call another function module BP_JOBLOG_READ to read the job log.
    But again, you will have parse through the text to identify the message type, number, message text etc.

  • Message capturing while submitting a report in background

    Hi All,
    I am submitting a report in background using job_open and job_close fucntion modules. I want to capture all messages coming while running the report. I am able to capture messages coming in the output but not able to capture the messages coming in the below status bar(error messages). If some error message comes in the selection screen of the submitted report.
    Kindly let me know the way in which i can capture those status error messages.
    Thanks in advance.
    Regards.
    SK
    Edited by: shekhar kumar on Nov 6, 2009 7:07 AM

    hi ,
       write your code in try catch exception  block
    and you can store your exception in and ztable you want .
    at end of report .
    Regards
    Deepak

  • Auto submit input text doesnt show message after enter

    I have a page in jdeveloper 11 an input text with the attribute autosubmmit=true...
    When I write error entrance in the inputtext and press enter, the message is shown and the alert is given. but if I press enter again, the alert message disappears.
    What can I do For this message not to disappear?
    islam.

    Thanks for your reply. I don't know why there is another topic from me, but it is already solved
    Input text components become blank after Submit button clicked

  • Retrieve raw captured data after report generation crash

    Hi everyone
    Yesterday we were performing load tests on a server. During which I created and I scheduled a User defined data collector set based on the system performance collector set. The data capture ran for 2 hours. It then proceeded with the process of generating
    the report. During this process I observed the Tracerpt.exe was slowly and consistently consumed memory. The generate report process was taking a while, so I came back to it 15 minutes later, to discover the process has ended, but no report could be found. 
    I'm assuming the process crashed.
    Is there a way to retrieve the raw capture data and attempt to regenerate a report? Where is the raw data temporarily stored?
    Is there any why to retrieve the missing information?
    Any help is appreciated.
    Ernie Prescott

    Suppressing Result Rows can be done in Query designer itself for one time. You need not to do after you get the report every time.
    If you always expect some 10 free chars constantly, i suggest you to insert them in Rows pane in Query designer but not in Analyzer. So that your report layout will be taking care with all settings what you want to do after the report generates in Excel. I mean you will get desired layout when you run the report first time itself.
    Suppress repeated key values also can be done in Query designer itself one time.
    By doing above, your report execution will not be tedious and it will be minimizing your efforts.
    Over all, What I have understood is, you are doing all sorts of settings in Analyzer after getting such huge volume of data, by which it gives you crash error.
    With all above steps, you can run your report with all pre-defined settings.

Maybe you are looking for

  • Lync Hybrid : Unable to write to active directory due to lack of permission

    Hello everyone, I need a little help to troubleshoot a problem I have when moving a user to Lync Online. My client has a Dirsync and Adfs working perfectly with o365. My problem is that when I try to move a user to Lync Online I have this error : Mov

  • How to alternate color of rows in html cfgrid

    Hi all How can I alternate the color of rows in html cfgrid? I don't have acess to CFIDE/scripts/ajax/resources/ext/css/ext-all.css which is where according to firebug the css styles are kept Thanks

  • Illustrator CS3 freezing at start up

    Hello, I recently bought an iMac with the Leopard operating system on it. I installed the adobe creative suite 3 not long after I bought the computer and it was working absolutely fine up until I went to install the disc for my internet service. When

  • Timing problem with counting edges

    Hello! I use a NI PCI-6221 DAQ card with NI-DAQmx to count edges of TTL pulses for a spectrometric application. It is extremely important that I count the pulses for a well-defined period of time. Typically, I want to count the edges that reach the c

  • New Verizon router-'old' HP Photosmart 209a-m

    We had to get a new Verizon router - it connected automatically with some of our printers, but not my Photosmart B209a - anybody who can shed light on this problem and give help - much appreciated!!!  Can't afford to buy a new printer - computer does