SapScript Help

Hi,
I need to know whether its required to have Z driver program for a Z form say[ZMEDRUCK].
Suppose client needs only changes to the layout by having windows shifted here and there and some normal addition of standard text and other text.So in this case I need to make driver program also Z-pgm or I can use the standard program only as my driver program for my Z-FORM.
I know this is very basic question but just wanted to confirm as I am not much experienced in Scripts.
Thanks
Sudharshan

hi,
No you can still use the Standard Driver Program,your Z script will be configured .
Regards,
Neha

Similar Messages

  • Box in SAPscript-Help Needed.

    Hi ,
        I want to make a box in script which it shud not hav any columns or rows. The box shud hav 4 lines of contents withan font of 10. Also i want to split the box in the centre. Kindly give some piece of code for it. It shud be helpful to me.
        Also is ther any way to assign the SAPscript windows only on last page  or windows only on first page option (i.e) option like in smartforms.
    Thanks and regards,
    Karthik

    Hi,
    It is very easy to create any BOX in script, Below is the command for same,
    Create Boxes in the SAPscript using the BOX command specifying
    the x,y co-ordinates and the width and the height
    /: BOX XPOS '0' CM YPOS '0.5' CM WIDTH '9.2' CM HEIGHT '3.5' CM FRAME 8 TW
    Try with this I know handle a BOX is difficult.
    2. You can create a Static Window and can call it on Last Page.. I will work..
    Edited by: Lokesh Tarey on Jul 30, 2010 8:23 AM

  • Sapscript help -displaying line items in the table

    Hi folks,
    Can anyone please help me in a way of displaying the line items at the right place in the table fields?I have been playing with the tabs to space it for quite sometime. I tried everypossible combination, but does not work. Tring to figure out have not succeeded yet.
    the line items in some lines displaying right, but if the first name or the last name is long, either pushes  forward the subsequesnt data or if the length is small, it pulls the data inside.
    I do not know how to fix this.
    Here are the 4 elements I tried to display  as line items
    BOX XPOS 0 MM YPOS 0 MM WIDTH 10 MM HEIGHT 100 MM FRAME 10 TW
    BOX XPOS 10 MM YPOS 0 MM WIDTH 50 MM HEIGHT 100 MM FRAME 10 TW
    BOX XPOS 60 MM  YPOS 0 MM WIDTH 50 MM HEIGHT 100 MM FRAME 10 TW
    BOX XPOS 110 MM  YPOS 0 MM WIDTH 28 MM HEIGHT 100 MM FRAME 10 TW
    &OUT-SLNO&,,&OUT-EFNAME&,,,,,,&OUT-ELNAME&,,,,,,&OUT-EDOB&
    paragraph format
    tab1: 15 MM LEFT
    tab2: 22MM LEFT
    tab3: 24 MM LEFT
    tab4: 28 MM LEFT
    Any help is widely appreciated,
    Thanks,
    Sk

    If it is a form to be newly developed, it is better to go in for Smartform development since smartforms will automatically handle this problem.
    If you still want to continue using Scripts try to use
    /:  YORGIN
    or
    /: XORIGIN to adjust the height of the Box, if needed.
    More Details : http://help.sap.com/saphelp_47x200/helpdata/en/d1/803293454211d189710000e8322d00/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802edf454211d189710000e8322d00/frameset.htm
    For the problem regarding length of the names, try to split the name and show it on two lines
    eg., wrk_name+0(20)   on the first line
    and  wrk_name+20(20) on the second line
    Regards,
    Anish Thomas

  • Sapscripts help

    hi guys, i have a requirement to modify the standard PO form medruck into my company specific layout which i am working on, there is also a requirement that the print/email option will be triggered based on some logic which is
    if a document is a purchase order as soon as the PO gets created, it should be transmitted to the vendor by email if the email id maintained in vendor master.
    if for the Release Order,
    1) If  EKKO-FRGZU = ‘X’ and Vendor Email id  is maintained in Vendor Master, convert the PO into pdf and send it to the email id
    2) If EKKO-FRGZU = ‘' do not send it to the email id
    The ME9F print option will be used if and only if the vendor does not have an email id and the PO needs to be sent by fax/post. The standard print program ME9F will be used to print PO’s. The selection criteria will remain same as in ME9F.
    so where do i apply this condition? i have not worked on sapscripts before, step by step procedure will be very much appreciated and rewarded with point
    thanks in advance.
    Message was edited by:
            abap beginner

    You can do all this changes in your driver program.
    Go thorugh this link it will guide you..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e">Sample</a>
    Regards,
    SaiRam

  • Urgent SAPScript help

    hi
    i need to know the steps of changing the form for purchase order.i have chnaged the name of from using spro but when i go to me23n and click on print preview there is no output.
    Kindly list down the places where i should make the chnages.
    Any material e-book related to sap script would be greatly appreciated.

    hi
    i need to know the steps of changing the form for purchase order.i have chnaged the name of from using spro but when i go to me23n and click on print preview there is no output.
    Kindly list down the places where i should make the chnages.
    Any material e-book related to sap script would be greatly appreciated.

  • SAP Script copying

    1). what happens If I copy the SAP Script ( I want to keep it as back up , but want to know what happens ) in all languages . Is there any memory occupation problem ?
    2). I have to copy the Standard SAP script say F110_IN_AVIS into z_script. I dont want to copy into all languages . I want to copy it into English  language only .. how to do this ?
      After copying the script, I am not able to change the standard attributes of pages or paragraph formats or windows. How can I change the standard attributes of windows ?
    your help is appreciated. Thanks in advance.

    You can also use prog :<b>RSTXFCPY</b> , as you’re working on SAPscript for future reference , don’t forget the package = STXD . You can give it in SE38 and find all SAPscript helpful programs.
    Hope this’ll give you idea!!
    <b>Pl... award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • SAPscript Output Problem - Very Urgent - Please help

    Hi,
    I am having the following problem with SAPscript.
    In the Main Window, I have instructions to the printer in the ZPL2 language (For Zebra Printer).
    There are also several variables, which are highlighted in Gray and enclosed in the’&’.
    There are also several elements – all of them empty except for the one where this code is.
    Now, I received this program to modify in terms of code and the output.
    IF you have never done any work with Zebra Printing, the way it is done is that you create a label using the Zebra BarOne or Zebra Designer program, then output it to an ‘itf’ file, upload it into a standard text as .itf and copy the uploaded contents to the main window. When printing to a Zebra printer, the Zebra printer will read the instructions and will print the output.
    Here is the problem: The config for the output type is correct.
    When doing a printing test from SAPscript, I get the right output and the Zebra printer is able to print it.
    However, the real process for this task will go through MB02. There, if I create a spool request using the proper method (select output type and etc.), it will go the spool. However, if I print preview or output (doesn’t work with the Zebra printer, so I have to output to the Laser printer), it will output the following (none of the following includes any of the ZPL2 code/instructions. Instead, it seams to print the variables contents with the field name next to it – This isn’t whats it’s the Main window!!!)
    http://img244.imageshack.us/img244/6915/66052475zk2.jpg
    Please help. I have debugged but don’t know what to do and can’t find anything wrong.
    This is very urgent. Any help will be useful.
    Thanks,
    John

    Ok, maybe I have confused others in regards to the issue as well.
    We expect this label to be output from a Zebra Printer.
    When output through Sapscripts printing test, the preview from the spool shows the ZPL2 code in small font (non readible if a created a screenshot) and if sent to the Zebra Printer, it prints the label correctly.
    When output through MB02, the preview from the spool shows the code that I have attached to the 1st post in this thread. If I try to output to the Zebra Printer, nothing happens because the ZPL2 instructions are not even in the preview and therefore, the Zebra printer recieves no instructions. I should not have mentioned the laser printer, because it has nothing to do with this issue.
    I hope that this makes the issue a little more clear and understandable. Please help.
    Here is the ZPL2 coding before uploading to standard text (only difference is that once uploaded,  the '/' characters are removed.) However, I believe that the problem may lie in the print program and how it compiles but I debugged and haven't really seen where it comes from:
    /:NEW-PAGE
    / ^XA
    / DFNEW-RE-1FS
    / ^PRC
    / LH0,0FS
    / ^LL1830
    / ^MD0
    / ^MNY
    / LH0,0FS
    / FO244,854A0N,55,46CI13FRFB154,1,0,LFN999^FS
    / FO819,698A0N,55,46CI13FRFN998FS
    / FO245,477A0N,55,46CI13FRFB755,1,0,RFN997^FS
    / FO389,926A0N,55,46CI13FRFB654,1,0,RFN996^FS
    / BY3,3.0FO42,1072B3N,N,152,N,YFRFN995FS
    / FO276,1258A0N,55,46CI13FRFN995FS
    / FO484,774A0N,55,46CI13FRFN994FS
    / FO817,774A0N,55,46CI13FRFN993FS
    / FO611,556A0N,55,46CI13FRFN992FS
    / FO245,556A0N,55,46CI13FRFN991FS
    / FO397,117A0N,55,46CI13FRFN990FS
    / FO245,405A0N,55,46CI13FRFB880,1,0,RFN989^FS
    / FO244,698A0N,55,46CI13FRFN988FS
    / FO629,998A0N,55,46CI13FRFN987FS
    / FO244,623A0N,52,42CI13FRFN986FS
    / FO397,261A0N,55,46CI13FRFB404,1,0,RFN985^FS
    / FO819,854A0N,55,46CI13FRFN984FS
    / FO725,554A0N,55,46CI13FRFN983FS
    / FO397,189A0N,55,42CI13FRFB695,1,0,RFN982^FS
    / FO397,333A0N,55,42CI13FRFN981FS
    / FO638,333A0N,55,42CI13FRFN980FS
    / FO391,21A0N,63,63CI13FRFB433,1,0,CFN979^FS
    / FO36,698A0N,55,46CI13FR
    / FDWBS:FS
    / FO37,405A0N,55,46CI13FR
    / FDMATL:FS
    / FO37,478A0N,62,44CI13FR
    / FDDESC:FS
    / FO554,698A0N,55,46CI13FR
    / FDSUPPLIER:FS
    / FO32,625A0N,55,46CI13FR
    / FDTEXT:FS
    / FO35,1258A0N,55,46CI13FR
    / FDBATCH NO:FS
    / FO770,775A0N,63,51CI13FR
    / FD/FS
    / FO32,854A0N,55,46CI13FR
    / FDESHM:FS
    / FO37,556A0N,55,46CI13FR
    / FDQTY:FS
    / FO32,998A0N,55,46CI13FR
    / FDSAP MATERIAL DOC NO:FS
    / FO525,333A0N,55,46CI13FR
    / FDofFS
    / FO556,854A0N,55,46CI13FR
    / FDINSPECT:FS
    / FO32,926A0N,55,46CI13FR
    / FDUNLOADING:FS
    / FO37,117A0N,55,46CI13FR
    / FDSTOCK TYPE:FS
    / FO32,774A0N,55,46CI13FR
    / FDPURCHASE ORDER:FS
    / FO37,188A0N,55,46CI13FR
    / FDDELIVER TO:FS
    / FO37,260A0N,55,46CI13FR
    / FDSTORAGE LOC:FS
    / FO37,332A0N,55,46CI13FR
    / FDCONTAINERS:FS
    / FO1,1359GB1217,0,6^FS
    / FO594,1359GB0,474,6^FS
    / ^XZ
    /:NEW-PAGE
    / ^XA
    / ^XFNEW-RE-1.ZPL
    / FN999FD&ATWRT_HAZAMAT(6)&^FS
    / FN998FD&EKKO-LIFNR&^FS
    / FN997FD&MABDR-MAKTX&^FS
    / FN996FD&MSEG-ABLAD&^FS
    / FN995FD&MSEG-CHARG&^FS
    / FN994FD&MSEG-EBELN&^FS
    / FN993FD&MSEG-EBELP&^FS
    / FN992FD&MSEG-ERFME&^FS
    / FN991FD&MSEG-ERFMG&^FS
    / FN990FD&MSEG-INSMK(1)&^FS
    / FN989FD&MSEG-MATNR&^FS
    / FN988FD&MSEG-MAT_PSPNR&^FS
    / FN987FD&MSEG-MBLNR&^FS
    / FN986FD&MSEG-SGTXT(40)&^FS
    / FN985FD&MSEG-UMLGO&^FS
    / FN984FD&QALS-PRUEFLOS&^FS
    / FN983FD&V_BACKORDER&^FS
    / FN982FD&V_NAME3&^FS
    / FN981FD&WS_CNTR&^FS
    / FN980FD&WS_CON&^FS
    / FN979FD&WS_HEADER& &^FS
    / ^PQ1,0,1,N
    / ^XZ
    / ^FX End of job

  • Need help regarding Sapscripts

    Hi!
    I would like to ask if there's anyone here who knows where I can find exercises or technical designs for practice regarding Sapscripts?  It would be better if the Sapscript exercise or technical design would be "start from scratch" so as to ensure learning on my part. I'm currently assigned to focus on Sapscripts and I'm still quite new to this.  Any help would be very much appreciated. Thanks!

    Go through this <a href="http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp">tutorial</a> .
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • PLEASE HELP WITH SAPSCRIPTS!

    Hello everyone!
    I really need a lot of help 'cause i'm completly new on programming sapscript, so I don't know where and how to edit a sapscript, for example in program that extracts information before it is send to the script, how am I supposed to do that, and where to edit the sapscript, for example the especified fields that receive the information, if any one could help me, I really aprecciate it!
    Thaks for your time

    Hi Guillermo,
    In print program, there is a function 'OPEN_FORM', here you can find the name of your Sapscript form. Put a breakpoint there and see. Alternatively, if it doesn't help, look in the table TNAPR for the name of Form for your print program.
    Once you know exactly the name of your Sapscript form, go to your sapscript form using TXN SE71.
    Try to use Graphical form painter (its easy), for doing this: goto setting (in top menu) -> Form Painter -> check the Graphical form Painter.
    You will get a graphical window for 'LAYOUT'. When you right click on any window in this graphical layout, choose edit text. Now, change the editor from GOTO -> Change editor. Here, you will get a very comfortable looking editor.
    Now, look for symbols '/E' in the left hand side boxes, corresponding to them are the 'ELEMENTS'. This is what you need to identify first. Now, see which information is getting printed under which element. You can find same element in your print program in Functions 'WRITE_FORM'. So, you can find which portion of print program is printing in which element. Now you can definitely plan for making changes.
    Moreover, like ABAP, debugger is here too for your help, For activating the debugger, just goto SE71, write your form name and without going further, just go to UTILITIES -> Activate Debugger. Now, run your print program and see the fun of debugger on script form. It will help you understand each and every thing, what changes are desirable in print program and what in form.
    To assign a changed form name to print program or vice versa, i.e. in simple words, to redefine the mapping of print program - form name so that your desirable print program prints your required form, please check the link below (i got reward points for it ):
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://Re: Print Program
    Also, if you are apprehensive about making changes, its a good idea to copy your Sapscripts to local files, later if something goes undesirable while making changes, you can re-import your saved script. Also, this goes well for taking back-up of script form. Txn for doing it: RSTXSCRP. Please check the link below for more information(i got reward points for this too ):
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://Re: How to upload backup file of SAP script?
    Cheers
    Ashish Jain

  • Hi    sapscript pl help

    hi all
    my code is given below::
    data:
        zlv_netpr type netpr,
        zlv_netwr type netwr, 
        zlv_diff     type netpr,
      Loop at TABLE in_tab.
        case in_tab-name.
           when 'ITAB-NETPR'.
              MOVE in_tab-value TO zlv_netpr.   "  HERE I AM GETTING ERROR.'
    *( in_tab-value is an amount field in sapscript.)
           when 'ITAB-NETWR'.
              MOVE in_tab-value TO zlv_netwr.
        endcase.
      endloop.
    zlv_diff = zlv_netpr - zlv_netwr.
      READ TABLE out_tab with key name = 'ITAB-DIFF' .
      out_tab-value = zlv_diff.
      MODIFY out_tab INDEX sy-tabix.
    the above code is in the calling program of PERFORM.
    I AM GETTING ERROR and error is 'in_tab-value'  cannot be interprete as number.
    i am passing amout field from SAPSCRIP FORM to calling program i.e. 'PERFORM AND FORM'  INSIDE FORM. 
    I HAVE TO CALCULATE IN SIDE 'FORM' OF CALLING PROG, BUT IT IS GIVING ERROR- CANNOT CONSIDER AS NUMBER.
    IF I CHANGE THE DATA TYPE OF PASSING FIELDS TO CHAR THEN I AM NOT ABLE TO DO CALCULATION .
    PL CORRECT THE ABOVE CODE SO THAT I CAN DO CALCULATIONS.
    PL HELP AS THIS HAS BEEN PENDING FOR LONG.
    THANX
    ROCKY

    Hi rocky..
    try this out...
    data:
    zlv_netpr type c,
    zlv_netwr type c,
    zlv_diff type c.
    Loop at  in_tab.
    case in_tab-name.
    when 'ITAB-NETPR'.
    MOVE in_tab-value TO zlv_netpr. " HERE I AM GETTING ERROR.'
    *( in_tab-value is an amount field in sapscript.)
    when 'ITAB-NETWR'.
    MOVE in_tab-value TO zlv_netwr.
    endcase.
    endloop.
    the fields of in_tab and out_tab are always character types...
    try to move into  zlv_netpr of type c of sufficient length.
    let me know if it helps u..
    sai ramesh

  • 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

  • A sapscript problem!,pls give me help.

    hi,everyone.
    when I maintain a sapscript form, I changed a main window ,then when the program executed ,error:element MAIN window MAIN is not defined for form zsds022. 
    and I don't know how to changed to the previous correct one .
    if angone know this ,pls tell me about the details step to do it .
    how can I solve this problem? I know little about sap script form .
    pls help me ,I will appreciate .

    Ok, I understood your problem, you are getting confused with MAIN window and MAiN element as both having the same name
    Let me tell you stepwise..
    1) goto SE71, give your form name, Change
    2) Click on windows you will see a window by name MAIN.
    3) now double click on MAIN window and press F9(before doing this goto menu Settings--> form Painter and see GRAPHICAL PC EDITOR  unchecked.)
    4) now once you press F9 you will see two text boxes in right hand text box see any text MAIN exists or not, if exist on the left handside it  should be like this /E
    i.e it should look like this... save activate it will work
    /E  MAIN
    If you don't find MAIN in Righthand side... add MAIN on FIRST LINE by creating new line like
    /E MAIN
    Regards,
    Sairam

  • Need help in SAPSCRIPT for layout F140_DOCU_EXC_01

    Hi,
    We are using following print program RFKORD50 and made a copy of standard layout 'F140_DOCU_EXC_01'
    We wish to show multiple items in main window. And we have put BSEG-BUZEI, BSEG-ZUONR, SGTXT and DMBTR  fields in main window and document no in another INFO window at top.
    However multiple items are not being displayed.
    Need some idea on how to solve this.
    Thanks,
    Shreyas
    Helpful answers will be rewarded.

    Hi,
    write the Perform in the main window ...in the form and endform write your logic .. the field values which you want in the Program you can get by this Performs .. so in the changing field contains the values you want in the Script .. so if you write this perform in the main window you will get the values cause this main window will be there in the loop ..
    if you want a field in the header or in some other window .. write the same i mean write in another perfoem in that window .. so that will appear in te layout
    to write the logic :  
    in the script:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (‘First page’, ‘Next page’, ‘Last page’) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Thanks
    Sudheer

  • Help migrating Picklist (SAPScript) to SmartForm

    Hi, I took the smartform class but it is worthless when it comes to real-world forms.  I was hoping that somebody could point to towards a SmartForm that I could use as a guide when converting a picklist (for shipping).  Our form currently has a lot of logic in the SAPScript and it just boggles my mind.
    I have read the SAP provided 'tutorial' on migrating forms but that doesn't help me one bit (I figured that part out on my own).
    Regards,
    Davis

    Hi,
    For Picklist:
    -  /SMB40/RVADEK01 (Print Program)
    -  /SMB40/SDPIK_L (SmartForm)
    -  /SMB40/SDPIK_A (SmartForm)
    See the note 595812: it explain how to download the preconfigured smartforms.
    Anyway this is an extract of that note:
    Detailed information can be accessed at the site:
    http://service.sap.com/preconfiguredforms OR
    http://service.sap.com/smb/development/preconfiguredforms.
    To download preconfigured smartform package, please:
    1. Go to http://service.sap.com/installations , select tab "download".
    2. On the right hand side screen, locate navigation tree node
    SAP Software Distribution Center->Download->Installations and Upgrades->
    Entry by Application Group.
    3. In the main window (right hand side), follow the path
    SAP Best Practices->Best Practices for mySAP All-in-One-> PRECONFIGURED
    SMART FORMS, you can find available preconfigured smartform versions.
    Regards,
    Ferry Lianto

  • How to convert PO sapscript layout to pdf - need VERY URGENT Help

    Dear All,
    Requirement: PO sapscript layout after some modifications (say, ZMEDRUCK) has to be converted to pdf. Through me9f user will be able to give ranges of PO numbers and can view the print preview for the po. After that on clicking the print button we get the printout of the pos one after another based on the user input of PO numbers.
    Our requirement is that when the user will click on the "Print Preview" of po (rather than pressing the print button) it i.e. PO sapscript layout has to get converted to pdf.
    If you have already encountered this scenario, could you please send me the source code regarding this at the earliest. If you want to email it to my personal id, please let me know so that I can give it to you. Thank you.
    It will be very beneficial for mine if you can send me some source code in this regard. (FYI. We want only “Print output” of PO sapscript. So, Print Program /SMB40/FM06P [after copying it to our ZSMB40/FM06P program] need to be modified for downloading the PO into PDF where there is no FMs like OPEN_FORM, WRITE_FORM, CLOSE_FORM. So already available source code in SAP forums can not help me.)). Kindly help me at the earliest. It’s VERY URGENT…
    Thank you.
    Thanks & Regards
    Sudipta

    Hi Chaith,
    Could you please provide me the source code regarding this at the earliest.
    We want only “Print output” of PO sapscript. So we need to modify only the Print Program SAPFM06P after copying it to ZSAPFM06P for downloading of modified PO (ZMEDRUCK) sapscript layout into PDF.
    I am already having some source code from sdn portral. I am attaching it herewith. But it's not working as some constants and variable values need to be given. We want to take download of PO into PDF from ME9F transaction itself.
    Could you please provide necessary values in the missing constants and variables and kindly resend the corrected modified Source code to me so that I can run the same code to  download the modified PO ZMEDRUCK into PDF . Need YOUR URGENT HELP...
    DATA: l_druvo LIKE t166k-druvo,
            l_nast  LIKE nast,
            aux_nast LIKE nast,
            l_from_memory,
            l_doc   TYPE meein_purchase_doc_print,
            ent_screen TYPE c,
            ent_retco TYPE i,
            toa_dara TYPE toa_dara,
            arc_params LIKE arc_params,
            aux_form LIKE tnapr-fonam.
      DATA: otf LIKE itcoo OCCURS 0 WITH HEADER LINE,
            lt_docs      TYPE TABLE OF docs,
            pdf_bytecount TYPE i,
            nom_archivo TYPE string.
      aux_form = 'ZMEDRUCK'.
      l_from_memory = c_true.
      SELECT *
        FROM nast
        INTO aux_nast
        UP TO 1 ROWS
        WHERE kappl = c_po     " Purchase Order
        AND   objky = t_datos-ebeln
        AND   aktiv = space
        ORDER BY erdat DESCENDING eruhr DESCENDING.
      ENDSELECT.
      aux_nast-sort1 = c_swp.
      CLEAR ent_screen.
      CLEAR ent_retco.
      IF aux_nast-aende EQ space.
        l_druvo = c_1.
      ELSE.
        l_druvo = c_2.
      ENDIF.
    l_druvo = '2'.
      CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
        EXPORTING
          ix_nast        = aux_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 'ECP_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       = aux_form                            
        IMPORTING
          ex_retco       = ent_retco.
      CLEAR otf.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        EXPORTING
          memory_key   = l_nast-objky  " PO Number
        TABLES
          otf          = otf
        EXCEPTIONS
          memory_empty = 1
          OTHERS       = 2.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
        IMPORTING
          bin_filesize           = pdf_bytecount
        TABLES
          otf                    = otf
          doctab_archive         = lt_docs
          lines                  = pdfout
        EXCEPTIONS
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 2
          OTHERS                 = 3.
      CONCATENATE c_dest t_datos-ebeln c_ext INTO nom_archivo.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize = pdf_bytecount
          filename     = nom_archivo
          filetype     = c_bin
        IMPORTING
          filelength   = pdf_bytecount
        TABLES
          data_tab     = pdfout.

Maybe you are looking for

  • Family Sharing and family calendar ???

    I've read that the Family Sharing feature in iOS 8 offers a family calendar.  Looking for some guidance on how it works pls. We have four family members in our household, and each person has their own separate iCloud ID: [email protected], [email pro

  • Width of the bars in a XYBarChart

    Hello, I have a XYBarChart but it has severals values, and the bars are superposed because they are a little wide. I want to know if there is some method to modify the width of the bars. The code I have is: public JFreeChart BarsChart(String vInDep,

  • Custom Tag with script in attribute.

    Hi,           I use a custom tag in which an attribute is generated dynamicly.But it           doesn't work.           Here is the sample:           <tlt:MyTag MyAttr="<%= "abc"%>" />           the result is MyTag doesn't work correctly but output <t

  • Can java provide a follow/depend/attatch compiling warning?

    I wrote a class called Query.It connect to database and return ResultSet.So user must manually call my method close() to close the ResultSet and Connection, otherwise resource will be avaliable. But user maybe forget call the close() method.If codes

  • Problems with audacity, audacious (ffmpeg libavformat.so)

    Hi all, I have this problem with audacious: it can't play mpc files (and maybe other formats) since it has an error with arch's current ffmpeg setup (everything is up-to-date here). The error message it spits out is "ffaudio: Unsupported audio format