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

Similar Messages

  • Display Error Message in BW Report based on Customer Exit Variable

    Hi
    I need to display an error message in the BW report based on the value of a customer exit variable - i was able to do this successfully in BW3.5 using the below code.
      WHEN 'ZUPN'. "Here ZUPN is the customer exit variable
        IF i_step = 1.
          <check for condition -- if successful, variable flag = 1, else variable flag = 0>
          IF flag = 0.
            MESSAGE e157(00). "Error Message
          ENDIF.
        ENDIF.
    I have upgraded my system to BI 7.0 now. Whenever the variable check is not successful, it displays a blank screen instead of the error message in the report. Please advice if we need to change the code and how ??

    Bhanu,
      Thanks for u r reply.This warning message appears every time i execute the report through portal.
    Any idea ?
    Regards
    Mano

  • Unable to log into HP ePrint . Error message "Ajax submit failed: error =403, Forbidden"

    Installed new HP 8600 Plus printer.  Attempting to log into HP ePrint with user name and password I created.  Error message "Ajax submit failed: error =403, Forbidden".  What does the error message mean and why can't I log into the HP ePrint website?
    This question was solved.
    View Solution.

    Sorry for your frustrations! What browser and browser version are you using? Are you able to clear your cache and go to www.eprintcenter.com? Any additional information you can provide will be very helpful.
    Although I am an HP employee, I am speaking for myself and not for HP

  • When I sign to eprint center I get this error message Ajax submit failed: error =403, Forbidden

    When I sign in to the eprint enter I get the following error message
    Ajax submit failed: error =403, Forbidden
    This question was solved.
    View Solution.

    Hope you are doing well and welcome to the HP Forum.
    Sorry to learn that you are having this issue.
    Let's do this 1st
    -  Reboot the computer.
    -  Open the browser (Internet Explorer, chrome, FireFox, Safari,Opera ) of your preference and clear cookies  and internet (Browsing) history. In the browser of your preference try singing-in or registering to e-print.
    If the above did not solved your issue, Please try this;
    - Use another browser (Internet Explorer, Chrome, firefox, safari, Opera).
    Also this is what I heard from other members of the forum.
    I heard here (other members of the community) that there is an issue that engineer are working on diligently that may be affecting this particular process. At the same time I know that other members have some success using this steps aforementioned.
    Hope this helps!
    RobertoR
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • I get the error message Ajax submit failed: error = 403, Forbidden

    I can't set up a new ePrint account for my mew 7525 printer.  I ge the error message - Ajax submit failed: error = 403, Forbidden

    Hi,
    Please use different web browser(s) then try again.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Every time i try to sign into eprint i get error message ajax submit failed= 403 hp6500a plus

    can not sign in eprint error message ajax submit failed=403

    It is a known issue that is being looked into
    Although I am not affiliated with HP, please give Kudos if I've answered your question

  • Putting video clips (mov) in to edit work place time line after photos (jpeg) getting error message, the importer reported a generic error. ? please help thanks

    premier elements12, putting video clips (mov) in to edit work place time line after photos (jpeg) error message, the importer reported a generic error. ? please help.

    TINA54
    Thanks for the reply.
    Some general comments...
    Regarding:
    THERE ANY WAY I CAN PUT MULTIPLE RANDUM TRANSITIONS IN TO THE TIME LINE WITH JUST ONE CLICK ? .
    There is no transition choice for random transitions across the Premiere Elements 12 workspace Timeline. But, the Elements Organizer 12/Create Menu/Slideshow and its Slideshow Editor does have that random transition choice. So, one possibilitity would be to create your slideshow in Elements Organizer 12 Slideshow Editor and then move the slideshow into Premiere Elements with the Output of Edit with Premiere Elements Editor command.
    Pending more details of the slideshow you are creating, I think that you would get your best photo quality and overall results staying with Premiere Elements 12 workspace (1080p) project and the transitions randomized manually.
    perhaps applying the default to all (all at the same time),
    using Timeline Menu/Apply Default Transition,
    and then replacing transitions randomly for the random transition look).
    Please let us know if any of that worked for you.
    Thanks.
    ATR

  • 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

  • Error message in SDS report shipping processing

    Hello everybody,
    we are running a SAP ECC 6.00 system with EA-APPL 15.
    We are using the standard SDS shipping process of inbound documents triggered by delivery.
    Everything worked fine, but all of a sudden each SD_CALL gets an error message in CVD1 in the flow trace:
    Main function CVEB_RDOS_GENERATE was called
    Starting user exit CVEO_RDO_BUNDLE_GENERATE
    Shipping order processing terminated --> Message no. DV456
    Status switch from Bundled to Errors found
    CG5Z shows WWI server is up and running, SM59 shows no problem, service on WWI server is started.
    I already checked the following OSS notes:
    1075753 - Report shipping - Error during sending of inbound reports
    1096697 - EH&S report shipping
    995736
    855793
    But now I have no more ideas.
    Every hint is highly appriciated, as the problem occurs on the productive system.
    Best regards,
    Christoph
    PS: Possible new reason: authorization check failed for the user:
    Object Class BC_A
    Authorization Object S_ARCHIVE
    Authorization Field ACTVT --> value needed 01
    Authorization Field ARCH_OBJ --> value needed CV_DVS
    Could that be the reason?
    Edited by: Christoph Giehl on Mar 11, 2011 10:27 AM

    Hello Christoph
    only a guess: during the SDS shipment the program need to read SBRs from DMS or Archive.  Furtheremore there is the need to read the cover sheets to process them and then at the end the SBEs are created (either in DMS or Archive) which stay normally samething like x days in the system and are deleted after that.
    I believe that the access violation indicates may be that the user does not have enough rigths to create the SBEs.
    Refer may be to this side:
    http://help.sap.com/saphelp_rc10/helpdata/en/8d/3e70b9462a11d189000000e8323d3a/content.htm
    or
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCCA/CAARCCA.pdf
    or
    http://help.sap.com/saphelp_srm40/helpdata/en/c7/d36b40dde0980ae10000000a155106/content.htm
    With best regards
    C.B.
    Edited by: Christoph Bergemann on Mar 11, 2011 1:05 PM

  • Error Message in ALV Report

    Hi All,
    I have developed a report.
    After start-of-selection, i have written a perform statement, in which the data is getting retrieved for printing the same in ALV layout.
    If there is no data available in the table, the code will raise an error message stating ' No data is available". This error message statment is in this PERFORM statement....
    But this error message will be triggered in the different page which will be blank...
    Now user would like to have the message in the same page (selection screen).
    How to resolve this issue....??????
    Pelase guide me.....
    Regards
    Pavan
    Message was edited by:
            Pavan Sanganal

    Hi,
    when your internal table is empty
    give the message like
    when u r in start of selection event then
    form
    message i000( zmessage ) with ' no data found'.
    stop.
    endform.
    this provides u again the selection screen,
    regards,
    venkatesh

  • How to show error message in a report program

    Hello Guys,
    I am making a report using smartforms. I am successful in showing data  but problem is if if i put a value in parameters that does not exist is database, the smartform runs and related fields shows as empty fields. But the form is running. I want to show error message if the parameter values dose not matches with the database values. The message will show as Document not exists
    So i used related error msg here like
    if sy-subrc ne 0.
              message e357.
               endif.
    But it is not working for passing values to smartform. It works if i use in classical report. Plz help me on this issue.
    Thanks,
    Rosaline.

    >
    Rosaline. wrote:
    > Thanks all for reply.  Should i have to use message before call function 'SSF_FUNCTION_MODULE_NAME' ? I tried it but not working.
    >
    >
    if it_final[] is not initial.
    >*             if sy-subrc ne 0. ---> "Remove this condition check, it not required
    >            Message e000(8i) with 'Parameter value not found'.
    >            endif.
    > *            endif. ---> "remove this
    >
    Hi,
    Sy-subrc doesnt need to be validated here, remove that If condition and check again.
    Regards,
    Karthik D

  • Error Message in BEx Report Designer 7.0

    I am getting the following error message when I try to add a data provider (Query) to BEx Report Designer:
    RSBOLAP 017 Java Communication Error: RFC destination NOT_CONFIGURED does not exist
    Would anyone be able to provide feedback on what to do?

    Hi Selva Kumar,
    Its a Basis Issue , report to a Basis asministrator about the  configuration of Report Designer .
    For info refer this link:
    https://forums.sdn.sap.com/click.jspa?searchID=21289661&messageID=6734602
    Cheers,
    Tanish

  • Error Message in Crystal Report Server 2008

    Hi all,
       After I execute the crystal report 2008, i got the below error message.
    "The request could not be submitted for background processing. "
    Anyone knows how can i resolve this problem?
    Kelvin

    Please remember this is a community forum not a technical support site as such. You may get a timely reply, you may not. You may possibly not even get a reply. If your issue is critical, you may want to consider obtaining phone support here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    I also invite you to check out the  [rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] for more details regarding these forums.
    Re. the error. See [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33] article. The error, it's causes and solutions is described in some detail in that article.
    Ludek

  • Error message in Complete report

    Hello,
    I create a production order successfully.
    However when I want to create the complete report and add the Receipt from Production.
    2 error message are shown:
    Enter valid currency
    Can't issue backflush component [Goods Receipt - Rows - Warehouse Code][line: 1] , 'Production Order no: 11151 Line: 1'  [Message 3559-10]
    All the Component items and the Product item are using the EUR in the price list and the exchange rate is also updated.
    The System currency is US dollar and the local currency is EUR.
    What can I do to solve this problem?

    The warehouse is also OK.
    The problem is only some items has this error message
    For example
    Production item P001 with 2 Component items C001 and C002 has this problem
    but Production item P002 with the same 2 Component items C001and C002 is OK...
    I have compared these 2 items in OITM, only few fileds are different:
    LastEvlDate, UserSign, LastPurPrc, DataSource

  • Error message in the report

    Hi
    When i execute my report am getting the error message as
    ""gw_data-NAFAP" must be a character-type data object (data type C, N,D, T or STRING). field string)."          
    What is the reason for it and how to correct it.
    I have declared in the internal table the value of nafap.

    Hi,
    Are you performing any string operation on "gw_data-NAFAP" , if yes the convert the field to character type (C,N,D,T) since in Unicode version string operations can be performed only on character data types.
    Thanks & Regards,
    Navneeth K.

Maybe you are looking for