Smartform debugging problem

Hi Experts,
                  How to debug smartform in quality. can anybody explain me....
Thanks
rajesh

dear
Do one thing apply the breakpoint in smartform where u r getting the problem and execute directly u will come to that point .
Else execute u will get long string name in function module screen :
Goto to the display mode and then put the break point
this will also do
thanx
-ankit

Similar Messages

  • Smartform upload problem (within same Version)

    i have download smartforms from 4.7 first and than uploading it in same 4.7 but error occurs as below:
    first:  "A serious error has occurred
    The transaction had to be terminated".
    than second: Internal error (illegal structure of data storage)
    Message no. SMARTFORMS002.
    i can uplodad smartform successfully than and check also successfully,
    but while i do final activation it causes above error.
    what can be problem, is due to smartforms style problem, but i tried removing all style of text elements, thought it creat that errors,
    if any can knhow how to upload smartform successfully and solve above error.
    regards,

    L.S.
    I just encounter a similar error when activating a smartforms. I had made some changes, maybe by copy nodes through memeory into another smartforms and/or deleting one %GRAPHICS1 and making another.... smartforms got confused somehow and gave me an abort error 002.
    I debugged the coding of activating smartforms and found out that ( in my case ) sap coding tries to insert duplicate entries in table stxfobjt.
    Here is the part of coding where you can put your breakpoint and adjust the internal table tobjt if you have the same problem.
    I made the line  insert stxfobjt from table t_objt.  BOLD ( in plain text with * : it s  not a remarked coding line )
    SAPLSTXBX                      / LSTXBXU36
    FUNCTION                       / SSF_SAVE_FORM      
    Speichern der Tabellen
      if i_active = space.                         " gesicherte Fassung
        export t_ntokens t_objt t_ltext t_noltext
               to database stxfconts(xx) id i_formname.
      else.                                        "     aktive Fassung
        delete from stxfobjt where formname = i_formname.
        try.
          insert stxfobjt from table t_objt.
        catch cx_sy_sql_error into l_exception.
          get reference of t_objt[] into l_dref.
          raise exception type cx_ssf_fb
                exporting textid     = cx_ssf_fb=>err_on_insert
                          table_dref = l_dref.
        endtry.
        perform save_ltext using i_formname t_ltext.
        export t_noltext t_ntokens unchecked = i_header-unchecked
               to database stxfcont(xx) id i_formname.
        delete from database stxfconts(xx) id i_formname.
      endif.
    Good luck all with debugging SAP's bugs
    Regards,
    Edwin Glaser
    doubleclickyourprogrammer [at] sap4u.nl

  • Smartform upload problem

    i have download smartforms from 4.7 first and than uploading it in same 4.7 but error occurs as below:
    first:  "A serious error has occurred
    The transaction had to be terminated".
    than second: Internal error (illegal structure of data storage)
    Message no. SMARTFORMS002.
    i can uplodad smartform successfully than and check also successfully,
    but while i do final activation it causes above error.
    what can be problem, is due to smartforms style problem, but i tried removing all style of text elements, thought it creat that errors,
    if any can knhow how to upload smartform successfully and solve above error.
    regards,

    i have tried deleting one by one elements and found that problem in address element,
    i have just delete it and active it that it got activated,
    and again after deletion i have put sam variable in address element for displaying adress dynamicaly and set length and width all same that it fot activated!
    than what the problem at first time activation?
    is there any runtime conflict or what?
    regards,

  • JApplet debugging problem

    Hi there all:
    I'm having a problem with debugging a JApplet. I created a new workspace, project and applet and didn't make any changes to anything. When I try to debug the applet, I get these messages:
    System Error: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup )
    System Error: java.lang.Object java.lang.Class.newInstance0()
    System Error: java.lang.Object java.lang.Class.newInstance()
    System Error: java.applet.Applet sun.applet.AppletPanel.createApplet(sun.applet.AppletClassLoader)
    System Error: void sun.applet.AppletPanel.runLoader()
    System Error: void sun.applet.AppletPa
    System Error: nel.run()
    System Error: void java.lang.Thread.run()
    If I change the object from a JApplet class to an Applet class, I can debug just fine.
    Anyone know what's going on here?
    Thanks
    Jeff

    Me again. Was doing some searching on the net about this one since I've gotten no response.
    Found this at Inprise (Borland) about a debugging problem with JBuilder3 (I assume that the base of jdev is still JBuilder).
    http://community.borland.com/article/0,1410,19739,00.html
    To quote from their document--------
    Question:
    I can't seem to debug Applets with JBuilder3 Standard. If I attempt to debug my Applet
    I recieve the following error:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission
    modifyThreadGroup )
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)
    at java.security.AccessController.checkPermission(AccessController.java:403)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    Why?
    Answer:
    In a nutshell this is an installation problem with JBuilder3 Standard edition.
    The install for JBuilder3 Standard did not provide the file 'DebugApplet.policy'.
    To resolve this problem download the file from the following URL:
    http://www.borland.com/devsupport/jbuilder/downloads/DebugApplet.policy
    After you have downloaded the file, copy the file to your JBuilder3\bin directory.
    This will fix the problem.
    You can also cut and paste the following:
    (NOTE: create the file DebugApplet.policy in your JBuilder3\bin directory)
    //DebugApplet.policy
    // These policy permissions are needed for the AppletViewer used by sun.tools.debug.
    grant {
    permission java.lang.RuntimePermission "accessClassInPackage.*";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "modifyThreadGroup";
    permission java.net.SocketPermission "*", "accept, connect, listen, resolve";
    permission java.util.PropertyPermission "appletviewer.version", "read";
    permission java.io.FilePermission "<>", "read";
    permission java.security.AllPermission;
    Could this be a problem in JDev3 too?
    Jeff
    null

  • Smartform-Funny Problem

    Dear all,
    In an existing smartform I had to make the following changes:-
    1:-Include the Sec Education Cess @ 1 %   and display its value
    2:-For multiple line items the sales tax (@ some %)  value must be addition of both the line items sales tax value.
    3:-Finally in the grand total Sec Education Cess value will have to be included.
    Points 1 and 3 are fine.
    But in point 2,while in debugging altough i can see the addition of both the line items sales tax value (which I have taken in the v_sstax),in the output,i can see only the sales tax value of 1st line item.
    eg:-
    Sales Tax @ 4% for 1st line item is 152.59
    Sales Tax @ 4% for 2nd line item is 174.31.
    Desired output should be 152.59 + 174.31 = 326.9 (which I can see while debugging).This 326.9 is taken into consideration for the grand total and hence grand total is correctly displayed
    But i am getting only 152.59 in the output of salestax
    There is no other code involved in between 152.59 + 174.31 = 326.9 and its printing.
    Where might be the problem?Plz give me some suggestions.
    I have been at it since yesterday but have not yet found out a solution

    Hi,
       Have you written the sales tax text in loop. check it once if yes, then write the text separatly.
    Rgds,
    Bujji

  • Sun Studio Debugging problem

    Hello
    I need help configuring the Sun studio debugger to work in fedora 8. The project is loaded from a make file, compiles fine, and runs fine. However, I can not place break points, and when I start the visual debugger, it gives a message box titled progress, and hangs on saying: starting debugger: /lib/libc.so.6
    Running from the command line gives me:
    $dbx <my program>
    For information about new features see `help changes'
    To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc
    Reading <my program>
    Reading ld-linux.so.2
    Reading libm.so.6
    Reading libmpich.so.1.1
    Reading libpthread.so.0
    Reading librt.so.1
    Reading libc.so.6
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: warning: unknown location expression code (0xe0)
    dbx: panic: "ThreadAgent::setup_helper"(): Assertion (ta_td_agent) failed - "thread.cc":2674
    I have another problem in debugging an mpi problem in another installation of Sun Studio on Solaris 10 on a Sun machine. The visual debugger is working fine there, however, I need to debug with mpirun
    to decide the number of processors, because by default it loads the application on one processor. Iwill need to do this as well later on the linux machine I am using now, which doesn't even start the debugger on a sequential code so far.
    I appreciate your help a lot.
    Thank you very much in advance.
    Manal

    mhelal wrote:
    Hi
    Thank you for your reply. you said 2 problems,Yes, basically I meant these two:
    1. dbx: warning: unknown location expression code (0xe0)
    2. dbx: panic: "ThreadAgent::setup_helper"(): Assertion (ta_td_agent) failed - "thread.cc":2674
    First one should be fixed in dbx itself, but the second looks like an incompatibility between Fedora's libc and dbx; unless distros in "supported" list upgrade to the same version of libc, dbx can't be changed to match it.
    In other words, I'm sorry to say that you will probably not succeed in using dbx on Fedora 8 for the time being.

  • Smartform output problem in dunning

    Hi
    I've done a search for this problem in the forums and found what I thought was the answer but it still doesn't work...
    My dunning FM passes paramter IS_SFPARAM to the smartform (which is a copy of the standard SAP form F150_DUNN_SF). the initialisation in the form then calls FM GET_SF_DUNN_DATA in order to populate all the data from the IS_SFPARAM parameter.
    However, as far as I can see, inside FM GET_SF_DUNN_DATA, a method is called to populate h_mhnk and use that to check that the parameters like gs_sf_mhnk are populated. If they are not, it raises exception no_parameters_found. I thought the FM set those parameters in the first place! How can I set parameters gs_sf_mhnk, gs_sf_fsabe and all the others in there? i am always getting the no_parameters_found exception at the moment!
    Any help appreciated.
    Jon

    use smartform_trace transaction to trace ur smartform for errors.
    also open ur smartform goto environment and get fm name now in the end some number wud be thr like this \...\SF000091 modify it and use it in se38 like this \...\LSF000091F01
    it will open the code insert session break points and now check by running the smartform
    кu03B1ятu03B9к

  • Smartform Printing Problem in SAP ECC 6.0 with Ehp6

    Hi Sap Expert,
    Our Sap System has been upgraded from ECC 6.0 to ECC 6.6 ( Ehp6). now we are  facing  problem in to print smart forms .
    I have a smart form with one page and three copies are there.
    On first it was written ORIGINAL, on second DUPLICATE and third one is TRIPLICATE.
    When I see the print preview it shows all the three pages ( ORIGINAL,  DUPLICATE and  TRIPLICATE. ). but when i give the command to print.  it will only 3 copies
    ORIGINAL. and when i convert into PDF it shows only one page ORIGINAL.
    I want ORIGINAL,  DUPLICATE and  TRIPLICATE printout in single command.
    Note : Before Up gradation of sap system it worked fine.
    Guide me.........

    Hi Marques,
    Yes, my problem has solved,
    Write the code Driver Program:
    Declare Internal Table as:
    DATA : BEGIN OF ITAB OCCURS 0,
              I TYPE I,
              TEXT TYPE CHAR20,
              END OF ITAB.
    and Append 3 time this Itab with the no of copies of form ( Original, Duplicate and Triplicate ) as
        ITAB-I = 1.
       ITAB-TEXT = 'Original'.
       APPEND ITAB.
       CLEAR ITAB.
    Now,
    LOOP AT ITAB.
    call function module of smartforms as
    CALL FUNCTION fm_name
       EXPORTING
        CONTROL_PARAMETERS         = CO
        OUTPUT_OPTIONS             = OT
    *   USER_SETTINGS              = 'X'
         L_***                      =  L_***
         V_INDX                     = ITAB-I
    * IMPORTING
       TABLES
         IT                         = IT
    and modify the smart form as
    write the code in window
    IF V_INDX = '1'.
    v_text = 'Original'.
    ELSEIF V_INDX = '2'.
    v_text = 'Duplicate'.
    ELSEIF V_INDX = '3'.
    v_text = 'Triplicate'.
    ENDIF.

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • Smartform style  problem

    Hello friends,
         I am getting problem in smartforms style. i had created my own style for one of my Tax invoice form because i want fonts in smaller and for heading i want to increase font size. But when i am applying my own style to paragraph the changes are not accepted after SAVE & ACTIVATION. If any one know solution for this problem than please give reply as soon as possible.
    Thanx & Regards,
    Rahul Talele

    Hi,
    Once I came across the problem as yours.
    This happens becoz certain properties of the fonts when applied will override other formats.
    For eg. If u have chosen bold character format before, but when u want to change it to normal it will not change at all.
    In that case, I have deleted the text as a whole and applied normal format at first. Then I applied bold character format
    whereever applicable.
    Which style u applied to the header in your form? Is it Paragraph format or Character Format.
    Could u give more clear description?
    Regards
    Vadi

  • Debug problem using JDK 1.2.2

    Hello,
    I set up remote debugging in J-Dev 3.1.1.2 and was using it successfully for several days.
    I then did some local debugging on a servlet that was compiled using 1.1.8 JDK. Now none of my servlets that are compiled under 1.2.2 can be debugged either locally or remotely. I get a message telling me that the class cannot be debugged.
    Can anyone offer suggestions on what could be wrong?
    Thanks

    I had this problem earlier today. I deleted the old workspace, created a new one, added my projects in again, recompiled and things were fine. Every now and then my workspaces seem to corrupt and I have to do this, although I don't always get the "can't debug class message"
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bill:
    Hello,
    I set up remote debugging in J-Dev 3.1.1.2 and was using it successfully for several days.
    I then did some local debugging on a servlet that was compiled using 1.1.8 JDK. Now none of my servlets that are compiled under 1.2.2 can be debugged either locally or remotely. I get a message telling me that the class cannot be debugged.
    Can anyone offer suggestions on what could be wrong?
    Thanks <HR></BLOCKQUOTE>
    null

  • BAR CODES in smartforms - conversion problems to PDF

    Hello,
    I have a problem. Have a look at the following points and see what I have done:
    1. I generated several different system bar codes using SM73
    2. I added those system bar codes to a smartformstyle
    3. and built a smartform using smartformstyle of system-bar codes.
    4. then I made some examples of bar codes in the smartform as text.
    5. next I sent this smartform via email as an pdf attachment using smartform mail functionality.
    6. shocking - all bar codes in the pdf-file are not readable. You can see that there is a barcode placed, but all barcodes looks like the same.
    Has somebody got a idea on what is going on here?
    I already had a look at OSS Notes 430887 and 645158.
    Greetings
    daniel

    Hi,
    Please can you have a look at Sap OSS Note 197177.
    Regards,
    Sudheer.

  • WHERE clause in a SMARTFORM loop, problems with parenthesis

    Hi all gurus,
    a simple question: I'm coding a LOOP in the form builder for a smartform ... this simple loop should bind text elements to every position of a purchase order. The WHERE clause should be as follows:
    WHERE GUID = WA_ITEM-GUID
    AND ( TDID EQ 'ZDES' OR TDID EQ 'ZDST' ).
    Anyway, in the Form Builder I didn't find a way to add parenthesis; I workarounded the problem with the following query:
    (conditions in lines are in AND conjunction)
    GUID EQ     WA_ITEM-GUID
    TDID      EQ   'ZDES'
    OR
    GUID EQ     WA_ITEM-GUID                                                                               
    TDID      EQ 'ZDST'.
    It's quite a 'bad' way, but it works. I wonder if there's a way to express "complex" WHERE clauses (with addiction of parenthesis) in Form Builder.
    Thanks in advance

    In this case, your solution is the one that works. However in more complex cases with more variables, this can proove difficult to make or mantain.
    What I usually do is use the first part of the condition in the where and then add a condition to the printing area with the rest of the formula. Just remember to document this so that you'll find it easy and it's way more amintainable.
    In this case the loop would contain WHERE GUID = WA_ITEM-GUID and the inside condition TDID EQ 'ZDES' OR TDID EQ 'ZDST. This creates the and between the two blocks.

  • Debug problem in JDeveloper 3.0

    Has anybody come across a problem when debugging an application that causes JDeveloper to go into an infinite loop (until my machine runs out of memory) when a breakpoint is hit.
    This only seems to happen on certain files
    I've removed JDeveloper 2.0. I've reinstalled JDeveloper 3.0. I've recreated my workspace and project from scratch but I still get the problem.
    My project has ~1200 files.
    I've also noticed that sometimes the breakpoint is hit and the application being debugged will be paused but JDeveloper does not gain control (i.e. the 'step', 'step into' etc. buttons are still disabled). This is possibly related to the above problem.

    Has anybody come across a problem when >debugging an application that causes >JDeveloper to go into an infinite loop >>(until my machine runs out of memory) when a >breakpoint is hit.This is not a known issue but if anyone has a reproducable test case then we'll be happy to follow it up.
    Thanks,
    Arun

  • Smartform : Printing Problem , Urgent Please

    Dear All,
    When I tried to print a smartform, I am Getting message 'Spool Request (number xxxxxx ) is created' .
    but It is not printing.
    I am facing this problem only with this form. I could print other forms / Scripts.
    What might be the error ? Please Let me Know ..
    Thanks & Regards
    Venkat
    Message was edited by: venkat Kumbham
    Message was edited by: venkat Kumbham

    Venkat,
    You can do that in two ways. Once is to set it in the USER DEFAULTS. Go to SU01 and you can see a tab for DEFAULTS.. There will be a check box for PRINT IMMEDIATELY.
    Or you can do that in the SMART Form parameters also. In the OUTPUT_OPTIONS parameters ther is a field TDIMMED. Set that to 'X'. That should print the form immediately.
    Regards,
    Ravi
    Note : Please close the thread, and mark the helpful answers if this solves your problem.

Maybe you are looking for