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

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

  • 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

  • Error when OO ALV report run in background

    Hello all,
    We recently applied stack 12 for a 7.0 system.  My custom ALV report using CL_GUI_CUSTOM_CONTAINER coding now returns an error when run in Background.  It works fine in dialog.
    The error occurred in program CL_GUI_CUSTOM_CONTAINER=======CP.  The log message was "Control Framework: Fatal error - GUI cannot be reached".
    Is there a solution for OO ALV reports run in the background?  I would not like to re-write my ALV reports using the function call.  Any advice is appreciated.  Thanks!!

    Yes, you need to code it a little differently, but you can still use CL_GUI_ALV_GRID.  Here is an example. 
    REPORT ZRICH_0006 .
    DATA: ITAB TYPE TABLE OF MARA.
    DATA: R_GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: R_CONTROL TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: G_DOCK TYPE REF TO CL_GUI_DOCKING_CONTAINER.
    DATA: OKCODE type sy-ucomm.
    START-OF-SELECTION.
      SELECT * FROM MARA INTO TABLE ITAB  up to 100 rows.
      CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    * text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '0100'.
      SET TITLEBAR '0100'.
      IF R_CONTROL IS INITIAL.
    * Check whether the program is run in batch or foreground
        IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    * Run in foreground
          CREATE OBJECT R_CONTROL EXPORTING CONTAINER_NAME = 'CONTAINER_1'.
          CREATE OBJECT R_GRID EXPORTING I_PARENT = R_CONTROL.
        ELSE.
    * Run in background
          CREATE OBJECT R_GRID EXPORTING I_PARENT = G_DOCK.
        ENDIF.
        CALL METHOD R_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
        I_STRUCTURE_NAME = 'MARA'
        CHANGING
        IT_OUTTAB = ITAB.
      ENDIF.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    * text
    MODULE USER_COMMAND_0100 INPUT.
      CASE OKCODE.
        WHEN 'BACK'.
          leave program.
      ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    Regards,
    Rich Heilman

  • Display error message in ALV grid  using OOPS

    Hi,
    I have a requirement to display report in ALV. I have created ALV grid using OOPS with three editable cells and 1 button on toolbar. When user enter values in Ediatble cell  and click on the Toolbar button, sales order item should be assigned to contract.
    When the user select  the row and click on toolbar button, a salesorder item should be assigned  to contract and i am using BAPI and fine with BAPI. All the error message should be displayed in a popup and the corresponding failed row  should change its color .
    Once the user identified the failed row, he can edit the value in the ediatble cells and should reprocess in the same screen ( without going back to selection screen).
    To display POP Up, I  am using FM BAL_LOG_CREATE, BAL_LOG_MSG_ADD, BAL_DSP_PROFILE_NO_TREE_GET, BAL_CNTL_CREATE.
    by using above 4 FM , i can display POP UP. but i cannot change the color of the failed row. 
    Once I identified the failed row and reprocess from the same screen , I am successful in processing the failed row, but my error log still has the reprocessed row as failed row because,  error log is not refreshing.
    Please suggest me how to clear error log which was created by using the above FM's and change the color of the failed row .
    Thanks in Advance

    Hi
    Please suggest me how to clear error log which was created by using the above FM's....
    U can use BAL_LOG_REFRESH
    ....and change the color of the failed row
    You need to insert a new field for Colour Attributes in your output table and input its name in the layout structure:
    IS_LAYOUT-INFO_FNAME = <field name for colour>
    The field has to be a CHAR 3 and its value can be -
    > Cxy
    C is a constant
    x is the colour number (from 1 to 9)
    y is intensified (0 = off, 1 = on)
    After changing the value of output table you need to run the method REFRESH_TABLE_DISPLAY for refreshing the output
    Max

  • Run-time error '13' in ALV report

    Hello,
    In a standard ALV report we are using Excel report layout. The Excel contains a table and a graph. The excel table refreshes with no errors.
    In order to refresh the graph data we recorded a VB Macro but when we run the report (which runs the macro) we are getting the error:
    run-time error '13'
    When we open the excel report from our workstation (not trough the SAP system) we are not getting this error.
    Please Advice,
    Amir

    hi
    this is a bug(error )in microsoft excel:
    Run-time error:'13' Type Mismatch" error message when you click a macro or a function on a menu in Excel 2002
    Please chec kthis link for the details:
    http://support.microsoft.com/kb/821292
    Regards
    Neha

  • Warning message in ALV report

    Hi Experts,
    In ALV report i am getting warning like
    " Field string LS_HEADER is not referenced statically"
    Actually i declared this field as "DATA: ls_header TYPE slis_listheader.".
    How to correct this warning message.
    Thanks in advance.
    Thanks,
    Madhu.

    Dear Madhu,
    You are not using LS_HEADER statically that you have defined in the program. You will get a warning message since you have defined a field that you have not referenced statically.
    Are you using this field dynamically? You can delete/comment the code if you are not using it statically and dynamically.
    Moved the thread ABAP forum. Post your queries in relevant forums to get efficient answers.
    Regards,
    Naveen

  • Displaying Custom Error Message in ALV

    Hello Experts,
    Usually, when an error occurs in editable ALV, the standard WD ALV functionality marks the particular error cell in red and displays the error message.
    I want the same functionality for custom error messages in event ON_DATA_CHECK. I'm able to display the message, but looking for a way to mark cells as well.
    Please help....

    Hello friend,
    I think this link will help you much more clear on the coloring of the ALV concepts.
    http://help.sap.com/saphelp_smehp1/helpdata/en/5f/ec57c72a1349c8bfdda56d976e9399/frameset.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393?QuickLink=index&overridelayout=true
    Thanks,
    Sri Hari

  • 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

  • Printing a Special Message in ALV Report

    Hi,
    I have a requirement to print a special message in an ALV report. Customer wants to see this single line message between Report Header and ALV grid. This is a dynamic message to be displayed based on the values in the ALV table. Please suggest me with a suitable solution.
    Thanks,
    Kannan

    Hello Kannan,
    if you are using OOPs ABAP to create this ALV then you can put a text field in your Calling screen just above the "Custom Control" Area. make the text area output only.
    Now you can pass a variable data to this screen variable from your program.
    change the value of this variable based on your condition on PBO part of the called screen.
    OR
    In case you are using REUSE_AVL then you need to pass the value at.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        it_fieldcat              = t_fieldcat
        is_layout                = x_layout
        it_sort                  = t_sort
        i_callback_pf_status_set = w_status
        i_callback_user_command  = w_comm
        i_save                   = 'X'
        it_events                = t_event
        i_grid_title             = w_title
      TABLES
        t_outtab                 = t_data
      EXCEPTIONS
        program_error            = 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.
    OR
    * Report title
      CLEAR t_heading[].
      CLEAR x_heading.
      x_heading-typ = 'H'.
      x_heading-info = 'Reporte Prueba'(001).
      APPEND x_heading TO t_heading.
    * Program name
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Program: '.
      x_heading-info = sy-repid.
      APPEND x_heading TO t_heading.
    * User who is running the report
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'User: '.
      x_heading-info = sy-uname.
      APPEND x_heading TO t_heading.
    * Date of execution
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Date: '.
      WRITE sy-datum TO x_heading-info.
      APPEND x_heading TO t_heading.
    * Time of execution
      CLEAR x_heading.
      x_heading-typ = 'S'.
      x_heading-KEY = 'Time: '.
      WRITE sy-uzeit TO x_heading-info.
      APPEND x_heading TO t_heading.
    * Top of page event
      x_event-name = slis_ev_top_of_page.
      x_event-FORM = 'TOP_OF_PAGE'.
      APPEND x_event TO t_events.
    Please pass your variable data that you need to the parameter w_status.
    Please give points if you find solution helpful.
    Cheers,
    Suvendu

  • 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

  • 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

  • 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

Maybe you are looking for