Smartforms: Driver incompatibility problem
Dear SSF gurus
1) I have 1 Stock Transfer Note SSF showing the correct currency & Qty values in correct format(e.g 1,434,196.00 for amount & 1.000 for Qty)
but after printing the hardcopies contain the values
(e.g 1.434.196,00 for amount & 1,000 for Qty)
I m using latest HP Laser printer .
2)i want the QTy field value 1.000 (VBRP-FKIMG) to be displayed as 1 only , so i used &wa_item-qty(3.0)& but it throws error .
I solicit ur quick cooperations for this issue to be resolved . plz help me out .
Thnx
Moni
Dear SSF gurus
1) I have 1 Stock Transfer Note SSF showing the correct currency & Qty values in correct format(e.g 1,434,196.00 for amount & 1.000 for Qty)
but after printing the hardcopies contain the values
(e.g 1.434.196,00 for amount & 1,000 for Qty)
I m using latest HP Laser printer .
2)i want the QTy field value 1.000 (VBRP-FKIMG) to be displayed as 1 only , so i used &wa_item-qty(3.0)& but it throws error .
I solicit ur quick cooperations for this issue to be resolved . plz help me out .
Thnx
Moni
Similar Messages
-
i have a macbook pro from 2006, my internal cd drive is not working and i'm trying to install factory definitions from an external cd drive. the problem is that when i press c nothing happens only appears an interrogation folder. or sometimes appears the apple logo and than back again to the interrogation folder... Help please!!!!
mcbsousa wrote:
hm... Is there any chance of making the bootable usb file and send it by dropbox or something like that? than put it in a pen drive and connect to the mac??
Sending by Dropbox where, To who, to what computer? As your does not start up.
You need to take at least the OS disc to a work Mac computer and create DMG from the OS install disc then restore that DMG to USB thumb drive. Then you can boot the computer from that thumb drive and install the OS. That is if your hard drive is functioning correctly.
Then you can use the App disc in the external CD/DVD drive to load up all the included Applications that come with your version of OS X. -
RFKORD10 - FB12 - Customer Account Statement - SmartFORM Driver Program ?
Hi,
Does anybody has smartform driver program for this RFKORD10's SAPScript Driver program?
Or anybody done customized code? Please provide the code.
Thanks in Advance
VinaaHi Vinay,
Driver program is also a normal program,which is to b created in SE38 or SE80.
But,in the driver program,u need to use some functions such as OPEN_FORM,WRITE_FORM,CLOSE_FORM etc.....
We've one option called Pattern in the tool bar,click that & type OPEN_FORM in that,then automatically the function comes into ur code.That function will have one importing parameter related to the Layoutset or Form.U just mention the form name over there,then automatically that form will b opened.Then use WRITE_FORM if u want to do some manipulations on that.
Finally dont forget to close the form using CLOSE_FORM.
Here is a sample code for u.
This is the sample code.Here zpavscript1 is the form name.
Just neglect the other parameters which r commented out.
In Write _form,Address,Logo,Main etc are the Text element names which u've created in the form & where u want to place the particular code,just go through this.I hope will b useful for u..
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZPAVSCRIPT1 '
LANGUAGE = SY-LANGU
OPTIONS =
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJECT =
RAW_DATA_INTERFACE = '*'
SPONUMIV =
IMPORTING
LANGUAGE =
NEW_ARCHIVE_PARAMS =
RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
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 FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ADDRESS'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'ADDRESS'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
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 FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ADDRESS1'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'ADDRESS1'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
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 FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'LOGO'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'LOGO'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
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 FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'LOGO1'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'LOGO1'.
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
*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 FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'HEADER'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'MAIN'.
LOOP AT I_VBAP INTO WA_VBAP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT =
RDI_RESULT =
TABLES
OTFDATA =
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
kindly reward if found helpful.,
cheers,
Hema. -
Hi,
can u plz send me one realtime sample smartform driver program if possible invoice from and credit form
regards
Sirihi
good
THIS IS A SAMPLE DRIVER 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.
AND YOU CAN IMPLEMENT YOUR OWN SMARTFORM DRIVER PROGRAM USING THIS LOGIC
THANKS
MRUTYUN -
Why we use function module SSF_FUNCTION_MODULE_NAME in smartform driver program?
Forum Search
Use the form below to search the forum content. You can choose to search all content or restrict it to certain forums or dates. Also, you can filter the results by a username or user ID.
Search Forum Content
Search Terms: Search Tips
Category or Forum:
Date Range:
Results Per Page:
Welcome, Clemens Li Help
Your Control Panel Your Control Panel
Your Reward Points Your Reward Points
Your Questions Your Questions
Search Results » Messages: 271 - Search Terms: why we require form interface section in smartform? Sort by:
Pages: 19 1 2 3 4 5 6 7 8 9 10
1. Why we require FORM INTERFACE section in smartform?
Posted on: Sep 12, 2007 10:47 PM, by user: p d -- Relevance: 100% -- Show all results within this thread
Why we require FORM INTERFACE section in smartform?
2. What is the driver program & why we require driver program?
Posted on: Sep 12, 2007 10:48 PM, by user: p d -- Relevance: 17% -- Show all results within this thread
What is the driver program & why we require driver program?
3. Re: form interface in smartform
Posted on: Feb 21, 2006 11:51 AM, by user: Hasmath -- Relevance: 14% -- Show all results within this thread
hard-coded driver program in the tables section. for this u have to define the same structure in the form interface of the smartforms and can use the same structure for sending the data to the smartform ...
4. Smartform: Form Interface
Posted on: Aug 24, 2007 2:34 PM, by user: vivek pandey -- Relevance: 13% -- Show all results within this thread
Hi, If we want to use a workarea/internaltable in the form interface of Smartform of a user defined structure ...
5. Form Interface in Smartforms ?
Posted on: Oct 27, 2006 5:32 PM, by user: SAP BEE -- Relevance: 12% -- Show all results within this thread
ztest ) on the table and print the value : &gs_vbap-total&. I activate the form ...it is fine ...as well as program !! Now , when i do the print preview of the form , It gives an error : Reference ...
6. SmartForms form interface - tables
Posted on: May 18, 2005 2:44 PM, by user: Diliip Gupchup -- Relevance: 12% -- Show all results within this thread
Hi All, In smart forms how to declare our internal table in form interface? By using types in global itried but it is ...
7. Calling thru Form Interface of Smartforms
Posted on: May 4, 2007 3:03 AM, by user: Subhasish Ganguly -- Relevance: 11% -- Show all results within this thread
In a Smartforms, how can I call a internal table thru 'Form interface' which has been declared in the driver program? ...
8. Form Interface in SMARTFORMS
Posted on: Jun 1, 2006 10:56 AM, by user: Rams V -- Relevance: 11% -- Show all results within this thread
Hi There, Is it mandatory to create a custom structure in ABAP dictionary to use it in SMARTFORM interface? regards, Rams. ...
9. Line Types and Table types & Smartform form interface
Posted on: Sep 21, 2005 3:38 PM, by user: Aadarsh K -- Relevance: 10% -- Show all results within this thread
types ?? 2. In smartforms form interface, in the importing parameter, can tables be passed ?? [we use tables parameter generally, but even if passed in export parameter, no error is being given and ...
10. regarding complex section in smartforms
Posted on: Aug 25, 2007 7:49 AM, by user: ravi -- Relevance: 10% -- Show all results within this thread
learning smartforms on 5.0ecc and i got the documents which is showing the complex section but in 5.0 ecc we have no complex section cud u plz let me know where sud i add the contents of the complex section ...
11. why is it that some function module require an endselect
Posted on: Aug 8, 2007 3:40 PM, by user: mathias Mbizvo -- Relevance: 10% -- Show all results within this thread
why is it that some function module require an endselect and some can work without the endselect...
12. Complex section in smartforms
Posted on: Aug 11, 2007 7:29 PM, by user: narendra veduru -- Relevance: 9% -- Show all results within this thread
Hi I am practicing smartforms in 4.7. I have a tutorial based on 4.6c and they have complex section in the nodes. How do i ...
13. form interface using currency fields - smartforms urgent!!!!
Posted on: Aug 17, 2005 1:11 AM, by user: skmysore -- Relevance: 9% -- Show all results within this thread
called function module. what is the error here? How can i correct this to display data into the form? Please help me it is urgent!!! Thanks Santhosh ...
14. why do we activate a program
Posted on: Feb 28, 2007 5:50 AM, by user: Rose -- Relevance: 8% -- Show all results within this thread
hi, why do we activate a program or tables in sap.Though there is a option known as save why do we activate? ...
15. Re: what is form interface and global definitions
Posted on: Jun 5, 2007 8:25 AM, by user: Venkatesh -- Relevance: 8% -- Show all results within this thread
Function modules. and global definitions are the variable or tables declared with in the smartform. we can pass values to the smartform from the driver programme through the form interface. if helpful ...
Pages: 19 [ 1 2 3 4 5 6 7 8 9 10 | Next -
These resets appear to coincide with a clearing of the cached queries for the DSN from memory, breaking all my sub queries that try to use the initial cached one. I am grasping at straws to discover the reset culprit, the DSN tests always show OK, there is not packet loss at the switch level. If anyone has some suggestions, I am all ears!
The resets are completely random and under no load. My sql 2008 r2 box is set to unlimited connections.
An example of a DSN setup is :
Maintain Connections [x]
String Format [ ]
Max Pooled Statements 100
Timeout 20 Interval 7
Query Timeout 0
Login Timeout 30
CLOB [ ]
BLOB [ ]
Long Text Buffer 64000
Blob Buffer 64000
Validate Connection [ ]
I am running the following :
CF Enterprise 10,0,13,287689
Tomcat 7.0.23.0
Ubuntu 1204 x64
Java VM 20.4-b02
Java 1.6 (Sun Microsystems Inc)
I have seen it suggested to uncheck the maintain connections advanced options but this doesn't seem like a good approach to the problem and will cause more stress on the sql box IMHO.
I have also seen it suggested to enable Validate Connection but documentation on this is a bit sparse...
Here are more examples of the initial reset error and then the subsequent cache related errors :
Database Error Information:
Native Error Code: 0
SQL State: 08S01
Query Error: [Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Connection reset). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this server.
Custom Error Code: 08S01
Database Error Information:
Native Error Code: 0
SQL State: n/a
Query Error:
Query Of Queries runtime error.
Table named GlobalDetails was not found in memory. The name is misspelled or the table is not defined.
Custom Error Code: n/a
Thanks in advance to anyone who has a suggestion.Hi, could DBA check MS SQL Server connection logs???
May be server has some limits (for example sessions, memory and e.t.c.) -
Oracle Driver / JAR problem
Hi,
Here is the troublesome code.....
public void connect()throws Exception{
//set up the Driver
try {
//Problem here when running in a JAR
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
JOptionPane.showMessageDialog(null, "Conencted to database!", "Connected",JOptionPane.ERROR_MESSAGE);
catch(Exception e){
System.out.println("Driver initialisation failed");
JOptionPane.showMessageDialog(null, "Unable to locate OracleDriver()", "Error in connection",JOptionPane.ERROR_MESSAGE);
//Make a connection to the database
try {
theConnection = DriverManager.getConnection(c.getDbUrl(), c.getUserName(), c.getPassword());
catch(Exception e) {
System.out.println("failed to make a connection");
JOptionPane.showMessageDialog(null, "Problem in connection. Please check database connection settings and re-try.", "Error in connection",JOptionPane.ERROR_MESSAGE);
}This code works fine when running via Eclipse, but, when I put it into an executatble JAR, it fails. I know it fails at the line DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); (as you can see in the code above)
Any ideas?
liktidI replaced
DriverManager.registerDriver (new
oracle.jdbc.driver.OracleDriver());with
Driver driver =
(Driver)Class.forName("oracle.jdbc.driver.OracleDriver
").newInstance();
DriverManager.registerDriver( (java.sql.Driver)
er) driver);now an error gets caught on EVERY occasion (as seen
in the code in the first post), even in eclipse. The
previous version was ok. any further suggestions?
litkidNone of that stuff is necessary. This is sufficient:
Class.forName("oracle.jdbc.driver.OracleDriver");This works in production for me.
Your problem is that your executable JAR manifest Class-Path doesn't include the ojdbc14.jar OR that JAR isn't where your Class-Path says it should be relative to your executable JAR.
% -
External drive recognition problem
I am having issues with my iMac recognizing an external drive. I have:
iMac 5,1 10.4.11, Intel Core 2 Duo 2 GHz, 1GB Memory, PIONEER DVR-112d in a BYTECC ME-525U2FW Aluminum External enclosure connected through Firewire.
The iMac initially recognized the drive, no problem. Trouble is, when I turn off the drive and then power it back up, the iMac can't recognize it. I was able to solve it initially by powering down the drive, unplugging it from the firewire, reconnecting to firewire, and the powering up the drive again.
System profiler states all software up to date.
Any suggestions would be appreciated. Thanks!
drayman86 is online now Report Post Edit/Delete MessageThanks for the reply.
Has performed this way since install, which was about 72 hours ago.
When first connected through firewire and turned on, drive immediately recognized by iMac. Drive works, both ripping and burning. Turned drive off. Went to power up drive, and problem arose. -
Display driver incompatibility
Hi, Premiere Elements Folks,
I've been using PreE for a month and it's been going very well, if a little slow with my 2G of memory. Yesterday on opening the program I started getting a new "display driver incompatibility" warning that I hadn't seen before. Worse is that my project preview no longer works. I see that there are a number of these incompatibility questions here on the forum, but they all seem linked to the specific OS and video card involved.
Here are my details if anyone out there can help me:
PrE 11
Windows 7
video card: GeForce 8400M
laptop: Dell Vostro 1500
I did update my video driver from the NVIDIA site this morning.
Thanks much to anyone with an idea of what I should try.
David Orth
www.OrthFurniture.comI tried an older version of the same driver. I didn't uninstall first.
It didn't work. How important is uninstalling?
The importance of uninstalling will depend on the exact drivers. If I were rolling-back, I would uninstall any newer driver, as pieces of it can be left behind with a simple overwriting installation.
With my nVidia FX 4500 Quadro, most driver updates (going from older to newer) are just a download and install, but there were two, where I had to uninstall the earlier driver first. There was also one, where I had to make some adjustments to settings in my nVidia Console, BEFORE installing the newer one. Even for the same card, I have had to do things essentially three ways, but nVidia provided exact instructions on what needed to be done, and I just always read those instructions, as they can differ, driver version to driver version.
I also keep copies of older drivers around, as sometimes, new drivers are broken, upon release, and rather than wait a month, until the new one comes out, I need to be able to roll-back, and get work done.
Good luck,
Hunt -
Nigpib-linux driver compile problem
I am running SUSE 9.0, and while trying to install nigpib-linux-0.8.6.tar.gz, I get the following compile error:
Your kernel appears to be configured properly to build NI-GPIB for Linux.
Do you want to proceed? [yn] y
gcc -c -O2 -D__KERNEL__ -I/lib/modules/2.4.21-260-default/build/include -DMODULE -DMODVERSIONS -include /lib/modules/2.4.21-260-default/build/include/linux/modversions.h -D__GPIBDRIVER__ -o ib_linux-2.4.21-260-default.o ib_linux.c
ib_linux.c:419:7: missing binary operator before token "("
make: *** [ib_linux-2.4.21-260-default.o] Error 1
Couldn't build driver.
It has to do with the HZ definition.
Thanks for any help anyone can give!dsb,
Here is a link to a lengthy thread on this very problem. There appears to be a workaround or two mentioned in the post:
Linux Driver Compiling Problem
Let me know if the suggestions in that thread help out!
Craig H.
NI Applications Engineering -
Problem with SmartForms driver program
Hello,
I have the following problem:
I have created a Smarform that uses a standard text element. In my program, the text in this element is changed depending on the language the user has selected.
The form is then created and converted to PDF and displayed to the user. The problem I have is that the first time, the PDF is displayed in the correct language. However, when another language is selected the second time, the displayed PDF will still show the first language. After some testing, I found out that the problem most likely lies with the Smartforms function module. It seems that a certain variable is not being reset when it is called the second time, resulting in the same language being shown. Perhaps there's some variable in the control_parameters that I didn't set?
In any case, this is the code of the driver program:
DATA: fm_name TYPE rs38l_fnam.
DATA: output_options TYPE ssfcompop,
control_parameters TYPE ssfctrlop,
job_output_info TYPE ssfcrescl.
* Get function module name for SmartForm
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZHR_ADVERTISEMENT'
IMPORTING
fm_name = fm_name.
* SmartForm settings
control_parameters-getotf = 'X'.
control_parameters-no_dialog = 'X'.
output_options-tdnoprev = 'X'.
* Execute SmartForm
CALL FUNCTION fm_name
EXPORTING
control_parameters = control_parameters
output_options = output_options
IMPORTING
job_output_info = job_output_info
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
* Display PDF
CALL FUNCTION 'HR_EFI_SHOW_PDF_FORM'
TABLES
otf_table = job_output_info-otfdata.
Thanks in advance!
DaveHi,
Check the below code and see if ur missing something
DATA: form_name TYPE rs38l_fnam, " Used to get the function module of Smartform
wa_ctrlop TYPE ssfctrlop, " Smart Forms: Control structure
wa_outopt TYPE ssfcompop, " SAP Smart Forms: Smart Composer (transfer) options
t_otfdata TYPE ssfcrescl. " Smart Forms: Return value at end of form printing
Data: t_pdf_tab type table of tline, " SAPscript: Text Lines
t_otf TYPE table of itcoo. " OTF Structure
Variables used to pass to GUI_DOWNLOAD
DATA: w_filesize TYPE i,
w_bin_filesize TYPE i.
Variables used for Save Dialog Box
DATA : file_name TYPE string,
file_path TYPE string,
full_path TYPE string.
START-OF-SELECTION.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZPDF_G' "p_name
IMPORTING
fm_name = form_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.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION form_name
EXPORTING
control_parameters = wa_ctrlop
output_options = wa_outopt
user_settings = 'X'
IMPORTING
job_output_info = t_otfdata
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.
END-OF-SELECTION.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_bin_filesize
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
----TAKING THE DOWNLOAD FILE PATH AS USER INPUT*
CALL METHOD cl_gui_frontend_services=>file_save_dialog
CHANGING
filename = file_name
path = file_path
fullpath = full_path
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Download the file to the selected path
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = w_bin_filesize
filename = full_path "fname1
filetype = 'BIN'
IMPORTING
filelength = w_filesize
TABLES
data_tab = t_pdf_tab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE i000(zpdf). "File not downloaded
ELSE.
MESSAGE i001(zpdf). "File downloaded
ENDIF. -
Problem in smartform driver program
hi all,
i was stuck with an error while executing a smartform, th e report output is comming for some documents but it is not comming for some documents and it is showning the exceptions as 2
in function module SSFCOMP_PROCESS_DOCUMENT while calling the form my code is like this..
LOOP AT ITAB.
AT FIRST.
CONTROL_PARAMETERS-NO_CLOSE = 'X'.
ENDAT.
AT LAST.
CONTROL_PARAMETERS-NO_CLOSE = SPACE.
ENDAT.
IF RAD1 EQ ' '. " rad1 is for print , rad 2 is for pdf download.
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-PREVIEW = ' '.
CONTROL_PARAMETERS-GETOTF = 'X'.
OUTOP-TDDEST = 'LP01'.
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = ''
V_VBELN = ITAB-VBELN
V_PRIOR_INVAMT = V_PRIOR_INVAMT
V_CUR_PO_TOT = V_CUR_PO_TOT
I_GST = I_GST
I_QST = I_QST
I_HST = I_HST
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = TAB_OTF_DATA
JOB_OUTPUT_OPTIONS =
TABLES
T_FINAL = T_FINAL
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.
TAB_OTF_FINAL[] = TAB_OTF_DATA-OTFDATA[].
ELSE.
*********errror triggering from the below function module after else.........
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-PREVIEW = 'X'.
CONTROL_PARAMETERS-GETOTF = 'X'.
OUTOP-TDDEST = 'LP01'.
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = 'X'
V_VBELN = ITAB-VBELN
V_PRIOR_INVAMT = V_PRIOR_INVAMT
V_CUR_PO_TOT = V_CUR_PO_TOT
I_GST = I_GST
I_QST = I_QST
I_HST = I_HST
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = TAB_OTF_DATA
JOB_OUTPUT_OPTIONS =
TABLES
T_FINAL = T_FINAL
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.
ENDIF.
please help me it is telling that as internal error for the exception 2.
regards,
venkatHi,
I m Deepak, i getting the same error while running print prog.
When i debuged the smartform i get the return code sy-subrc = 1
in internal function module SSFCOMP_PROCESS_DOCUMENT in smartform function module.
And the error i m getting is - Field #13; does not exist in form.
How can i solve this problem.
Please guide me regarding this as u already solved it.
Regards,
Deepak. -
Dump in smartform driver program for purchase order
i created one smartform with driver program for purchase order.
in smartfrom i gave
form interface: p_ebeln as import,
tables as it_ekpo like ekpo.
global definitions are
wa_ekko type ekko for printing the ekko data in one window,
wa_ekpo type ekpo .
in main window i took the one table and loop the ekpo table for printing the item details.
no errors is there.but ; when i call this generated function module to my driver program it goes to dump.
in driver program i declare structures,internal tables,work areas, and parameter as p_ebeln .
and also select statements for my table all are good.but its not work.
in function module i pass the details as export p_ebeln = p_ebeln and table it_ekpo = it_ekpo.
and also i done debugging in this data come to the internal table and work areas.
but it goes to dump.
if u dont mind plz solve my problem.
Thanks
Navya.
Moderator message: empty lines removed, subject corrected, please use meaningful subject lines when posting!
Edited by: Thomas Zloch on Mar 24, 2011 10:10 AMHi Navya,
Your smartform is correct. But, as per my understanding, the dump comes when you call the smartform from the driver program. If that is the case, please check the input parameters and all th parameters in the program should be same as used in samrtform. Any deviation would lead to a dump.
Analyse and resolve!!!
Regards
Atul Sachdeva -
Smartforms Multiple Prints Problem
Hello,
We have developed a smartform, and this smartform gets called in a loop from the driver program.
We have user control parameters-no_open and no_close so that print dialog should appear only once and there should be only 1 spool generated.
The problem is when we click on Print Preview we are able to see multiple pages as per the documents selected.
But when we click on Print the spool which gets generated has only 1 page.
Please suggest if there is any setting or something related to this.I am confused. You have one spool request. How many pages does it have, according to SP01?
And you can do a print preview there and see 10 pages in SP01, as I understand ?
So your problem is that when you print this request, only one page is printed out?
Pls explain in more clarity. Possibly a raw display of the job data in SP01 might help...
Alex -
Smartforms driver program output query
Hello friends,
I created sales invoice smartforms. For that i created one driver program in se38. But while i am executing driver program i am just getting program output. Both my smartforms design and driver program is activated. Someone please give me guidance to solve this problem.
Thanx & Regards,
Rahul TaleleHave you written this function module to specify the smartform name and execute the Smartform Function Module..
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZPP_PACKMATL_REQ' " smartform name
IMPORTING
FM_NAME = W_FORM_FUNCTION.
CALL FUNCTION W_FORM_FUNCTION
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
ITAB_DATA = ITAB_DATA
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.
ENDFORM. " display_form
Maybe you are looking for
-
Can I connect a wireless printer to two wireless networks
I searched and couldn't find an answer to this exact situation. The answers to similar questions didn't seem to work. Can we share a wireless printer over two wireless networks without adding hardware or changing the wiring or doing complicated softw
-
Recover to new disk maverick MacBook pro
hello, i have restore my Mac from time machine to new disk (solid state 1TB), I thought of performance increase in turn it takes long time to boot system . on each reboot the system show apple logo and loading .the system comes up eventually . earlie
-
Hi All, Pls tell how to create HR Report Category. I am new to HR Module. Thanks in adv. Nibha
-
I may have screwed up....
In moving from OS9, assuming that my "housekeeping" strategies would work on Tiger, I may have done two things that could cause me problems... I have long partitioned my hard drive, one for all my data (easy to find, organized by MY filing scheme, re
-
Apple Hi Guys, I wanted to tell you that in August had planned to buy a Mac Mini Mac for introducing me and wanted to know if I buy it now and upgrade to i7 with 8GB of RAM and I hope to come out the back and if I I have to wait I need to know if the