Issue printing date in Smartform
Hi,
I have a selection screen which has a date field as select option.
I want to print the value of the date in my heading with values from & to.
Please advice the steps for the same.
Hi
In your smartform interface you need to create the elements like from date and to date
Display these fields using the text element
when you call the FM the system will call these fields and pass the same to it
Regards
Shiva
Similar Messages
-
How can i print data in smartforms from ABAP program.
Dear gurus:
in my abap program i process require data, and saved in a internal table.
how can l print the data in smartforms.?
who can give me a code sample is better:)
reward all helpful advise.Try this....
1) Tcode --> SmartForms
2) Form name --> Z_SF_TEST Create
3) Under Global settings
a) Form Interface
Table Tab
ITAB LIKE EKPO
b) GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
4) RT CLick on main Window
CREATE --> TABLE
Click Table painter
DEFAULT %LTYPE will be Created
a) If you want more like Header footer etc add by rt click on %LTYPE1
Table (Tab)
%LTYPE Radio(SELECT) 5 CM 5 CM 6 CM
CLICK on DATA (Tab)
INTERNAL TABLE ITAB LIKE ITAB
5)RT click on table control and create --> program lines
General attribute (Tab)
INPUT PARAMETER OUTPUT PARAMETER
itab WA_NETPR
Code Area
WA_NETWR = ITAB-NETPR.
6) RT CLcick on table ctl and create 3 text to display the fields
a) % text1 +button(insert field)
FIELD name &itab-ebeln&
Output options (tab)
Check New line LINETYPE %Ltype1
check new cell
b) % text2
& itab-ebelp&
output options
check new cell
c) % text2
& wa_netpr&
output options
check new cell
<b>Report ac
Tables ekpo.
Data: itab1 like ekpo occurs 0 with header line.
select * into table itab1 from ekpo.
Call function module --> smart form function module and pass your internal table</b>
Regards,
SaiRam -
Print Date issue in Dunning Correspondence
Hi,
I have an issue with Print Date in Dunning correspondence. The dunning proposal and activity run has happened. The correspondence printing will fetch the accounts from the database as per the print date.
1. I would like to know where and how the dunning activity data stored?
2. Where and How the Print date assigned for accounts which helps FPCOPARA to retrieve accounts on that particular date?
Please HELPHello Joe,
I still have the issue with this print date.
I have given only cores type and as u said the real print.
when i checked the corrhist for a particular CA, different times different future date has come.
For eg: date is issue: 12/01/2009 (mmddyyyy) printdate is 12/20/2009.
10/01/2009 10/15/2009
like this, many cust have this issue.
why this prind date for some CAs are different or future dates?
where the settings for this print date will be?
Because of this, on a particular day all the dunned CAs are not picking up for Correspondence printing. these excepted CAs will come on another future day printing.
please share some ideas to solve this issue
Regards,
Sunitha -
Printing data in Cell of Template in Smartform??
Hello,
Pls tell me how to print data in a particular Cell and Row of Template in smartform??
Pl reply urgently...
Regards,
RushikeshHi ,
You have to assign text node to that and cell,
and in that node , click on output options tab.
at the bottom you will find output structure options.
There you assign line and column number of that perticular node,
Regards,
guru
mark helpful answers -
Printing Problem in Smartforms
Hello Experts,
I am having the problem with printing the data in smartform.
My question is, suppose my preview is containing 6 pages.
But when i am giving the print command it is printing onlyone page.
I have already used command line in my form.
Thanks
Swati.This error is faced generlly when output type has not been assigned to the document type.In sales order Follow the path
Goto-Extras-Output-Header-Edit.
Here mention the output type and communication medium and save the document.
Now try to issue the output.
I assume that you have maintain the output determination procedure in SPRO.
this requires configuration.
Configure the copied program name for your output type & this entry must be there in table TNAPR. Only then you will be able to issue the output..
XXXX-----
when you are running the VF03 for seeing the print preview you have to do
Billing documents-->issue output to --> printer / screen
Now this is possible when the output type is already allotted for that .
For this check the navigation
Goto VF02 -> enter the invoice number , hit enter, from the Second screen
Goto>Header>output--> will land you to a table control screen.
Now here u need to give the output type and enter give the printer name in logical destination, and save.
Now do the Billing documents>issue output to->screen--> output type as 'ZXXX'
.and execute .
Reward points to all useful answers.
Regards,
SaiRam -
OTF Module: Failed to output print data
hi all,
while seeing output on the screen i am getting this error on the status bar:
"OTF Module: Failed to output print data"
any one can help me in this regard why this error is coming i am working on ECC.6Check this may give you some idea to solve your issue...
Rough idea
**Set printer parameters
control_param-no_dialog = 'X'.
control_param-preview = ''.
control_param-getotf = 'X'.
output_opt-tddest = 'LOCL'.
output_opt-tdimmed = ''.
output_opt-tdnewid = ''.
output_opt-tdnoprint = ''.
output_opt-tdnoprev = 'X'.
Get smartform name
call function 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = formname
variant = ' '
direct_call = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Call smartform
call function fm_name
EXPORTING
control_parameters = control_param
output_options = output_opt
user_settings = ' '
wa_head = wa_head
IMPORTING
job_output_info = job_info
TABLES
int_detail = int_detail
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
Note pass the job info file you got from above function module
data: int_docs type standard table of docs,
int_line type standard table of tline.
call function 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = filesize
TABLES
otf = job_info-otfdata
doctab_archive = int_docs
lines = int_line
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
others = 3.
USE below function module
all method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = filesize
filename = filename
filetype = 'BIN'
changing
data_tab = int_line
Regards,
SaiRam -
'unable to send print data' on HP Laserjet 1536dnf MFP
Hi there,
I'm running an iMac with OSX 10.6.8. Via an USB cable I have attached a HP Laserjet 1536dnf MFP to the iMac.
I also use this printer to print via wifi (i.e. through the iMac) with my MacBook Pro (with OSX 10.7.3).
Suddenly today the printer stopped working via my MacBook Pro. I get an error message: 'unable to send print data'.
I have checked my antivirus etc., but that does not appear to be the problem. I have also updated the firmware of the printer, without success.
Can somebody help me out? Is the OS difference the problem? But until today that hasn't been a problem.
Thank you very much! Regards, Luc.Hi jemenake
I understand you lost connection with the network for the Laserjet 1536 through ethernet connection.
Disconnect the routers power cable, wait 10 seconds, then reconnect the power cable. Wait till it's ready. The router might not be finding the printer on the network.
If this doesn't resolve the issue continue to the next steps.
Print a configuration report from the LaserJet 1536dnf.
Press the Setup button, (the one with the wrench on it)
reports, press OK, Config Report, press OK.
Check to see if the ip address is valid.
If you have a valid ip address then delete and add the printer on the mac, the driver might have become corrupted.
Delete printer on mac.
Click on the Apple, click System & Preferences,then click the Print & Scan icon (on some systems this may be displayed as Print & Fax),highlight your printer name and click the button on the bottom left corner of the screen.
Add printer on the mac.
Click on the Apple, click System & Preferences, and then click the Print & Scan icon (on some systems this may be displayed as Print & Fax),click add a printer, then select the printer from the list, make sure the printer listed beside use or print: shows proper printer name and not airprint, (airprint is a preinstalled apple driver with basic funtionality if on 10.8) add it in.
If the ip address is not valid please let me know.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP -
How to pass the internal table data to smartforms
Hi Gurus,
I have a problem in passing the internal table data to the smartforms. In the print program
I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = T_SSFCTRLOP
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = T_SSFCOMPOP
USER_SETTINGS = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
LT_PRDLBL = LT_PRDLBL1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
In the print program I had defined the internal tables like
Data: lt_prdlbl type standard table of zprdlbl.
Data: Begin of lt_prdlbl1 occurs 0.
include structure zprdlbl.
Data: End of lt_prdlbl1.
How do I define the internal table in the smartform to get the values printed in the smartform?.
<REMOVED BY MODERATOR>
Thanks,
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PMNehal,
Thanks for quick response.
In the smartform under the Form Interface->Tables tab
I had defined
LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
In the main window I have created LOOP, in which I have ticked the internal table and
LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
<_PRDLBL-XXXX&.
I am able to get the print but the data is not printing.
Please help me with this.
Thanks, -
Javascript to print print date and time on scanned documents
I'm using the following code to print a message, time/date stamp, and expiry date along the right hand side of printed documents. It works fine on word docs that were printed to pdf, but when a document it scanned, it mysteriously prints the the correct line of text, but also prints an additional, identical line perpendicular to the original line.
Any help would be most appreciated!
// Add field to each page of form
var inch = 72;
for (var p = 0; p < this.numPages ; p++) {
// create rectangle quads for field
var aRect = this.getPageBox( {nPage: p} );
aRect[0] = 540.0;
aRect[1] = 0.0;
aRect[2] = 576.0;
aRect[3] = 792;
var f = this.addField("PrintField" + p, "text", p, aRect)
f.delay = false;
f.print = true;
f.hidden = true;
f.delay = false;
f.rotation = 90;
f.textSize = 10;
f.textFont = font.HelvB;
f.textColor = color.red;
f.alignment = "center";
f.readonly = true;
f.value = "";
var myWillPrintScript =
'for (var p = 0; p < this.numPages ; p++) { ' +
'var f = this.getField("PrintField" + p); '
+ 'f.hidden = false; '
+ 'var d = new Date(); '
+ 'var expiryd = new Date(); '
+ 'var ThursdayArray = new Array(7); '
+ 'ThursdayArray[0] = 4; '
+ 'ThursdayArray[1] = 3; '
+ 'ThursdayArray[2] = 2; '
+ 'ThursdayArray[3] = 1; '
+ 'ThursdayArray[4] = 0; '
+ 'ThursdayArray[5] = 6; '
+ 'ThursdayArray[6] = 5; '
+ 'var currentday = 0;'
+ 'currentday = d.getDay(); '
+ 'expiryd.setDate(expiryd.getDate() + ThursdayArray[currentday]);'
+ 'f.value = "This is an unofficial copy of a controlled document. Print date/time: " + util.printd("dd mmm yyyy HH:MM ", d) + " Expires: "+ util.printd("dd mmm yyyy ", expiryd) + " 23:59 EST.";'
+ '}'
var myDidPrintScript =
'this.resetForm();'
+ 'this.dirty = false;'
// Now set the scripts to execute on the Will/Did Print events.
this.setAction("WillPrint", myWillPrintScript);
this.setAction("DidPrint", myDidPrintScript);Very unusual, Here are some more questions to help nail down the issue.
Are both date text lines in form fields? What are the form field names? i.e. is this an exact copy of the existing form field? What are the settings that differentiate the two fields, i.e. Rotation, etc.?
Could the script be somehow getting run twice?
On another note, why are you naming all of the fields differently. It looks like they all get the same info. If this is true then you could simplify the script by making them all the same name. You would not need the loop to apply the date text.
Thom Parker
The source for PDF Scripting Info
www.pdfScripting.com
The Acrobat JavaScript Reference, Use it Early and Often
http://www.adobe.com/devnet/acrobat/ -
Print date in PDF without opening Acrobat
I have a little issue that needs assistance.
Is it possible to get print date (e.g. todays date) automatically without opening the PDF in Acrobat. My plans are to use a hot folder / drop folder which directs the PDF to the printer. The form or script must be applicable anywhere on the layout. I'm working with quite heavy files for commercial printing, and nowadays spends lots of time just waiting for the file to load, add todays date into a form field, print and close the document. The time gained would be massive! I've tried some small scripts but none seems to work out for me.
Thanks in advance!Thanks for the input Geo. I think I've got it working now. I actually found a script on Adobeforum, so apologies for making a post. Regarding what you've written in your reply, it's actually possible to print a PDF without opening the application. I'm using a folder which is automatically scanned for files (must be PDF, PS or EPS). This is really good, I'm quite sure that you have the function in the new Distiller as well.
-
I posted a question about the ability to use IPhoto to print dates on pictures in July of 2008.
I received one reply that shareware called Acorn was available to do this.
I cannot find any such shareware and the suggestion that I make a book to get a date printed on a picture is not a solution, not even close.
I know that some people think that printing dates on pictures is ugly, but there are also many people like myself that happen to think the ability to put dates on pictures is really nice. Matter of fact, when I bought my Sony HI Def Camcorder last year, software for doing this was included for doing this on Windows. Now I dont like to go there and I am having a hard time trying to figure out why its so horrible for Apple to not include the ability to print dates on pictures in IPhoto. No one is making anyone print the dates, just give us the ability to do it if we want to. In looking at the forums, I see several who are also struggling with this problem with no solution in sight.
Can't someone please help out on this issue. Perhaps taking the windows software and making a Mac version. Thanks so mulch for your help. This is really a frustrating issue and will not go away.In order of price here are some suggestions - and links:
Seashore (free)
_[The Gimp|http://www.gimp.org/macintosh>_ also free
Graphic Coverter ($45 approx)
Acorn ($50 approx)
[Pixelmator|http://www.pixelmator.com> ($60 approx.)
Photoshop Elements ($75 approx)
There are many, many other options. Search on MacUpdate.
You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
Regards
TD -
To display execise number and date in smartform
Hi Abappers,
i want to display execise number and date in smartform and by using driver program also.
i have taken fields from vbrk,vbrp and send to final internal table,but now i want to display execise number in my Smartform also.
Thanking u,
sri.Create a window inside window create text element inside that insert field your excise number and date field names.
Go to form interface -> import parameters declare your internal table name type vbrp/vbrk.
In your print program smart form function module pass this table. -
F110 Status - Printing data and log have been deleted
Hi All,
We have an issue with F110 transaction. In the status a message is being displayed as 'Printing data and log have been deleted'. As I am new to Finance, I could not get what that message mean. Can you please explain what could be the reason for this message.
Thank you,Hi Guru's,
I have a similiar issue. Created a check run yesterday and went through all the steps...
- Parameters have been entered
- Payment proposal created
- Payment run has been carried out
- Posting orders 77, generated, 77 completed.
*- Printing Data and log have been deleted *
I can not remember what I click on and it cause this.
Please can someone help and tell me know how can I either re-run this check run I mean the physical checks or how can I go about this and delete this run and re-run from Scratch.
Best Regards,
Yassmen -
How to print data of selection screen
hi plz tell me how to print that data in smartforms which the user enters in the selection screen...........
Use FM RS_COVERPAGE_SELECTIONS
CALL FUNCTION 'RS_COVERPAGE_SELECTIONS'
EXPORTING
REPORT = L_REPORTIDENTIFICATION
VARIANT = SY-SLSET
NO_IMPORT = 'X' "07/04/98
TABLES
INFOTAB = T_INFOSELECT
EXCEPTIONS
ERROR_MESSAGE = 1
VARIANT_NOT_FOUND = 3
OTHERS = 2. -
Print PO using Smartforms?
Hi Gurus,
I'm new to smart forms.
Can smart forms used to print PO(using Transaction ME23N)?
As I know, the PO is print using SAP Script, can it be done using smartforms?
thanks in advance.
HikarunoHi
YES, PO can be printed using Smartform also.
see the related forms and program
PUCHASE ORDER
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
SF creation
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
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
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
Satellite Pro L300 - WLAN connection has stopped working
FN+8 indicates that the wireless is on as the icon shows but suddenly tonight the connection has failed while I was browsing the internet and I can't get it back. I have reset the modem - the laptop is currently connected by ethernet cable to the sam
-
Unable to select the filter value after query execution
hi, I am unable to drill down my keyfigures. 1.i have a lC and GC values out of which GC is hidden so after the query execution i would like to filter my value between GC and LC but i do get only LC value in the filter and i do not get GC value to se
-
Expose works on correct corner, on wrong monitor!
After recently upgrading to a Core 2 Duo Macbook Pro, I found that Expose works on the top right corner of my MacBook's monitor, not the larger CRT that I use as my main monitor when at home. I tried moving the main menu bar over to the Macbook and b
-
Customized table could not maintain in PRD
Hi all, I have created a table ZTABCUST with table maintenance as below. Delivery Class : C (Customizing table, maintenance only by cust., not SAP import) Data Browser/Table View Maint. : X Display/Maintenance Allowed Table Maintenance Dialog Author
-
Download trial in Cs6 extended for mac?
How can I find the link to download cs6 extended on mac - I cnat seem to find it anywhere and it keeps coming up wih the CC page!