How to Debug a ABAP code running the background in Portal

How can I debug a ABAP code running in the background while executing a transaction code through portal.
e.g Presently I have to incorporate some checks in the portal. For that I know the function module where i need to put though checks. Now I want to know, how does the code during runtime. What values do we get in the function module. For this I need to get into the debugging mode while executing the portal.
So how can we do that???

Namit,
it doesnot matter whether it is a standard funtion module or a custom one .check whether you are debugging for proper user(portal user and backend user are same) and check debugging is activated

Similar Messages

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,
       I am calling a function module in my ABAP code in background module using the following syntax:
      CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK
              TABLES
                itab_std_format_inv = itab_std_format_inv
                itab_snapshot_inv = itab_snapshot_inv.
            COMMIT WORK.
    If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.
    I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.
    So how to DEBUG a function module running in background mode? Please help!
    Thanks
    Gopal

    Hi,
    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 SM50 and search for the background process.
    (3) Choose from menu Program/Mode -> Program -> Debugging
    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).
    <b>Reward points</b>
    Regards

  • How to Debug an ABAP Program

    Hi Friends,
    I am new to ABAP.
    Can anyone of you let me how to debug an ABAP program in detail.
    I would like to know whether my logic is working properly and see the field values during debugging.
    If any one of you have an How to document which speaks about debugging, pls send it to id, [email protected]
    Points will be assigned all to helpfull answers.
    Thanks
    mv_d

    Hi,
    go to se38->give ur program name-.execute->give /h at command prompt->execute->now debugging will start->
    f5-used for line by line debugging
    f6-used for directly executing function modules or performs i.e. control won't go into that block.
    f7-run to cursor
    f8-direct executing.
    fileds: here we can check fild values.
    click fileds option and double click on the filed or type the filen name beside filed
    tables : here we can check the data in the internal table.
    click tables option and double click on the internal table.
    Break points:
    if you want to debug a particulr part you can use this.
    place the cursor at any perform click breakpoint or double click on that line.it will be set.
    if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.
    Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto->breakpoints->create watch points->give filed itab-lifnr->=->100.
    debugging procedure:
    Use '/H' in the command line and execute the report/program, so that it goes to debugging mode
    2. keep a hard coded break point in the code like BREAK-POINT and it stops there.
    3.From the program Menu, Keep the Soft Break-points and do the debugging.
    see the links
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.sappro.com/downloads/Settings&SystemAreas.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
    https://forums.sdn.sap.com/click.jspa?searchID=2673672&messageID=3187106
    https://forums.sdn.sap.com/click.jspa?searchID=2673672&messageID=850453
    https://forums.sdn.sap.com/click.jspa?searchID=2673672&messageID=1546485
    https://forums.sdn.sap.com/click.jspa?searchID=2673628&messageID=2048883
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
    Regards,
    Priyanka.

  • Need ABAP code for the below Services requirement

    Hi,
    We have a requirement to show all the services for a particular Purchase order number.For this I built a view on 2 tables ESLL and EKPO.Now based on the below logic I need to bring the services for the Purchase order..
    1.Enter PO number,item no. and Doc category in EKPO and find the Pack no.
    2.Now take the Pack no. of EKPO and give in ESLL and find the Sub pack no.
    3.Now take this Subpack no. and Give this sub pack as Pack no. in ESLL
    4.This will be the Service entry record for that PO number.
    Can any one Please suggest me to how to write the ABAP code for the above logic.
    Thanks & Regards,
    Dinakar

    Hi Dinaker,
    Did you find any solution for this issue. I too have a similar requirement of pulling all the service orders for a specific Purchase Order in the BW report.
    Thanks,
    SAPBWI

  • How to debug a ABAP Routine which is in Infopackage Data selection Tab

    Hi ,
       Please let me know How to debug a ABAP Routine which is in Infopackage Data selection Tab.

    Hi,
    You can try to create infinite loop:
    DATA: STOP.
    WHILE STOP IS INITIAL. ENDWHILE.
    Start InfoPackage and then go to SM50 and swich on debugging for your process. Then in debugger you can change value of STOP variable to skip the loop.
    Krzys

  • How to Debug WebDynpro-ABAP application

    Hello Friends,
         1.  How to Debug WebDynpro-ABAP application.
         2.  What is modal dialog
         3.  If Component contains more than one view, how to make one view is the default. Is that any way I can hide a view.
        4. Is that Component is the highest in the design structure, or any other types available like development components in WebDynpro-Java.
    Thanx for Ur time.
    Cheers,
    Sam

    Hi,
    As i explained LIMU are subobjects like views as they dont have the seperate identity in repository so they have to be linked thru there parent component.
    So when you transport whole component u can see there would be some entries in your transport list as LIMU types ( for views , windows).
    OTR are text elements which u create for the elements of your view so u dont require to hardcode the text to be displayed as they need to be displayed in different languages so what you do is you create say button and for text to be displayed you create on OTR element under some package. now you give this package to your translation team to do all needed translations.
    Yes DDIC types are from dictionary only but when you transport them so all newly created DDIC should also be transported.
    P.S -> Pleas close this thread if satisfied with all questions.
    Thanks
    Anuj

  • Looking for an ABAP-code for the customer-Exit Variable

    Hello,
    I have defined a Variable (Interval) which should be processed through Customer-Exit on characteristic Supplier-Date (date format). This Customer-Exit Variable is called ZDATE.
    We have another time characteristic Fiscal year / period (0FISCPER) which has single mandatory input variable for ex.  003.2011. This input variable is called ZFISCPER.
    Now I have to write an ABAP-Code where the customer exit variable ZDATE is derived (fiscal last year to last period) from input variable ZFISCPER in INCLUDE ZXRSRU01.
    Means when the input variable (ZFISCPER) is 003.2011 then the customer exit variable ZDATE should be calculated in INCLUDE ZXRSRU01 as 01.01.2010 u2013 28.02.2011 (fiscal last year to last period).
    Since I am quite new in ABAP, I will be grateful if you could write me sample ABAP for this.
    Many thanks.

    Hi,
    should be something like:
    DATA: l_s_range TYPE rsr_s_rangesid,
    input LIKE sy-datum.
    When 'ZDATE'
    CONCATENATE '0101' 0FISCPER+3(4)-1 into l_s_range-low. "You get 01012010
    CONCATENATE '01' Fiscper+1(6) into input.                            "You get 01032011
    l_s_range-high = input-1.                                                     "You get 28022011
    APPEND l_s_range TO e_t_range.
    Greetings
    Roman

  • Running abap reports in the background when clicked on Webdynpro Button

    Hi Experts,
    I have requirement where when clicked on a Button in a Webdynpro application, it needs to run an abap reports in the background and I need to pass some parameters to the report.
    Is it possible to do that? if yes, please guide me though.
    Reward points for useful tips.
    Sabbir
    Edited by: Sabbir Ahmed on Oct 17, 2008 8:05 AM
    Edited by: Armin Reichert on Oct 24, 2008 10:05 AM

    you can use rfc's model  for this na?
    pass the parameters to the RFC and through that RFC run the report,
    with regards
    shanto aloor.

  • How to Mapping of company code to the billing units

    Hi,
    Please help me how to Mapping of company code to the billing units , iam doing the rollout project.
    Thanks
    Mustafa

    Hi Mustafa,
    External billing (A): Billing is controlled in the R/3 System.
    The company code is determined by the accounting adapter which calls
    the R3 system. You define the company code to be transferred in
    Customizing under:
    Customer Relationship Management
    Master Data
    Organizational Management
    Cross-System Assignment of Organizational Units
    Assign Company Codes and Business Places to Billing Units or
    Assign Company Codes to Billing Units.
    Also you can check attached note 717476 for further information.
    Cheers,
    Brian.

  • How to speed up my code inside the for loops,

    how to speed up my code inside the for loops using c# WinForm.

    Hi  John,
    Please take a look at the reply from Wyck in the following thread.
    How to speed up for loop?
    His answer is very comprehensive.   Thanks.
    Best regards,
    kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Speed has slowed to nil  how do i delete all icons running in background?

    speed has slowed to nil. How do I delete all icons running in background?

    To close an app, drag the app up from the multitasking display.
    Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app thumbnail to close it.
    this might help as well.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Read Error logs after running the background jobs

    Hi,
    How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
    Kindly suggest.
    Thanks & Regards,
    N. Laxman

    Hi
    you can check the  back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
    plz check in your case and revert back
    Regards
    Anupam Sharma

  • How do I tile a picture in the background OFF the stage?

    Okay, since my stage doesn't take up the whole window when viewing it on the Internet, is there a way to tile a picture in the background?  So no matter how big someone's screen is, in the background they will see a tiled picture.
    Sorry if that sounds confusing.  I'm not very good at explaining myself...

    Hi! I tried adding to the HTML code
    <body background="gradient-3-max.jpg">
    but doesn't work... also tried
    <body background="gradient-3-max.jpg" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
    doesn't work too.
    Did I miss out anything? Any ideas?
    Thks!

  • How to add 'Confidential' watermark to all the pages in portal

    Hi
    How to add 'Confidential' watermark to all the pages in portal.We have ESS/MSS business packages installed 60.1, 60.2.
    ECC5, EP SP16 is the environment.
    Help will be appreciated
    Thanks
    Sharath

    Hi Sharath,
    What about using the theme editor to add a background to either the page or the iView tray?
    Daniel

  • Can i have the HTMLB Code for the background color for a  screen?

    Hi friends,
    Can i have the HTMLB Code for the background color for a  screen?
    moosa

    Hi:
    you can put like
         <table width="100%" height="100%" cellspacing="1" cellpadding="2" border="0">
                     <tr class="sapTbvCellStd"> <td bgcolor="#B1E1D2" valign="top">
    Regards
    Shashi

Maybe you are looking for

  • Letter Of Creditl

    Dear All i want to charge the letter of credit Bank Opening charges to material. what is the stadandard solution of it, and guide me about alternatives. thanks

  • Help on accessing Oracle object !

    Hi, Looking for a help in accessing oracle object using JDBC. I've the following object defined in Oracle. TYPE ty_ctg_prod AS OBJECT( PROD VARCHAR2(40 ), NODE_ID NUMBER , CTG_ID NUMBER ); TYPE ctg_PROD_ary AS VARRAY (50) OF ty_ctg_PROD; The procedur

  • CreateView problem in JSF

    Hi, I am trying to create a new view in some condition but at the time of new view creation, it is creating new view but the previous entered values are stays there in the page.     public void beforePhase(PhaseEvent event) {         FacesContext.get

  • SCORM compliant Learning Object Content Packager ?

    Hi, we have been using AUthorware for e-learning courses running mostly in AICC based LMSs. When we try to test even the sample files on scorm TestTrack http://www.scorm.com/scorm-solved/testtrack/ we get just error message that  the course is not ab

  • Photoshop Crashing Mountain Lion

    Ive been dealing with my mac crashing seemingly randomly for over 10 weeks. I've taken it to the genius bar 3 times, had a video card replaced, and I recently got elevated to Tier 1 apple support. The only software I have installed on my machine is P