About smartforms print
I writed a report with smartforms, all setting default system,some computer print is OK, some computer print is not good,why?
Hi
The problem would be with the printer settings need to contact basis for the configurations.
Regards,
Sravanthi
Similar Messages
-
I want to know about smartforms
hi experts tell me
i want to know about smartforms
anybody have material pls send me
thanks in advanceSAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
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.
also refer
http://www.erpgenie.com/abap/smartforms_detail.htm
http://www.sap-basis-abap.com/abphy.htm
<b>http://sap.ionelburlacu.ro/sap0/sapsf001.htm
http://www.ionutz.ro/sap/sapabap01.htm[very imp links]</b>
http://www.sap-basis-abap.com/sapsf001.htm
regards,
srinivas
<b>*reward for useful answers*</b> -
Que about smartform::::
Good Noon to my all ABAP Gurus And Gurumaiyas....
Here once again i came here to give some silly questions ( may be for u...)
" Could anyone tell me basics about smartforms executions i mean how does it execute??? How can i use two pages in smartforms??? What is need of loop in smart form??? and why, when and how can i use it??? "
I know basics about smartforms and i have also implemeneted it.... but i m not much aware of it.....i would be thankful to u if u take out 15 mins from ur busy schedule....
Waiting for ur reply.....
Warm Regards,
Nirav ParekhHi,
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procidure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
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.
check this:
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
check this linkls------>
https://www.sdn.sap.com/irj/sdn/collaboration
http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
reward if useful
regards,
ANJI -
Smartform printing on Dot Matrix printer for continuous stationery
Hi Friends,
I'm throwing my smartform print output on printer using local printer .Now the problem is as i have designed the SF using A4 page size , the output on Dot matrix is my output (WHICH IS 1/3rd OF a PAGE) + rest of empty space which is actually wasting pages.
Settings in SPAD are as follows:
Output device : Lp01
Device type : SWIN
and page format : LINE_21
Format Type : LINE_21
What i want is a restricted output .please let me know the possible solutions and do i need to load the driver for my printer in SAP as well (Printer is : wipro WEP 800 DX)
Thanks and Regards,
Sachin SoniHi,
Change the page settings in the form
-> under the form attributes you can find the page format there you can set up your required format
Thanks,
Nethaji. -
Smartform print program for order confirmation
Hi experts.
I am looking for a smartform print program for order confirmation.
The order confirmation in standard is a script with the name RVADOR01 and I tried to copy and change but I don't know which to eliminate and whcih to keep it.
If any body written the program already please provide me or provide the link to check.
Thanks in advance
Saithis is the processing form.
form processing.
data: lf_fm_name type rs38l_fnam.
data: ls_control_param type ssfctrlop.
data: ls_composer_param type ssfcompop.
data: ls_recipient type swotobjid.
data: ls_sender type swotobjid.
data: lf_formname type tdsfname.
data: ls_addr_key like addr_key.
data: document_output_info type ssfcrespd,
job_output_info type ssfcrescl,
job_output_options type ssfcresop.
perform get_data.
check retcode = 0.
perform set_print_param using addr_key
changing ls_control_param
ls_composer_param
ls_recipient
ls_sender
retcode.
*Get the Smart Form name.
if not tnapr-sform is initial.
lf_formname = tnapr-sform.
else.
message e001(/smb40/ssfcomposer).
endif.
determine smartform function module for invoice
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = lf_formname
importing
fm_name = lf_fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
error handling
retcode = sy-subrc.
if sy-subrc = 1.
message e001(/smb40/ssfcomposer).
endif.
if sy-subrc = 2.
message e002(/smb40/ssfcomposer) with lf_formname.
endif.
perform protocol_update.
endif.
call function lf_fm_name
exporting
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
is_nast = nast
is_vbdka = vbdka
is_addres = addr_key
importing
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
tables
it_vbdpa = tvbdpa "Item information
it_vbdpau = tvbdpau "Subitem numbers
it_vedpa = tkomservp "Contract Item Validity
it_vedka = tkomservh "Contract Header Validity
it_vedpn = tkomservpn "Contract Item Cancellation Data
it_vedkn = tkomservhn "Contract Header Cancellation DA
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
retcode = sy-subrc.
perform protocol_update.
get SmartForm protocoll and store it in the NAST protocoll
perform add_smfrm_prot.
endif.
endform. "processing -
Ask a question about smartform
Hi expert,
I have a question about smartform . Now I am doing a task about Purchase Order,
when I create a new Purchase Order in Transaction ME21N , before I saved , I click the button to preview how it looks .
as everyone knows , during that time , there is no Purchase Order created . So in the header text - > Price types , I write something in
the text . I know the data , I can get it from table STXH , then use the function 'READ_TEXT' to check if there is data in it according to
TDNAME (in this case the tdname is purchase order ), but I didn't save it , so there is no purchase order , how can I get the data .
I only want to get the data in type 'EKKO' , not 'EKPO'.
kind regards
NickHi...
use this code..
data : variable type c.
first concatenate ekko-name ekpo-ebelp into one variable.
and take one text element and give the name is variable
ok...
follow this steps..
i think this is help full for u...
thxs & regards,
rahul -
Question about Ipod/Printer Rebate
for anyone who used the student/teacher rebates on the ipod and printer, or anyone who purchased a macbook for that matter, do you guys remember a sales receipt that came with your macbook? how about the printer?
i am preparing to mail in my rebates and i need to include all the copies of the sales receipt. i do have the sales receipt for both the ipod and the printer which it came inside the shipping package, but i do not recall seeing one when the macbook/printer came. can someone verify this?
thanks!Did you pay with a credit card? Do you remember giving them a email address?
Because when I bought my macbook, I got a hard copy, and provided them with an email address, & they emailed me a copy of the receipt for the macbook.
I would suggest checking your email to see if they did email you a copy.
Or you could just go back to the apple store, the original purchase was made in.
Mark this as helpful or solved plz -
Question about book printing size
Hello,
I am working on a book design. But I haven't decided on the book size yet. For now, there are two sizes that I may choose from. So I need to ask some one's opinion who has knowledge about offset printing.
One size is 295 x 250 mm Portrait size. This is a little bigger than the other.
The smaller size is 230 x 260 mm Landscape size.
We use ISO A-0 printing sheets.
The book will be about anywhere from 250 to 300 pages.
My main question is, will there be any price differences on these two sizes?
Some people say that anything a little bigger than A4 size is automatically calculated for A3 size, which is the double A4. These two sizes both are a little bigger than A4 and fits within A3 size.
If there is enough difference, I want to go for the smaller size. If I can set my mind on one size, it will save me a lot of work and confusion.
Thanks.I would think the size would be dependent on a few issues: genre, type of content, and the publisher to name a few. You could minimize costs going with the smaller size obviously, but I, for one, cannot make a recommendation without getting more specific on the details. Have you discussed the size with the publisher?
-
Smartform printing & sending multyple table data
Hi All..
I designed a smartform & print Pgm.( for Invoice not SAP standard)
How can i send multiple table(kna1,vbrk,vbrp,vbdk) data in to a smart form? & how can i declare that internal table in smart form & in print pgm?
And it is also not printing.even i set it in NACE.
Plz any one can help me asap..
Thanks & Regards
RajHi Raj,
You must have to create a new Structure and a new TABLE TYPE in program to send multiple data.
Lets say, you have created Main internal table in your print program to send multiple data to smartforms as below.
TYPES: BEGIN OF ty_cus,
F1,
F2,
F3,
F4,
END OF ty_cus.
so, instead defining above types in your program, just create a new structure(lets say Z_CUS) with the above fields in SE11.
Then create new TABLE TYPE (ZT_CUS) with that structure (Z_CUS).
Now, in your print program, create internal table with the type of Z_CUS as below.
DATA: it_cus TYPE TABLE TYPE z_cus,
wa_cus TYPE z_cus.
And in the Layout, Form interface - Tables section give it as below
IS_CUS TYPE ZT_CUS.
In your print program, assign your internal table to IS_CUS for generated function module.
CALL FUNCTION fm_module.
EXPORTING
IMPORTING
TABLES
IS_CUS = it_cus
EXCEPTIONS
Let me know if you hav any quesions -
Hello All,
I´m developing a smartform to print information in a label that has 6cm height.
My problem is that when I print the informaton the smartform prints information of the next label on the previous information. It seems that the smartform understands my label has 5cm of height.
How can I 'enlarge' the height of the window or table so smartform will print the correct information on the next label ?
Thanks in advance.
Best regards,
Marcelo PerineMatt,
The smartform receive information in Form interface -> Tables -> ZTB0014
Each register of this table is printing in one label. Then, my problem is that the smartform is printing two registers in one lable. It´s seens that the new-page function ins´t working.
Main window
-Loop
--Table
---Text1
---Text2
--Command
Main - Output options
Left margin 0,00 CH
Upper margin 0,00 LN
Width 82,00 CH
Height 15,00 LN
Loop
Internal table ZTB0014 INTO EST0014
Table
Table width 80,00 CH
Horizontal alignment Left 0,00 CM
Minimum Height 0,00
Line1 50,00 CH | 30,00 CH
Text1
(1) Recebedor das Mercadorias.
&EST0014-NAME1&
&EST0014-STRAS&
&EST0014-ORT01& - &EST0014-REGIO&
&EST0014-ORT02&
CEP &EST0014-PSTLZ&
(4) Transportadora
&EST0014-TRANS&
Text2
Volume
&EST0014-VOLUM&
Command
X Go to new page %PAGE1
Reset paragraph number P1
Message was edited by: Marcelo Perine
Message was edited by: Marcelo Perine
Message was edited by: Marcelo Perine -
Smartform Printing on both sides
Hi.
I am fasing an issue in smartform printing.
we are printing the Invoice.this invoice data is dynamically comming on the front side of the page.
and printing normally.
but back side of the page they want to print the comapany rules(on every page back side).(these rules are comming with in one page only).
so on the front side this invoice data and back side Comapany rules shouls come.(we don't know how many pages of invoice data will come).
Plesae help me to solve this issue.
Thanks in advance,
Regards,
EswarHI Eswar,
If you have only one page made in your smartform you can make one more page with just the main wiindow.This window will have all the rules of the company.Now make the first page point to this page and make this page point to the first page.
Select duplex printing in the page attributes and print.This will solve the issue.
Reward if useful.
Thanks,
Dishant -
Hi Experts,
I am modifying an existing smartform print program,
after modifications, when I am clicking on printpriview button after selecting the zee Output Type
in order to test the form, I am unable to see the preview,
Can anybody tell me what are the points to check?.
I already checked the parameters passed to control structures.
They are fine. Even i am not able to see the printpreview.
Kindly help.
The sf is for Delevary
and the transaction i am using isVL03N
Regards,
Noor.hi,
Put break points in your program and execute it or else check for address nodes read_text fm
There may be some error in smartforms or driver program,
just make the break point and trying to debugg that
We can consider many checks in this case.
1. Check whether the Local printer exists or not.
2. If you are using any Address NOdes, check whether the Address number is holding a value.
3. Also check whether a record exists with your condition type/Delivery in the NAST table.
4. You can see the default local printer in SU3.
Use SFTRACE tcode to trace the error. -
Can anybody plz give me Smartforms print prog for Invoice/PackList
Hello Smartforms Gurus
Can anybody plz give me Smartforms print prog for Invoice/Packing List. I need to develop the same from scratch. I know Smartform for simple Application but complex application i need to refer u all guys prog plz.
I would be greatful plz.
Thnx In AdvanceHi,
Could you please give me the link where you found these group of pre-configured smartforms available in sap labs?
I looked for... but i have not founded it.
Thanks in advance!.
Regards,
Albio.- -
SMARTFORMS printing is shifted to the right
We are having a problem with a SMARTFORMS for 1099 called IDWTCERT_US_1099MISC. We noticed that the print preview after testing the 1099 and the print preview from the SPOOL (trx SP01) shows the 1099 form OK, but printing it out cuts off the right side of the form/image by about 1.5 CM.
There are two things we've tried so far:
1) In SPAD, we have adjusted in the Output Attributes Tab of the DEVICE the area called Additional SAPScript and Smart Form Information. Here, the horizontal move can be entered as a -10 (in millimeters) for instance.
This didn't work for us, as it only shifted the truncated (bad) image to the left 1 CM, thus centering an incomplete image.
2) Before printing from the spool in SP01 we changed the printer from the device type to be LOCL. This worked OK, and the 1099s print nearly centered and not cut-off on the right, but we are not sure that it will work well when we print the 1099s in the production run. (i.e. if this is in an adjustment that they can even make...or if it will correct the problem in the same way on a different printer).
Could someone please help with more feedback on this issue to see if using LOCL is the best way to do this, or if there are other, more global, settings that I can make to correct this.
Last resort, I could download and shift the background image or something. Shifting the background image would be difficult, however, not to mention it would make all the SMARTFORM fields on the 1099 print in the wrong spot.
Thank you!!
JeremyAs you know, for 2010, you must apply 1535966 for the 2010 Smart Form 1099 reporting.
Note 1546868 just came up to fix the truncation on the right issue. We are about to apply this note and I will respond with our results shortly.
FYI - Here is the sympton from the note: "After Oss Note 1535966 was applied,the form print is truncated towards right."
-Ken -
Smartform - Printing differently on different printers
Hi Guru's,
I've a problem in printing the smartform to 2 different printers.
1. LOCL - we don't have any problems in printing to the Local Printer.
2.HP Printer (HIITPRT21) - when we print the document using this printer , Header is printing in one page and the Remaining contents (Main Window) is printing in different pages.
I don't think there is a problem with the smartform, because it should print the same way on LOCL as HP Printer Does.
Could you please let me know where the problem is and how to resolve it???
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743231
The above blog is talking about the problems, it is mentioning about the problems with the print controls..how to know which one is causing the problems??
Thanks,
Adi.Moderator message -
When closing old threads, there is no need to add a comment. Adding a pasted answer like "Resolved myself " only brings old threads to the top of the forum list and pushes current ones down. If you do add a comment, please indicate just how the problem was resolved.
Note to potential responders to this post - I just rejected about 40 of your posts today. I didn't see that you had assigned a single point to any of the helpful answers or even a "thank you".
Rob
Maybe you are looking for
-
[Interface] - Passing variety parameters/input to PL/SQL report
Hi, I've the PL/SQL report which can allow passing in the parameter, i use '&'. the report is given to the end user who do not have the IDE for PL/SQL. the machanism of the report is generated into the spool file and import into excel format. now i a
-
Can we have a ui:tableRowGroup with in ui:tableRowGroup...?
can we have a ui:tableRowGroup with in ui:tableRowGroup please help me by providing a code snippet
-
Breaking down my tracks to albums
Hi, hoping somebody can help on this one. On iTunes 11 I am having problems splitting my album tracks into albums. I have just put on my iPhone one large album, which then has 6 individual albums but for some reason they show up on my music player fo
-
[OS X] Flash won't startup when FontExplorer is running
Today I wanted to open up an existing Flash doc, I got the notice that some fonts weren't loaded. So I fired up FontExplorer, activated the fonts needed, quit Flash and restarted it to load the fonts, only to come to the conclusion that it wouldn't.
-
Move to previous or next magnified photo Press Left Arrow and Right Arrow keys does not work
Move to previous or next magnified photo Press Left Arrow and Right Arrow keys This command no longer works in iPhoto. The photo just bounces for a moment, then all the photos begin scrolling. I used to be able to just hit the key to scroll one at a