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

Similar Messages

  • Customer Statement using SAP Script and Standard print program RFKORD10

    Using sap script and standard print program RFKORD10 I need to create a customer statement where the main window will be as follows
    Invoice #     InvoiceDate  CustomerPO  Debit Amt  Credit Amt  Total
        6        7           8               9               10               11
        6        7           8               9               10               11
                                     Totals               12             13              14
    Where company code BKORM-KUKRS
                Invoice              BSID-BELNR
                Invoice date      BSID-BLDAT
                Customer PO    VBKD-BSTKD
    For each document number selected there will be one to many records in VBRP.  For each invoice item in VBRP:
    u2022     Select BSTKD from VBKD where
    o     VBELN = VBRP-VGBEL and
    o     POSNR = VBRP-VGPOS
    u2022     If no hits then select BSTKD from VBKD where
    o     VBELN = VBRP-VGBEL
    If there is more than one PO per invoice then list them in the Customer PO field without repeating the other fields.PO shouldnu2019t come more than once per invoice.
                 Debit Amt         if BSEG-SHKZG = S then WRBTR ELSE 0
                 Credit Amt        if BSEG-SHKZG = H then WRBTR ELSE 0
                 Total                  Debit Amt u2013 Credit Amt
                  Totals                Subtotals
    It will be of great help if some one can help me with the script and the alterations required in standard print program RFKORD10
    Points will b rewarded for sure.
    Thanks.

    Hi Suganya,
    The custom form is getting displayed properly. But the requirement is to have it as an editable PDF. So the functional team is working on configuring the settings of PDF forms with customers email address.
    But for right now, i customized the standard form F140_ACC_STAT_01 and standard print program RFKORD10_PDF and did the configuration. It is getting displayed (I tested only with the transaction FBL5N - customer open line items..)
    Please let me know any further details on this.
    Poornima

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

  • Need help with Signature on Checks using SAP SCRIPT

    Hi,
    I am looking for some help on how to get the Printer Resident Singature on to the Check using SAP Script. We have a HP Laser 8150 Priter in which the Chip Contains the Signature ( Printer Resident Singaure ) and currentlly the ORACLE application is able to print this signature on the checks. Right now we are in Migration to SAP and we are trying to get this Signature to print on the Check using SAP Script.
    Please help us.

    There are many ways to do this, the simplest way to print the signature is using HEX ENDHEX command.
    1. Print the Printer font list from the printer configuration menu, Find the signature in the font list, next to it there'll be esacape sequence in ASCII and Hex format.
    2. Add the following command in the window of the signature:
    /: HEX TYPE PCL
    /= Enter the Hex escape sequence(begins with 1B) from first step
    /: ENDHEX
    Regards
    Sridhar

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Display data vertically using sap script

    Hi Developers,
    Is there any way to display data vertically in a form using sap script?
    thanx in advance,
    binu

    Hi Binu,
    It is not possible to rotate text in SAPscript.  The usual work-around, provided this is static text and not from a variable, is to scan an image of the text and include it as a graphic.
    Regards,
    Nick

  • How to do changes in Layouts setting and SAP scripts to meet requirment?

    hi SD gurus,
    Please explain me how create and work with Z output .
    where and how we do changes in Layouts setting and SAP scripts to meet the user requirments.
    pls forward func spec of Z output
    points will be rewarded
    thanx & regards

    you need ABAP skills to do this.
    basically you need:
    1) draw the layout on a piece of paper
    2) define the fields you need and find out the corresponding SAP fields
    3) check the document with the customer
    4) give this specification to the developer
    5) the developer will give you a program name and form name: place them in the message for the document.
    Roberto

  • Step by step method of using sap script

    Can u pls provide me step by step method of using Sap Script
    Ankesh

    Find below the Links for Step By Step SAP Script
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    Hope this helps
    Vinodh Balakrishnan

  • How do we enable cutter option in the SAP Script for Zebra Label Printer

    Hi Gurus,
    We use Zebra Label(ZM400) printers to print the material documents(SAP Script). Could someone please tell me how do we enable the cutter option in the Zebra printer for the SAP Script?
    Your vaulable answers will be highly appreciated.
    Thanks in advance.
    Regards,
    Manoj.

    Hi Manoj,
         In Script you dont want to add any logic for Label Cutter, It should be in the Zebra printer settings if the printing is over it should cut the paper. If the print area is predefined for your material label then you can make use of standard label papers (Like 2"x4", 3"x4"....)
    Regards
    GK.

  • 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

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

  • 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

  • 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

  • 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

Maybe you are looking for

  • Mac Pro Locked Up and Now  One Video Card and Audio Not Working

    Last night, my Mac Pro totally locked up to the point I had to power it off to get it to do anything. When restarted, one of my video cards and my audio are no longer working. I have dual monitors so tried switching the connections to see if it was t

  • SQL Server Service Broker Updating Stored procedure

    how can you update the service broker stored procedure. when i update the stored procedure the changes dont come into affect. i have tried to alter the queue, waited for all jobs to finish, but some how still the old stored procedure is running. is t

  • Paste function semi-non-functional

    Dear Folks: I can use apple key-C to copy but apple-key-V to paste will not work in "fields" or "forms" in Safari. I get a beep tone instead. Edit/Paste from the menu works. It's the keyboard shortcut that is disabled. It seems to work fine in progra

  • Consumption data material master

    hi can any one tell how to upload consumption data in material master  using BAPI or any other method.. regards, deepthi

  • Casio AVI files

    I download Casio Z750 mpgs and avi video to Iphoto frequently. Up to now, I've been able to play both back in a slideshow and in an IMovie video. Now I can't. Although individually the Casio avi video files in Iphoto work well, but not in slideshow/I