Debugging a smartform without modifying the code ?

Hi all, please forgive my noobyness but it's the first time I'm working on smartforms...
Basically; I have a smartform that prints out a pdf showing all the entries of a purchase order, but there's a thing that I have to correct... The price amount for position is not correct, because it doesn't contains an extra amount, let's call this quantity "limit", that is a specific property of each row in the order.
Problem: I'm not that good to find in the code the exact point in which the price for a row is calculated, or better.... I thought I found it, did a little correction but without success.
I'd like to debug exactly the pieces of code that are in the smartform, how to do it without modifying the code ? I've read something about hardcoding a break-point but I won't insert new code because I'm working on a pre-production machine and porting a CR is not as easy. Is there any way to debug without doing a mod on the code? Thanks in advance.

Hi Matteo,
it's quite simple.
Found the Fm name of the SMARTFORM (Menu Utilities-> F.M. Name) (Something like
/1BCDWB/SF00000015).
Then go in SE37 transaction and put the FM founded and then display it.
Go in the main info of the FM (tab. Propierties) and the double click on the main program.
Then double click on the include that ends with *F01. There you will find all the code of your SF. Then you can put a breakpoint the piece of code that you want.
This should be works.
Let us know
Bye
Andrea

Similar Messages

  • Alv -change the output without modify the code

    hi...............
    how can we  change the alv output without modifying the code .
    plz help me.

    hi satya vani ,
    use this code..after execution choose the button(ctrl+f8) then you can give the position and length of the output field..
    then it will automatically changed...
    report .
    TABLES:LFA1.
    SELECT-OPTIONS:LIFNR FOR LFA1-LIFNR.
    DATA:BEGIN OF ITAB OCCURS 0,
    LIFNR LIKE LFA1-LIFNR,
    NAME1 LIKE LFA1-NAME1,
    LAND1 LIKE LFA1-LAND1,
    ORT01 LIKE LFA1-ORT01,
    REGIO LIKE LFA1-REGIO,
    SORTL LIKE LFA1-SORTL,
    CFIELD(4) TYPE C,
    END OF ITAB.
    DATA:LINE TYPE I.
    SELECT * FROM LFA1 INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE LIFNR
    IN LIFNR.
    DESCRIBE TABLE ITAB LINES LINE.
    LOOP AT ITAB.
    IF SY-TABIX = LINE.
    ITAB-CFIELD = 'C410'.
    MODIFY ITAB.
    ENDIF.
    ENDLOOP.
    TYPE-POOLS:SLIS.
    DATA:FCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA:LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA:SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE.
    LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    LAYOUT-WINDOW_TITLEBAR = 'VENDORS DETAILS SCREEN'.
    LAYOUT-EDIT = 'X'.
    LAYOUT-info_fieldname = 'CFIELD'.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'ITAB'
    I_INCLNAME = SY-REPID
    CHANGING
    CT_FIELDCAT = FCAT.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT = LAYOUT
    IT_FIELDCAT = FCAT
    TABLES
    T_OUTTAB = ITAB.
    regards,
    venkat.

  • How to write a Web service Handler without modifying the Web service code

    Hi,
    How can I write a SOAPHandler without modifying the Web service code. I want to add a generic handler which will take care of SOAPHeader for all the webmethods. To add a handler is it necessary to modify the web service code?

    You will find answer in [implementing_handlers_using_jaxws_2|http://blogs.sun.com/sdimilla/entry/implementing_handlers_using_jaxws_2]

  • Modifying VI without effecting the Code?

    Hi 
        I am Modifying a develpoed software.I studied the software,Devicenet prorcol is used for communication.I want to add Ethernet Communication on that VI.The architecture used for the develpoment is UUT.Is it possible to include Ethernet Protocol to same VI without effecting the code???
    Please Mark the solution as accepted if your problem is solved and donate kudoes

    I am not sure what the UUT architecture means. Since DeviceNet protocol uses CAN and it is not going to affect your Ethernet communication , you can go ahead and develop. Affecting the code really depends how you are designing the Ethernet communication and going to implement it, but you can add without affecting the original operation of the code.
    The best solution is the one you find it by yourself

  • Flash Builder doesn't rebuild the project everytime I modify the code

    Hi,
    Flash Builder doesn't rebuild the project everytime I modify the code.
    I find myself chasing ghosts when trying to debug my project. Flash Builder 4.0 doesn't rebuild my project after every change I make.
    The "Project - Build Automatically" is of course selected. To make sure the problem is real I ran "Project - Build All" several times. Nothing helped.
    For example, I am using a boolean constant to select different code in an if block. Even if I change the value of the boolean, When I debug the code, I see that the constant's value doesn't change. Only If I log out login again, FB will rebuild my code.
    This happens too many times and it is very confusing to debug, when you don't know if the result now is with or without your changes.
    It also affects the following:
    - breakpoints that are set or disabled are not taken into account and the debugger will skip them even if they are set or stop on them if they are disabled.
    - the debugger stops the debug on empty lines, if those lines previously contained code.
    - When I comment out the declaration of variables. Eclipse doesn't recognize them and doesn't show any hint on them when you hold the CTRL key and hover over, but while in debug mode, when you hover over the variable instance, its shows a value for it.
    Thanks for your help.
    Bye,
    RaamEE-IL

    The problem is with the SDK settings selected for the Compiler.
    Try going to 'Project' > 'Properties' > 'ActionScript Compiler'.
    Now, in the 'Flex SDK section', try changing the SDK. Click on 'Apply'.
    This will force FB to rebuild all settings for the project.
    You can try again. FB should now have started compiling with latest code changes again.
    Please Note: This is not a permanent fix though!
    In case the problem re-occurs, you'll need to again perform the steps mentioned above to get FB back on track.

  • MODIFY THE code TO initialize this parameter

    Hi,I have created one procedure,which takes input as a array,for that I have defined number of varrays for holding values,but while testing the procedure i m getting some error like MODIFY THE code TO initialize this parameter.
    can somebody help me

    If it is common error no - then people can easily predit what went wrong in Oracle. I don't think - this is a very common error like 1403. So, it is mi view is that without checking the code - it is very difficult to say - what went wrong here.
    Regards.
    Satyaki De.

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • I did a presentation with many images and animations, now I need to change only the images without modify the related animations. How can I do it?

    I did a presentation with many images and animations, now I need to change only the images without modify the related animations. How can I do it?
    I use Keynote 09

    Select the image you want to change and go to Format Menu>Advanced>Define as Media Placeholder (or command, option, control i).

  • Print report in excel report without modifying the layout

    Offcourse we can print or view report in excel format by setting parameter desformat=delimited.But the o/p generated is not in proper format , with bolierplates repeating ???.And the o/p is more worse in case of complex report.Is there anyway to have proper excel o/p without modifying the layout

    See the responses to the separate thread
    "Send data to excel". The quick answer is
    "no", but there are ways to get pretty
    Excel outputs. Not from Reports, though,
    as best I can tell.
    -- Allan Plumb

  • I opened a Sync account before, and without saving the code I uninstalled it. But now using installed it again but do not have my Sync code to add the device. Is there anyway I can retrieve the code, without creating another account? Thanks!

    I created a Sync account before but uninstalled it without saving the code. But now installed it again and having trouble finding my account code to setup my Sync. Is there a way to retrieve my Sync code without creating another account?
    Thanks!

    Contact iTunes:
    Apple - Support - iTunes - Contact Us

  • How to update view  without modifying the base table ?

    Hi Experts , I need help in two qurstions
    1. How to update a view without modifying the base table ?
    2. How to write a file unix operating system in pl/sql ? is there any built in procedure is there ?
    Thank you

    Hi,
    I'm not sure what you're asking in either question. It would help if you gave a specific example of what you want to do.
    SowmyRaj wrote:
    Hi Experts , I need help in two qurstions
    1. How to update a view without modifying the base table ?You can't.
    Views don't contain any data; they just query base tables.
    You can change the definition of a view (CREATE OR REPLACE VIEW ...) so that it appears that the base table(s) have changed; that won't change the base tables.
    2. How to write a file unix operating system in pl/sql ? is there any built in procedure is there ?The package utl_file has routines for working with files.

  • How to modify the code to get started the timer on mentioned time?

    Hi,
    I have the following code from a source. I would like to make a few changes as mentioned below:
    First ....
    1) The as3 code should get the time form "startMeeting_txt.text"
    2) Compare it with current time from "currentTime_txt.text"
    3) The Timer should be activated as soon as the "startMeeting_txt.text" = "currentTime_txt.text" and starts counting
    4) When the "finishMeeting_txt.text" = "currentTime_txt.text" then
    5) "message_txt.text" = "Meeting time is over"
    How to modify the following code:
    var count:Number = 60;
    var myTimer:Timer = new Timer(1000,count);
    myTimer.addEventListener(TimerEvent.TIMER, countdown);
    myTimer.start();
    function countdown(event:TimerEvent):void {
    myText_txt.text = String((count)-myTimer.currentCount);
    if(myText_txt.text == "0"){
          gotoAndStop(2)
    Thanks.

    Thanks. I am at work now and don't have Flash installed on my PC. I will try it at home. I just found this code on a website and wanted to know it more without any try. I must try it first then seek help. I am sorry.
    I do respect your advise.
    Regards.

  • How to create a movie file of java 3D animation without altering the code?

    Is there a way to create a movie file of a Java 3D animation without altering the source code of the Java 3D animation program???
    Because as what I observed, most of the forum recommends extracting the bufferedimages of the animation. And, then using the bufferedimages to do a movie file. In this way, I will need to add in new code in the animation program in order to extract the bufferedimages.
    So, is there an alternative way?
    My objective is write a program to create movie file of any Java 3D animation.
    Pls advise me. Thanks a million.

    I'm curious as to why FRAPS will record java3d and
    not a java2d app? is there something that Java3d
    sets that makes it recognizable by fraps? or?? could
    someone or messengers ( =D!) explain this for me?Seems that only in JDK 5.0 or later, does the 2D api automatically use a DirectX or OpenGL rendering pipeline (if available).
    Further, these automatic pipelines accelerate polygons and the like, but not low level Graphics2D bit blitting operations.
    There are JOGL apis that allow better control over acceleration, and are considered 'thread safe' (single threaded) whereas DirectX pipelines are not.
    Interesting demos of this here:
    https://jogl-demos.dev.java.net/applettest.html
    and
    http://www.hardcorepawn.com/RandomGL/
    Fraps (commercial) and Taksi (opensource) will reveal that you are actually using acceleration, since they intercept the pipeline at the openGL (and DirectX) level.

  • Trying to modify the code in a component

    Hi,
    I made a flash website with photo galleries using a component
    that I bought online.
    The component is loading the image in a thumbnail scroll bar
    via a XML file and the full size image display in a UILoader.
    So far nothing special.
    But when I reach a certain amount of pictures in the gallery,
    the scroll panel get stuck while loading and doesn't display the
    full size image. Then the thumbnails don't react at all.
    Here is the address where you can see the problem:
    Liquit.dk
    The gallery that has the problem is: "Commercials".
    If you navigate in the rest of the website and come back,
    then the gallery is working!???
    The problem appears only the first time you visit the
    website, or after you empty the cache.
    But the first time you visit a website is the most important
    one, isn't it?
    So of course I tried to get support where I bought the
    component. They pretend that they don't see any problem when
    checking the website online. That answer is just not acceptable
    when every single person who visited the site reported the exact
    same problem. So it seems like they are just not willing to help
    their customers once they sold their stuff.
    My theory is that the component is loading all the elements
    at the same time and I would like to be able to access the code of
    the component to change the method, so that the component will load
    the elements one by one.
    Is there a way to access the code when one buy a component?
    If you think I totally got it wrong and you found the reason
    why it's not working properly, please tell me ;-)
    I also provide all the files used to make that site at the
    following address:
    mmarauder/liquit_files
    Thanks in advance,
    Sebastien

    Hi,
    I'm back with the same problem. It's still not solved and
    I've been asking some questions to the team that is hosting the
    website.
    In order to verify if the issue could come from their server.
    They first thought about "packet loss". I ran some "ping" tests to
    verify and it is not a packet loss problem.
    Which leads to only few solutions:
    First - there is something wrong with my flash application
    that I haven't been able to see. When I check with the debuger in
    flash everything looks fine, but maybe I don't read the info
    correctly.
    I don't know if any of you guys actually used the files I
    provide at the end of my first email. As I provide everything
    includind the .fla file. So anybody with the flash application can
    open it and check if there are problems with what I've done.
    I've been very carefull, but I'm a real beginner since this
    website is my first flash experience.
    Somebody who has been a flash develloper for 6 years
    suggested that it could be a bug in flash.
    If that happens to be true, I'll have to rewrite the entire
    application in a different way, which will be a problem since I
    don't know how I can make this work in another way.
    So if somebody can help me or send me tips or tutorials on
    how to make that website that would work the same way. I'm ready to
    give it a try.
    Thanks in advance
    Sebastien

  • Problem in modifying the code using work area concept

    Hi,
    I am working on a code in which i am on the code in which i am using the modify statement but it is not giving the right output.
    here's d code:-
    LOOP AT T_ITPO5 INTO W_ITPO5.
            LOOP AT T_ITPO4 INTO W_ITPO4 WHERE AUFNR = W_ITPO5-AUFNR.
           LOOP AT T_ITPO4 INTO W_ITPO4 FROM WV_INDEX.
             IF W_ITPO4-AUFNR EQ W_ITPO5-AUFNR.
             IF ITPO4-NTGEW <> 0 .
                CALL FUNCTION 'ZGET_ITEM_WEIGHT'
                  EXPORTING
                    P_BUID   = W_ITPO4-WERKS
                    P_ITEMID = W_ITPO4-MATNR
                    P_QTY    = 1
                    P_UOM    = W_ITPO4-MEINS
                    P_UOM1   = 'KG'
                  IMPORTING
                    P_RETVAL = W_ITPO4-WTKG.
                TOTWT1 = W_ITPO4-WTKG * W_ITPO4-MENGE.
             IF W_ITPO4-BWART = '261'.
              W_ITPO5-I_QTY = W_ITPO5-I_QTY + TOTWT1.
             ELSEIF W_ITPO4-BWART = '101' OR W_ITPO4-BWART = '531'.
              W_ITPO5-I_QTY = W_ITPO5-I_QTY - TOTWT1.
             ENDIF.
           ENDLOOP.
             MODIFY T_ITPO5 INDEX SY-TABIX FROM W_ITPO5.
           MODIFY T_ITPO5 FROM W_ITPO5 TRANSPORTING AUFNR.
       ENDLOOP.
         WRITE: / 'PRD.NO       ITEM DESCRIPTION                               WIP(KGS)'.
        ULINE.
        LOOP AT T_ITPO5 INTO W_ITPO5.
          READ TABLE T_ITPO1 INTO W_ITPO1 WITH KEY AUFNR = W_ITPO5-AUFNR.
          SELECT SINGLE MAKTG FROM MAKT INTO W_ITPO5-ITEMDESC WHERE MATNR = W_ITPO1-MATNR.
          if sy-subrc = 0 .
          WRITE: / W_ITPO5-AUFNR,W_ITPO5-ITEMDESC,W_ITPO5-I_QTY.
          TOT_QTY = TOT_QTY + W_ITPO5-I_QTY.
          else.
          write 'Unsuccessful'.
          endif.
        ENDLOOP.
        ULINE.
        FORMAT COLOR 3.
        WRITE: / 'GTOTAL',55 TOT_QTY.
        FORMAT COLOR OFF.
    plzz provide me guidelines to solve this problem.

    here's d code;-
    TYPES: BEGIN OF ITPO1,
           AUFNR TYPE AFPO-AUFNR,      "Order Number
           PSMNG TYPE AFPO-PSMNG,      "Order item quantity
           WEMNG TYPE AFPO-WEMNG,      "Quantity of goods received for the order item
           DWERK TYPE AFPO-DWERK,      "Plant
           MATNR LIKE AFPO-MATNR,      "Item Id
           END OF ITPO1.
    DECLARATION FOR AUFM TABLE
    TYPES: BEGIN OF ITPO4,
           AUFNR TYPE AUFM-AUFNR,      "Order Number
           BWART TYPE AUFM-BWART,      "Movement Type (Inventory Management)
           MENGE TYPE AUFM-MENGE,      "Quantity
           MEINS TYPE AUFM-MEINS,      "Base Unit of Measure
           BLDAT TYPE AUFM-BLDAT,      "Document Date in Document
           WERKS TYPE AUFM-WERKS,      "Plant
           MATNR TYPE AUFM-MATNR,      "Material Number
           NTGEW TYPE MARA-NTGEW,      "Net Weight
           WTKG  TYPE MARA-NTGEW,
           END OF ITPO4,
           BEGIN OF ITPO5 ,
           AUFNR TYPE AUFM-AUFNR,
           MENGE TYPE AUFM-MENGE,
           I_QTY TYPE AUFM-MENGE,
           ITEMDESC LIKE MAKT-MAKTG,
           END OF ITPO5.
        WORK AREA AND INTERNAL TABLE DECLARATION
    DATA : W_ITPO1 TYPE ITPO1,
           W_ITPO4 TYPE ITPO4,
           W_ITPO5 TYPE ITPO5,
           T_ITPO1 TYPE ITPO1 OCCURS 0,
           T_ITPO4 TYPE ITPO4 OCCURS 0,
           T_ITPO5 TYPE ITPO5 OCCURS 0.
    VARIABLES
    DATA: TOTWT1 LIKE AUFM-MENGE,
          TOT_QTY LIKE AUFM-MENGE.
    PARAMETERS N SELECT-OPTIONS
    PARAMETERS: PLANT LIKE AFPO-DWERK.
    SELECT-OPTIONS: PO_DATE FOR AFKO-GSTRP.
        LOOP AT T_ITPO5 INTO W_ITPO5.
            LOOP AT T_ITPO4 INTO W_ITPO4 WHERE AUFNR = W_ITPO5-AUFNR.
                CALL FUNCTION 'ZGET_ITEM_WEIGHT'
                  EXPORTING
                    P_BUID   = W_ITPO4-WERKS
                    P_ITEMID = W_ITPO4-MATNR
                    P_QTY    = 1
                    P_UOM    = W_ITPO4-MEINS
                    P_UOM1   = 'KG'
                  IMPORTING
                    P_RETVAL = W_ITPO4-WTKG.
                TOTWT1 = W_ITPO4-WTKG * W_ITPO4-MENGE.
             IF W_ITPO4-BWART = '261'.
              W_ITPO5-I_QTY = W_ITPO5-I_QTY + TOTWT1.
             ELSEIF W_ITPO4-BWART = '101' OR W_ITPO4-BWART = '531'.
              W_ITPO5-I_QTY = W_ITPO5-I_QTY - TOTWT1.
             ENDIF.
           ENDLOOP.
             MODIFY T_ITPO5 INDEX SY-TABIX FROM W_ITPO5.
           MODIFY T_ITPO5 FROM W_ITPO5 TRANSPORTING AUFNR.
       ENDLOOP.
         WRITE: / 'PRD.NO       ITEM DESCRIPTION                               WIP(KGS)'.
        ULINE.
        LOOP AT T_ITPO5 INTO W_ITPO5.
          READ TABLE T_ITPO1 INTO W_ITPO1 WITH KEY AUFNR = W_ITPO5-AUFNR.
          SELECT SINGLE MAKTG FROM MAKT INTO W_ITPO5-ITEMDESC WHERE MATNR = W_ITPO1-MATNR.
          if sy-subrc = 0 .
          WRITE: / W_ITPO5-AUFNR,W_ITPO5-ITEMDESC,W_ITPO5-I_QTY.
          TOT_QTY = TOT_QTY + W_ITPO5-I_QTY.
          else.
          write 'Unsuccessful'.
          endif.
        ENDLOOP.
        ULINE.
        FORMAT COLOR 3.
        WRITE: / 'GTOTAL',55 TOT_QTY.
        FORMAT COLOR OFF.
    I want to have output that the production order is displayed along with the deficit quantity. but using this concept it shows only production order no. and qty 0.

Maybe you are looking for

  • How to find a query name from report name

    I have a report in my system with the name AQICMM==========P2============ . I believe this was created from a query. How to find the query corresponding to this report ? I need to change the logic for certain columns of the report. How to know if thi

  • I would like to know how to change my Apple ID on my iMac to my current ID

    I am having trouble using iCloud on my iMac. (2011 model) When I go into it, an older email address comes up not connected to my AppleID anymore. My other devices are fine with the new appleID but I don't know where to change it on the desktop. I wen

  • Use of function module RHPD_SEARCH_PEOPLE_WITH_QUAL

    Hello Gurus, I am currently working on HR module. I want to know how RHPD_SEARCH_PEOPLE_WITH_QUAL is used. I am not able to figure out as i don't have system to work on. Just conceptual information is enough(code will be handy too). but a rough draft

  • OIM oti table details

    Hello, I know that OTI table keeps details of 'pending' or 'rejected' requests. Not sure, once approved, if the pending requests are directly removed from here. In my case, 1 particular approver is seeing 3 'pending' requests in his queue when he log

  • Canon MP 980 help

    Hi all I am having extreme difficulty in setting up MP980 wireless. via USB works fine I have updated everything for SL (i think) I have made it through to Canon IJ network tool and it fails "The printer in the network could not be detected automatic