How to maintain QR Code & BAR Code in SAP Script and Smart Form ?
I want to place QR code (Quick Response Code) and Bar Code In my invoice . I searched from many resources but i couldn't get any appropriate answer . So , Please help me to solve this problem.
Hello,
SAP Note 1557674 - "Overview of bar code printing from SAP" shows the 5 possibilities how barcodes can be printed from SAPScripts and SmartForms.
In your case the following possiblities can help:
DIMM/SIMM module: in this solution you need to additionally purchase and install a DIMM/SIMM module to your printer. Then you can send the command sequence from the SAPScript/SmartForm to this module, and the barcode will be printed. (The command sequence should be described in the manual book of the module.)
barcode.dll file: in this solution you need to additionally purchase and install a barcode.dll file, which will handle the barcodes. Please note: this solution only works with SAPWIN Device Types (and therefore only on Windows OS). The command sequence should be also described in the manual.
New bar code technology: in this case R/3 creates the barcode itself, and the barcode will be forwarded as a simple image to the printer. Unfortunately QR code can not be created with this solution - according to SAP Note 1557674 the following barcodes can be created:
Code39, Code93, Interleaved 2of5, Code128, PDF417.
(There are 2 further solutions in the mentioned Note, but the "bar code font" solution can not be used for 2D barcodes like QR code, and the "PDF-based form" solution means that SAPScript and SmartForm can not be used).
Alternatively, here is a document which explains how QR codes can be displayed in SmartForms with alternative solutions:
How to create a QR code and show it in a Smartform
Regards,
Laszlo
Similar Messages
-
How to use msword as editor in sap script and smart form..
how to use msword as text editor in sap scripts and smartforms..
Hi
Go through the link given below :
Saptechnical. com
tutorials
smartforms
you will find solution for how to use MS word as editior.
Or
Call transaction I18N
go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.
With Regard
Nikunj shah -
How to print " Duplicate " in FORM ( either Sap Script or Smart Forms )
hi,
How to print " Duplicate " in FORM ( either Sap Script or Smart Forms ) if trying to take second Print Out and the FORM is already Printed.
Please let me know the condition that we should go for.If possible let me know the SAMPLE code since this will be used in most of the FORMS.
Regards
AviHi
It depends on which print you're working.
If it's a print of standard document you can check the NAST (VSTAT field) table in order to know if the document was printed.
If a message is created you can find the hit in NAST table:
VSTAT = 0, document not printed;
VSTAT = 1, documment printed
VSTAT = 2, print is failed
If you mean a custom print I believe you need to create a log like NAST table.
Max -
HOW TO DISPLAY ALTERNATIVE PAGE NO IN SCRIPT AND SMART FORM
HI, I HAVE TEN PAGES IN SCRIPT AND FORM, I HAVE TO DISPLAY PAGE-NO IN FIRST PAGE AND 2 PAGE NO NEED TO DISPLAY AGAIN 3RD PAGE HAVE TO DISPLAY. HOW TO DO THIS
hi......
In Smart forms u have use "ALTERNATIVE" option for printing alternative page numbers.
In Sapscript use coding to solve this problem,
if ( &page& mod 2 ) = 0
&page&
endif
Regards,
ARUN. -
How can scripts and smart forms send to mail and pdf?
HI i want to know how script and smartforms will send to mail and pdf formates>?
Dear Anees ,
Pleas pass on the parameter in itcpo - (getotf ) structure while calling OPEN_FORM as 'X' .
I have answered it in detail in your earlier post .
also giving below sample program for sending SAPSCRIPT as PDFattachment in email :
REPORT zsapscript_pdf_via_mail MESSAGE-ID zvele LINE-SIZE 68
NO STANDARD PAGE HEADING.
TABLES: itcpo.
Open your usual sapscript specifying that the output will be OTF
itcpo-tdgetotf = 'X'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
dialog = ''
form = '............'
language = sy-langu
options = itcpo
EXCEPTIONS
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
OTHERS = 6.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
window = '............'
element = '............'
EXCEPTIONS
window = 1
element = 2.
DATA: BEGIN OF t_otfdata OCCURS 0.
INCLUDE STRUCTURE itcoo.
DATA: END OF t_otfdata.
Closing the Sapscript, we save data (OTF) in a table
CALL FUNCTION 'CLOSE_FORM'
TABLES
otfdata = t_otfdata
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
OTHERS = 5.
DATA: len_in LIKE sood-objlen,
len_out LIKE sood-objlen.
DATA: BEGIN OF t_pdfdata OCCURS 0.
INCLUDE STRUCTURE solisti1.
DATA: END OF t_pdfdata.
DATA: BEGIN OF t_otfdata2 OCCURS 0.
INCLUDE STRUCTURE solisti1.
DATA: END OF t_otfdata2.
Move OTF data to another table with lenght 255
LOOP AT t_otfdata.
CONCATENATE t_otfdata-tdprintcom t_otfdata-tdprintpar INTO t_otfdata2.
APPEND t_otfdata2.
ENDLOOP.
Convert OTF format to PDF
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = 'OTF'
format_dst = 'PDF'
devtype = 'PRINTER'
FUNCPARA =
len_in = len_in
IMPORTING
len_out = len_out
TABLES
content_in = t_otfdata2
content_out = t_pdfdata
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
Download on local directory
*CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = len_out
FILENAME = 'c:\test.pdf'
FILETYPE = 'BIN'
TABLES
data_tab = t_pdfdata.
Mail settings
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINe.
DATA: doc_chng LIKE sodocchgi1.
DATA righe_attachment TYPE i.
DATA righe_testo TYPE i.
DATA z_email(80) TYPE c.
Receivers parameters
SELECT-OPTIONS: s_email FOR z_email LOWER CASE NO INTERVALS.
PARAMETERS rec_type LIKE reclist-rec_type
DEFAULT 'U'. " type of sending address
CLEAR: reclist, reclist[],
objhead, objhead[],
objtxt, objtxt[],
objbin, objbin[],
objpack, objpack[].
Attachment filling
LOOP AT t_pdfdata.
objbin-line = t_pdfdata.
APPEND objbin.
ENDLOOP.
DESCRIBE TABLE objbin LINES righe_attachment.
Text filling
objtxt = 'Testo della Mail - Riga 1'.APPEND objtxt.
objtxt = 'Testo della Mail - Riga 2'.APPEND objtxt.
objtxt = 'Testo della Mail - Riga n'.APPEND objtxt.
DESCRIBE TABLE objtxt LINES righe_testo.
Other filling
doc_chng-obj_name = 'URGENT'.
doc_chng-expiry_dat = sy-datum + 10.
doc_chng-obj_descr = 'Prova invio Mail con PDF'.
doc_chng-sensitivty = 'O'.
doc_chng-doc_size = righe_testo * 255.
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = righe_testo.
objpack-doc_type = 'RAW'.
APPEND objpack.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = righe_attachment.
objpack-doc_type = 'PDF'.
objpack-obj_name = 'TEST'.
objpack-obj_descr = 'File.pdf'.
objpack-doc_size = righe_attachment * 255.
APPEND objpack.
Receivers filling
LOOP AT s_email WHERE sign = 'I'
AND option = 'EQ'
AND NOT ( low IS initial ).
CLEAR reclist.
IF sy-tabix > 1.
reclist-copy = 'X'.
ENDIF.
reclist-receiver = s_email-low.
IF rec_type IS INITIAL.
reclist-rec_type = 'U'. " Internet e-mail
ELSE.
reclist-rec_type = rec_type.
ENDIF.
reclist-notif_del = 'X'. " request delivery notification
reclist-notif_ndel = 'X'. " request not delivered notification
APPEND reclist.
ENDLOOP.
Mail Send
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
OBJECT_PARA =
OBJECT_PARB =
receivers = reclist
CONTENTS_HEX =
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7 -
) how can we print the bar code in SAP_SCRIPTS?
) how can we print the bar code in SAP_SCRIPTS?
hi Pavan,
barcodes wil be generated in the printer itself, if you give <BC>&HD_GEN-MATERIAL_NUMBER&<> then you have a value for "Barcode" .
Adding Your Own Bar Code:-
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
barcodes in SAP
http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
Print Unique Indicator as a Barcode
The printing of unique indicators of elements (reference numbers of records, case indicators, or document numbers) as barcodes is controlled by SAPscript forms.
SAP delivers a common SAPscript form based on the SAP barcode type AUFNR for records, cases, documents and incoming post items.
To create another SAP barcode type, you can copy the SAPscript form RMPS_BARCODE and then adjust it to your own requirements. Then you have to define the new form using the following attribute names in the table SCMGPARAM:
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.
hope this helps you
Regards,
Jayant -
HOW CAN I OPEN IMAGES/BAR CODES?
HOW CAN I OPEN IMAGES/BAR CODES?
You need an app to read barcodes in Safari. One or more is available in the App Store.
-
I want to transfer pictures from my iphone 4 to a hardrive, but the problem is i dont know how. Can the genius bar help me with that, and can they possibly do this for me if i bring my iphone and hard drive with me there. Also if there is a cost, how much?
iOS: Importing personal photos and videos from iOS devices to your computer
-
How to print a Barcode VERTICALLY in a SAP Script ?
Dear Experts..
I have to print a Barcode <b>vertically</b> in a SAP Script.
Could you please help me regarding this.
Thanks in advance.Hey SR,
follow these steps :
Bar code in Smartform :
General definition of Bar code:
Bar codes are standardized characters of a symbol made up of a group of lines and spaces that can be recognized by an optical scanner. Bar codes uniquely identify article data, production numbers or transport units, for example. They can also contain additional information such as batch number, expiration date or weight.
Example
In the Logistics Execution System (LES), certain field entries can be represented by bar codes and printed on the transfer documents. This simplifies certain data entry processes such as order confirmation.
Type of bar code:
Bar codes are based on a binary principle and consist of a series of stripes/gaps of different widths. The sequence of the stripes or gaps results in an (alpha) numeric statement. Bar codes are read optically. Due to varying requirements, bar codes may differ with regard to the following aspects:
printer tolerance
decoding tolerance
character width
automatic check
number of characters
Steps to implement bar code in the smartform:
Use the transaction code smartstyle. Give a suitable name .Choose create.
In change mode of the Smart Style select the Character formats node and choose Create.
In the Character format field enter a two-character character key.
Select the desired attributes of the Bar Code on the tab Standard Settings.
Choose Activate.
Assign the character format to the field or character string in the smartform.
Activate the smartform.
Test the same.
Regards,
Kunal. -
In how many ways we can load hierarchies to SAP BW and which transfer mthd
Hi guru's,
In how many ways we can load hierarchies to SAP BW and which transfer method is best.
can anyone explain me with suitable example.
Thanks,
Madhu Raj.There are standard datasources available for hierarchies also. If the standard datasource does not satisfy your requirement you can always load a hierarchy using flat file. Refer to the below link for the same
http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/frameset.htm -
How do I locate someone who can write some scripts and plugins for Illustrator CC?
How do I locate someone who can write some scripts and plugins for Illustrator CC?
I just wanted to add a screen shot of the dialog showing the sound in question.
-
How to find the print program for a sap script
Hey Experts,
How to find the print program for a sap script (espicially when it is a custom script(Z*))?
Thanks a ton,Thanx Vijay,
Actually when I searched for the program in both the tables it didnt show up ther.
But when I did check in the texts of script, I found it.
Good job.
Thanks all.
Vijay, a small doubt.
But why didn't it show up in those 2 tables when all the print programs for standard scripts show up usually?
thnx once again.
Message was edited by: dev a -
How to Migrate SAP Scripts to Adobe form
Hi,
Can yo uplease tell me step by step how to convert/migrate SAP Script to Adobe forms.
Thanks,
Rajeev GuptaHi
Transforming SAP Scripts - > Smartform -> Adobe Forms is the right way.
refer this thread...
[Re: Convert SAP Scripts to Adobe PDF Forms|Re: Convert SAP Scripts to Adobe PDF Forms]
Regards
Raj
Edited by: Rajasekhar Dinavahi on Dec 9, 2008 5:25 AM -
How to find out existing Reports and sap scripts and smartforms ?
Dear Friends ,
How to find out existing Reports and sap scripts and smartforms ?
( e.g: how many existing reports and SAP scripts are available in MM or SD module , What is the procedure to find out ? )
Thanking you.
Regards,
Subash.scripts r stored in TNAPR TABLES
-
How to read card reader (bar code reader) in simple java program ?
hai all
how to manipulate (read/write) card readers (or bar code reader ) in
a java program ?
should i import any particular package library ?
pls give me any sample code or tutorials or tools, etc (whatever you have) .
i am new to this card reader category
its very urgent
thank you .Nearly all card readers and barcode readers I've ever seen simply stick their input right onto stdin, so you can capture it just as if it had been typed in on a keyboard
Maybe you are looking for
-
Choosing carrier as FI consultant at the age of 33?
My Name is Jayanth. I am commerce graduate and Have done MBA/MCOM from Sikkim Manipal university which is a distance learning course. I graduated in the year 2002. As a fresher I joined a Electronic distribution company as a Finance executive. There
-
How to install maps on Nokia 6303 classic
I recently formatted my memory card and now want to re-install the maps application. I've downloaded and installed Nokia Ovi Suite 2.0.2.42 but when I click into maps I get the message... "Cannot find maps or voice guidance files in your device. This
-
Get HTTPS with Windows log/pass
This is the page i want to acces via a cfm page (CF7) : quote: https://www.zft.adp.com/dock/ i tried quote: <cfhttp url="https://www.zft.adp.com/dock/" method="GET" port="443" username="igottheusername" password="andgotpass" resolveurl="Yes" /> and i
-
Limitations URL name new storage account
Hello, When trying to create a new storage account, if I use the word "online" in the name, I always get feedback that the storage account is already in use. So fdzskhqonlinesdf and dsfjklonlinejlkdsf and onlineSQDFJKL are all in use... Is this a li
-
Bonjour je aimerai avoir un Iphone 4s ou 5car je suis un ado Avec Un portable Qui Me gonfle merci l'équipe si vous pourriez éxaucez mon portable, plus cher des voeux je vous aime les gars merci! Je vous ferait de la pub sur twitter si vous pouvez m'a