Process for Debugging BW Start Routines

I need a detailed process for how to debug the ABAP code of a start routine, particuarly when one ODS is being loaded into another.  I know that there is a way to do this with the ABAP debugger but cannot figure it out.
Are there any documents out there that can assist me?  I did a search, but all of the examples were too specific to be useful for just general debugging.
Thanks!

Hi,
It is not possible to debug in start routine through conventional way upto 3.5 version.
You need to put an endless loop in the start routine.
The program will keep running in the endless loop.
It can achieved by the following code.
  data: true,
        false.
  true = 'X'.
  do.
    if true = false.
      exit.
    endif.
  enddo.
And in transaction SM50, the endless loop program will visible.
select the program by clicking the check box on the left hand side,
then on the menu,
Program/Mode -> Program -> Debugging.
I hope this helps.
Thanks.

Similar Messages

  • Not able to debug the start routine

    Dear All,
    I am facing a weired situation.
    I have a transformation(DSO -> Cube) with start routine. I am able to debug the routine in Development System.
    I transported the routine to Production System successfuly, but i am not able to debug the start routine there. I have all the necessary authorisations(SAP_ALL, SAP_NEW)
    I am perplexed. Never seen such issue before.
    Can someone help me here?
    Regards,
    Avinash.
    Edited by: Avinash Kumar on Nov 5, 2008 11:16 AM

    Dear Jerry,
    Thanks for writing.
    I followed the instruction, but it didn't work.
    Can there be any technical reason for data package to be empty, even if the source has data(Note: There is no filter in DTP)?
    Also, i just checked with other start routines...I am not able to debugg there also. System is not entering the debug mode.
    Here, the patch level is: 0010. Can this be the villain?
    Please advise.
    Regards,
    Avinash.
    Edited by: Avinash Kumar on Nov 6, 2008 4:26 AM
    Edited by: Avinash Kumar on Nov 6, 2008 4:51 AM

  • "atos needs to take control of another process for debugging to continue.  Type your password to allow this."

    I get this always "atos needs to take control of another process for debugging to continue.  Type your password to allow this."
    Please how can i stop this from coming on my Macbook?

    If you're running a database application called "Bento," you'll have to stop using it. It's incompatible with Yosemite and has been discontinued by the developer. Other applications that have been reported to cause this alert are "Sketchup," "FontExplorer," and "Juniper Network Connect." Refer to the developer for support.

  • "atos needs to take control of another process for debugging to continue" ??

    Hi, I just updated to Yosemite, I am using SketchUp Pro and got a scary pop up from "Atos" saying : atos needs to take control of another process for
    debugging to continue. Type your password to allow this". What do I need to do. I need to use Sketchup. I clicked continue and Sketchup crashed.
    I thought It was a virus.
    Please someone tell me what do I need to do? to fix? Thank you
    thank you

    It's a known issue with that application. Only Google can do anything about it.

  • How to debug start routine for the custom code?

    Hi Experts,
    Can anybody tell me how to debug the start routine? Also could you please guide me where to write the custom code in the start routine.
    Thanks in advance.
    Sharat.

    Rajkumar,
    Thank you for your help. but the blog link that you send it to me does not mention anything about ABAP debugger screen.
    What should I do once I get in to the ABAP debugger? the link only tells how to get to the ABAP debugger that I know.
    Also it say that I have to use the infinite loop to debugg the start routine.
    Can anybody tell me how to debugg start routine with the scren shots please. I don't know how to use infinite loop in the start routine. Is their any easy process step by step to see my particular record behavior in the start routine?
    I will assing you the points. again thank you.

  • How to debug start routines of update rules from ODS to InfoCube

    Dear gurus,
      I have an update rule from ODS to InfoCube. I wrote a start routine in the update rule. Now I want to debug it. I went to monitor and simulate update the data package and only got the prompt "No data exists in the corresponding PSA table". So how can I debug this start routine?
      Thanks in advance.
    Jin Ming

    Jin,
    In order to use PSA between ODS and InfoCube, you may have to use an exclusive InfoPackage and load separately. In that InfoPackage, choose the radio button to use a PSA.
    I think you are currently updating the InfoCube directly without using a separate InfoPackage.
    Look for an InfoSource under DataMarts (search for 8<ODS Technical name>) and create your InfoPackage there.
    Good luck.

  • Debug Start routine in BW 3.5

    Hi,
    I have start routine at Update rules and I have observed that some of the quantity and amount key figures are not calculating properly. It is complex start routine. Can you please let me know the steps to debug the start routine for every record? Example what are the values it is picking up and how the values are getting calculated.
    Please let me know the steps.
    Thanks,
    Ganga

    Hi,
    Just simulate it.  Load the data through the PSA, then go into the monitor and select your request.  Choose the "Details" tab.   Open up the Transfer section and right-click on a data package and choose Simulate Update.  In the pop-up, click on Activate Debugging in Update Rules and then Perform Simulation. 
    You can then step through the code.
    Brian

  • Cache issue coming in Start Process for Employee iView under MSS

    Hi,
    Navigate to MSS -> Team -> HCM Process and Forms -> Start Process for Employee
    In Start Process for Employee iView, when I clicks on Refresh link at the bottom right of the table the Direct Reports got removed from the table (which is correct) but when I navigates to some other screen and comes back then again the previous data comes back. It seems to be cache level issue. Even I logs off and login the same data comes back which should not happen.
    I have checked the forum [Team=>Personnel Developent=>Employee Search; and found it that Refesh property will work if I set the parameter of iview Cache Lifetime = -1 then it will disable the caching at all.
    And I wants the same behaviour for Start Process for Employee iView. But I am not able to find the similar property in Start Process for Employee iView.
    Anyone have an idea of What is the resolution for this issue?
    Regards,
    Deep

    Hi Deep,
    now I understand your problem )
    To me it sounds like an OADP cache issue rather than one in Portal. The iview uses OADP which again uses the cache which does not reflect on the actual current org-structure.
    One possibility would be enhancing the WD4A and call FMs
    HRWPC_OADP_DELETE_TGTOBJCACHE
    HRWPC_OADP_DELETE_SRCHOBJCACHE
    HRWPC_OADP_DELETE_NAVOBJCACHE
    HRWPC_OADP_DELETE_DATAVWCACHE
    dependent on what you want to delete to refresh.
    I would probably try to enhance HookMethod WDDOINIT in Component Controller and call them there, but that's just a guess; could be complete nonesense.
    Another possibility would be trying to add the application parameter "sap.xss.req.crt.cachelifetime=0" to the iView.
    Links for reference:
    http://help.sap.com/saphelp_ppm50/helpdata/en/21/1ac5ca5cad46528d4f970cc03b8e8f/content.htm
    Web dynpro abap and OADP cache
    http://help.sap.com/saphelp_dimp50/helpdata/DE/97/7f754067025537e10000000a1550b0/content.htm
    hope this helps a bit now
    regards, Lukas

  • How to Debug  ABAP/4 routine in Dynamic Selection?

    Problem:
            I am not able to debug the ABAP/4 routine in data dynamic selection.
    Analysis:
            I typed /H on  transaction command prompt. I entered to ABAP/4 debug mode.
    Then I am not  able to debug my routine. Give me solution for this problem?

    Hi Surya,
    If you want to debug the routines in transformation
    GOTO Transformation you need to debug -- seelct the tranformation id
    To debug these routines we need to go to the generated program of the Transformations in two ways:
    We can get the Program ID for the Transformation ID (6HkDSDsHJNQO0VTU3HK01MH7) from table RSTRAN.
    You can get the program id from the table... append GP to the program id you will get the report program for transformations.
    Now goto Tcode : se38 enter the program name and set the break points.
    On going with display we will be to the ABAP editor of the Report Program.
    The other way of getting to this program is from the Transformations itself.
    Go to Extras -->Display Generated Program. It directly takes us to the ABAP editor of the Report Program.
    Set a break point at the code you want to debug, i.e. at your selections at start routine and at your update
    routine.
    Now after setting the Break points run the DTP in the debug mode.(Select the Processing Mode Serially in the Dialog process (for Debugging)).
    If you are on BW 3.x
    /people/pavan.bayyapu/blog/2006/09/06/debugging-data-upload-in-bw
    Regards
    KP
    Edited by: prashanthk on Jul 25, 2010 10:05 AM

  • Start Routine & DTP

    Hi Friends !
    Facing a bit strange issue. When I run the DTP with selection for all AC_DOC_NO, start routine works fine & I am getting the expected result. But when I run the DTP without selection, result is not as expected. During debugging also I can see the correct records. Please advise.
    With Regards
    Rekha

    Hi,
    If you are loading to DSO, I am sure there could be some overwrite is happening where u r missing the expected records.
    if this is the scenario then try to add keyfield in DSO to overcome from overwrite.

  • Does SAP support open tender process for Vendor selection

    Hi all,
    Does SAP Support Open tendering process for Vendor Selection.
    I men in my clients scenario. For vendor selection process for any material starts with advertisement of tender  in newspaper. Vendor replies back with his quotation. After receiving technical and commercial quotation, the organization go for technical bidding and those who qualify in technical bidding they contest for commercial bidding. After commercial bidding, comparative statement is prepared and then purchase committee approves the vendor. The problem is that any no. of vendors from any where can give their reply to the tender as it is a government organization. So, how to map this process in SAP as we are not directly sending RFQ to the vendor, instead he reply back with quotation directly once he sees the advertisement in newspaper.
    I want you all to suggest me whether to keep this process in SAP or out of SAP. waiting for your response.
    Regards,
    Amit

    Hi Ravi,
    Thanks for your response. My problem is that the organization advertise its tender in newspaper of all india circulation and seeing that tender vendor reply back with quotation. They don't identify who all are the vendors to whom RFQ is send. only when reply of vendor comes with quotation client comes to know about the vendors submitting quotation. Normally one vendor is selected for one material and 20 to 25 vendors give their quotation. Is it feasible to bring those 25 vendors in SAP if only one will be selected. Because in any way, for any processing we need to create vendor in SAP. So do we need to create 25 vendors, though we know we require only one finally. Can you please clarify this issue. If you want I can mail you the whole process map.
    Thanks & Regards,
    Amit

  • Debugging: start routine in transfer rules

    Hi !
    can you please tell me how to debug start routines  and field routines in transfer rules?
    If possible please tell me too debugging of update rules.

    Hi Rajib,
    Go to the monitor -> Details tab -> Processing -> Choose the datapackage you want to debug -> Right click -> Simulate update -> Choose eather activate debugging in transfer rules (to debug in transfer rules) or debugging in update rules(for start routine and update rules).
    You can mention the number records you want to debug also, if you have an idea of which records you want to debug you can give the number of that record.
    Once the debug screen comes up, press F8...the control stops at first break point...from there you can do a step by step debugging (F5).
    Hope this helps...
    Regards,
    Kalyan

  • How to start SAPGUI at entry point to RFC for debugging (using JCO)?

    Hi,
    I am calling an RFC using JCO and trying to have the SAPGUI pop up at the entry point to the RFC for debugging.  But it is not working on Mac OS X.
    I activate the debug via
       JCO.Client client = JCO.createClient(..);
       client.setAbapDebug(true);
       client.setSapGui(1);
       client.connect();
    it gives error:
    sh: line 1: /usr/sap/DV2/SYS/exe/run/sapgui: No such file or directory
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
    I then tried to set environment variable SAPGUI=/Applications/SAPGUI\ for\ Java\ 6.3r5.2/SAPGUI\ 6.30rev5.2.app/Contents/MacOS/SAPGUI
    and it then starts up the SAPGUI for Java Logon Pad.
    But, I want the SAPGUI to start up at the entry point to the RFC.
    Is this possible in Mac OS X?  It has worked before on Windows using the RFC SDK utilities or middleware tools such as IBM Crossworlds.
    Thanks

    Hi Robert,
    Thanks for the reply, it was very helpful as I had given up hope on getting a solution.  Unfortunately I am still getting an error.
    1) I created a script as per your directions containing
    "/Applications/SAPGUI for Java 6.3r5.2/SAPGUI 6.30rev5.2.app/Contents/MacOS/SAPGUI" -n -o $*
    2) Now the SAPGUI application starts, but does not open a window and I get the error:
    ERROR #############################
    18.05. 11:58:42.943 ERROR: AgiWindowAdaptor::update: no menu
    ERROR #############################
    3) I switched on the tracekeys with -t CON,SES,EVT,C_AGI to get more detail:
    18.05. 11:58:41.420 TRC: Active trace keys: CON,SES,EVT,C_AGI
    18.05. 11:58:42.709 CON: new GuiConnection
    18.05. 11:58:42.727 CON: GuiConnection.open(/H/<appserver>/S/3235&rfcid=02D5428B909E32190000,tmp)
    18.05. 11:58:42.846 CON: new GuiNiNetConnection
    18.05. 11:58:42.872 CON: GuiNiNetConnection.open(conn=/H/<appserver>/S/3235&cpg=1127&jenc=MacRoman&jloc=en&rfcid=02D5428B909E32190000)
    18.05. 11:58:42.872 CON: GuiNiNetConnection.open: resolved hostSpec = /H/<appserver>/S/3235
    18.05. 11:58:42.915 CON: -
    18.05. 11:58:42.916 CON: GuiNiNetConnection: sending DIAG data to connection for modus 0
    18.05. 11:58:42.918 CON: -
    18.05. 11:58:42.919 CON: GuiNiNetConnection: sending DIAG data to connection for modus 0
    18.05. 11:58:42.927 C_AGI: calling AgiSessionPool->ParseIt() for modus 0
    18.05. 11:58:42.929 C_AGI: AgiLibAdaptor::onNewPrimary
    18.05. 11:58:42.941 C_AGI: returned from AgiSessionPool->ParseIt() for modus 0
    ERROR #############################
    18.05. 11:58:42.943 ERROR: AgiWindowAdaptor::update: no menu
    ERROR #############################
    18.05. 11:58:42.950 SES: GuiAutomationProcessor: processing automation call list for modus id 0
    18.05. 11:58:43.043 SES: new GuiSession
    18.05. 11:58:50.557 CON: GuiNiNetConnection: sending CLOSE data to writer thread
    18.05. 11:58:50.791 CON: -
    18.05. 11:58:50.791 CON: GuiNiNetConnection: sending DIAG data to connection for modus -1
    18.05. 11:58:50.793 C_AGI: AgiLibAdaptor::onDelContainer
    18.05. 11:58:50.794 C_AGI: AgiLibAdaptor::onDelContainer
    18.05. 11:58:50.794 C_AGI: AgiLibAdaptor::onDelPrimary
    18.05. 11:58:50.795 CON: GuiConnection.destroyNetConnectionAndParser
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2983)
    Any further ideas on what is wrong?   There is a post on another forum http://listserv.sap.com/pipermail/linux.general/2002-June/002538.html with the same error, but no response..
    Thanks,
    Richard

  • How do you Debug start routine?

    Hi gurus
    How do you Debug start routine?
    Thanks in advance
    Raj

    By inserting a BREAK statement in the routine you won't be able to debugg as the upload process is done in background.
    Instead you should insert a code like this:
    data flag.
    while flag ne 'X'. endwhile.
    Then launch the process and go to transaction SM50 select the process and execute Program/Mode -> Program -> Debugging

  • ABAP code for BI 7.0 transformations start routine

    Hi all,
    I am trying to update data from DSO1 (Source1: transaction data) to Infocube(TARGET)
    In the transformations Start routine, I have to read DSO2(Source2: Master data) for some fields.
    DSO1 has CUSTOMER as part of key
    DSO2 has CUSTOMER (key) and other fields....FIELD1, FILED2, FIELD3
    Infocube to be updated with FIELDS1,2 & 3 WHILE READING DSO2.
    WHERE DSO1 CUSTOMER matches with DSO2 CUSTOMER.
    Also, data NOT TO BE UPLOADED into Infocube if FIELD1 in DSO2= NULL
    Please give me the abap code for the above logic.
    Appreciate any help in this regard.
    Thanks.

    This is a doc from this site:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6090a621-c170-2910-c1ab-d9203321ee19
    Ravi Thothadri

Maybe you are looking for

  • Feed Bridge from Access or Excel speadsheet??

    Hi - This is a Bridge question so I hope I'm in the best forum for an answer. I have a huge image database (3000+) in MS Access.  My supervisor wants to customize it.  By the time he was finished describing his wish list it sounded like he wanted to

  • Problem with Shortcut

    I foolishly updated my iTunes this morning and can no longer access the program through any of the shortcuts or program icons. When I click on any of the above I get a short error message that reads "This action is only valid for products that are cu

  • How to rebuild index on a table in a faster way

    Hi All, We have using Oracle 9.2.0.3 On weekly basis we are loading around 20-30 million of data into a table using sqlloader. Before loading the data into the table, we are dropping all the indexes adn rebuilding the same once done. There are 6 inde

  • G/L Document

    Hi, I am trying to load revenue via FB50 and my file has several records. I lost the VPN Connection in b/w and I am not sure till what point the file got uploaded. I checked it in BSEG table but could not really dig into it. Could some one tell me if

  • Help with Blog - Bolding

    Hey there, For some reason on my blog in BC I can't bold or italicize text; it shows up in the bold module but upon preview on the actual site they do not show up. Any idea what is happening? Underlining however does work. Thanks!