Sapscript - medruck  DEBUG

I am doing a purchase order form in sap script , using a standard form Medruck and Print program SAPFM06P,
i have tried to debug the script using activate dubugger in se71 and by setting a break point in the print program, i am not able to debug it in eiher of the ways.
since it is background program, i cant do the dubugging .
can u give me the steps , how to debug this purchase order form( which is background program ).
thankx in advance.
ravi.s

Hi Rich,
Need your Inputs on SAP Script Issue.
Issue:
In a Purchase order ME22n/mE23n  Item View->Condition Control->Checkbox(Print Price) needs to be activated as it is not working. It's a standard functionality.
We are using customized script for PO Printing, At the time of customization we have somehow lost this functionality which has been recognised now, Client wants when "Print Price" Checkbox is checked then only the Amount should get displayed in the final output. If "Print Price" is Unchecked then Amount Should not be displayed on the final output.
Please suggest the approach which i Should take to resolve this issue.
Thanks In Advance..
Vikas

Similar Messages

  • MM Sapscript Medruck - print two times in different way

    Hi,
    I have to use the form medruck to print orders and deliveries. Only if ekpo-pstyp & ekpo-knttp = F, it should be printed one order form and one delivery form. The delivery form is like the order form, only a few text-differences and so on...
    So I also want to use medruck, if it´s possible.
    My problem now is, how can I print the order form and also the delivery form, if the mentioned fields have the specific content? How do I have to make the changes in the print program SAPFM06P? Is it possible to loop the print process two times and set a flag to decide in the sapscript, if the order or the delivery should be printed, or only the order?
    I hope, You have got my problem!
    Thank You very much for our help!
    Cheers Arne

    First copy the function group MEDRUCK to ZMEDRUCK, including all function modules.
    Copy the SAPFM06P to SAPFZM06P.
    In the SAPFZM06P program, copy the include FM06PE02 to ZFM06PE02 and comment out the FM06PE02.
    In the FM06PE02 include program, there is a FORM called ENTRY_NEU, change the call to ME_PRINT_PO to ZME_PRINT_PO.  Now you will be making all of your modifications to the ZME_PRINT_PO function module which is in charge of printing the PO. 
    The main program for the function group will be SAPLZMEDRUCK.  There will be a lot of includes.    Check the include LZMEDRUCKF02.  There are alot of includes there also.  To change something, just copy the include into a "Z" version, include it here, and comment out the standard include.  Then you can make your changes accordingly.    We have done modifications to many includes in the LZMEDRUCKF02.
    Also, you have to make sure to change the configuration to point to the SAPF<b>Z</b>M06P.
    Regards,
    Rich Heilman

  • Sapscript MEDRUCK/Zedruck Sapscript printing problem

    Hi,
    I have a problem in SAP version ECC SAP ECC 6.0 with the PO print  program SAPFM06P and the sapscript ZEDRUCK. From within ME23N when I do a print preview of the PO everything looks OK, however when I print it out to a HP Laserjet 1320n there is a strange number '4099' printed to the left of some of the fields, for example in the print preview I see 'Terms of Deliv.: FOB' but on the printed version I see '4099Terms of Deliv.: FOB'.
    These characters appear in other places on the PO as well. We dont have this problem on other sapscripts i.e invoices, quotations etc.
    Message was edited by: Mike D

    Solved used a different PO and all was oK.

  • Sapscript Debugging help

    Hi Experts,
    i am new to SAP Script ,i want to debugg sapscript MEDRUCK when i create Purchase order thorugh ME21N .
    i tried to do through SE71 =->utilities->active debugger..
    print out is getting but debugger is not stopping at MEDRUCK .
    I want to stop debugger at MEDRUCK and Printprogram when i create Purchase order through ME21N tcode.i have done all required NACE sttings and print out is getting.
    Please help.

    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.
    for details refer this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Regards,
    Maha

  • Medruck sapscript-purchase order text

    I would like to print the Purchase order header texts in the first line of main
    program.But it is printing at the end only.
    SAPSCRIPT -medruck
    Text SUPPL_TEXT
    &TTXIT-TDTEXT&
    INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID &T166A-TDID& Thanks

    Try using the below code...
    :/TOP
    INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID &T166A-TDID&
    :/ENDTOP
    Thank You
    Suresh

  • SapScript Data is not printing in Address window

    Hi all,
        I am having a problem regarding printing some values in a window of sapscript.It prints data in that window for some input and not for others input. The structure , which is being passed to this window is having values in print program all the cases.  I get into the sapscript in debugging mode and found that the structure is having values fr all the test run ..But its still not printing in some cases.The window is coming as blank.
    the code in the editor of the window is :
    POSITION WINDOW
    BOX FRAME 10 TW
    AS <B>&ztfin-fld18'/'&&t_ztfin-fld18&</>
    ADDRESS PARAGRAPH AD
    ADDRESSNUMBER &DKADR-ADRNR&
    TITLE       &DKADR-ANRED&
    NAME        &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
    STREET      &DKADR-STRAS&
    POBOX       &DKADR-PFACH& CODE &DKADR-PSTL2&
    CITY        &DKADR-ORT01&, &DKADR-ORT02&
    POSTCODE    &DKADR-PSTLZ&
    COUNTRY     &DKADR-LAND1&
    REGION      &DKADR-REGIO&
    FROMCOUNTRY &W_CLERK_LAND&
    ENDADDRESS
    can sugest me something.
    Reward poits guranteed.

    Hi Vijay..please have look in this..
    Case: text is printed in address window
    DKADR-ADRNR     xxxx
    DKADR-NAME1     xxxx
    DKADR-STRAS     xxx
    DKADR-PFACH     xxxx
    DKADR-ORT01     xxx
    DKADR-LAND1     xxx
    DKADR-REGIO     xxx
    rest are blank
    Case: text is not printed in address window
    DKADR-ADRNR     xxxx
    DKADR-NAME1     xxxx
    DKADR-NAME2     xxxx
    DKADR-STRAS     xxxx
    DKADR-ORT01     xx
    DKADR-LAND1     xx
    rest are blank
    is the Addresss CALL IS failing because of DKADR-REGIO = space ?

  • SAPSCRIPT for Scheduling Agreement

    Can anyone tell me , what is the SAP form name for Scheduling  Agreement and also the Output type for the same.
    Kindly do the needful.
    Thanks in advance.
    Regards,
    Shankar

    Is it purchasing SA? use sapscript MEDRUCK and output type NEU.
    Form: ENTRY_NEU Program: SAPFM06P
    Regards
    Sridhar
    Message was edited by: Sridhar K

  • Debugging of Smart Forms

    Hi,
    I developed a samrtrorm, i want to debug it . can any one plzz tell me how to debug smartforms.
    Thanks & Regards
    Munna
    Message was edited by:
            SYED MUNNA

    Hi,
    SMARTFORMS DEBUGGING
    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.
    Regards,
    Priyanka.

  • How to debug script

    1) i heard that we have to put layout in debug mode and then go to print program and execute it also in debug mode.
    am i right?
    2)where do we check like compilation errors in layoutset.

    One way to start the script debugger is:
    Se71->utilities->activate debugger.
    This may be a time-consuming process. Instead, open a session and execute the program RSTXDBUG. Even if you follow the above menu path to activate the script, it will internally execute the program RSTXDBUG. So you are saving some time in going through all of the above processes.
    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.
    RSTXDBUG - SAPScript debugger
    Debug SAPScript
    You can debug a SAPScript: Use Tools - Word Processing - Layout Set.
    Enter name of layout set and then Utilities - Activate Debugger.
    It is of no consequence which layout set you enter when selecting the SAPscript debugger. (Menu path: Tools-Word-processing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger. This is quite handy when verifying which layoutset is being called (Verifying customizing settings).
    Another way to set the SAPScript debugger is to run program RSTXDBUG.
    When a Form is copied from one client to another .And If U try to display or change the form in the copied client .The possible error message cud be :
    1.Form not found
    Try coping again specifing the language .
    2.IF IT dispalys an error message saying That the text file is inconsistent .
    Then go to SE38 and Run “RSTXCHKO” .
    It will ask for the form name ,then check all the checkboxes and then run the program.
    Note : all Script related problems can be solved using Program ‘RSTX*’.
    Reward points if this Helps.
    sanjay

  • How to debug a smartform?

    I am facing deffficulty.. while debugging the my smartform.
    this is called in e-recruitement portal.. i tried with smartform_trace and break-point and all.
    how to do this?
    Please help me.
    Thanks

    Hi
    DEBUG Smartform:
    1) 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.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    LOGO on Smartform
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server

  • PO SAPScript question.

    Hello SAPients!
    I'm a little confused with a situation I have, I have to modify SAPScript MEDRUCK (ZMEDRUCK in fact) and print program SAPFM06P (ZSAPFM06P) I wanted to modify the ENTRY_NEU subroutine but there I can only see this code:
    form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      call function 'ME_PRINT_PO'
           exporting
                ix_nast        = l_nast
                ix_druvo       = l_druvo
                doc            = l_doc
                ix_screen      = ent_screen
                ix_from_memory = l_from_memory
                ix_toa_dara    = toa_dara
                ix_arc_params  = arc_params
                ix_fonam       = tnapr-fonam          "HW 214570
           importing
                ex_retco       = ent_retco.
    endform.
    According to the development standards for this project, the SAPScript should not have PERFORM sentences, all the processing and calculating functionality should be in the print program, does that mean I have to modify the Function modules? Do you know other way of doing it? What would you recommend?
    Thanks

    In reality, the print program that you mention is really just an "in between" driver, the actually printing goes on in the function group MEDRUCK or ZMEDRUCK.  You must copy the function group MEDRUCK to a "Z" version called ZMEDRUCK, this will then allow you to copy the function modules within,   one of wich being the ME_PRINT_PO function module,   copy this into Z_ME_PRINT_PO.  Now in this function module is where you will make you modifications.  There are lot so includes in there where you will need to copy them as well and comment out the old include name and include the "Z" version.  Also, you will need to change the call in the mentioned program above so that it calls the "Z" version of your print function module.
    call function 'Z_ME_PRINT_PO'            "<--  Like So
    exporting
    ix_nast = l_nast
    ix_druvo = l_druvo
    doc = l_doc
    ix_screen = ent_screen
    ix_from_memory = l_from_memory
    ix_toa_dara = toa_dara
    ix_arc_params = arc_params
    ix_fonam = tnapr-fonam "HW 214570
    importing
    ex_retco = ent_retco.
    endform.
    REgards,
    Rich Heilman

  • Form medruck into a smartform

    Hi,
    I need to alter a sapscript layout of form medruck into a smartform. I read in forums that there are standard smartform and printing program for sapscript medruck and it is included in the “Best Practice Baseline Packages”.
    Exist another solution or another way to install this functionality without install the entire package?
    Tank you for helping

    hi
      wat i am getting is like , earlier ur std. form was a sap script and that driver program is written for that ,
           Now u created a Smart form for fulfilling  ur requirment, but using same driver prg.,  sure it will not work.
    what i can suggest u that take that std. sap script in z-form,
    do ur changes in that as required and assign that to driver prg., insted of creating new driver prg for ur SF , becoz accuracy of std. driver prg. will be more then z-prg.
    if u have to hide some values from display ,then just made changes in SAP script only, but if u want some new info. to display on script then u have to make change in driver prg. also
    reward if helpful.

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

  • Debugging the scripts and smartforms

    Hi,
    Please Tell me How to debug the SAP SCRIPTS and SMARTFORMS.
    Thank in advance
    Ajay

    DEBUG Smartform:
    1) 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.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    LOGO on Smartform
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server
    SMARTFORM-> execute->execute->pass values if require to import & table parameters ->execute-> on the pop up window give Printer name as LP01 and press print preview.
    For debugging -
    1. Write BREAK POINT in the code window.
    2. Put a break point on the call function in the driver program
    3. Put a break point in the generated Function module.
    OR
    1) DEBUG Smartform:
    1) 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.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    OR
    Four ways you can debugging.....
    1.place SFTRACE inplace where we enter T_CODE and press ENTER.
    after that press F8.
    2 ./H
    3 /SH
    4.after generating the function module there is a button DEBUGGING
    Refer to these related threads
    smartforms debug
    Smartforms debug
    How to debug Smartforms?
    How to Debug the Smartforms
    Re: Smartforms Debug
    Smartforms
    In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..
    Please set a break point in side the smartform:
    BREAK <USERNAME>.
    Then at the time of print/ preview the program stops there.
    Example : If you set the break point in initializationas
    BREAK <USERNAME>.
    Program stops at break point. After that use Serach and set more break points.
    >Search the program logic/Textelement/Address via search and set the break point at that code.
    Other 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.
    or
    SFTRACE can be used for debugging SMARTFORMS.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    See the Below thread for how to debug the Smartforms
    How to Debug Smartform?
    Re: debug of smartfrom
    Smart forms
    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.

  • Can we debug the smartform if yes how can we debug

    can u give me briet explanation abt debugging of smartform

    HI
    In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap
    Break Point.
    SMARTFORMS DEBUGGING
    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.
    Reward all helpful answers
    Regards
    Pavan

Maybe you are looking for

  • What is the diff b/w logical query and physical query?

    Thanks In advance

  • I need someone to take over my computer and fix this problem for me

    pls help i need someone to fi this problem for me my j4680 will not go wireless can someone take over my computer and find out what is wrong plsssssssssssssss

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

  • Flash objects and Director

    HI! Im thinking of starting to use the SmartFoxServer for some multiplayer games. They have a Flash-API so you can use the flash XML-socket to connect to the server. Id like to do this in director/shockwave without using a flashSprite on the stage. t

  • OIM11gR2 BP3 - Migration of GTC from one env to another

    Hello All, I'm trying to export a GTC from my Dev env to another env. I did export the GTC via Deployment Manager by choosing the Generic Connector option. I've selected all the dependencies like Resource Object, IT Resource, IT Resource Type, Applic