Submit report = raise exception class

Hello experst,
i have to call a report from one of my programs. In this report it can happen that an error occors. So there i call
      RAISE EXCEPTION TYPE zcx_exceptionmng
        EXPORTING t100_msgid = 'QY'
                            t100_msgno = '051'.
The code of the calling program looks like this:
try.
  submit z_test and return
          with p_backgr = 'X'
          with p_lot = '12312'
catch zcx_exceptionmng into oref.
endtry.
I wonder because the catch doens´t work. I get a system dump  UNCAUGHT_EXCEPTION.
What´s my mistake?

Try something this way
RAISE EXCEPTION TYPE zcx_exceptionmng
        EXPORTING t100_msgid = 'QY'
                            t100_msgno = '051'.
if SY-SUBRC = 4.
Exce = 4.
export exce to memory id 'ZEX'.
endif.
then
submit z_test and return
          with p_backgr = 'X'
          with p_lot = '12312'
import exce from memory id 'ZEX'.
if exce is not initial.
" Do your error handling

Similar Messages

  • Capture the exceptions from BW Bex Report in a class/interface

    Hi....
    I am trying to capture the exceptions defined in the BW BEx Reports in a class (superclass - CL_RSR_WWW_MODIFY_TABLE) in a variable or something.
    This is actually to change the properties of a table in Web Applcn. acc to the exceptions by altering the cell content in the class(Transaction - SE80).
    Is it possible to store the exceptions in a variable in the class???

    Hi Smriti,
    Exception and Exception Handling can be based on classes in ABAP Objects. In an exception situation, an exception is represented by an exception object –
    i.e. an instance of an exception class. Its attributes contain information about the
    error situation. Exception classes can be defined both locally and globally. When a class based exception is raised, the system interrupts normal   program flow and tries to navigate to the suitable handler.
    An exception can only be handled if the causing statement(s) is enclosed in a TRY-ENDTRY block. If a exception occurs in a TRY block, the system first searches for a CATCH statement (which will handle the exception) in the same block and then step by step upwards in all enclosing TRY-ENDTRY blocks. If it finds one, it navigates to this handler, else if TRY-ENDTRY block is in a procedure, it then tries to propagate the exception to the calling program. After exception occurs, system searches through the listed exception handlers in specified order and executes first handler whose CATCH statement contains the relevant exception class or one of its superclasses.
    PARAMETERS: p_num1 TYPE i,
                p_num2 TYPE i.
    DATA: gv_result TYPE i,
          gv_text   TYPE string,
    Defining reference variables  with reference to the common superclass *
    CX_ROOT of all exception classes.                                     *
          z_ref_exc TYPE REF TO cx_root.
    TRY.
        gv_result = p_num1 / p_num2.
        WRITE / gv_result.
    For division by zero, the runtime system raises the exception         *
    cx_sy_zerodivide. This is handled in the CATCH block. The reference   *
    to the appropriate instance is stored in the data object z_ref_exc.   *  
      CATCH cx_sy_zerodivide INTO z_ref_exc.
    Handler can access the instance's exception text using the functional *
    method GET_TEXT.                                                      *   
        gv_text = z_ref_exc->get_text( ).
        MESSAGE gv_text TYPE 'I'.
    ENDTRY.
    Award points if found useful.
    Regards
    Indrajit

  • Submit report using selection table not working in OO CL_SALV classes

    I have used CL_SALV classes in my report. now the problem is submit report is not working. any suggestions.
    It works in REUSE_ALV  FM

    Still i m facing the same problem

  • Reporting Agent - Raise Exception

    Hello all,
    we want to precalculate a query (WEB Template) which contains the fiscal year and a key figure in the colum.
    Column 1 contains only the variable for the fiscal year
    column 2 contains the same variable but with offset -1.
    I also creadet a controll query, restricted to different companies, and this query contains also the variable for the fiscal year.
    In the reporting agent setting I added the control query to the web template and creadet a variant for the control query. when I schedule this package i receive a short dump, saying "raise exception".
    Can someone explain me how i have to handle this kind of variables within the reporting agent ?
    We use BW 30B / SP20.
    Thanks for your help
    Dieter

    the "download" function is standard FUNC in SAP

  • Oracle BI Scheduler raised exception while exporting report by iBot and cus

    Hi,
    I have the issue. When I export BI report using iBot and Java program(BI Publisher Java API) - Oracle BI Scheduler raised exception.
    Platform:
    OBIEE 10.1.3.4 on aix 5.3.0.0
    See the captured log below and any suggestion to fix this will be greatly appreciated.
    - javahost.out.log
    Sep 23, 2009 2:46:35 AM SchedulerComponentLoad load
    INFO: Loading config ...
    Sep 23, 2009 2:46:35 AM SchedulerComponentLoader load
    WARNING: Scheduler RPC components is disabled due to incorrect configuration.
    Sep 23, 2009 2:46:35 AM ApplicationImpl init
    INFO: Running configuration:
    JVM=IBM J9 VM(2.3)
    Listener.Port=9810
    Listener.PermittedClientList=*
    Listener.Address=null
    JobManager.MinThreads=100
    JobManager.MaxThreads=100
    JobManager.MaxPendingJobs=100
    JobManager.IdleThreadTimeoutMls=300000
    MessageProcessor.SocketTimeoutMls=5000
    Charts.InputStreamLimitInKB=1024
    Charts.RequestResponseLogDirectory=/oracle/oraclebidata/tmp
    Chart.Enabled=true
    Chart.InputStreamLimitInKB=1024
    Chart.ChartRoot=/oracle/oraclebi/corda50/chart_root
    Chart.CordaRoot=/oracle/oraclebi/corda50
    Chart.EnableConsoleOutput=false
    Chart.EnableXmlValidation=true
    Chart.MaxAttributeLength=127
    Batik.InputStreamLimitInKB=1024
    Batik.RequestResponseLogDirectory=/oracle/oraclebidata/tmp
    Batik.EnableXmlValidation=false
    Scheduler.Java.Enabled=false
    Scheduler.Java.DefaultUserJarFilePath=null
    Scheduler.Java.PurgePeriod=0
    Scheduler.Java.TempPath=null
    XMLP.InputStreamLimitInKB=8192
    XMLP.RequestResponseLogDirectory=/oracle/oraclebidata/tmp
    OBISAuthenticatorProxy.InputStreamLimitInKB=128
    OBISAuthenticatorProxy.RequestResponseLogDirectory=/oracle/oraclebidata/tmp
    OBISAuthenticatorProxy.ClassName=oracle.bi.server.customauthenticatorimpl.javahostrpccall.DisabledAuthenticator
    Sep 23, 2009 2:46:35 AM Main main
    INFO: Listening for new connections
    Sep 23, 2009 3:01:56 AM RpcSchedulerJob processMessage
    WARNING: Error
    java.lang.NullPointerException
         at java.io.File.<init>(File.java:220)
         at com.siebel.analytics.scheduler.javahostrpccalls.SchedulerJavaUtil.getMaxCount(SchedulerJavaUtil.java:118)
         at com.siebel.analytics.scheduler.javahostrpccalls.SchedulerJavaUtil.makeUniqueFileName(SchedulerJavaUtil.java:109)
         at com.siebel.analytics.scheduler.javahostrpccalls.SchedulerJavaUtil.readJobInfo(SchedulerJavaUtil.java:68)
         at com.siebel.analytics.scheduler.javahostrpccalls.RpcDisabledSchedulerJob.processMessageInternal(RpcDisabledSchedulerJob.java:36)
         at com.siebel.analytics.javahost.AbstractRpcCall.processMessage(AbstractRpcCall.java:107)
         at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:175)
         at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
         at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
         at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
         at java.lang.Thread.run(Thread.java:810)
    - nqscheduler.out.log
    [Util Logger] Exception occured:
         Severity:Not set
         Type:const saw::Exception *
    +     File:/net/sdcb80a022/vol1/users/anabuild/views/nightly/Tue/101341/AIX/vobs/090414.1900/analytics_web/main/project/webcomm/rpc.cpp+
         Line:371
         Message:A fatal error occurred while processing the request. The server responded with: Error while executing RpcSchedulerJob.processMessage
    java.lang.NullPointerException
         at java.io.File.<init>(File.java:220)
         at com.siebel.analytics.scheduler.javahostrpccalls.SchedulerJavaUtil.getMaxCount(SchedulerJavaUtil.java:118)
         at com.siebel.analytics.scheduler.javahostrpccalls.SchedulerJavaUtil.makeUniqueFileName(SchedulerJavaUtil.java:109)
         at com.siebel.analytics.scheduler.javahostrpccalls.SchedulerJavaUtil.readJobInfo(SchedulerJavaUtil.java:68)
         at com.siebel.analytics.scheduler.javahostrpccalls.RpcDisabledSchedulerJob.processMessageInternal(RpcDisabledSchedulerJob.java:36)
         at com.siebel.analytics.javahost.AbstractRpcCall.processMessage(AbstractRpcCall.java:107)
         at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:175)
         at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
         at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
         at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
         at java.lang.Thread.run(Thread.java:810)
    Edited by: user8096018 on Sep 23, 2009 5:40 AM

    I am also having the same issue......Can some body help me please? Thanks

  • Create a Exception Class

    hi all ,,
    can any one tell me how to create a exception class in ABAP OOPS concept ??
    if possible can give link also for document

    HI Jayakumar,
    Please go thru this document
    Exceptions are represented by objects that are instances of exception classes. Defining an exception is, therefore, the same as creating an exception class.
    All exception classes must inherit from the common superclass CX_ROOT and one of its subordinate classes:
    CX_STATIC_CHECK
    CX_DYNAMIC_CHECK
    CX_NO_CHECK
    . The assignment of exception classes to one of these three paths of the inheritance hierarchy determines the way in which the associated exceptions are propagated. There is a record of predefined exception classes CX_SY_... whose exceptions are raised in error situations in the runtime environment. These classes all inherit from CX_DYNAMIC_CHECK or CX_NO_CHECK but not from CX_STATIC_CHECK (see hierarchy in the ABAP keyword documentation).
    All exception classes must begin with the prefix CX_. They are usually defined globally with the Class Builder of the ABAP Workbench. Local exception classes can, however, also be defined.
    Individual (abstract) exception classes that are used as the superclass of further exception classes can be defined. The exceptions of the subordinate classes can be handled together using a superclass.
    Exception classes have the following features:
    Constructor
    The constructor must have a predefined structure and a specific interface. With global classes, the Class Builder generates the correct constructor and sets it to an unchangeable status. The constructor has two IMPORTING parameters:
    TEXTID of the SOTR_CONC type
    This parameter can be used to determine which of your exception texts the exception will use.
    PREVIOUS of the CX_ROOT type
    This parameter can be used to assign the PREVIOUS attribute a previous exception.
    Methods
    In exception classes, you can define your own methods. The following two predefined methods are inherited from the root class CX_ROOT:
    GET_TEXT
    Sends back the exception texts of a class (controlled by the TEXTID attribute) as a string.
    GET_SOURCE_POSITION
    Returns the program name, the name of a possible include program, and the line number of the statement that raised the exception.
    Attributes
    The attributes of exception classes are used to transport additional information on an error situation to the handler. The main piece of information is, however, always the fact that an exception of a particular class has occurred. The following attributes are inherited from CX_ROOT:
    TEXTID
    Used to specify the exception of a class more precisely by using several exception texts. Is evaluated in the GET_TEXT method.
    PREVIOUS
    If an exception is mapped to another exception, a reference to the original exception can be defined in this attribute via the EXPORTING addition of the RAISE EXCEPTION statement and by means of the constructor IMPORTING PARAMETER with the same name. This can result in a chain of exception objects. In the event of a runtime error, the exception texts of all the exceptions in the chain are output. Mapping an exception to another exception is only beneficial if the context in which the original exception occurred is important for characterizing the error situation.
    KERNEL_ERRID
    The name of the associated runtime error is stored in this attribute if the exception was raised by the runtime environment, for example, COMPUTE_INT_ZERODIVIDE with a division by zero. If the exception is not handled, precisely this runtime error occurs.
    Parameters cannot be transferred to the constructor for this attribute. If the exception is raised with RAISE EXCEPTION, the attribute is set to initial.
    Global Exception Classes
    Global exception classes are defined and managed in the Class Builder. If the correct naming convention (prefix CX_) and the class type Exception Class is chosen when a new class is created, the Class Builder automatically becomes the Exception Builder.
    The Exception Builder offers precisely the functionality required to define exception classes and generates independently-defined components that must not be changed. When classes are created, the category of the exception must be specified, in other words, whether it is to inherit from CX_STATIC_CHECK, CX_DYNAMIC_CHECK, or CX_NOCHECK.
    Tab Pages of the Exception Builder
    The Exception Builder has the tab pages Properties, Attributes, Methods, and Texts.
    The properties do not normally need to be changed.
    Except for the four inherited attributes mentioned above, further public attributes can be generated by the Exception Builder. The contents of these attributes specify the exception more clearly and manage the exception texts.
    All of the methods are inherited from CX_ROOT. New methods cannot be added. The instance constructor is generated automatically. It ensures that, when an exception is raised, the attributes have the right values. It also transfers the text of the superclass for an exception class whose exception text is not specified explicitly.
    The instance constructor is generated on the basis of the attributes, which are set up on the basis of the exception texts. Changing the attributes in superclasses can, therefore, invalidate the constructors of subordinate classes. The constructors of subordinate classes can be regenerated under Utilities ® CleanUp ® Constructor.
    Texts are a special feature of exception classes and the Exception Builder. For further information, refer to Exception Texts.
    Local Exception Classes
    Local exception classes can be defined for specific exceptions that only occur within one single ABAP program. The condition for a local exception class is that it inherits from one of the three classes CX_STATIC_CHECK, CX_DYNAMIC_CHECK, or CX_NO_CHECK, or from their subordinate classes. An individual constructor and individual attributes can be created. Individual methods should not be created, however, and the methods of superclasses should not be redefined.
    Examples of Local Exception Classes
    report DEMO_LOCAL_EXCEPTION_1.
    class CX_LOCAL_EXCEPTION definition
                            inheriting from CX_STATIC_CHECK.
    endclass.
    start-of-selection.
        try.
          raise exception type CX_LOCAL_EXCEPTION.
        catch CX_LOCAL_EXCEPTION.
          message 'Local Exception!' type 'I'.
      endtry.
    This example shows a minimal local exception class, which is simply the local representation of one of the three direct subordinate classes of CX_ROOT. It can be used in the program.
    report DEMO_LOCAL_EXCEPTION_2.
    class CX_LOCAL_EXCEPTION definition
                            inheriting from CX_STATIC_CHECK.
      public section.
        data LOCAL_TEXT type STRING.
        methods CONSTRUCTOR importing TEXT type STRING.
    endclass.
    class CX_LOCAL_EXCEPTION implementation.
      method CONSTRUCTOR.
        SUPER->CONSTRUCTOR( ).
        LOCAL_TEXT = TEXT.
      endmethod.
    endclass.
    data OREF type ref to CX_LOCAL_EXCEPTION.
    start-of-selection.
        try.
          raise exception type CX_LOCAL_EXCEPTION
                          exporting TEXT = `Local Exception`.
        catch CX_LOCAL_EXCEPTION into OREF.
          message OREF->LOCAL_TEXT type 'I'.
      endtry.
    In this example, the exception class from the previous example is extended to include an individual attribute and constructor. The IMPORTING parameter of the constructor must be supplied when the exception is raised (it is required here). The attribute can be evaluated in the handler of the exception.
    report DEMO_LOCAL_EXCEPTION_3.
    class CX_LOCAL_EXCEPTION definition
          inheriting from CX_SY_ARITHMETIC_ERROR.
      public section.
        methods CONSTRUCTOR importing SITUATION type STRING.
    endclass.
    class CX_LOCAL_EXCEPTION implementation.
      method CONSTRUCTOR.
        SUPER->CONSTRUCTOR( OPERATION = SITUATION ).
      endmethod.
    endclass.
    data OREF type ref to CX_LOCAL_EXCEPTION.
    data TEXT type STRING.
    start-of-selection.
        try.
          raise exception type CX_LOCAL_EXCEPTION
                exporting SITUATION = `START-OF-SELECTION`.
        catch CX_LOCAL_EXCEPTION into OREF.
          TEXT = OREF->GET_TEXT( ).
          message TEXT type 'I'.
      endtry.
    In this example, an exception class is derived from one of the predefined exception classes for error situations in the runtime environment. An individual constructor is defined with an individual IMPORTING parameter that supplies the superclass constructor with this parameter. When the exception is handled, the exception text, as defined in the superclass, is read with GET_TEXT.

  • 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

  • How to enhance exception class based on CX_ROOT

    I have created an exception class based on CX_ROOT (or CX_STATIC_CHECK, CX_DYNAMIC_CHECK). Now, I need to enhance its "constructor" method with my own parameters. How can I do this? Currently system does not allow this. But, I have seen many other exception classes enhanced the way I want? Any idea?
    Any pointers will be helpful.
    Regards, Neetu

    Hello Neetu
    Two steps are required to get additional IMPORTING parameters in the CONSTRUCTOR method of your exception class:
    (1) Create exception IDs (tabstrip Texts )
    Example:  ID=ZCX_SDN_CLASS, text=Invalid data type for field &FIELD& on screen &SCREEN& &REPORT&
    (2) Add corresponding instance attributes (read-only) to your exception class
    Examples: attributes FIELD, SCREEN, REPORT
    Now the CONSTRUCTOR has the additional IMPORTING parameters FIELD, SCREEN and REPORT.
    If you raise your exception class using id=ZCX_SDN_CLASS then the wildcards (e.g. &FIELD& in the text) will be replaced by IMPORTING parameter FIELD.
    Regards
      Uwe

  • Get the values from Exception class

    Hi all ..
    In class i have raised one exception
    when i catch this exception in my program i m able to get the
    error message but i need to get all the parameters that i pass
    when i raise the exception ...
    i have raised like this
          RAISE EXCEPTION TYPE cx_bapi_error
            EXPORTING
              textid = cx_bapi_error=>cx_bo_error
              class_name = 'ZHS_'
              log_no = wa_bapi_return-log_no
              log_msg_no = wa_bapi_return-log_msg_no
              t100_msgid = wa_bapi_return-id
              t100_msgno = wa_bapi_return-number
              t100_msgv1 = wa_bapi_return-message_v1
              t100_msgv2 = wa_bapi_return-message_v2
              t100_msgv3 = wa_bapi_return-message_v3
              t100_msgv4 = wa_bapi_return-message_v4
              STATUS = lt_status
    and caught the exception like this in my program
        CATCH cx_bapi_error INTO go_error.
          gd_text = go_error->get_text( ).
          EXIT.
      ENDTRY.
    in this i m just getting the class name which i have passed in exception
    i need all other parameters that i have passed ..
    if u have any idea pls let me know ..
    Thanks in advance ...

    Hello Jayakumar
    Usually the attributes of standard exception classes are defines as <b>public</b> and <b>read-only</b>. Thus, you should be able to use the following coding:
    DATA:
      go_error   TYPE REF TO cx_bapi_error.  " specific exception class !!!
    TRY.
    RAISE EXCEPTION TYPE cx_bapi_error
    EXPORTING
    textid = cx_bapi_error=>cx_bo_error
    class_name = 'ZHS_'
    log_no = wa_bapi_return-log_no
    log_msg_no = wa_bapi_return-log_msg_no
    t100_msgid = wa_bapi_return-id
    t100_msgno = wa_bapi_return-number
    t100_msgv1 = wa_bapi_return-message_v1
    t100_msgv2 = wa_bapi_return-message_v2
    t100_msgv3 = wa_bapi_return-message_v3
    t100_msgv4 = wa_bapi_return-message_v4
    STATUS = lt_status.
    CATCH cx_bapi_error INTO go_error.
    gd_text = go_error->get_text( ).
    WRITE: go_error->t100_msgid,  " perhaps the attributes have different name
                go_error->t100_msgno, " check attribute names in SE24
    EXIT.
    ENDTRY.
    Regards
      Uwe

  • Custom Report Giving Exception

    While calling my custom report from webconsole i am getting these exceptions
    Class/Method: tcReportOperationsBean/getPagedReportData encounter some problems: {1}
    Caused by [Nested Exception]:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 16
    and
    C lass/Method: ReportAction/displaySectionalReport encounter some problems: Error executing stored procedure
    Please do give some suggestion.

    I am trying to find why this page does not appear : front_page_admin.cgi. My machine address is :http://y2k/identity/oblix/apps/admin/bin/front_page_admin.cgi
    I also have encountered a problem when I was setting up identity console. It gave me an option to select a user but there were no users there, including Administrator. What might have been the cause? This is the serious and major problem. Thank you in advance. Adam Earthman

  • 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

  • Submit report to get output list

    Hi friends,
       I have one requirement to take output list of a transaction in one internal table.
    As the transaction is very much interactive , that perticular internal table gets populated somewhere in the middle of the standard program...later on that table undergoes further processing  to cope up with he interaction...
    using  SUBMIT report ,  we can export it to memory
    and using  FM  'LIST_FROM_MEMORY' we can get it back as following.
    list_tab contains data in two fields RFCSIZE  and RFCRECORD in numbers only...
    Submit   report_name  with SELECTION-TABLE SELTAB
            exporting list to Memory and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
       BUT , Can we get the same output list (i.e before interaction) in one internal table...
    thanks

    Hi,
    You can check whether the list is exported in between before the submit.
    Supposed it is exported before the interaction den you can import it ..Just check the value is fetched and stored in a temporary table.
    Is it a csutom program or standard SAP one..?
    Hope this helps.
    Regards,
    Navin.

  • Submit report with dynamic selections

    Hi All,
    I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
    But the dynamic selections are not getting passed.
    Request you to kindly provide some inputs
    My code is
    DATA: trange TYPE rsds_trange,
          trange_line LIKE LINE OF trange,
          trange_frange_t_line LIKE LINE OF trange_line-frange_t,
          trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
          texpr TYPE rsds_texpr.
    trange_line-tablename = 'PA0002'.
    *trange_frange_t_line-tablename = 'PA0002'.
    trange_frange_t_line-fieldname = 'GBJHR'.
    trange_frange_t_selopt_t_line-sign   = 'I'.
    trange_frange_t_selopt_t_line-option = 'EQ'.
    trange_frange_t_selopt_t_line-low    = '1987'.
    trange_frange_t_selopt_t_line-high   = '1987'.
    APPEND trange_frange_t_selopt_t_line TO   trange_frange_t_line-selopt_t.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
      EXPORTING
        field_ranges = trange
      IMPORTING
        expressions  = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
                    WITH SELECTION-TABLE rspar_tab
                    WITH FREE SELECTIONS it_texpr
                    and returN.
    Kindly provide your inputs
    Regards
    Reshma

    Hi Reshma,
    Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
      data: trange  type rsds_trange,
              g_repid type sy-repid.
    g_repid = 'RPCADVQ0'.
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = g_repid
          mode_write_or_move = 'M'
        importing
          p_trange           = trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
      if sy-subrc eq 0.
    " Do the changes to the trange
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
    EXPORTING
    field_ranges = trange
    IMPORTING
    expressions = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar_tab
    WITH FREE SELECTIONS it_texpr
    and returN.
    endif.
    Cheers,
    Kothand

  • Submit report and export to memory

    Hi
    I am using this code to submit report
    submit ZM005REP
    WITH S_BLEND IN R2
    WITH S_GROUP IN R3
    WITH S_WERKS IN r1
    exporting list to memory and return.
    I am using LIST_FROM_MEMORY to read the list.
    I want to further use the values from this list for calculations , but when I saw the list its just an array of strings.
    I want to read the opening bal field which is returned in this list.
    Any advice on this ?
    Thanks,
    Shital

    Hi,
    DATA  BEGIN OF itab_list OCCURS 0.
            INCLUDE STRUCTURE abaplist.
    DATA  END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
            filler1(01)   TYPE c,
            field1(06)    TYPE c,
            filler(08)    TYPE c,
            field2(10)    TYPE c,
            filler3(01)   TYPE c,
            field3(10)    TYPE c,
            filler4(01)   TYPE c,
            field4(3)     TYPE c,
            filler5(02)   TYPE c,
            field5(15)    TYPE c,
            filler6(02)   TYPE c,
            field6(30)    TYPE c,
            filler7(43)   TYPE c,
            field7(10)    TYPE c,
          END OF vlist.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = vlist
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    Then you can use the ITAB_LIST for caliculation which is having all the values.
    Thanks
    Sudheer

  • Submit Report (Regarding Background Processing)

    Hi Guru's,
    I want help regarding Background Processing.
    I have developed a program which is running fine in forground but in Background mode no values are comming.
    All values are becomig Zero.
    Plz help.
    *--- Submit Report for 'COGI' (Postprocessing of Error Records from Automatic Goods Movements)
      SUBMIT coruaffw USING SELECTION-SCREEN '1000'
                      WITH  r_cumul = 'X'
                      EXPORTING LIST TO MEMORY
                    AND RETURN.
    *---- Get the List
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = it_list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc = 0.
    *--- Convert to Ascii
        CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listobject         = it_list_tab
            listasci           = it_asci_tab
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc <> 0.
    *      MESSAGE i000 WITH 'Problem in converting LIST to ASCII'.
        ENDIF.
        DESCRIBE TABLE it_asci_tab LINES w_cogi.
        w_cogi = w_cogi - 5.
      CALL FUNCTION 'LIST_FREE_MEMORY'
        TABLES
          listobject = it_list_tab.

    Hi Arbind,
                  You have used return you need to add the addition with.Try this way hope it works
    SUBMIT zreport EXPORTING LIST TO MEMORY
                    AND RETURN
                    WITH P_1 = P_1
                    WITH P_2 = P_2
                    WITH P_3 = P_3
                    WITH S_4  IN S_4
                    WITH S_5 IN S_5
                    WITH S_6 IN S_6.

Maybe you are looking for

  • Package Calling Error

    Hi frndz, In my scenario I am calling a custom package inside another custom package and there is one issue in calling package. When there is a modification in inner package , the issue occurs.. ISSUE: PL/SQL ERROR: ORA-06508: PL/SQL: could not find

  • How to trigger a mail .

    Hi experts how i can trigger mail based submit button . Is there is any fm for genrating mail.

  • Songs cut off at the end

    Hi, My Ipod nano has started cutting off the last 30 seconds or so of songs. Any suggestions on how to fix this? Thanks! Nano 1GB   Windows XP  

  • I purchased a game on my iPhone 4S and it did not download to my ipad air, how can I get this to there?.

    I purchased bejeweled with my iPhone 4S and was hoping it would appear on my iPad Air, but this did not happen nor did it appear in my purchased apps at the App Store on my iPad.  How do I get it to recognize that it was already purchased?  Any help

  • How to move the WSDLs from Project to MDS ?

    I have registered MDS using EM Console. I have created JDeveloper connection to MDS as well. I would like to know how to create the WSDL references in MDS store.