ABAP Program - Urgent

Hello All,
I was running a program in the debug mode and it goes to a short dump. I looked into the error it says the maximum run time exceeded.
It took something around 20 minutes and showed the error. How can this be prevented.
Madhu.

Hi madhu,
1. similar to your case,
2. there are practically / may be practically
   programs which will take lot of time,
   (even after fine-tuning and optimising)
   to execute.
They may take time more than the basis setting.
3. In such cases, for all practical purposes,
   its a practice to
  run such programs in background, where there is no time limit.
regards,
amit m.

Similar Messages

  • URGENT : ABAP Program latest transport

    Hi gurus,
    I have to get the latest version (in fact the transport request pertaining to that version) of an ABAP Program.
    I can see the request number in the Version Management,but which table stores it ? Or how this info can be retrievd by..say a  dummy program into a file ?
    This is very urgent.Kindly help.
    Regards,
    Sandip.

    Hello Sandip,
    From the tables E070 & E071, you can get the details for the latest request and its status. Follow following procedure -
    1. Get the list of objects for which you want to find the latest request.
    2. For this list of objects, first get the details from SE16 transaction. Goto table E071.
    3. Give the list of object as input in the field OBJ_NAME & execute.
    4. You will get the list of requests linked to this OBJ_NAMEs.
    5. Take this list of requests and go to table E070 in transaction SE16.
    6. Pass on the list of request in the input of field, TRKORR. Here also select the appropriate status from input field TRSTATUS search help like released etc. Other input parameters can also be given here. Finally execute.
    7. Now in the output, sort the list on date in descending order.
    Here you get the list of latest requests for your objects. Same logic, you can use in your program by select queries.
    Hope this sort out your query.
    PS: If the answer solves your query, plz close the thread by rewarding points to each reply.
    Regards

  • Urgent!!  How to call a custom transaction or an ABAP program in BSP?

    Urgent!!  How to call a custom transaction or an ABAP program in BSP?
    We are pretty new on BSP.  Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program.  Would we have to create a button or event handler to do that?  And the detailed steps?
    Thanks in advance and we will definately give you reward points!

    hi Durairaj,
    During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
    Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
    <td>
    <htmlb:inputField id = "client"
    value = "<%= client %>" />
    </td>
    Then we added Client to the page attribute and define it as type String, then get another error:
    The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
    OnInputProcessing:
    code
    • event handler for checking and processing user input and
    • for defining navigation
    • event handler for data retrieval
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    IF event->name = 'button' AND event->event_type = 'click'.
    button_event ?= event.
    How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
    Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP?

  • Urgent: call ABAP program from BSP

    hi BSP experts,
    We just want to trigger an ABAP program to say "Hello World" in BSP and see the wording "Hello World" on web browser when running it from BSP.  One BSP expert Raj gave the answer by using the following in BSP:
    oninitialization:
    submit ('z_program_name') and return exporting list to memory.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = listobject.
      call function 'WWW_HTML_FROM_LISTOBJECT'
           exporting
                report_name = 'z_program_name'
           tables
                html        = html
                listobject  = listobject.
      clear output_str.
      loop at html into html_wa.
        concatenate output_str html_wa into output_str.
      endloop.
    layout code:
    <htmlb:content design="design2003">
    <htmlb:page title = " ">
    <htmlb:form>
    <%= output_str %>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    We put the above in our BSP and then activate them, but get the following error:
    Field "LISTOBJECT" is unknown. It's neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement.
    And the error stopps here:
    submit ('z_program_name') and return exporting list to memory.
    call function 'LIST_FROM_MEMORY'
    tables
    listobject = listobject.
    Any idea? 
    We will give you reward points!

    hi Tanguy,
    Eventually, I have figured it out on how to make the code works by showing "Hello World!" on web browser. But actually we would like to run another ABAP program which open a new container on users' machines, download an Excel template stored on server to the opened container on users' machinese, and then dump SAP table data to the opened excel template. This program works very well through SAP GUI, but users would like to run it on web that we tried to run this program in BSP, but it doesn't work with your code! Any idea?
    Thanks alot!

  • Urgent: Calling ABAP Program using JMS

    Hi,
    I have a scenario where legacy system pass some messages to ABAP Program and this program can handle one message at a time (written in that way).
    Now the receiver communication channel is configured to access J2SE adapter. This J2SE adapter stores the message on R/3 system and triggers the ABAP program located in R/3 system.
    Now when multiple messages are coming at a time in SAP-XI and processed successfully and handover to J2SE adapter. But J2SE adapter triggers the ABAP program for all messages. And here is the problem. ABAP program is not supporting multi - threading.
    my idea is to use JMS adapter...can you guys suggest me how to achieve result and how to configure JMS or any other adapter to call ABAP Program so that only one message will pass to ABAP program at a time.
    Regards,
    Gourav Khare

    Hi,
    First find out where your ABAP program the data written.You need to write it into and spool then only you can see it.
    Transaction SP01, you can use the FM 'GET_PRINT_PARAMETERS' in your abap program to write to spool.
    Thanks,
    Ravi

  • Is it possible to call website from ABAP Program?

    Hi Experts,
           Is it possible to call website from ABAP Program?
    It is very Urgent Help me.
    Regards,
    Ashok.

    Hi,
    Check the following program:
    REPORT ZURL NO STANDARD PAGE HEADING.
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.
    Regards,
    Bhaskar

  • What to write in ABAP program at R/3  to call proxy classes.

    Hi
    I am working on R/3 to File scenario and using ABAP Proxy for outbound.
    I have generated proxy in XI server and have coded the program in R/3 but can one tell me wht code needs to be written in ABAP program at R/3 end to connect to ABAP proxy. How those objects will be available in R/3 side.
    Please help as it's urgent.
    thanks
    Ria

    Hi Rekha,
    Thanks for the link, I did write this code already as follows.
    data prxy type ref to zxico_zproxy_interface_po .     
    create object prxy.                                   
    data it type  zxipurch_order_info_snd.                
    try.                                                  
         it-purchorderinfo_snd-ebeln = '000010'.           
         it-purchorderinfo_snd-werks = '2320'.             
         it-purchorderinfo_snd-bedat = '10/11/2005'.       
         it-purchorderinfo_snd-potype = '0'.               
         call method prxy->execute_asynchronous            
           exporting                                       
             output = it.                                  
          commit work                                      
       catch cx_ai_system_fault .                          
         data fault type ref to cx_ai_system_fault .       
         create object fault.                              
         write :/ fault->errortext.                        
    endtry.          
    When I do syntex check it give me error message:
    The type "ZXICO_ZPROXY_INTERFACE_PO" is unknown.  SInce this object was created in XI client so is not available in the R/3 just wondering do i need to create this in R/3 side.
    Regards
    Ria

  • Hi,I want  ABAP program to create an file of this data and to upload in app

    Hi Sir/Madam,
               I want  ABAP program to create an file of this data and to upload in application server.this is urgent requirement.plz reply soon. i'll b thankful to u.
    Regards,
    Vishali

    Hi ,
    Use this abap code .this will create a file in AL11 that you can use .
    data: d_msg_text(50),
          v_string(20000) type c,
          v_filename type rlgrap-filename,
    ******Create a file on app server
    concatenate '<directory name present in AL11 case sensitive>' ' filename.CSV' into v_filename .
    condense v_filename no-gaps .
    open dataset v_filename for output in text mode
    encoding default message d_msg_text.
    if sy-subrc ne 0.
      write: 'File cannot be opened. Reason:', d_msg_text.
      exit.
    endif.
    ****Header for file
    concatenate 'information you want to write in file like header etc ' into v_string separated by '|'.
    transfer v_string to v_filename.
    *****Write data into file by looping an internal table
    loop at  <internal table > assigning <work area>.
      concatenate      <work area>-field name1   <work area>-field name2    into v_string separated by '|' .
      transfer v_string to v_filename.
    endloop.
    close dataset v_filename.
    Hope this will solve your purpose.
    Regards,
    Jaya Tiwari

  • How to bind a bapi dynamically in webdynpro abap program

    Hi Gurus,
    I want to bind a bapi dynamically in my webdynpro abap program. I have four bapis in my program. During run time depending on requirement appropriate bapi should be binded to context node. Please send me links to documents or code urgently. Points will be rewarded.
    Thanks,
    k.c.

    hi
    good
    go through this link,hope this ll help you to solve your problem
    http://www.vnsg.nl/temp/138624816/A1-WDA_Themadag.pdf
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/elaborations/14-WebDynpro-Dataflow.pdf
    thanks
    mrutyun^

  • Calling an ABAP Program from source system in a process chain

    Hi,
    I need to call an ABAP program (Extract program RMBWV308) from R/3 within a Process Chain in BW 3.5
    Your urgent advice please

    Hi,
    check the following link:
    Start an ABAP program in R/3 from a process chain in BW
    regards,
    raju

  • Call ABAP program from a process chain

    Hi ,
    Can anyone tell me how do we call an ABAP program in R3 from a process chain in BW.
    Its real urgent please help.
    Thanks
    Ankit

    Hi,
    Create ABAP program in BI/BW system with name like ZFILL_CALL.
    Create RFC enabled function module(eg: ZRFCFM) in R/3 system, in this function module call your program which fills the ZTABLE from application server.
    Call RFC function module ZRFCFM from your program ZFILL_CALL in BW system.(u need to RFC connections to these systems).
    Create process of type "ABAP program" which u will find in General sevices in RSPC. Attach this process befor u r inpackage process chain.
    Hope it will work.
    Sree

  • Trigerring workflows in an ABAP program

    Can somebody please tell me the best way to trigger a workflow in an ABAP program. And if possible please send me some sample code how it can be done. I need it urgently so if possible please reply to this ASAP.
    Thanks in advance,
    Mohsin

    Check the following Code to trigger the Workflow form custom program.
    Data for workflow trigger
      DATA: objtype    LIKE  swetypecou-objtype,
            objkey     LIKE  sweinstcou-objkey,
            event      LIKE  swetypecou-event,
            event_container LIKE  swcont OCCURS 0 WITH HEADER LINE.
      objtype = 'ZBUS1001'. "Material [sub object of BUS1001]
      MOVE v_wfmatnr TO objkey. "V_WFMATNR is material number
      event = 'CreatePLMMaterial'."Custom Event defined in
    ZBUS1001 [Tcode SWO1]
      REFRESH event_container.
    *Following are the Event parameters required in the *Workflow
      swc_set_element event_container 'Attachment' v_wfattachment.
       swc_set_element event_container 'Material' v_wfmatnr.
      swc_set_element event_container 'TisGroup' v_wftisgroup.
      swc_set_element event_container 'SchDate' v_schdate.
      CALL FUNCTION 'SWE_EVENT_CREATE'
           EXPORTING
                objtype           = objtype
                objkey            = objkey
                event             = event
           TABLES
                event_container   = event_container
           EXCEPTIONS
                objtype_not_found = 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.
      COMMIT WORK.
    In TCode SWETYPV Create entry for Object type Event and Workflow ID.
    In my case Object type is ZBUS1001
    Event CreatePLMMaterial
    Rec type = <Workflow ID>

  • Find out SE38 ABAP Program

    Hi Friends,
    How to find out a generated ABAP program for  transaction UPSPL.
    when user executes UPSPL, it generates the one ABAP program. How to find out the corresponing program name.
    It is very urgent for me.
    Please help me.
    will assign the points.
    Thanks
    BPS

    You can find out program name or Transaction code if you know either Transaction code or Program name :
    Just use Table TSTC
    When you see the table at SE16 ->
    UPSPL -> program name is UPB_PM_CUST_START 
    When you see the program -> UPB_PM_CUST_START -> within this program they are calling diffrent transaction depend upon requirement.
    I did not have data at my system otherwise i could explain.
    if you know program name -> goto SE38 -> enter program name -> click on where used list button -> you get pop up window -> here select Transaction code
    -> it will display corresponding program name
    other way goto se80 -> enter program name -> UPB_PM_CUST_START -> below you can see list of transactions
    Thanks
    Seshu

  • SE 38 abap program

    Hi Friends,
    How to find out a generated ABAP program for  transaction UPSPL.
    when user executes UPSPL, it generates the one ABAP program. How to find out the corresponing program name.
    It is very urgent for me.
    Please help me.
    will assign the points.
    Thanks
    BPS

    Hi,
    you might be able to use SE80, select the function group tab and key the function group UPB.
    Hope this helps.
    Cheers,
    Gimmo
    Message was edited by:
            Gimmo

  • ABAP Program to set a set the QM Status of a set of REquests to RED

    Hai friends,
         I have an urgent requirement. I need to set the QM status of about 100 requests and delete them from 3 infoproviders. Can anyone help me out with an ABAP program to do it, if it is possible?
    Regards,
    Neha Solanki

    Try modifying entries for tables RSREQDONE, RSMONICTAB whereever necessary.

Maybe you are looking for