Debug dynpro + call script form

Hello ,
I have a req, I need to debug the few dynpro, and one of the dynpro is calling a form and I have to figure it out, which form is this ( and from where it is called ). I have never worked with script form before, can any one let me know how I can figure it out that ( how to call a form, I mean it should be statemnt like, call form .... or ) ?
One another thing, I went into the coding, and there I see the screen ( in execution mode, the screen shows some button, ( e.g show , and after pressing this button show ,the form appers ), but when I went in flowlogic of the screen, I cant see those button ?
Any idea....
Regards,

Shah,
Do like this.You might be pressing some push button after which the smart form or script is appearing.
do screen debugging.
enter /h in the command field and press enter.
now press the push button.
this will take you to the logic in the driver program where the smartform or script is getting invoked.
if it is a smartform you will see a function module SSF_FUNCTION_MODULE_NAME.
smartform name will be stored in LF_FORMNAME
put a watch point here to get the smartform name.
if it is a script you will come across the following functional modules.
open_form,write_form,close_form.
Script name will be given in the open form functional module.
If any doubt revert it.
K.Kiran.
Message was edited by:
        Kiran K

Similar Messages

  • Regarding debugging in sap script and smart form

    hi guys,
    can any one tell me what are the different steps and options available to debug a SAP SCRIPT and a SMARTFORM.
    thank you very much
    pavan

    Scripts:
    1. In the form, Utilities->debugger / RSTXDBUG FM for debugging script
    2. Generally SAP script contains the Layout and corresponding print program.
    First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option.
    Now go to SE 38 and enter ur Print Program name and execute the program.
    Now you can debug the script Page wise and window wise.
    Smartforms:
    In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap Break Point.
    Insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    Other way to debug smartform is to debug the Function Module of that smartforms.
    You can also use <b>smartform trace (transaction SFTRACE)</b>.
    Have a look at below link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to fill data when call function of sap standard script form?

    Hi every experts,
    <Priority Normalized>
    In our system, when we log in 'FR', we can print purchase order in language Franch,in t_code:ME22N.  And when logging in 'EN', we can print it in language English, in ME22N. The English form is just only translated from Franch, with all same structure and frame.  The form is done by script form.
    And when logging in 'ZH', we create a new program, calling function smartform, instead of translating from EN language. Because of different structure and frame, I don't know the way to write script, so  I print puchase order by smartform, when logging in 'ZH'.
    But I have a new issue. Our MM module consultant needs me to print Chinese form if one condition, print English form in other condition.
    So I have no idea to solve it. Because in my program, I get data to fill smartform and call function of smartform. And I don't know how to get data to fill script form. I only know the function name, 'OPEN_FORM' 'WRITE_FORM' 'CLOSE_FORM'.....
    If I only call the several functions, I will get only frame without no data. So who can tell me how to do????
    <Urgency downgraded>
    Edited by: Suhas Saha on Jul 26, 2011 3:34 PM
    Edited by: Vinod Kumar on Jul 26, 2011 4:09 PM

    Hi,
    Normally if we look in NACE transaction, you can see that upto five different FORMS can be assigned to a single output type . i.e. for each form there will be a seperate routine through which it gets called. But it all start from the first form only.
    so you need to write your code in the ENTRY of the first form and if it does not satisfy do not go for processing of it but just exit of that form ENTRY. so that it will take you to next form.
    hope this helps.
    Thanks,
    Venkatesh

  • Calling adobe form from Web Dynpro ABAP

    Hi Friends,
                        This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP.
      WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT
      2010(200,101).
                        Can some one tell me how to solve this....
    Regards
    Sankar

    Hi,
    Please refer to this same link in forum
    WebDynpro Exception: ADS: Request start time, start Interactive Form
    WebDynpro Exception: ADS: Request start time
    Thanks
    Pradeep

  • How to View Smartforms or SAP Script Forms in Web Dynpro ABAP

    Do anyone have idea of how to View Smartforms or SAP Script Forms in Web Dynpro ABAP?
    Please let me know. Thanks

    Hi Sameeksha,
    You can display an smartform in WDA as an pdf file. Try go through this [article |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]where Nanda does explain about the same.
    Regards,
    Uday

  • Regarding debugging in sap script and smart forms

    hi guys,
    can any one tell me what are the different steps and options available to debug a SAP SCRIPT and a SMARTFORM.
    thank you very much
          pavan

    There is a transaction 'SMARTFORMSTRACE' (or was it 'SMARTFORMS_TRACE') which will give you quite helpful information.
    Try!
    Sorry: Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis.
    Regards,
    Clemens
    Message was edited by: Clemens Li

  • Script forms calling

    HI,
    How to call other form and program into anther form?
    Because i need to dispaly both the data in one page

    PERFORM GET_DATA IN PROGRAM 'SAPLZTEST' IF FOUND.
    Here, SAPLZTEST is the main program of the FG ZTEST which holds the FM.
    Regards,

  • Sap script form perform statement

    HI ALL ,
    CAN ANYONE HELP ME WITH SAP-SCRIPT FORM AND PERFORM SYNTAX. THAT IS WHEN U NEED TO ADD A FIELD TO AN EXISTING SAPSCRIPT, BY USING AN EXTERNAL SUBROUTINE.
    i NEED THE SYNTAX BOTH FOR PERFORM AND ENDPERFORM STATEMENT AND ALSO THE FORM STSEMENT. ANOTHER TRHING IS IF CAN LET ME KNOW HOW TO USE DEFINE STATEMENT IN SAPSCRIPT. WHATS ITS USE AND IS IT RELATED TO THE QUERY ABOVE.
    else,
    U PLZ LET ME KNOW ANY HELPFUL LINKS TO GO THROUGH.
    THANLS IN ADVANCE,
    ANUPMA.

    Hi anupma,
    1. while calling subroutines from sapscripts,
    there is a special technique,
    which has got its own limitations.
    2.
    FORM abc
    TABLES
    in_tab STRUCTURE itcsy
    out_tab STRUCTURE itcsy.
    ENDFORM.
    3. The perform in se38 program should be of the
    above format only.
    4. We cannot pass internal tables.
    5. Rather we need to pass
    VARIABLE NAME
    VARIABLE VALUE
    (see the structure of itcsy in se11)
    6. In this form, we have to read
    the internal table in_tab
    to capture the variable name and its value.
    7. Similary, to return the values,
    we have to put one record (for each variable)
    in out_tab.
    regards,
    amit m.

  • Coding at script form side

    Hi all,
    I see some forms that have code in them...
    The syntax is like that:
    /:   PERFORM GET_ITEM_PACK IN PROGRAM ZEXPORTSALESFORM      
    /:   USING &VBDKA-VBELN&                                    
    /:   USING &VBDPA-POSNR&                                    
    /:   USING &VBDPA-VRKME&                                    
    /:   CHANGING &PACKING1&                                    
    /:   CHANGING &PACKING2&                                    
    /:   CHANGING &KIMYASAL&                                    
    /:   ENDPERFORM       
    What is the logic of writing code inside script forms...
    Do we need it really?
    Thanks.
    Deniz.

    Hi Deniz..
    We can call subroutines in Script Layout set using this PERFORM command.
    This is used to perform any operations from the Layout set. Bcoz we cannot directly write any code in a Script Layout set.
    **These are Text symbols for storing some values
    /: DEFINE &PACKING1& = ''
    /: DEFINE  &PACKING2& = ''
    /: DEFINE   &KIMYASAL& = ''
    **Calling subroutine
    /: PERFORM GET_ITEM_PACK IN PROGRAM ZEXPORTSALESFORM
    /: USING &VBDKA-VBELN& "Using parameters are like Read-Only in subroutine
    /: USING &VBDPA-POSNR&
    /: USING &VBDPA-VRKME&
    /: CHANGING &PACKING1& "Using parameters can be modified in subroutine
    /: CHANGING &PACKING2&
    /: CHANGING &KIMYASAL&
    /: ENDPERFORM
    This subroutine must be defined in the program ZEXPORTSALESFORM
    FORM GET_ITEM_PACK TABLES
               INTAB STRUCTURE ITCSY  "Contains all USING parameters
               OUTTAB STRUCTURE ITCSY " Contains all CHANGING parameters
    **implement the logic here
    ENDFORM.
    <b>REWARD IF HELPFUL.</b>

  • Calling Adobe form in a Workflow Step for approval

    Hello,
       There are some ISR forms and workflows in MSS which use Workflow tasks configured as JavaWebDynpro to call Adobe form from the Workflow Step.
    Is it possible to achieve the same using ABAP Web Dynpro and creating a new task and configuring to use it as an ABAP Web Dynpro (which can in turn call the Adobe form from the WD)?
    Thanks.

    Hi Anjali,
    1)You can develop an<b> RFC</b> that collects required basic data from R/3 and display them in <i>ABAP WD - Adobe Form</i>. The End user can change/fill the remaining contents of the Adobe Form and submits it for approval. The <b>RFC</b> again handles the triggering part of the <b>Workflow</b> and passes the form data to the workflow containers.And for approvals, you can use the <i><b>SWFVISU</b></i> to call a <b>ABAP WD</b> application from Workflow. And in turn the control again goes back to RFC and so...
    2)I dont have much idea in ECC 60 if there is a similar ABAP WD application like Standard Java WD <b>IsrFormApprove</b>.
    3)No idea.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Not able to print the script form from print preview

    Hi Experts,
    I need to print one of the script form from print preview. As per the req. first i need to generate a print preview of this form and if required should be able to print it from this preview.
    i am able to generate print preview and also able to see the print option but when i try to print it is going to the spool (which i dont want). I want it to be printed directly to the printer instead of sending it to the spool.
    Please suggest me
    The way i coded it is
    DATA: arcpar TYPE arc_params,
                pripar TYPE pri_params.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          layout                 = 'X_65_132'
          line_count             = 65
          line_size              = 132
        IMPORTING
          out_parameters         = pripar
          out_archive_parameters = arcpar
          valid                  = val
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      pr_options-tddest = ''.
      pr_options-tdpreview = 'X'.
      pr_options-tdnoprint = ''.
      pr_options-tdsuffix1 = 'STUFF'.
      pr_options-tdsuffix2 = matnr.
      pr_options-tdimmed = ''.
      pr_options-tdlifetime = '2'.
      pr_options-tdprogram = Form-name.
    CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device   = 'PRINTER'
          dialog   = space
          form     = "purchase or"
          language = sy-langu
          OPTIONS  = pr_options
        EXCEPTIONS
          canceled = 01
          device   = 02
          form     = 03
          OPTIONS  = 04
          unclosed = 05.
      CALL FUNCTION 'START_FORM'.
    ENDFORM.                    " open_and_start_form
    Thank you.

    Hi,
       Just pass the value 'X' to "pr_options-tdimmed" field.Try this.
    I hope,it help you
    <=<< Sharing Knowledge is a way to Innovative  >=>>
    By,
      Yoga

  • Call Oracle Forms 6i from UNIX

    Hi,
    I am new to Oracle forms and I have some querries -
    I have a form created on windows environment (.fmb/.fmx). This form accepts a parameter in a text field and calls another Oracle Report. Now my questions are:
    1. If windows forms are not compatible with UNIX environment, then how these are converted to be compatible with UNIX/Linux (without re-creating them on different platform)?
    2. Can I call the same form from UNIX shell with input as a shell script input?
    3. And if answer to the second query is no, then can I invoke Web deplyed froms (on application server) using shell? and how..
    I w'd appreciate your help!
    Regards.

    hello
    please provide forms6i (on web?,client server?),OS version.
    im Assumed your using character mode.
    user9040817 wrote:
    Hi,
    I am new to Oracle forms and I have some querries -
    I have a form created on windows environment (.fmb/.fmx). This form accepts a parameter in a text field and calls another Oracle Report. Now my questions are:
    1. If windows forms are not compatible with UNIX environment, then how these are converted to be compatible with UNIX/Linux (without re-creating them on different platform)?you need to generate fmx on server side. this is character mode. use : f60gen yourforms.fmb username/password@tns > a
    yes you can call it forms use : f60run forms.fmx username/password@tns
    report : rwrun60c yourreportname.rdf username/password@tns destype=file desname=a.lis
    but always use HOST command inside the forms, also to send to the printer name that is configured to your server.
    host ('rwrun60c /dsk8/ciame/rcption/wagih/reportname xxx/xxxn@xxx batch=yes destype=file desname=$user_output/'||to_char(:blk1.office_emp_no)||'.lis tty_office_no='||to_char(:blk1.office_no)||' tty_emp_no='||to_char(:blk1.office_emp_no)||' tty_rcpt_no='||to_char(:blk2.rcpt_mst_receipt_no)||' tty_rpt_type=0;
    lp -d $lp01 -c $user_output/'||to_char(:blk1.office_emp_no)||'.lis',NO_PROMPT);
    and if you call another form then you can use open_form,call_form,,... inside the form. Be sure you add in the library your wroking folder.
    edit your user profile .
    Study this as a case : this is the profile of our mis user in our old character based system.
    SunOS 5.9
    |-----------------------------------------------------------------|
    | This system is for the use of authorized users only. |
    | Individuals using this computer system without authority, or in |
    | excess of their authority, are subject to having all of their |
    | activities on this system monitored and recorded by system |
    | personnel. |
    | |
    | In the course of monitoring individuals improperly using this |
    | system, or in the course of system maintenance, the activities |
    | of authorized users may also be monitored. |
    | |
    | Anyone using this system expressly consents to such monitoring |
    | and is advised that if such monitoring reveals possible |
    | evidence of criminal activity, system personnel may provide the |
    | evidence of such monitoring to law enforcement officials. |
    |-----------------------------------------------------------------|
    login: ciame
    Password:
    Last login: Tue Mar 6 09:39:32 from 0.0.0.0
    Sun Microsystems Inc. SunOS 5.9 Generic May 2002
    $ bash
    bash-2.05$ cd mis
    bash-2.05$ cat .profile
    # This is the default standard profile provided to a user.
    # They are expected to edit it to meet their own needs.
    #MAIL=/usr/mail/${LOGNAME:?}
    DISPLAY=8.4.2.5:0.0;export DISPLAY
    NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6; export NLS_LANG
    NLS_DATE_FORMAT=dd/mm/yyyy;export NLS_DATE_FORMAT
    TK6_PRINTER=alp35;export TK6_PRINTER
    EDITOR=/usr/bin/vi;export EDITOR
    ORACLE_BASE=/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/dev6i; export ORACLE_HOME
    TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
    HOME=$ORACLE_HOME/bin;export HOME
    ORACLE_SID=JMH; export ORACLE_SID
    ORACLE_TERM=vt220; export ORACLE_TERM
    FORMS60_TERMINAL=$ORACLE_HOME/bin; export FORMS60_TERMINAL
    LD_LIBRARY_PATH=LD_LIBRARY_PATH:$ORACLE_HOME/bin:$ORACLE_HOME/lib:/usr/dt/lib:/u
    sr/openwin/lib:/usr/lib:$ORACLE_HOME/network/jre11/lib/sparc/native_threads; exp
    ort LD_LIBRARY_PATH
    SHLIB_PATH=$ORACLE_HOME/bin:/usr/dt/lib:/usr/openwin/lib:/usr/lib:$ORACLE_HOME/n
    etwork/jre11/lib/sparc/native_threads; export SHLIB_PATH
    PATH=/usr/ccs/bin:$ORACLE_HOME/bin:/usr/bin:/usr/openwin/bin/; export PATH
    user_output=/user_account/mis;export user_output
    alias ls='ls -aF'
    umask=022
    lp01=alp1;export lp01
    lp02=alp1;export lp02
    lp03=alp1;export lp03
    lp04=alp1;export lp04
    lp05=alp1;export lp05
    lp06=alp1;export lp06
    lp07=alp1;export lp07
    lp08=alp1;export lp08
    lp09=alp1;export lp09
    lp10=ps401;export lp10
    lpc=alp1;export lpc
    cd /dsk8/ciame
    f60run mis_menu xxxx/xxx@xxx
    exit
    Edited by: ck on Mar 5, 2012 11:05 PM
    Edited by: ck on Mar 5, 2012 11:08 PM

  • Perform a form routine within a sap script form

    Hi!
    How can I
    perform a form routine within a sap script form.
    Regards
    sas

    OK,
    many thanks for your kindly reply.
    But basically there is a matter which I don't understand.
    Which way is the better way to loop at internal table:
    Solution1:
    FORM xxx.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       DEVICE                           = 'PRINTER'
       FORM                             = 'ZSD_PACKING_LIST'
       LANGUAGE                     =  SY-LANGU   .
    LOOP AT gt_versand_plan INTO gw_versand_plan.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'SHELEM'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN' .
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'.
    ENDFORM.
    Solution 2:
    Having the LOOP within the  sapscript form -> 'ZSD_PACKING_LIST'
    Regards
    sas

  • Calling script from ALV report

    there is button in my report(print) when click on this it needs to display the report output in a script (which is designed for this)
    Please help me how to declare my itab variables in Script....
    only the data and page number will change rest all text elments are constant for differnet pages.
    the code in the USER_COMMAND of reuse_GRID_DISPLAY is
        WHEN 'PRINT'.
          i_itcpo-tdimmed = 'X'.
          i_itcpo-tddelete = 'X'.
          CALL FUNCTION 'START_FORM'
           EXPORTING
      ARCHIVE_INDEX          =
             form                   = 'ZSCRIPT'
             language               = 'SY-LANGU'
             startpage              = 'FIRST'
           EXCEPTIONS
            form                    = 1
             format                 = 2
        unended                = 3
        unopened               = 4
             unused                 = 5
             spool_error            = 6
             OTHERS                 = 7.
           CALL FUNCTION 'OPEN_FORM'
        EXPORTING
                    application = 'TX'
                   device      = 'PRINTER'
                    dialog      = 'X'
                    form        = 'ZSCRIPT'
                 options     = i_itcpo
               language    = sy-langu.
           PERFORM print_data.
          CALL FUNCTION 'CLOSE_FORM'.
          MESSAGE s208(00) WITH ' Form Successfully Printed.'.
          CALL FUNCTION 'END_FORM'.
    THE PERFORM DETAILS................
    *Left logo
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                element = 'LLOGO'
           EXCEPTIONS
                OTHERS  = 1.
    *script header
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                element = 'HEADER'
           EXCEPTIONS
                OTHERS  = 1.
    *standard text
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                element = 'TEXT'
           EXCEPTIONS
                OTHERS  = 1.
    *dispos detials
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                element = 'DISPOSI'
           EXCEPTIONS
                OTHERS  = 1.
    *ECN number
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
                element = 'ECN'
           EXCEPTIONS
                OTHERS  = 1.
    *out_tab headings and data
      LOOP AT it_rep_out INTO wa_rep_out.
        CALL FUNCTION 'WRITE_FORM'
             EXPORTING
                  element = 'DETAIL_A'
             EXCEPTIONS
         OTHERS  = 1.
        CALL FUNCTION 'WRITE_FORM'
             EXPORTING
                  element = 'MAIN'
             EXCEPTIONS
                  element = 1
                  window  = 2.
        IF sy-subrc NE 0.
        ENDIF.
      ENDLOOP.
    *Comments from selection screen
      CALL FUNCTION 'WRITE_FORM'
           EXPORTING
               element = 'FOOTER'
           EXCEPTIONS
                OTHERS  = 1.

    Hi,
    first store all the relevant data in internal table itab.
    loop at itab.
    call write form
    endloop.
    care should be taken that you write the itab in main window.
    in script just add
    &itab-var1& &itab-var2& and so on...
    Regards,
    sumit

  • Lines are owerwitting in sap-script form

    Hi Experts
    I have edited a script form in which i called 2 elements in page window , both elements have single line
    in print priview both are overwitting eatch other
    i am calling in program like dat
    PERFORM write_form2 USING 'ADEXDUTY' 'ADEXDUTY'.
    PERFORM write_form2 USING 'EX_BASIC' 'EX_BASIC'.
    so what i do so both line comes line by line
    Thanks

    Hi,
            In the command column give a line feed '\' . and check it out..
    Regards,
    Kumar

Maybe you are looking for

  • 8GB iPod Touch has developed blueish bar 1 inch wide starting at the bottom

    I have an 8GB iPod touch I purchased in August of last year. Until yesterday the iPod was working well. While online last night a blue block stretching from the bottom of the screen up about one inch appeared covering the bottom task bar and the comp

  • Questions about OMBLIST and OMBALTER

    Hi! I am wondering how I can execute the following logics in OMB*Plus: 1) Describe the columns of deduplicators or aggregators of one mapping. 2) Do simple changes in data types of these operators. For example, from char(6) to varchar2(255) Many than

  • Is JSF dead before it was born?

    Hi all, I'm interested if anyone out there is using JSF in a larger scale production environment. The background of my questions is that our company was evaluation Java based web frameworks, and JSF was really a promising step forward. But so far it

  • Silent monitoring problem in Custom CTI

    Dear all We are having problem in Cisco CTI silent monitoring. We are using custom CTI. If we use Cisco Built-in CTI then there is not problem. How I can enable the custom CTI. Best Regards Sultan Al Arif +8801811459994

  • Compilations don't work

    In a compilation, I have a song placed as track number 4 out of 10 tracks; however it shows up on my iPod as the first song. I typed in everything correctly for the compilation. Could it be that 9 of the songs I got from another source, and the song