How to run ABAP code as a daemon process?

Background:
I need a daemon process to check status and react on it. This daemon may run for a long time.
Current:
to implement this, use an update module, to call a normal module with an endless loop (the loop may end dependent on some condition). While the message Update Terminate was got.
Question:
1. is the current way feasible? if it's OK, what might be the cause of the above problem?
2. if the current way is not OK. what's the way to run ABAP code as a daemon process?
Thanks and kind regards,
Said
p.s.
Also please refer to the link below for more information:
can update module call normal module?

You could use InDesign Server, that can be run as a service. Have a look at its documentation for more details.
-Manan

Similar Messages

  • How to run ABAP Function Module in Background Wchich Takes Long Time to Run

    How to run ABAP Function Module in Background FOR LONG TIME
    I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
    RSDRT_INFOCUBE_DATA_COPY.
    I used SE37 and then executed the module, I supplied  the parameters on the form which opped-up and then  program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run  it in background without interruption?
    THANKS A LOT.

    Hi,
    You can call this FM in a program and run that program in background.
    Regards,
    Raju

  • How to run the code generator

    I urgently need to know how to run the code generator using creator. Can anyone assist? I cant find any tips in the forums.

    I am following the procedure to create a new custom component (or extend an existing component) available at http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/writing_custom_components.html.
    Part of the procedure says: you need to use the JSC to run the code generator based on sun-faces-config.xml metadata.

  • How find the ABAP code with Error message

    Hi
    How to  find the ABAP Code for Error Message?
    Example:
    Error Message: ZF026.
    Regards
    Odaiah Pelley
    Edited by: Odaiah Pelley on Aug 22, 2008 4:21 AM

    Hi
    Excellent Answer, I appreciate it.
    My question is with Error Message ZF026.
    How to find ABAP Code ?
    If I go for SE91 I will get same message as if I am getting error message.It is no use.
    Regards
    Odaiah Pelleyu

  • How i run that delta infopackage in my process chain

    Hello Sir,
    i have a delta infopackage which sciduled in a process chain but it does not pick any delta i have to manualy run repair full infopackage dally and then delta comes in to picture my target is a dso so it does't have any problem.
    the datasourse is costamize
    delta pointer is cal day
    my question is how i run that delta infopackage in my process chain
    Thanks...

    Hi
    IS the process type "delta infopackage " is executing in the process chain or not? Plz once check in SM37 Tcode . and Why r u running the repair full request infopackage . If u miss any delta records then only u have to run the repair full request . If delta records are not extracted then better to manually extract the delta infopackage.
    Plz once check in SM37 Tcode whether the execute infopackage process step is running or not? or any error has occured in that PC.
    Thanx & Regards,
    RaviChandra

  • How To debug ABAP code using sapui5 application on NWBC

    Hi All
    I am working on NWBC with SAP_PAO_HRPROFESSIONAL_3 Role. This role contains SAPUI5 application. I am trying debug the ABAP code called while executing this application.
    Please help me how to get into ABAP debugger while executing this application.
    Thank you
    Ujj

    HI Ujj,
    First thing to do is look at the role and see which UI5 application is being executed. The UI5 application will be running in the web container of NWBC, you can make it open in a standalone browser (hold down the CTRL key in NWBC and go to the Help Menu) and then turn on the debugging tools (F12) in the browser. There you will see which Gateway services are being called. You will need to set your ABAP breakpoint in the implementation of the Gateway services. Find the class in SE80.
    Hth,
    Simon

  • How To Create ABAP Code For HR Context Sensitive Structural Authorization

    Hello,
    We have created a HR Custom Program which IS NOT built off the PCH or PNP Logical Database. As a result, we need to manually create ABAP code for HR Context Sensitive Structural Authorization Check in our custom HR program. Via HR Context Sensitive Structural Authorizations, we are restricting access to personnel numbers and the underlying HRP* tables.
    Any assistance would be greatly appreciated with the identification of the SAP standard function modules (Ex. RH_STRU_AUTHORITY_CHECK, HR_CHECK_AUTHORITY_INFTY, HR_CHECK_AUTHORITY_INFTY , etc) used in HR Context Sensitive Structural Authorization Check, how they are used to control HR Structural authorization (P_ORGINCON), and some sample code.
    Thank you in advance for all your assistance,
    Ken Bowers

    Hello Ken
    You can use the interface methods IF_EX_HRPAD00AUTH_CHECK to get the same structural authorization as you can see in PA20/PA30. You need to use the methods set_org_assignment and check_authorization for this purpose. For more information you can refer to include FP50PE21 from line 237 onwards till 270.
    Regards
    Ranganath

  • How to write ABAP code behind, the OLAP navigation functions

    Hi SDN Community,
    We have created an artificial hierarchy within BEx, using order structure elements, or characteristic key figures as SAP calls them.
    Now, the only feature that dosent seem to be present within the OLAP, is to expand all hiearchy nodes.
    It allows you to expand one hierarchy node, but not all the structure element nodes.
    I have tried command sequencing by specifying the technical id's of the the structure elements found via RSRT2, but this dosen't work.
    I have seen that when the nodes are expanded, that there is indeed standard SAP ABAP code executing back in the datawarehouse.
    Hence, do you know
    - Where to make ABAP enhancements for OLAP functionality
    - How to execute this ABAP (will it be by using Web API and javascript enhancements)
    - Is this possible, or has it been done by anyone?
    Thank you.
    Simon

    Hi Thomas,
    I have been working with a brilliant ABAP'er, and together we
    implemented a solution in the START method, that makes use of the
    following methods and expands all the hierarchy nodes at start.
    And this class can be omitted in the Print all view we have formulated
    as only a collapsed view has been specified there.
    thank you.
    Simon
    I found this all in that class interface CL_RSR_REQUEST
    for N_R_REQUEST
    for N_R_DATA_SET
    Initial Value: Set Drilldown State of a Hierarchy
    Description: 'SET_DRILL_STATE'
    this looks like the method that gets executed. what do you think?
    can you code this in the program
    constants C_CMD_SET_DRILL_STATE type RSRCMDID
    value 'SET_DRILL_STATE'. "#EC NOTEXT
    methods SET_DRILL_STATE
    importing
    value(I_AXIS) type RRXAXIS optional
    value(I_POSITION) type I optional
    value(I_FOCUS_IOBJNM) type RSIOBJNM optional
    value(I_DRILLSTATE) type RRXDRILLSTATE optional
    value(I_TOGGLE) type RS_BOOL default RS_C_FALSE
    !I_R_PARAMETER type ref to CL_RSR_PARAMETER optional
    exporting
    !E_KEEP_LAST_LINES type I
    !E_KEEP_FIRST_LINES type I
    !E_NEW_LINES_FROM type I
    !E_NEW_LINES_TO type I
    !E_NODE_POSITION_FROM type I
    !E_NODE_POSITION_TO type I
    exceptions
    NO_PROCESSING
    X_MESSAGE .

  • How to debugg abap code

    hello expert,
    how to debugg abap code

    Hi,
    If you want debug the Start,End and Expert routine set your break point in code where you want debug. using below option.
    1. Open you code then go to Extras Menu -> Select Displau Generated Programme
    2. Go to DTP and select Serally in Dialog Process (for Debugging) and click on Execute button it will take you the debugg screen.
       there you can debug your code.
    if you want check field routine. once you active that code in that Transformation only you find the test option there you can check your code is working or not.
    Hope it will help you.
    Thanks and Regards,
    Venkat.

  • How to run servlet codes in WebServer 6.1?

    I am new to Java Web Server and at our place we had installed WebServer 6.1. How to run Servlets in this - the default directory is
    http//win2000:81/Sun/WebServer6.1/docs
    I have'nt insatlled any new virtual class / servers - just running with the default class and servers.
    I could not find any virtual directory named servlet (similar to JavaWebServer 2.0) here.
    Someone kindly tell me how to post servlet files and run them.

    Refer "Sun ONE Web Server 6.1 Programmer's Guide to Web Applications"
    http://docs.sun.com/app/docs/doc/817-1833-10
    Meena

  • How to insert abap code in LSMW generated program?

    hi,
    i m working on LSMW for loading data in SAP
    i would like to insert abap code into the generated program....
    it's because i have 1 BKPF segment (header data), 2 BSEG segments, but i cannot define rules by customizing for the second BSEG segment(LSMW doesn't permitt).
    i already tried to insert code directly into the program, but obviously it disapears at each time i generate the program.
    i saw that apparently a code insertion has already be made into this program and the subject of this insertion is to define rules for the second BSEG (exactly what i want to do....) and this modification doesn't disapear at new prog generation.....
    Any idea ?

    Hi
    Why dont you use the FORM provided by LSMW
    To use this please do the following
    1.Goto option <b>Maintain Field Mapping and Conversion Rules</b>
    2.Goto menu <b>EXTRAS->LAYOUT->Form Routines</b>
      Here you will now get many options like
       Global Data
       Begin of Transaction
    Begin of Processing
    Begin of Record
      like wise the End of these also.
    Please put a breakpoint and check where you want to insert your code.
    Note:
    This is only for the Conversion Program and does not affect the main program used to update the Standard Tables
    Hi , I was reading your earlier post .. It seems that you have worked on EMIGALL. Consider a similar situation, it is like writing the code in the events till CALL01...
    Thanks
    DOminic
    Message was edited by: Dominic  Pappaly

  • Running abap code when Browser is closed,

    Hi,
    In my application,  need to delete couple of rows in a table when the user closes the browser. In order to do this i have written a JavaScript when executes itself when the browser closes. When i code a alert message it executes fine when the browser closes but, when i write an abap code it gets executed when the page loads itself. I have tried to methods. Both aren't working.
    Method1 :
    <%@page language="abap" %>
    <html>
        <head>
        </head>
      <script language="JavaScript">
        window.onunload = unloadHandler;
        function unloadHandler() {
                    <%
                      delete from ZDATALOCK
                      where auid = sy-uname.
                    %>
      </script>
        <body>
            <tr>
            <td>
               <table  border="0" width="100%" height="100%" align="center">
               <tr>
                   <td>
                   <iframe src          = "mas.do"
                           style        = " overflow:visible; height:100%; width:100%; "
                           name         = "Form"
                           marginheight = "0"
                           marginwidth  = "0"
                           frameborder  = "0">
                   </iframe>
                   </td>
               </tr>
               </table>
            </td>
            </tr>
        </body>
    </html>
    Method2 :
    <%@page language="abap" %>
    <html>
        <head>
        </head>
      <script language="JavaScript">
        function dellock() {
                    <%
                      delete from ZDATALOCK
                      where auid = sy-uname.
                    %>
      </script>
        <body onunload=dellock()>
            <tr>
            <td>
               <table  border="0" width="100%" height="100%" align="center">
               <tr>
                   <td>
                   <iframe src          = "mas.do"
                           style        = " overflow:visible; height:100%; width:100%; "
                           name         = "Form"
                           marginheight = "0"
                           marginwidth  = "0"
                           frameborder  = "0">
                   </iframe>
                   </td>
               </tr>
               </table>
            </td>
            </tr>
        </body>
    </html>
    Kindly help.

    Hi,
    ABAP code is server side and JS is client sides. You can't execute ABAP on the front end. What I suggest is that you submit a form before you actually close a window.
    document.someform.submit();
    window.setTimeout('window.close()',5000);
    The close will only happen after 5000ms.
    Check http://www.devguru.com/Technologies/ecmascript/quickref/win_settimeout.html for details.
    in the oninputprocessing you can do your
    delete from ZDATALOCK
    where auid = sy-uname.
    Also check /people/eddy.declercq/blog/2006/03/20/wake-me-up-before-you-go-go
    Eddy

  • How to write abap code to create manual hierarchy

    Hi,
    This is urgent got to write abap code to create manual hierarchy.
    Thanks

    Hi Adam
    Thanks for replying.
    In my scenario i have one custom zinfoobject which have lots of attributes.
    So, i have to create hierarchy for this zinfoobject with three nodes. one node/charateristic is present in this zinfoobject as attribute. which will be the first node of hierarchy.
    Then second custom infoobject is external not present in attribute list. which will be the second node of hierarchy.
    Third node will be for which i am creating hierarchy.
    So basically need solution for this first.
    some one will load hierarchy info in some table and then will create view on top of that then i have to create datasource on top of that and write a program to load the data from that view in this hierarchy.
    Need solution for this abap program also.
    Thanks
    SAPBW

  • How to run the LabVIEW exe as background process?

    Dear All,
                   I want to run my LabVIEW exe as background process, which wont show as the process in the task bar as shown in the .jpeg file.
                    I want to run it as a background services as like runs in the windows processes.
                    Please suggest me something.
    Thanks,
    Nishant

    Dear Smercurio,
               Thanks for the good one, but it still requires the windows XP or later OS, when i extract the software, it gives me this error.
               Even Fire Daemon software (same one provided by Alessio in this post) is also running the same, and we even dont have to make it Automatic to start at boot up time, it automatically creates the automatic service which also runs at boot time, so not to worry about anything.
    Thanks,
    Nishant
    Message Edited by Nishant on 12-05-2006 10:12 PM
    Message Edited by Nishant on 12-05-2006 10:16 PM
    Attachments:
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB

  • How to run Java codes from ABAP

    Hi Gurus,
    I have .JAVA & .CLASS files which connect to the website through HTTPS connection and generates the TEXT file at C:\ by obtaining some data from WEB Site. This java files needs SSL certificate Which has been imported in SAP. How can i run the Java files from SAP R/3, Please help me.
    Thanks
    Ganesh

    hiii
    refer to following link..
    Java from ABAP?
    Re: Calling Java API from ABAP using JCo
    i hope it will solve your problem
    regards
    twinkal

Maybe you are looking for

  • Zero records in generic extractor

    Dear all , I have created  a generic extrator with function module but there are zero records which are getting extracted.I am able to extract records if I execute only the function module. Below is the code for the same.* FUNCTION ZGET_CUST_SALP . "

  • Photo and email

    How do I attach a photo to a e-mail?

  • Apple server - some address can't receive mai

    I'm running an Xserve with Tiger Server. I've set up about a dozen users and most of them can receive email just fine. I've got one though, that when I send an email to that address from a company Exchange server, it comes back with this: Diagnostic-

  • Website's browser fill does not load on iOS devices.

    I've checked this on several different iPads & iPhones with similar results. Works and loads correctly on android devices and different desktop web browsers.

  • How do I find my posts on Forums

    I am trying to find my posts on forums any idea how I search for these. Thanks