Code in SMARTFORM
What is the most efficient way to develop a SMARTFORM?
to write the code in the smartform or the print program?
please help me. I need to know this immediately.
Thanks,
Archana.
Archana,
The best way is to wite the code outside the smarform. If you have the code in the smartform then its useful to the specific SF only.
If yu want to reuse the same code (subroutine) then if the Subroutine is out the SF and in a separate program then you can use where ever the same out put is required.
For Example. : For address you can write the code in a program and call the subroutine from any SF where ever you have to print the address.
Regards....
Similar Messages
-
Generate bar codes in smartforms
Hi,
I wonder to know how can I add bar codes to a smartform. Bar codes should be generated in a automatic sequence and its number should be printed too.
Thanks a lot,
Nuno MoreiraHi Gregor,
Let me try to explain better.
1. I'm using the bar code in smartforms and I'm able to generate the bar code graphic. But I want to print the bar code graphic and the bar code number, so what I was asking is if there is some way to associate automatically the number with bar code graphic, instead of write the number again with a regular font format, because like this is very difficult to format properlly the graphic with the associated number.
2. What I want to do is, print daily several letters identified with a bar code, so it'll be nice if the system could generate a automatic sequence of number to convert in bar code graphics.
I hope you could understand my doubts.
Thanks again,
Nuno Moreira -
Subroutine code in smartforms?
How to write subroutine code in smartforms?
Hi,
Smarforms
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
SmartForms : some links
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
http://www.sap-img.com/smartforms/smart-001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sap-img.com/smartforms/smart-002.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
http://www.allsaplinks.com/smartform_example.html
http://www.sap-basis-abap.com/sapsf001.htm
Smart Form PDF Link
http://help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://sap.ionelburlacu.ro/sap0/sapsf001.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smart-001.htm
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
Debugging of a subroutine pool.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Kindly Award Points If You Find The Reply Helpful.
Cheers,
Chaitanya. -
Hi all,
How to write the ZPL II code in Smartforms? If anybody have idea about this help me.
Thanks in advance,
SudhaThis can be done with command nodes.
For example to rotate field by 90 degrees clockwise enter:
Attribute name: S_LZPL_SETUP
Attribute value: '^FWR'
You can find details in document "Bar Code Label Design and Printing from mySAP Business Suit via SAP® Smart Forms" which can be downloaded from
www.zebra.com/sap -
Performance wise Code In smartform
Hello,
I have one doubt for performance issue in smartform.
While creating 'Z' smartform data fetching can be done by two ways,
Which one is better out of two mentioned -
1. Code in smartform itself.
2. Code in driver program and pass that data to smartform via form interface.
In SAP standard smartforms it is always done in Smartform itself.
Also please suggest which one is easy to debug?
Regards
Vishal
Edited by: Vishal Chavan on Jun 11, 2009 7:55 AMHi Vishal,
As far as i am concerned it is always better to separate the data selection from the data used in the smartform.
Having your code in a driver program has better advantage over the code in smartform.
1.It is easy to change and maintain the code.
2.You can use the driver program for different smartforms with minimal changes.
Performance and debugging doesn't differ much either you code it smartform or in the driver program.
For more information please go through the below link.
Link: [http://help.sap.com/saphelp_nw70/helpdata/EN/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm]
Regards,
Babul. -
Sample code for smartform required
Hi all,
I need a sample code in smartform for the following said ,
I have a header(customer code address and basic info ion it) and
detail table contains (bill details).
I have to display this data in the smartform . In anew page for each customer. The format for the first page header info and the second page info is not the same.
My header and detail table contains data of all the customer together. I need to give page break based on the customer code.
Points will be given if helpful.
Regards
Priya.sample program
Hi
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif. -
To print bar code in smartforms.
Hi,
I want to print bar code in smartforms. how to do that one.
Thanks ,
sanjuktaHi,
There's another way of doing it. Here we go... You can generate an ITF file for your data from any third party softwares.
Once you have the ITF file, this is what you have got to do.
<b>Uploading label file to SAPscript</b>
1. Use the standard text editor (Transaction SO10) to upload the print file to SAPscript.
2. Create a new standard text with any name. In the text editor load the created print file
(.ITF file) with the function "Text->Upload" and select "ASCII" as a format. Store the ITF
print file as a standard text.
3. Include the standard text in your SAPScript.
4. <b>Set up Device Type </b>Generally, a special device type (a variant of the device type ASCIIPRI) must be used for the correct printout of the layout set on a label printer. SAP supplies these device types on the ftp server sapservX and delivers them in the standard SAP system. The device type ASCIIPRI can normally be used for the basic test of procedure with other label printers.
5. <b>Define your output Device</b> As the last step, an output device (printer) must be set up in the R/3 with Transaction SPAD. The special device type or ASCIIPRI is assigned to this output device (printer). The application program must now use this output device to print the labels. The label printer connects itself to the R/3 via one of the standard available connection types in SAP R/3 (local print on the application server/removed print via lpd server/removed print via Windows PC and SAPlpd/frontend print). Your thermal printer must be connected to one of the available output channels for print output.
6. What is the Barcode Symbology you are using? Upload method doesn't support EAN.UCC 128. But still there is workaround.
Feel free to revert back.
--Ragu -
BAR CODES in smartforms - conversion problems to PDF
Hello,
I have a problem. Have a look at the following points and see what I have done:
1. I generated several different system bar codes using SM73
2. I added those system bar codes to a smartformstyle
3. and built a smartform using smartformstyle of system-bar codes.
4. then I made some examples of bar codes in the smartform as text.
5. next I sent this smartform via email as an pdf attachment using smartform mail functionality.
6. shocking - all bar codes in the pdf-file are not readable. You can see that there is a barcode placed, but all barcodes looks like the same.
Has somebody got a idea on what is going on here?
I already had a look at OSS Notes 430887 and 645158.
Greetings
danielHi,
Please can you have a look at Sap OSS Note 197177.
Regards,
Sudheer. -
hi.........
I am developing a smartform........using Zprogram.My zprogram coding is as follows...............here from my Zprogram I am exporting the structures wa_proj and wa_prps........when I am executing my Zprogram the values are being populated into the smartform............but when I am trying to execute my smartform no values are being populated into wa_proj and wa_prps.........I had defined in Form Interface in smartform also.....................What might be the problem....
Can anyone help me out........
Thanks in advance
tables:gmgr,proj,prps.
PARAMETERS: p_gnbr like gmgr-grant_nbr.
data:
l_wbs_element like gmgr-wbs_element,
wa_prps like prps,
wa_proj like proj.
data fm_name type RS38L_FNAM.
*Read WBS element
SELECT single wbs_element into l_wbs_element
FROM gmgr
WHERE grant_nbr = p_gnbr.
if sy-subrc = 0.
SELECT single * into wa_prps
FROM prps
WHERE pspnr = l_wbs_element.
if sy-subrc = 0.
SELECT single * into wa_proj
FROM proj
WHERE pspnr = wa_prps-psphi.
endif.
endif.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = 'ZSAMPLE'
variant = ' '
direct_call = ' '
importing fm_name = FM_NAME
exceptions no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
WA_PRPS = wa_prps
WA_PROJ = wa_proj
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.Hi,
put a break point in the smartforms
i mean before displaying the vlaues
write program lines
and write some code
in order to see the values are coming in to
WA_PRPS
WA_PROJ or not
regards,
Venkatesh -
hi guys,
attach is the zebra code we use in SAPScript. For smartform i don't see the /E under the text editor. May i know do we need the /E label in smartform? thanks
/E LABEL
^FX
~DGR:ROHS.GRF,2222,22,jG0IFCI07LFCT07HFJ03HFJ07JFI07MFT03HFJ03HFJ0KF8H07
MF8S03HFJ03HFI03KFEH07MFES03HFJ03HFI07LFH07NFS
03HFJ03HFI0MF807NF8R03HFJ03HFI0MF807NFCR03HFJ03HFH01MFE07NFCR03HFJ03HFH0
7NFER03HFJ03HFH07HFC01IF07NFER03HFJ03HFH07HF801IF07FEI01IFR03HFJ03HFH07F
HFJ03HFH07FEI03HF87FEJ07HFR03HFJ03HFH0HFCI01HF87FEJ07HF8I03HFEJ03HFJ03HF
7FEJ03HF8H01JFCI03HFJ03HFH0HFCJ0HFC7FEJ03HF8H03KFI03HFJ03HFH0HFCJ0HFC7FE
J03HFH0HFEM07FEJ03HFH01LFEH03HFJ03HFH07HFM07FEJ07HFH03LFEH03HFJ03HFH07HF
OFH07JF8J07FEI01HFEH0IFC1IFH03OFH07KF8I07FEI03HFEH0IFH07HF803OFH03KFEI07
01MFH07NFI0HFCH01HFC03OFI0MF807NFH01HFCI0HFC03OFI0MFE07MFEH01HF8I0HFC03O
03OFJ0MF87NFH03HFJ07FE03HFJ03HFJ01LFC7NF803HFJ07FE03HFJ03HFL0KFC7NFC03HF
FC7FEI0IFC03HFJ07FE03HFJ03HFM01IFE7FEI03HFE03HFJ07FE03HFJ03HFN03HFE7FEJ0
FJ03HFO0HFE7FEJ0HFE03HFJ07FE03HFJ03HF01H08J07FE7FEJ0HFE03HFJ07FE03HFJ03H
EJ07FE03HF8I0HFC03HFJ03HF01HFCJ07FE7FEJ07FE01HF8I0HFC03HFJ03HF01HFCJ07FE
FC03HFJ03HFH0HFEJ0HFE7FEJ07FEH0HFCH03HFC03HFJ03HFH0HFEJ0HFC7FEJ07FEH0HFE
07HF803HFJ03HFH07HFCH07HFC7FEJ07FEH07HFC1IFH03HFJ03HFH07IF01IFC7FEJ07FEH
NF87FEJ07FEH03LFEH03HFJ03HFH03NF07FEJ07FEH01LFEH03HFJ03HFH01NF07FEJ07FEI
FC07hHFE7gJFC7E3TFE7gJFC7E3TFE7gJFC7E3RF8FE7gJFC7E3RF8FE7gJFC7TF8FE7gJFC
FEH03FE3H0FH0HF3803FC7E3FCH03FC6H0FC01E7CH01FCI0FE4H04H07F2H01FC7E3F8H01
FC7E3F8FE1FC1FC3F8FE78HF8F0HFC7E1FE1FE3F0HF8FC7E3F1HF8FC3FE3F8FE70HF8F0H
7E3FE1FE1F1HFC7C7E3JF8FC3HF1F8FE61IFE1HFE3E3FE3FE1F1HFC7C7E3JF0FC3HF1F8F
IFE3HFE3E3FE3FE1F3HFC7C7E3FCI0FC7HF1F8FE61IFE3HFE3E3FE3FE1F3HFC7C7E3F01F
7HF1F8FE61IFE1HFE3E3FE3FE1F1HFC7C7E3E3HF8FC7HF1F8FE61HF8F1HFC7E3FE3FE1F1
87C7E3E3HF0FC7HF1F8FE70HF8F0HFC7E3FE3FE1F0HF8FC7E3E3FE0FC7HF1F8FE787E1FC
E3FE1FI01FC7E3EI083C7HF1F81E7EH07FEH03FE3FE3FE1F1H07FC7E3F80383C7HF1FC1E
1gHFE7YF1gHFE7YF1gHFE7YF1gHFE7YF1gHFEhJ07YF1gHFE7hHFE7hHFE7hHFE7hHFE
^XA
^PRC
LH0,0FS
^LL610
^MD0
^MMT
^MNY
LH0,0FS
FO32,20A0N,45,45CI13FRFDPART #: &W_MSEG-MATNR&FS
BY2,3.0FO36,66BCN,56,N,Y,NFRFD>:&W_MSEG-MATNR&FS
IF &V_RAUBE& = 'X'
FO709,74A0N,45,45CI13FRFDMSD: &MARA-RAUBE&FS
ENDIF
FO32,137A0N,36,36CI13FRFD&W_MSEG-MAKTX&FS
FO32,183A0N,36,36CI13FRFDMPN: &W_MSEG-IDNLF&FS
BY2,3.0FO36,222BCN,56,N,Y,NFRFD>:&W_MSEG-IDNLF&FS
FO32,293A0N,36,36CI13FRFDBATCH NO: &W_MSEG-CHARG&FS
BY2,3.0FO36,330BCN,56,N,Y,NFRFD>:&W_MSEG-CHARG&FS
FO400,240A0N,36,36CI13FRFDUser:&W_MSEG-USNAM&FS
BY2,3.0FO401,330BCN,56,N,Y,NFRFD>:&W_MSEG-USNAME&FS
FO673,293A0N,36,36CI13FRFDD/CODE: &P_DCODE&FS
BY2,3.0FO674,330BCN,56,N,Y,NFRFD>:&P_DCODE&FS
FO200,517A0N,36,36CI13FR^FDCOO: &P_CCODE& ^FS
BY2,3.0FO36,500BCN,56,N,Y,NFRFD>:&P_CCODE&FS
FO500,460A0N,36,36CI13FRFDQTY: &BAR_LFIMG&FS
BY2,3.0FO500,500BCN,56,N,Y,NFRFD>:&BAR_LFIMG&FS
FO32,399A0N,36,36CI13FRFDSAP Doc: &V_MBLNR&FS
BY2,3.0FO36,432BCN,56,N,Y,NFRFD>:&V_MBLNR&FS
FO30,566ABN,25,15CI0FR^FDDate RECEIVED: &BAR_DATE& ^FS
IF &V_NORMT& = 'X'
FO713,455FRXGRoHs,1,1FS
ENDIF
FO0,282GB931,0,2^FS
FO0,126GB931,0,2^FS
FO0,172GB931,0,2^FS
FO0,390GB931,0,2^FS
FO0,558GB931,0,2^FS
^XZ
^FX End of job
^FX END OF FORMATHi,
We do not need /E option in smartform since we can make use of program lines and write the code as we write it in se38. here we do not have any elements nor we make use of them as we do it in scripts..we used to make use in scriots since we need to code for a window separtly and call by means of /E but know we need not need it rather create progam lines in window where u want to wite the code and use it . It works similar to the /e...try this.
Regards,
Sana.
Reward if helpful.... -
Hi experts
can u plz explain me how to bring bar code in to smartform like invoice credit notes
step by step procedure
regards
SiriHai Sireesha
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Details information about SAP Barcodes
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
Not to fear though, there are two ways to get around this:
- You can have your IT department do some research -
most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
- Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes.
- Thirdly, you can buy a third party software like Barcode.dll and install on your frontend PC connected to the laser printer.
Now you have a barcode printed - what next?
Well there are two options, depending on your business requirements:
- You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
- Another solution is to use SAPConsole transactions
or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor.
These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
Barcode Standard
To Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Thanks & regards
Sreenivasulu P -
Transaction Code for Smartforms...
Hi All,
i have created smartform and now i want to create Transaction code for that..how can i do that, i knew tcode 93 for creating transaction code..but after creating transaction code while executing it is giving error...
Pls help..
Regards,
yunusHi,
first u create the driver program.
then call the smart from from that driver program. driver program is simply an exceutable report program.
from that use the FM - > SSF_FUCTION_MODULE_NAME
give the t-code for this report program.
eg: code
DATA: FM_NAME TYPE RS38L_FNAM.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
<b>FM_NAME = FM_NAME</b>
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
*at first give the 'Environment' menu-->'Function Module *Name' in the below code and call 'PATTERN'.
*then Remove that number with FM_NAME
call function <b>FM_NAME</b>
* EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
rgds
Anver
pls mark all hlpful answers -
Can I print Bar Code Text autoamatically under the bar code in smartform.
Hi All,
Currently I am printing the Bar Code for MARA-EANNR value .My requirement is to print the MARA-EANNR value under the bar code .Currently I am hardcoding and it is working fine.I want to know is there any possible way I can print the value of MARA-EANNR under the bar code with out hard coding.
Thnaks,
Suresh.Hi,
B1 - BARCODE CHARACTER FORMAT
A1- DEFAULT CHARACTER FORMAT.
In smart form define a template with two rows,
in first row u pass barcode value( mat no ) with barcode character fomat.
<B1>&MATNO&</>
in second row define barcode value(mat no ) in ordinary charcter format.
<A1>&MATNO&</>
Rgds
Siva
Edited by: siva prasad on Sep 1, 2009 1:53 PM -
Hi All
How can i print barcodes in my smartform ? do we have any functional modules to generate a barcode for a particular value ( for ex: PO NUmber )
thanks in AdvanceHi,
check the links
barcode printing in smartforms
Re: About printing barcode in SAP system using SmartForm
Regards,
anirban -
How to write code in smartforms
Hello Abapers,
I am new to smartform.I dont know where to declare internal tables,Data fetchings(selection queries) for headers and line items from database. what to declare in <b>form interface</b> and in <b>global definitions</b>.
Please Give your valuable sugeestions to me.
Regards
Maruthihi maruthi,
u can declare all ur work areas and internal table in global data section of global definitions.....
in types section of global definitions u can declare all ur user-defined structures....
in initialization section of global definitions u can give all ur select queries..
mentioning all ur importing and exporting parameters...
in form painter u can create the layout as designed by ...
that is u can place windows on ur form painter and customize the window height, length manually by dragging the window corners...
u can create window, graphic, address or text for ur window created....
u can also create a table for ur window...by mentioning the header fields , main area fields and footer section for ur table look like to be displayed in the layout of ur smartform...
ur smartform can be executed using driver program or just by using a function module
in form interface u can declare if u r using any parameters
as
parameter name - pr_vebeln
type assignment - type
assoiciated type - vbak-vbeln
Maybe you are looking for
-
How do you connect ipad to Samsung 6000 smart tv
How do you connect ipad to Samsung 6000 smart tv
-
hi i have an issue in the report, the problem is in the selection screen i have an WBS ELEMENT as an select option(there is no belnr in selection scrren) for eg- if i enter COMP CODE = 0010 WBS ELEMNT = 23456 YEAR = 2008. For the above details there
-
I cant get rid of the icloud sign in box on my ipad which asks for my Apple ID password. I am reluctant to put in the password because I recently had a fraudulent interference with my password. The box keeps popping up even when I press the cancel
-
CS4 Installation won't accept CS3 Extended SN as my previously owned PS program
I am trying to load my CS4. Program asks for my CS3 SN. I have CS3 Extended. CS4 Installation dropdown menu has no CS3 Extended and won't accept my CS3 Extended SN.
-
I am having problems adding plug ins from Elements 11 to 12.
When I go to preferences in 12, I check the box additional plugins. I go out and find the folder and add it and click on OK, I close down Elements and then come back and my plug in is there. Now I want to add another plug in and when I follow same