SAP script  & smartform debugging

Hi experts
can u plz give me the step by step procedure  for debugging the SAP script and smartform
regards
venkat

Hi,
They are two ways to debug the SAPScript.
1). Use Tools - Word Processing - Layout Set (SE71). Enter
name of layout set and then Utilities - Activate Debugger.
It is of no consequence which layoutset you enter when
selecting the SAPscript debugger. (Menu path:
Tools-Wordprocessing - Forms, Utilities - Activate Debugger)
The next layoutset called will invoke the debugger.
2). Another way to set the SAPScript debugger is to run
program RSTXDBUG.
When you debug Print program it is same as you debug any
other ABAP program. While when you debug SAPScript, you
actually debug the code ( scripting) you have written
SAPScript Form.
DEBUG Smartform:
One way to debug smartform is to debug the Function Module of
that smartforms. If you want to debug particular smartform
node that the solution would be, 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.
another way is SFTRACE can be used for debugging SMARTFORMS
for details refer this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
rgds,
latheesh

Similar Messages

  • Converting HR Form(pe51) into sap script/smartform

    I have an HR form created in PE51 - how do I convert this into a sap script/smartforms?  I would like to put our company logo on the form...
    Thanks - Janet

    Well i once found these two Notes:
    701887 and 309204
    It is talking about PE51 and some interaction with smartforms and a couple of Function modules.
    Following objects are created in release 4.6B and delivered from releases upwards via this note :
    Function group HR99S00_SMARTFORM
    Function module HR_99S_CONV_PRIPARMS_TO_SSFCOMPOP converts printing parameters from format PRIPARMS to Smartform format SSFCOMPOP.
    Function module HR_99S_CONV_SFERROR_TO_HRERROR converts and integrates Smartform error table to an HR error table.
    It looks like it is possible to produce a smartform payslip. What I could not find is how to do it.

  • SAP Script & SMARTFORM import - Prog. RSTXSCRP????

    Hi Experts,
    We hv my_SAP_Script in DEV system of FarmSeeds box.................now, I need to get(import/copy) in the same my_SAP_Script into DEV system of FarmChemicals box,
    So, in this perspective am looking the prog. of RSTXSCRP............but, it looks like its does not meets my requiremet,
    So, let me know that,
    1- If it meets my requirement, pls.let me know How to do it, I mean, Is I need to IMPORT to a .txt file on my local desktop?
    2 - How to get it from DEV of one box to DEV of another box?
    3 - The same case for SAMRTFORM also!
    replies appreciated
    thanq
    Edited by: SAP ABAPer on Nov 6, 2008 7:05 PM
    Moved to correct forum by moderators
    Edited by: Matt on Nov 6, 2008 8:12 PM

    thanq.
    for SMARTFORMS also, I did the same, so, looks like its working.
    but, clarify,
    1 - shuld i check the check box of BINARY FORMAT?
    2 - In the Target system, system is forcing me to give/specify the SAME NAME, wht we hv in SOURCE system...........say, my_sap_script??? so, is it so? or Can I give any name? bcoz, here at thisa client need to follow naming conventions?
    2 - looks like, i can NOT RENAME the sap script? is it correct or is it possible to RENAME the script, if so, how?
    3- pls. clarify ur statement below,
    " You will have to use a transport for the SmartForms anyway"
    thaq
    Edited by: SAP ABAPer on Nov 6, 2008 8:08 PM

  • SAP Script,Smartforms,Adobe Forms

    Hi SDN Friends!
    I had this question.
    Given a SAP Script or SMART Form ... how do we identify (table names?)
    The Print program associated with them? Also, how does that concept differ from PDF forms?
    Any body can answer please........
    Regards,
    Markiv.C

    Hi
    In any Orgn in real time in SAP we use Sap scripts or Smartforms for sending Outgoing documents like Sales,Pur order to customer or vendor.
    So these are assigned with an Output type, Medium, Print  program
    These settings are configured first in Application document and in NACE Tcode
    accordingly an Entry is saved in NAST table and TNAPR tables
    so from these 2 tables we will come to know the form/sf name, print program and Output type and Medium etc
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • SAP SCRIPTS & SMARTFORMS

    HOW CAN WE SUGGEST SAPSCRIPTS ARE POOR PERFORMANCE COMPARE TO SMARTFORMS
    IN DEVELOPMENT I CREATED A S.F IT GENERATES A FUNCTION MODULE .WHEN I TRANSPORTED IT TO TESTING. WHETHER SMARTFORM GENERATES A FUNCTION MODUEL OR NOT?

    Hello Polisetty,
    First question: It's not primarily a performance issue (SAPscript doesn't have a bad performance). It's an issue of upward compatibility and functional features why SmartForms does have an advantage.
    Second question: Of course, the function call 'SSF_FUNCTION_MODULE_NAME' in your transported program creates a temporary function (import parameter fm_fname) in the new environment (either TEST or QM or PR) as well. You have NOT to transport the created FM (which is the value in fm_name).
    Hope it's clear,
    Heinz

  • Sap script/smartforms

    hi friends,
    this is siddhardha
    what is the prosidure to copy and program for the copied form in our prasent working clint.
    and what for the T-CODE NACE is used.
    thands, regards
    Siddhardha

    Hi,
    Here is a great link to come to your rescue....
    http://www.allsaplinks.com/smartform_example.html
    As far as NACE is concerned, it is assigning the form to the driver program. Usually done by functional consultants.
    Feel free to revert back.
    --Ragu

  • Debug SAP script

    Hi Gurus,
    I need to debug SAP script. How can I do this?
    Thanks,
    Pavan
    Moderator message - Please search before asking - post locked
    Moderator message - Please see Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! before posting - post locked
    Edited by: Rob Burbank on Oct 13, 2009 5:00 PM

    Hai Rajiv
    For Debugging SAP Scripts & Smartforms as follows
    SAP Script:
    YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
    2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
    Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.
    1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.
    2.You can debug the function module which generates the smartform.
    Regards
    Sreeni

  • Send email with PDF attachements (Smartform/SAP script)

    Hello All,
    I have 3 existing programs A, B & C whose output is in SAP Script/Smartform. Now I need to create new program D which needs to execute program A, B & C and then convert their smartform/SAP script output into PDF format and send email with attachements (PDF files). Any pointers how I can proceed. Thanks a lot.

    hi Sarita,
      v_ctrlparams-no_dialog = 'X'.
      v_ctrlparams-getotf = 'X'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'Smartform name'
        IMPORTING
          fm_name  = v_func_mod.
      CALL FUNCTION v_func_mod
        EXPORTING
          control_parameters = v_ctrlparams
        IMPORTING
          job_output_info    = v_joboutput
        TABLES
          t_nonsigner        = t_nonsigner.
    fill the document
      doc_chng-obj_name = 'Descriptoipn'.
    Fill the subject line
    doc_chng-obj_descr = 'Manpowe'.
      doc_chng-obj_descr = 'Reminder .
      doc_chng-sensitivty = 'P'.
    Fill the content of the mail
      objcont = 'Dear all,'.
      APPEND objcont.
      CLEAR objcont.
      APPEND objcont.
      CLEAR objcont.
      objcont =
    'The manpower sign-off is pending for the list of employees as per th' &
    'e attached sheet.'
      APPEND objcont.
      CLEAR objcont.
      APPEND objcont.
      CLEAR objcont.
      objcont =
      'Please click on the following link for the manpower sign-off:'.
      APPEND objcont.
      CLEAR objcont.
      APPEND objcont.
      CLEAR objcont.
      DESCRIBE TABLE objcont LINES entries.
      READ TABLE objcont INDEX entries.
      doc_chng-doc_size = ( entries - 1 ) * 255 + STRLEN( objcont ).
    Creating the entry for the compressed document
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = entries.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    Creating the document attachment
    (Assume the data in OBJBIN are given in BMP format)
      LOOP AT v_joboutput-otfdata INTO wa_otfdata.
        APPEND wa_otfdata TO objbin.
        CLEAR wa_otfdata.
      ENDLOOP.
      DESCRIBE TABLE objbin LINES tab_lines.
      objhead = 'NonSignerDetails.otf'. APPEND objhead.
    Creating the entry for the compressed attachment
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num   = 1.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'OTF'.
      objpack-obj_name   = 'ATTACHMENT'.
      objpack-obj_descr = 'NonSignerDetails'.
      objpack-doc_size   = tab_lines * 255.
      APPEND objpack.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = objbin
          contents_txt               = objcont
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
    hope this will help u..
    regards,
    Santosh Thorat

  • SAP Script output not displayed

    Hello,
    Print preview of purchase document does not show the output. Only "test print only" is displayed on all pages.
    I can see the data passed to SAP Script in debug. The print is created using output control, ( Save or create of PO ).
    What could be the possible reason for the same?
    Even if i try to use the option of "printing test" direct from script no text elements/language are displayed.. "test print only" is displayed.
    kindly help.

    Hi,
    I am not sure what your current support pack is. This sounds like the problem described in the SAP Note:
    1243485 - Unprinted variables and lines of a SAPscript form
    Can you apply the code correction of Note #1243485?
    Regards,
    Aidan

  • How to Migrate SAP Scripts to Adobe form

    Hi,
    Can yo uplease tell me step by step how to convert/migrate SAP Script to Adobe forms.
    Thanks,
    Rajeev Gupta

    Hi
    Transforming SAP Scripts - > Smartform -> Adobe Forms is the right way.
    refer this thread...
    [Re: Convert SAP Scripts to Adobe PDF Forms|Re: Convert SAP Scripts to Adobe PDF Forms]
    Regards
    Raj
    Edited by: Rajasekhar Dinavahi on Dec 9, 2008 5:25 AM

  • 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

  • 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

  • Debugging of SAP SCRIPTS

    Hi ,
           Wht r the steps for debugging of sap-scripts, and the wht r the steps (configuration steps ) i need to follow for making changes to an existing script.script is  trigred by TC : VA03. 
    Many thxs
    vind.

    Hai Vind
    SAP Script:
    YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
    2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
    Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.
    1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.
    2.You can debug the function module which generates the smartform.
    Thansk & regards
    Sreeni

  • Debuging of SAP script  SARTFORMS

    Can we debug SAP Scripts & SAMRTFORMS
    SHAOIB

    Hi,
    Yes we can debug scripts n smartforms.
    <b>
    SMARTFORMS DEBUGGING</b>
    For smartforms debugging you can do this.
    1. Execute the smartform (execute button in SMARTFORMS transaction)
    2. Take the generated function module and display it in SE80.
    3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
    Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
    Tcode - SFTRACE
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    Debugging of a subroutine pool.
    <b>SCRIPTS DEBUGGING</b>
    There are 2 separate kinds of debugging available when you try to debug scripts.
    1. Debugging the print program : This is the normal debugging we do for our report programs.
    2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:
    a .In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
    b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
    refer to the link below
    http://www.howforge.com/how-to-debugging-sapscript-form
    Look at the BLOG here, it is well explained
    /people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
    Regards,
    Priyanka.

  • Steps to develop smartforms and sap scripts

    hi experts,
    I want to learn smartforms and sapscripts from the scratch step by step. i have gone through few threads, but iam not clear with the declarations.
    thanks in advance
    maaya

    Maaya,
    Go thru these links...
    SAPScripts
    Link for SAP Scripts (step by step procedure)
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    Smarforms
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    SmartForms : some links
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sap-img.com/smartforms/smart-002.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
    http://www.allsaplinks.com/smartform_example.html
    http://www.sap-basis-abap.com/sapsf001.htm
    Smart Form PDF Link
    http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    Debugging of a subroutine pool.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    SRIPTS
    http://wiki.ittoolbox.com/index.php/Sap_script#7.6.7.09Space_Compression
    SCRIPT OUTPUT TO PDF
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556
    Reward if helpful,
    Karthik

Maybe you are looking for

  • Vision - is it essential to connect to port 1 of t...

    I have extended my home network by adding an apple extreme. Right now it is made complex by needing to keep the vision connection direct to the HH3 to connect to port 1, as the manual says use that port for vision connection, presumably because of th

  • How to remove duplicate "Pages" software.

    I installed the iwork suite, but pages was already on my mac.  Now pages is on there twice.  How do I remove one?

  • Mapping of Product codes in Inter sales

    Dear Gurus,               I am currently working on EPM 10 NW. The client is Textile giant. The client has its entities around the world. They have inter sales also. Now the problem is when one entity make sales with one particular code of the produc

  • Deleting Original Video File

    Once you import a video file into Encore and transcode it can you delete the original file and still build properly or will that cause a problem? I do understand that you will not be able to revert to original if you do this.

  • Help Regarding Table

    Hello frnds i hv to add two fields into a table but by mistakely i hv added three fields to that particular table now the problem is this when i m trying to delete the extra field it is showing me error that structure has changed and i m not able to