Debugging SAP Scripts MR_PRINT and MR_REKL

Hi All,
Can anybody tell me if there is an easy way to debug the SAP Script Layoutsets MR_PRINT and MR_REKL, which are triggered through MRKO and MIRO transactions. Also I need to know how to repeat the print out of the above layouts, which are outputs of Invoice reductions and Invoice corrections.
I already tried SE71 -> Utilities -> Activate Debugger and also placing a break-point in one of the performs, I call, but I think the print program is a dynamic call and it is not stopping at the break-points.
Let me know what I am missing.
Thank you for your time,
yrkanth

Sorry, if it sounds dumb. But how will you put a hard breakpoint in a SAP Script? I don't hink there is a BREAK-POINT command which can be used in SAP Script? I activated the sap script debugger and am running the MRKO transaction which triggers the layoutset, but it is not stopping as it does stop for any other layouset.
The other way I tried was, to put in BREAK-POINT command in one of the performs the SAP script calls and I was able to stop at that only when I debug in Update debugging mode. This only allows me to debug the perform code but it still does not allow me to debug the script as we debug the script for PO (Purchase Order) by activating the SAP Script debugger and print previewing the PO.
Hope this helps?
I really appreciate your time.
Thank you,
yrkanth

Similar Messages

  • 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

  • How to insert the style in sap-script? and in smart form?

    how to insert the style in sap-script? and in smart form?

    Hi..,
    For SAP scripts u need to create them in SE72 ...
    and u can include them in the script editor as..
    /: STYLE <STYLE-NAME>
    P1 text...............  (*** P1 is the Paragraph format created in SE72 )
    /: STYLE *
    For smartforms u need to go for the transaction (tcode) SMARTSTYLES... here u can create paragraph and character formats globally...
    <b>Sunil, plz do remember to close all your threads, when ur problem is solved !!</b>
    reward all helpful answers,
    sai ramesh

  • What are the main sap script events and their functionality and usage?

    what are the main sap script events and their functionality and usage?

    Hi,
    Inside the Script, there are events like Top of Page, End of page etc.
    Please elaborate about your requirement.
    Best regards,
    Prashant

  • Debugging Sap Script

    HI all,
    I am working on a SAP Script...this custom SAP SCRIPT is being used for transaction F110...every time we are running this transaction we are missing some data in the checks that are printing and this problem is coming after we applied the Service PAck, now my question is how can I debug ths Sap Script because when activated the debugger in SAP Script and ran transaction F110 and when finally printed the checks it never went or stopped at the SAP Script...the checks are printing fine in the other box where we haven't applied the SP. So basically I want to compare in both the boxes.
    Thanks,
    Rajeev

    Hi ,   
    Programs  executes in printout in F110 .  u can see those programs in  Printout/DataMedium Tab in F110 .  identify the program u r using  for print out and execute it after activating the debugger in sap script .
    Regards
    Neetesh

  • Create SAP Script Style and link to Script

    Hi,
    How to create SAP Script Style through SE72...and how to implement it to Script..
    Means where to implement to Script..for ex. below code is script code of ZMEDRUCK...
    /: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH IX
    Please tell me where i use that style...
    Regards.

    Hi.
    Maybe, I think that the purpose of style is to use it with SO10.
    Therefore, it doesn't use it in SAP script.
    SAP script copies with SE71 and changes.

  • SAP Script forms and logos

    Hi Experts
    My logo is too big for my Form Window in SAP script.
    How do I restrict the logo size to fit the size of the window.
    Regards,

    Hi
    IF you have imported it as graphic:
    BITMAP 'LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI <XXX>
    Where XXX is the resolution:
    Resolution with which a graphic is printed, specified in dots per inch, (dpi).
    The graphic resolution controls the size of a graphic when it is printed. High resolutions produce small graphics while low resolutions produce large graphics.
    If you choose default value 0, the original resolution of the imported graphic file is used.
    Most printer drivers and printers support the following resolutions:
    75 dpi
    100 dpi
    200 dpi
    150 dpi
    300 dpi
    600 dpi
    If you have imported it as std text I believe you've to re-imported it whit new resolution you need
    Vasanth

  • SAP Script - Window and box

    Hello All
    I have done changes to include few(3) lines in a SAP Script window. Because of those 3 lines, contents that were printed earlier are not getting printed.
    The window is getting printed inside a box and it is defined as
    BOX FRAME 10 TW.
    Window height is 22.50 Ln,width 9.50 CM.
    To rectify this should I increase the height of this window or should I define the attributes of the box
    Please reply at the possible earliest.
    Thanks in advance.

    Check this
    Setting default parameters for a box:
    You can use the POSITION and SIZE commands to set default parmeters for a box.
    Instead of: 
    /: BOX XPOS '11.21' MM  YPOS '5.31' MM  HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
    You can write:
    /: POSITION XORIGIN '11.21' YORIGIN '5.31' MM
    /: SIZE HEIGHT '2' MM WIDTH '76' MM
    /: BOX  FRAME 10 TW INTENSITY 10
    This can be usefull if you gave several boxes that share the same parameters.
    If you want to set the position realtively to the window use POSITION WINDOW
    to set the position to the top/left start of the window. Then use POSITION 
    to set the current position relatively to the start of the Window. 
    Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.
    /: POSITION WINDOW
    /: POSITION XORIGIN '+5' MM  YORIGIN '+10' MM
    the position is now 5 MM from the left and 10 MM from the top of the window
    NOTE: After using the position command you can move the current position
    realtively to the last used position
    /: POSITION XORIGIN '+10' MM  YORIGIN '+20' MM
    Now the position will be X = 15 and Y = 30
    Drawing a line. You can draw a line by setting the Height or Weidth to 0
    and add a frane. E.g. a horizontal line:
    /: SIZE HEIGHT '0' MM WIDTH '200' MM
    /: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100

  • SAP SCRIPT SO10 and Email Notification for different actions

    I am working on a SAP Script now to send a notification whenever there is a Prehire ,New Hire or Termination scenario. I am a functional SAP person and need some help in one of the scenarios.
    The notification seems to work fine except for two things -
    I am able to get the values for MASSN (Action) and MASSG (reason code) but not the text. For e.g. I am able to get 01 with reason code 02. Action 01 is New Hire activation and reason code 02 is Addition. I want these text in my notification. How can I get it ?
    Secondly , we do a Prehire action when the employee accepts the offer. We just create IT0000, IT0001 , IT0041 and IT0002. But the employee stays in INACTIVE status untill new hire activation action is done. When I do a Prehire action, I am able to get only IT0000 related data ie. MASSN and MASSG but not position or emp group etc. Why it is not giving me the IT0001 related info ? Here is what my SO10 text looks like now --
    Action on &sy-datum&
    /: DEFINE &CHANGEDON& = &P0000-AEDTM&
    /: DEFINE &USER& = &P0000-UNAME&
    /: DEFINE &ACTION& = &P0000-MASSN&
    /: DEFINE &REASONCODE& = &P0000-MASSG&
    /: DEFINE &FIRSTNAME& = &P0002-VORNA&
    /: DEFINE &LASTNAME& = &P0002-NACHN&
    /: DEFINE &HIREDATE& = &P0041-DAT01&
    /: DEFINE &PERSAREA& = &P0001-WERKS&
    /: DEFINE &EMPGROUP& = &P0001-PERSG&
    /: DEFINE &ACTIONTEXT& = &T5885-DTEXT&
    /: DEFINE &PERNR& = &P0000-PERNR&
    /: DEFINE &POSITION& = &P0001-PLANS&
    /: PERFORM EXT_TEXT IN PROGRAM ZHR_RETR_TXT
    /: USING &PERNR&
    /: CHANGING &POSITION&
    /: ENDPERFORM
    L  THIS IS TO NOTIFY YOU THAT EMPLOYEE &PERNR&,&FIRSTNAME& &LASTNAME& WAS HIRED
       ON &CHANGEDON& BY &USER& FOR &ACTION& WITH &REASONCODE&
    /  THE ORIGINAL HIRE DATE (START DATE) OF THIS EMPLOYEE IS &HIREDATE&. 
       THIS EMPLOYEE WAS HIRED AS &POSITION& FOR &PERSAREA& AS A &EMPGROUP&.
    I will appreicate your help.
    Sanghamitra

    HI,
    Please have a look at the following doc:
    http://www.renet-web.net/2009/07/23/automated-emails-in-sap-solution-manager-made-easy/
    U may need to make some minor modifications to get ur requirement. I hope u will be able to do that once u go through this.
    Rajeev.

  • SAP Script: Boxes and Lines appear on FIRSTpage but NOT in NEXT

    I have code to create boxes, lines and shade . This code is in the "Main" window of the "FIRST" page and "NEXT page.
    The program prints boxes, lines and shade in the FIRST page. When "Main" window fills up with data in "FIRST" page, then "NEXT" page prints. The boxes and lines and shade do not print in the "NEXT" page.
    Can some one please help ?

    Vinay,
    Where are the the "Boxes, lines and shade in the FIRST page"? The MAIN window is usually used to display lists. The length of the MAIN window dictates how many pages will be printed. If you have any static boxes, lines or shading (ie always the same spot on the page) then maybe you should not put them in the MAIN window.
    If you must have them in the MAIN window, I would suggest that you find out which Text Element they are in. The SAPscript Print Program must explicitly call these Text Elements in order to make them appear (via the WRITE_FORM function).
    If you want to print things like list headings and the like, you should pass 'TOP' into the TYPE parameter in your WRITE_FORM.
    eg.
    Let's say you want to display the "Header" Text Element as the heading (this heading has boxes, lines, etc) of your list.
    call function 'WRITE_FORM'
      exporting
        element  = 'HEADER'
        function = 'SET'
        type     = 'TOP'
        window   = 'MAIN'
      importing....
    Hope this helps.
    Cheers,
    Pat.
    PS. Kindly assign Reward Points to the posts you find helpful.

  • Sap script address and logo change

    Dear gurus,
    I have requirment to change address and logo in existing form(z110_prenum-chck) and i don't know what you need to do to change address and logo. Please let me know what i need to know before changing any thing. Do i need to go in driver program and change something for address change.
    Thanks in advance.
    Regards
    Dave

    Hi,
    1.Please upload the new logo using tcode : SE78
    2. Go to the form, go to corresponding page--> go to pc editior --> Delete old image and insert new image which is uploaded by SE78.
    3)you can mainatain the address dynamically by calling the subroutine pool.
    the syntax is..
    /: PERFORM <form> IN PROGRAM zprog
    /: USING &FIELD1&
    /: USING &FIELD2&
    /: CHANGING &FIELD3&
    /: ENDPERFORM
    Regards
    Kiran Sure

  • 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.

  • SAP Scripts for Stock Removal and Stock Placement ?

    Hi All,
      Can you please let me know what are the SAP script names and Transaction codes for  Stock Removal and Stock Placements ?
    Thanks,
    Raj

    Hi
    Tcode is MIGO only (select Goods receipt) and mvt type as
    Putaway (305, 315, and so on)
    Stock removal (303, 313, and so on)
    Transfer posting (301, 311, and so on)
    regards
    Yogesh

  • Passing data to SAP script from print program-VF03

    Hi All,
    I have a stand alone print program which ahs the invoice number in its selection screen which when entered displays the layout of invoice by using a sap script.
    Now since I have to get this layout displayed from VF03, I have added the program, sap script name and a subroutine which contains the code which was initially there under the start-of-selection event in the stand alone program, in NACE. I have replaced the selection screen parameter for invoice number in my program with nast-objky which contains the invoice entered in vf03.
    But when I am entering the invoice in vf03 and selecting print preview, the data is getting captured in the internal table defined in my program but the same is not getting reflected in the layout displayed. So I am always getting the blank values in the output though I did not modify the original sap script at all. Pls help.

    Keep a breakpoint in your print program and see if your program is being triggered indeed. Do not forget to start Update debugging, otherwise it will not stop in your print program.
    Regards,
    Ravi

  • Variable in SAP SCRIPT

    Hi Guys,
    I want to print a variable Value from Print Program to SAP SCRIPT, I tried to print it in between && but they still dont have any value while debugging SAP SCRIPT and not also in print out....Suggest somthing.
    Cheers....!!
    Sid

    Hi,
         Debug your program and c whether you are getting your value there. If yoes, check if you have used the function module OPEN_FORM and passed the correct name of the SAP script. Then check if you have used Write_Form and are you passing the correct Text Element Name.
    You would  not have used one of them. Hence the problem.
    Check and revert back.
    Thanks
    Nayan

Maybe you are looking for

  • What order are Archive logs restored in when RMAN recover database issued

    Ok, you have a run block that has restored your level-0 RMAN backup. Your base datafiles are down on disc. You are about to start recovery to point in time, lets say until this morning at 07:00am. run {   set until time "TO_DATE('2010/06/08_07:00:00'

  • Upgrading from 8.1.5 to 9i

    I have a 8.1.5 database installed on AIX 4.3.3 HACMP 4.3 cluster. I want to upgrade to 9i (i.e. 9.2.0.1). I understand from Oracle business partners that 9i is not yet stable on IBM AIX platform. Is that true? If i want to upgrade from 8.1.5 to 9i sh

  • Can I store RTF file with image into CLOB?

    I have created a WORD template document with company logo heading and format. I have to replace the 'user name', 'date' etc. data every time before I insert into my database. Therefore I store the template doc as RTF format. 1. Can I insert this doc

  • Downloading bar shows up when I log in to my account

    Hello Apple communities, I had a problem with my macbook air when I installed OS X Yosemite, and I solved it. Suddenly, when I restart my macbook air and log in to my account, downloading bar shows up. I didn't have that before. This is a picture for

  • ITunes keeps shutting down

    Every time I try to add or even view a demo of a video on iTunes, I get an error message that reads: iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. I'm not savy with computers so I really don't know what's go