Debugging in FM started in background

Dear Colleagues !
I start an FM in background (it must be started there). I'd like to debug it. At the command for starting this FM I have a debugging point. Here I can set the property check box "TRFC (In background Task): Block Sending". Thereafter I go forward with F8. If I start afterwards the tx SM66, I don't see my FM in the list.
What do I make wrong ? What is my error ? Can You give me any advice ?
Thanks a lot and kind regards
Peter

Hi,
If it is a custom function module.. Try to code a infinite looping before the code which u want to debug as below:
DATA: int type i.
WHILE int = 0.
CLEAR int. (it doesn't make any sense.. but still just to have infinite looping.. write any code which doesn't change the value of int.
ENDWHILE.
Now execute the FM in bacground. Go to SM50.. You will see the your FM execution in the process overview.
Process will list the processes being run in the current application server.
Select your specific process & go to PROGRAM/SESSION ---> Program ---> Debugging
This should open a debugging screen in another session which will point to the infinite looping line. Now change the value of INT in the debugging mode.. & proceed further to debug your subsequent main code..
If its a standard function module, then Schedule a job & select the job & type "JDBG" in the command field. You should be able to get into the debugging mode..
Plz let me know if you have questions..
Thanks
Geetha

Similar Messages

  • Error in debugging tRFC Function module (in background task) in SM58

    Hi,
    I am trying to debug this statement:
    CALL FUNCTION 'CRM_UPLOAD_TRIGGER'                 
      IN BACKGROUND TASK                               
      DESTINATION gv_smof_erpsh-rfcdest AS SEPARATE UNIT
    I have followed these steps:
    When you debug a program that calls function modules using the IN BACKGROUND TASK addition, they are processed in a background work process (additional internal session). If you set the In background task: Do not process option, the system collects the function calls, but does not start the background work process. The Debugger assigns a transaction ID, which identifies the background work process uniquely. You can now start the Debugger for the background work process using transaction SM58. You can select the function module concerned here, and then execute it via the Edit menu.
    but still i cant find any entry in SM58.
    Can anybody help me out in this?
    Thanks a lot.
    Best Regards,
    Shweta

    HI,
    When the COMMIT WORK statement is executed, the function modules registered for the current SAP-LUW are started in the order in which they were registered. ROLLBACK WORK deletes all previous registrations for the current SAP-LUW.
    If the specified destination is not available when COMMIT WORK is executed, an executable program called RSARFCSE is started in background processing. By default, this tries to start the function modules registered for a SAP-LUW in their destination every 15 minutes and up to 30 times. These parameters can be changed in the transaction SM59. If the destination does not become available within the defined time, it is recorded in the database table ARFCSDATA as the entry "CPICERR". The entry in the database table ARFCSSTATE is deleted after a standard period of eight days

  • [SOLVED] How to get NetworkManager start on background during boot?

    NetworkManager has always taken relatively long time to start during boot, presumably waiting for wlan to connect.
    $ systemd-analyze blame
    7.682s NetworkManager.service
    Previously I was able to get it to start on background by removing /etc/systemd/system/multi-user.target.wants/NetworkManager.service
    This prevented multi-user.target from waiting for NM to start and it would continue to connect on background while my boot finishes.
    However, after upgrade to networkmanager-0.9.10.0-2 that doesn't seem work any more.
    If I remove the .service file from multi-user.target.wants/, NetworkManager doesn't start during boot at all.
    enabling NetworkManager.service creates these symlinks:
    # systemctl enable NetworkManager
    Created symlink from /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service.
    Created symlink from /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service to /usr/lib/systemd/system/NetworkManager-dispatcher.service.
    looks like enabling any other basic systemd unit links the .service file to multi-user.target.wants/ as well..
    How can I enable NetworkManager.service during boot without multi-user.target.wants/, and get it to start on background again?
    any ideas appreciated :)
    Last edited by ooo (2014-08-03 12:13:28)

    Okay, looks like this can be resolved by simply changing the NetworkManager.service type from dbus to forking.
    $ systemd-analyze blame
    173ms NetworkManager.service
    Here's the modified service file if anyone's interested:
    place it in /etc/systemd/system/NetworkManager.service
    [Unit]
    Description=Network Manager
    Wants=network.target
    Before=network.target
    [Service]
    Type=forking
    PIDFile=/var/run/NetworkManager.pid
    BusName=org.freedesktop.NetworkManager
    ExecStart=/usr/bin/NetworkManager --pid-file=/var/run/NetworkManager.pid
    # NM doesn't want systemd to kill its children for it
    KillMode=process
    [Install]
    WantedBy=multi-user.target
    Alias=dbus-org.freedesktop.NetworkManager.service
    Also=NetworkManager-dispatcher.service
    You need to disable NetworkManager.service before creating the file and enable it after so that systemd links the file from /etc/systemd instead of /usr/lib/systemd,
    there may be simpler way but I can't be bothered to go through systemd manuals any more.
    Note that this will probably break any systemd .service that actually requires network, although that was the case with my previous workaround as well.
    I won't guarantee this will work for you and won't set your machine on fire. If you have issues, simply remove the file and re-enable to go back to default

  • Essbase process started in background is going on "In Queue" State

    Hello,
    I am using 11.1.2.1. Any Essbase process started in background is going on "In Queue" State. And the process never starts.
    Any help would be appreciated.

    Hi,
    Try the following steps..
    1. Stop EAS
    2. Delete all the contents of WebLogic temp folder
    Location: EPM_ORACLE_INSTANCE/../domains/EPMSystem/servers/EssbaseAdminServices0/tmp/ --> delete all the content under this folder
    3. Start EAS server
    Hope it helps...
    KosuruS

  • How to start a background engine

    When I use wfbkg.sql to start a background engine, it says wf_engine.Background has not been identified. What should I do? And is it necessary to use background engines?
    thanks,
    Alice

    Hi,
    What version of workflow are you using? What user are you running the script as?
    In standalone workflow, login as your workflow user (default user is owf_mgr but this can change during installation), and you should be able to run it. Either that or just run
    exec wf_engine.backgroundfrom SQL*Plus.
    In Apps, you should schedule the job through concurrent manager as Workflow Administrator.
    You only need to run a background engine if you have any processes which are not going to timeout, defer to the background, or get stuck (where the correct path cannot be determined). If you aren't deferring or having timeouts, then you don't need to run a background engine at all - my first multi-million pound Workflow implementation didn't have any background engines, but this is more the exception than the norm.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com

  • Starting Workflow Background Engine

    When grant a role to a user in E-BS using "User Managment responsibility", I get this waring
    Updates to Role data will not be visible in the application until the following processes are started : Workflow Background Engine
    1. How does one start Workflow Background Engine?
    2. Will bouncing the server going to give that role to the user?
    regards, Yora

    Updates to Role data will not be visible in the application until the following processes are started : Workflow Background Engine
    1. How does one start Workflow Background Engine?Please see this thread for the same issue -- Workflow Agent Listener and Workflow Background Engine
    2. Will bouncing the server going to give that role to the user?Yes.
    Thanks,
    Hussein

  • Setup Monitoring: REP trigger could not started in background

    Hello experts,
    I face the following problem in activating system monitoring for a managed system:
    Technical monitoring => Step 5 Setup Monitoring with yellow alert:
    Assigning templates was successfully but following error occurred:
    Activating managed object <SID>~ABAP, object type T_SYSTEM (CID 0050568100011EE18ED899A5F38FCEC4)
    REP trigger could not started in background. Waiting 5 seconds for a retry
    Details (<Host> and <SID> are replaced):
    <SID>
    Activating managed object <SID>, object type DBMS (CID 0050568100011EE18ED8981AA0C04EC4)
    REP trigger could not started in background. Waiting 5 seconds for a retry
       <host>
    Activating managed object lvsapq1, object type HOST (CID 0050568100011EE18ED8981AA0C20EC4)
    REP trigger could not started in background. Waiting 5 seconds for a retry
       <SID>ABAP>Host>_<SID>_00
    Activating managed object <SID>ABAP<Host>_<SID>_00, object type INSTANCE (CID 0050568100011EE18ED89D6289F96EC4)
    REP trigger could not started in background. Waiting 5 seconds for a retry
       <Host>
    Activating managed object <Host>, object type HOST (CID 0050568100011EE18ED8981AA0C20EC4)
    REP trigger could not started in background. Waiting 5 seconds for a retry
    Any ideas where the problem is and how to fix it?
    Thanks and best regards, Basti

    Hi,
    applying and activating a hour later, the problem was gone. But I don't have data in the system monitoring. I have opened another thread for this troubleshooting. Maybe this information is useful for somebody having the same problem.
    Thanks, Basti

  • Debugging the Functional Module in Background.

    I am calling a Custom Functional module in Background mode using the syntax CALL FUNCTION ZFM in background task.
    Can anyone tell how to debug the code using this..
    Thanks ,
    Yatish

    Hello Yatish
    You could try to use the following trick:
    (1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
      DATA:
        lx_exit_loop(1)     TYPE c.
      lx_exit_loop = ' '.
      DO.
        IF ( lx_exit_loop = 'X' ).
          EXIT.
        ENDIF.
      ENDDO.
    (2) Call your function module in background task
    (3) Call transaction <b>SM50</b> and search for the background process.
    (3) Choose from menu <i>Program/Mode -> Program -> Debugging</i>
    Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
    Regards
      Uwe

  • Remote Debug mode while starting Weblogic server using my eclipse plugin

    Hi
    When am starting the Weblogic server via my eclipse it is opening in Remote Debug mode. Can anyone tell me how do I change the preferences/configure so that it doesnt run in debug mode.
    NOTE:I have deployed the application and ran number of times, till yesterday it wasn't starting in this mode, though I haven't changed any settings since then, it is starting in Remote Debug mode.
    Thanks,

    The above issue is resolved by adding this to setDomainEnv.sh :
    ALTERNATE_TYPES_DIRECTORY="${WLPORTAL_HOME}/portal/lib/security"
    export ALTERNATE_TYPES_DIRECTORY
    JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.alternateTypesDirectory=${ALTERNATE_TYPES_DIRECTORY}"
    # weblogic extension directories (system jars)
    if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/p13n/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    else
    WEBLOGIC_EXTENSION_DIRS="${WLPORTAL_HOME}/p13n/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    fi
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/light-portal/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/portal/lib/system${
    CLASSPATHSEP}${WLPORTAL_HOME}/info-mgmt/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/analytics/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/apps/lib/system${CLASSP
    ATHSEP}${WLPORTAL_HOME}/info-mgmt/deprecated/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/content-mgmt/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
    JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ext.dirs=${WEBLOGIC_EXTENSION_DIRS}"
    export JAVA_OPTIONS
    fi

  • Dreamweaver & Photoshop start in background

    Yep, they just start in the background in the task manager.  The only solution I have found to work is to start the program (Photoshop or Dreamweaver) several times then once it pops up, kill the rest in task manager.  For Dreamweaver, I can kill just one of the extra processes and it will close the rest for me.  PS doesn't do this.  I have to stop each extra occurence of Photoshop.  This is a big waste of time for me.
    I have CS3 - Dreamweaver and Photoshop seem to be the only ones having this problem since I reinstalled CS3.
    Thanks a bunch,
    Michael
    My computer:
    C2D E8400 o'cd @ 3.6GHz
    8GB ram
    1TB raid 0
    2 512mb 9600GT's in SLi
    Vista Ultimate 64-bit

    Have you tried the DW and PS forums? You might get a bit more help that way.
    FWIW, I never saw that type of behavior with CS3 on Vista 64.
    Bob

  • Delay start of background audio?

    Is there any way to delay the start of the background audio track?
    I'd like the video to start first, silently, and have the audio come in a second or two later. I can pin the audio to the first still image but if I later move that to rearrange the order of the first slide then I have to fix up the audio...
    If I could delay the start of the background audio I'd avoid that problem.

    I still want it to run automatically but be able to adjust the start time. Can anyone explain how to use "starttime", here is the explanation, but I don't understand:
    STARTTIME=time (optional...requires QuickTime 4)
    The STARTTIME attribute defines the first frame of the movie. STARTTIME can be any time within the length of the movie. By default, STARTTIME is the first frame of the movie (or 00:00:00). This attribute takes a time value in the form Hours:Minutes:Seconds:Frames (30ths). The frames component can be specified as a fixed point number so that more specific times can be specified for instance 3:30:22.5 means 3 minutes, 30 seconds and 22.5 frames.
    Sounds like what I need but can't get it to work, what is "frames"? thanks

  • PJC Debug - can't start applet

    Hi
    I have tried using the instructions here
    http://www.oracle.com/technology/products/forms/htdocs/howto_debug_pjc.html
    to use Jdeveloper to debug a pjc. I am using Jdev 10.1.3 and the instructions haven't been updated for forms 10.1.2. This is the html file I am running
    <HTML>
    <!-- FILE: debug_pjc.htm (Oracle Forms) -->
    <!-- -->
    <!-- This is a HTML file used for debugging Pluggable Java Components -->
    <!-- update the serverArgs parameter to include your test module -->
    <!-- name and any other required Forms arguments -->
    <!-- Amend references of 127.0.0.1:8888 to the correct server and -->
    <!-- Port number if you are using a remote server -->
    <HEAD><TITLE>Debug My PJC</TITLE></HEAD>
    <BODY>
    <APPLET CODEBASE="w4517:8890/forms/Java"
    CODE="oracle.forms.engine.Main"
    ARCHIVE="frmall.jar"
    WIDTH="1000"
    HEIGHT="700">
    <PARAM NAME="serverURL" VALUE="http://127.0.0.1:8890/forms/frmservlet">
    <PARAM NAME="serverArgs" VALUE="module=test userid=gpd/[email protected]">
    </APPLET>
    </BODY>
    </HTML>
    I select the html file in jdev and click the debug button on the toolbar. The applet seems to start but everytime I see the following error:
    FRM-92050: Failed to connect to the server http://127.0.0.1:8890/forms/frmservlet:-1
    If I paste the URL into my browser the form starts no problem.
    BTW does anyone know how to add a single file to a JDev project. I had to add the forms/java directory to my project to get the html file into my project - this has resulted in much file clutter in my project when all I wanted was one file!
    thanks
    paul

    Hi,
    the serverURL shouldn't point to the Forms Servlet but the FormsListenerServlet. The Forms servlet only compses th starting HTML file, which you already have. Point it to the Forms Listener Servlet (check teh default value in formsweb.cfg) and it should gets you going
    Frank

  • Cannot start up background job in WOrkflow

    Dear Sir,
    I have the workflow in CRM  and there is some trigger to run background job. but not the background job in the workflow is not run. How to start the trigger?
    Please kindly advis.e
    Thanks and best regards,
    VImol

    Hi
              can you send the stack trace after "Caused By" part of exception.

  • How to debug a program running in background ?

    How do we debug a prorgram running in the background ?
    Is BREAK-POINT statement is used for this or ne other method exists
    I have gone thr the standard documentation help for BREAK-POINT Statement, but not getting it.
    Regards,
    Nitin

    Hi Nitin, try to do this:
    1. use the following code instead of break-point:
       data a type c.
       do.
         if a = 'X'.
           exit.
         endif.
       enddo.
    2. while the program is running in background, launch transaction SM50.
    3. select the program in the list and choose Program/Mode -> Program -> Debugging
    4. at this point the program should stop in the infinite loop. to exit from the loop, set the variable a to 'X'
    Best regards, Manuel

  • How to debug java web start with jdk1.5?

    i want to debug a JWS app with eclipse, not java console, so I follow Unofficial Java Web Start/JNLP FAQ(http://lopica.sourceforge.net/faq.html) and still not worked.
    the attached session worked at first and broke soon, and I found some idea from Unofficial Web Start FAQ Update/Errata(http://lopica.sourceforge.net/update.html). I did the following:
    set JAVAWS_TRACE_NATIVE=1
    javaws http://localhost/test/test.jnlp
    copy command line from popup window.
    add "transport=dt_socket,server=y,address=7000" to command line:
    C:\progra~1\Java\jdk1.5.0_03\bin\javaw.exe -Xrunjdwp:transport=dt_socket,server=y,address=7000 -Xbootclasspath/a:C:\progra~1\Java\jre1.5.0_04\lib\javaws.jar;C:\progra~1\Java\jre1.5.0_04\lib\deploy.jar -classpath C:\progra~1\Java\jre1.5.0_04\lib\deploy.jar -Djnlpx.home=C:\progra~1\Java\jre1.5.0_04\bin -Djnlpx.splashport=4362 -Djnlpx.jvm="C:\progra~1\Java\jdk1.5.0_03\bin\javaw.exe" -Djnlpx.remove=false -Djava.security.policy=file:C:\progra~1\Java\jre1.5.0_04\lib\security\javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.heapsize=NULL,NULL com.sun.javaws.Main http://localhost:8080/test/test.jnlp
    the debugger still gets detached. I don't know what's wrong.
    JWS has come out for many years, I still found so many undocumented skills, even netbeans5 doesn't support it. Sun want to give up java?

    Try checking out this other thread, particularly the reply from dietz333 (I happen to know he's a regular genius when it comes to JavaWS):
            http://forum.java.sun.com/thread.jspa?forumID=38&threadID=569693

Maybe you are looking for