Question on form printing in SAP scripts

Hi,
I would like to know whether it is possible to print color logos in forms using sap scripts or not ?
If possible, please provide the steps for uploading a color logo into the form using a sap script.
Is the color of the logo displayed only in the printout or can it seen in the print preview as well after uploading the logo?
If anybody has good material on sap scripts, pls mail the same to my email id - [email protected] .
Thanks & Regards,
Vijay

Hi,
First you have to import the logo into SAP through TCode SE78 (if it is a BMP file) and using program RSTXLDMC (if it is of TIFF file).
Go to SE78 -> Double click Graphics -> double click BMAP -> then go to Menu Graphic then select Import. Then give the name and description. Then choose whether it should be in colour or black and white. This completes the process of importing the logo into SAPscript.
Then you can use the name of this object in SCRIPTS .IN Sap script, YOu can include text object(if you have uploaded the image using rstxldmc) or include graphic if you have used se78 in text elements section of the Page windows.
SAPScripts
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
http://www.sappoint.com/abap/ssintro.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/lsetssap.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
Other Links
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
http://www.allsaplinks.com/dialog_programming.html
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://www.geocities.com/ZSAPcHAT
Regards,
Priyanka.

Similar Messages

  • How to print BARCODE in DATAMAX Printer using SAP Script?

    Hi,
    Can anybody guide me how to print BARCODE using DATAMAX Printer?
    I need to develop a SAP Script, through which i need to print the BARCODE.
    Pls. let me know the parameters for Script and how to print using print program.....
    Regards,
    Hemant

    make one form in sapscript with one main window: like this
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1911A1200400005&knmt-kdmat&
    /           1911A0800300005&knmt-postx&
    /           1911A0800100005VS-Nr   :         &KNMT-MATNR&
    /           1911A0800000005Datum   :         &date&
    /           Q0001
    /           E
    in this script   &mseg-matnr&    and    &mseg-charg&    are 2D Barcodes
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1Wc99000001400082000012012&mseg-matnr&
    /           ySPM
    /           1911A1000380055&mseg-matnr&
    /           1Wc99000001501702000012012&mseg-charg&
    /           1911A0800260055&mkpf-budat&
    /           1911A0800140055&mseg-mblnr&
    /           1911A0600020008&makt-maktx&
    /           Q0001
    /           E
    then you need your own printprogram and everything is fine. with open_form ;  start_form ; write_form;  end_form
    you can communicate direct with the Datamax Programming Language  from SAPScript to the Barcode printer.
    i also have the datamax programmers manual as pdf if you want i could send it to you. let me know by PM.
    also have look into HW 490295  the bartender Solution works fine for me to create the SO10 text's
    greetz
    tony
    Edited by: Tony Wienhold on Jul 17, 2009 4:37 PM

  • Box printing in SAP script

    i want to display box in Window in SAP script.. n  in that box i want to habe Amout Rs Printed... please help mi with the same

    Text Elements
    You can define text elements (window texts) for each window. On the Form: Request screen, choose Edit ® Text elements.
    The print program accesses text elements by name, formats them and prints them in the respective window. That is, the program can decide which text elements should be printed in a particular window. It calls these text elements by name to print them. You must therefore change text element names in the print program if you make any changes to text element names in a form.
    In the layout of a text element, you can use only the paragraph and character formats defined in the form.
    Example of a text element in an order confirmation:
    /E ITEM_LINE
    IL &VBDPA-POSNR&,,&VBDPA-MATNR&,,&VBDPA-ARKTX&
    / &'Customerarticlenumber 'VBDPA-IDNKD' '&&'Position
    / 'VBDPA-POSEX&
    This example shows a section of a main window of a form, with an item line of an order confirmation. The /E in the tag column is used to identify the text as a text element, ITEM_LINE is the name of the text element.
    Default Text Element
    At the start of a window, you can define a text element without the /E command in the paragraph format column. This text is always printed at the start of the window. It is not necessary to insert this text explicitly via a print program.
    For more go to this link: Character formats and attributes
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
    Boxes:
    Use the following code
    /: BOX XPOS 1 MM YPOS 2 MM WIDTH 20 MM HEIGHT 40 MM FRAME 10 TW.
    Box is the command used for printing box in script.
    XPOS - x- axis position
    ypos - y axis position
    http://help.sap.com/saphelp_470/helpdata/en/d1/802ec5454211d189710000e8322d00/content.htm
    Check...
    http://www.revver.com/video/650256/abap-text-elemens
    http://www.revver.com/video/605386/create-a-text-box-from-existing-text
    http://sap.ittoolbox.com/groups/technical-functional/sap-abap/sap-script-printing-1753129
    http://www.revver.com/video/650256/abap-text-elemens
    Reward points if it is useful..

  • Problem in address printing in sap script in Russian language

    hi all
    I am trying to get a PO output using a sap script. The problem is that the vendor address in not coming in the required Russian language. The language in PO is Russian and the logon langauge is also Russian.
    The script uses ADDRESS ENDADDRESS statement to print the address in form. This statement
    uses the function module ADDRESS_INTO_PRINTFORM to print the address. The address can be obtained in the required language from this function module but I want the address in Russian language uses the ADDRESS ENDADDRESS statement.
    Please let me know if any body has faced this kind of problem earlier.
    Thanks.

    Hi,
    pls check that u have provided the following parameters in ADDRESS ENDADDRESS.
    /:address
    /:COUNTRY recipient country [language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /:endaddress
    language codes can be know in table T002.
    Hopes this helps!!
    thanks

  • 4 Prints in SAP Script

    HI,
    I have a typical query in SAP Script.
    I am printing invoice and I want to have 4 printout sets of each invoice.
    While printing, I am stating the number of messages = 4 (NAST-ANZAL = 4)
    Here I am getting my invoice printed 4 times.
    But the requirement is.. The original should print as it is.
    The second should print as Duplicate as heading on invoice.
    similarly Triplicate and so on.
    Any idea?
    thanks in advance.
    pranu

    Hi pranu,
      May I know the current info of the layout? I assume that it is only a static text in your form. If so, then make it dynamic. Store the text in a variable. While looping, check the counter ( SY-index can be used). Depending on the value, pass to the variable the necessary text.
    DO NAST-ANZAL times.
    case sy-index.
    when 1.
       v_text = 'Original'
    when 2.
      v_text = 'Duplicate'
    when 3.
      v_text = 'XXX'
    when 4.
      v_text = 'XXX'
    when others.
    ENDDO.
    In the window where the text is displayed, if hardcoded, remove it and replace by &V_TEXT&.
    Reward points if useful.
    Regards,
    Dru

  • Vertical Printing in SAP Script,

    Dear Friends,
    I have one requirement in SAP Script.
    I need to print Fixed Text in SAPScript but Vertical .
    Could anybody help me on this issue.
    Regrads
    Vijay

    hI
    PCL5 commands are specific to HP printers. So you need to find out the exact printer control language for your Datamax printer becoz even if you follow exactly the same as the steps below, you may not be able to get your desired output, becoz your printer may not understand PCL5 commmands.
    Note: The steps illustrated below are what I did for the HP printer that I used. Caution: If you try to use it on other printers, be prepared for cases like infinite loop- the printer may keep on churning out pages of unreadable characters. Also,you won't be able to see the effect in Print Preview because print commands will only be effected during the actual printing.
    I have used the PCL5 commands from this document: http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf (refer to P79)
    1/ Go to T-code: SPAD > Full administration > Device Type tab > Display Print controls
    2/ Change to Edit mode > Click on Create icon > create a Print Control say ZR090, add the Comment > Check 'Use in SAPscript Drivers', 'Use by SAP' > Save it
    3/ Go to T-code: SPAD > Full administration > Device Type tab > Choose your Device Type: say HPLJ4 (it is recommended that you copy the Standard Device Type to a new Device Type ZHPLJ4 so that future upgrades will not affect your Device Type.) > Display. (Do select the Device Type of your printer, since I am using HP 4000 series, I chose HPLJ4)
    4/ Change to Edit Mode > Print Control tab > Click the Standard Print Controls button on the Application toolbar > Put cursor on the newly created Print Control name in Step 1 and hit the Choose icon on the Application toolbar. The name should appear right at the bottom of the Print Control list. For that Print Control name, select radiobutton for 'Direct', and 'Converted' and the control character sequence is: \e&a90P (if you need a 90 degrees rotation), \e&a0P (for 0 degree), \e&a180P (for 180 degrees), and \e&a270P (for 270 degrees) > Save it. (These are the PCL5 commands specific to HP prnters)
    5/ Note: You need to create another Print Control for a 0 degrees rotation to switch back to the normal printing orientation after printing your rotated text. So repeat Step 2 and Step 4 for a 0 degrees rotation
    6/ In your smartform, Create a Command before the Text you want to rotate (Right Click on the Node > Create > Flow Logic > Command > Under Generate Attributes tab > Output Options > Include Printer Control > click the Search Help and find the Print Control ZR090 which will rotate everything after this Command to 90 degrees.
    7/ After rotating the part of text, if you want to rotate it back to the normal printing direction, insert another Command as in Step 6, but choose the Print Control for the 0 degrees.
    8/ Print your smartform to see if that is your desired output.
    Note: from my trial-and-errors, exploration and testing, I feel in my opinion, it might not really be worth the while to work on this. Because it needs alot of trials-and-errors and print commands are very specific to the printers (so if client changes the printer, your smartform may be rendered useless unless it uses the same Printer Control Language). Further, I have another problem with this. Even if you manage to rotate the text successfully, the position of the text may not be want you want (becoz of what the command tries to do) . Then you have to take into account the position in the designing of the form.
    So here is what I suggest, if you really want to use Printer Controls, search the internet for equivalent Printer Control Language for your Datamax printer (Note that even if you find, the way to use may be different from the above Steps. For eg. for Zebra Printers, the way to rotate text is different as shown in OSS Note 750772).
    Alternatives:
    1/ Or you could create a bitmap picture with the rotated text, like wat many have suggested
    2/ Find a font type that is able to change the words into a vertical orientation (there are upside-down fonts for a 180 degrees rotation, so you might want to do a search for a font that meets your requirement) and then upload to SAP.
    3/ The last one which might be more viable is to use Adobe Interactive Forms. A colleague told me that one is able to change orientation of text in it (I have not tried it before) but you can do some exploration b4 commiting to using it. You don't have to output to PDF to use it. Normal printing is also possible. The T-Code for this is: SFP (type 'S*' for SAP examples, do an exploration on Layout tab, maybe it can provide a new alternative).

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

  • How to get a hard copy of a form designed in SAP SCRIPT

    I designed a form in SAPSCRIPT . I verifed the o/p in the Print preview method using the printer LP01. I would get a hard copy of the same, So Can someone help me with the following.
    1. How to configure a printer in SAP or Check the exisitng ones .
    2. How to direct the o/p of my  SAPSCRIPT to the printer .

    Hi,
    SPAD is the transaction to configure the printer, But BASIS People will do this.
    We just have to assign the Print Program & Form in the Output types.
    When you try to give the print, if you give LP01 it will takes the default Local Printer which you had set as the default printer in your PC.
    Regards,
    Satish

  • Sticker printing through sap script

    I m priting specific stickers through sap script.
    An A4 size page contains 8 stickers, 4 in one line.
    No of stickers to be printed are generated dinamically.
    I have put 8 windows on the page. Now i want that if lets say the no of stickers to be printed are 5, then the program should not print the rest 3 stickers.
    So give some solution of hiding or unhiding the rest of the windows.

    call them in the loop..
    give the window name in layout as window1, window2,...window8.
    tkhen.. suppose u wnat 5 windows..
    do 5 times.
    v_num = sy-index.
    condence v_num.
    concatenate 'window' v_num to  v_window.
    call the window.
    enddo.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • Long Text printing in SAP SCRIPT

    Hi Experts,
    I have a requirement of printing long text in sapscript.
    There are 15 condition types for each item in sales order and one long text for each condition record.
    Each long text has multiple lines i.e. for one long text it may have 2 lines and other may have 1 or 3 lines or etc.
    My trials :
    I used read_text() function mudule in a routine which is being called from the sap script to get the whole long text which has 5 lines and is stored in an internal table.
    Now is there a way to transfer the whole internal_table data as a whole into the script i.e. is there a way to transfer the table from the routine to the sapscript.
    Thanks in advance.
    kalikonda.

    Hi
    In addition of my include solution.
    you ofcourse can use a perform statement if you havea maximum of lines which is possible.
    like (if you have a maximum of 5 lines
    define &line_1& := ' '
    define &line_2& := ' '
    define &line_3& := ' '
    define &line_4& := ' '
    define &line_5& := ' '
    Perform getsomedate in program abcxyz
    using orderno
    using itemno
    changing &line_1&
    changing &line_2&
    changing &line_3&
    changing &line_4&
    changing &line_5&
    Endperform
    when printing the data
    /: if &line_1& NE ' '
    IL &line_1&
    /: endif
    /: if &line_2& NE ' '
    IL &line_2&
    /: endif
    /: if &line_3& NE ' '
    IL &line_3&
    /: endif
    /: if &line_4& NE ' '
    IL &line_4&
    /: endif
    /: if &line_5& NE ' '
    IL &line_5&
    /: endif
    Gr., Frank

  • Date printing in SAP SCRIPT

    hi friends,
    I am workin in sap script, here i had used  
    PERFORM GET_DATE IN PROGRAM ZTEST
    USING &EKPO-EBELN&
    USING &EKPO-EBELP&
    CHANGING &DEL_DATE&
    ENDPERFORM
    AND in subroutine program i had writen logic to fetch date,
    but when I am printing date in my script, it is printed in format yyyymmdd, and i wan it in dd.mm.yyyy
    so is there any standard way i can do it?

    hi,
    CONVERSION_EXIT_PDATE_OUTPUT , use this function module
    or
    Write the below code in your subroutine
    DATA : wa_date(8) ,
           wa_date1(10).
    wa_date = sy-datum.
    CONCATENATE wa_date+6(2) WA_DATE+4(2) wa_date+0(4) INTO wa_date1 SEPARATED by '.'.
    WRITE wa_date1.
    Thanks & Regards
    Edited by: Always Learner on Dec 11, 2008 10:01 AM

  • How to determine realdy printed for SAP script?

    Dear all:
            When the data real printed through the printer(SAP script), then I how to knew it's printed?
            Because I need to control data printed or not. Please help.
            Thanks a lot!!

    Hi,
    You can check the NAST table entry with the document number.
    If already printed then there will be an entry.
    Regards,
    Ram

  • Arial unicode ms font printing in sap scripts

    Hi all
    I am supposed to use arial unicode ms font in my sap scripts.
    I am aware of uploading the font file available in control panel through SE73.
    All I wanted to know is the exact RTF format to be given for Arial unicode MS while uploading.
    Please advise.
    Best regards
    Nivetha.

    Hi,
    The procedure to get the correct RTF text is described in the following SAP note:
    130658 - SAPscript: New fonts in the PC Editor
    Regards,
    Aidan

  • Restirct Printing the SAP Script output on condition basis

    Hello all,
    We are printing the form output through VF31 and when user selects a document, it is getting printed immediately as ITCPO-TDIMMED and ITCPO-TDDELETE are set.
    But we have to enhance the functionality in such a way that, when a particular condition is satisfied in the print program,  we have to generate a PDF file instead of printing it directly.
    How can this is be achieved?
    I have gone through SAP Note 181571 where in we need to set the device name to NULL.
    Is this the only solution or is there any other way to achieve this?
    Thanks in advance,
    Chandra.

    Hello
    Not aware of another option other than if you do not want to output text from Smart Forms und SAP Interactive
    Forms by Adobe or keep the print data, create the spool request without immediate output and execute report RSPO1041 daily.
    Regards.

  • Form print problem - sap v4.6c

    Hi friends:
       I changed form layout in dev system client777 and active it.
       And then transfer it to dev client888 with scc1.
       With se71, I see the form script is changed to the latest one.
       But the layout remained old layout when I print it out in client888.
       Anyone have suggestions?
       Thanks.

    hi
    with SCC1 make sure u have provided latest transport requesr u have used, and check whether u r missing some thing like Standard text etc if u have changed.
    Run the program RSTXFCPY.. in clint 888
    form name = '' u r form name
    source client = 777
    Target Form = 'same name.
    then press f8
    with

Maybe you are looking for

  • Error in Import Abap step for MI 7.1on AIX oracle

    hi guys, i am installing sap MI 7.1 on AIX on oracle.while installing i am getting the following error in the import abap step INFO: 2011-01-28 04:15:08 Data codepage 1100 is determined using TOC file '/oracle/MIP/oraarch/51033237/DATA_UNITS/EXPORT_1

  • Newbie - A question about RequestDispatcher

    I have a problem when using a RequestDispatcher, some help would be really appreciated :) I have an HTML page with some tags like: <A CLASS="x" HREF="http://localhost/servlet/testPackage.dbTestServlet?myOption=opt1">Products</A> That HTML page is loc

  • IMac Hangs at loading screen or loads into os but crashes alot

    I have had my iMac for 7 months now. This is the 1st problem I have had. Sometimes it will hang on the loading screen with the apple logo and the spinning cursor. Sometime's it would load into the OS but once I start doing anything on it like using f

  • View file names under images?

    In iPhoto, the titles of all imported images were set to the file names and it was therefore possible to have the file names displayed under every image. In Photos, titles can be viewed by selecting View > Metadata > Titles, but all titles are empty

  • Single instance of an object

    Hi, If wereally want to have one and only one instance of the class we need to do two things. 1. Make the constructor(s) of that class private. 2. Now to create an instance of that class we need to have a public static method in that class. Also take