Smart Form Error Page format 2 with orientation 1 unknown
I have created smart form with Page Format DINA4 (297x210). While executing the smart form i am getting error as "Page format 2 with orientation 1 unknown".
Same Attributes on each page only Next Page is in increment order.
Similar Messages
-
How to convert Smart Form into PDF format and return the result in BAPI?
I want to convert a Smart Form into PDF format and return the result in BAPI.
can anyone tell me how it can be done with related example
regards
pranayhi,
smart form to pdf--
All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
DATA: p_output_options TYPE ssfcompop,
p_control_parameters TYPE ssfctrlop.
p_control_parameters-no_dialog = 'X'.
p_control_parameters-getotf = 'X'.
CALL FUNCTION v_func_name "call your smartform
EXPORTING
output_options = p_output_options
control_parameters = p_control_parameters
IMPORTING
job_output_info = s_job_output_info.
call function 'CONVERT_OTF_2_PDF'
tables
otf = s_job_output_info-otfdata
lines = t_pdf
and if u need more u can check below links also
Check the below links..
Re: Smartforms to PDF
Re: smartform (otf) as pdf and sending as email-attachment
VISIT THIS LINK
Re: Smartforms to PDF
PLZ REWARD POINTS IF IT HELPS YOU
rgds
anver -
How to show Smart form in PDF format
Hi Experts,
I have a requirement in which I have to show a smart form in
PDF Format coming from the RFC .
Please give your helpful suggestion.
Thanks and Regards
Upendra AgrawalHi ,
Just look this pdf
see this link
http://www.****************/Tutorials/Smartforms/SFinEPasPDF/Page1.htm
Thanks
Edited by: Anup Bharti on Nov 7, 2008 7:00 AM -
FORM based login form-error-page
Hi,
I have activated FORM based login for EM (oracle 9iAS on Solaris). So, in web.xml for EMD, I have
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/jsp/login.jsp</form-login-page>
<form-error-page>/error/oc4j_error.html</form-error-page>
</form-login-config>
</login-config>
When I login as ias_admin, everything seems fine. However, when I login as any other user (not in ias_admin role), the browser redirects to /emd/console/ias/applicationServer...
Why is the container not redirecting to /emd/error/oc4j_error.html ?
Any input will be truly appreciated. Hopefully I am doing something wrong.
Thanks,
KrishnenduHi Frank,
Thanks for your reply. If I have a error page in the FORM login, then the container (according to j2ee specs) should redirect to /emd/oc4j_error.html if I authenticate as a user without administrator privileges.
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/jsp/login.jsp</form-login-page>
<form-error-page>/oc4j_error.html</form-error-page>
</form-login-config>
</login-config>
For all other containers (WAS, WebLogic and Sun Application server, Tomcat), it seems to work fine.
Thanks,
Krishnendu -
Service cannot be reached while sending a smart form in html format
Hello,
I'm trying to send a smart form as email in html format and I'm getting the following error message at the beginning of the message:
Service cannot be reached
What has happened?
URL http://localhost/SAP/BC/BSP/SAP/SMART_FORMS/DEFAULT.CSS call was terminated because the corresponding service is not available.
Note
The termination occurred in system XD1 with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
Error code:ICF-NF-http-c:100-u:MYUSER-l:D-i:my_test_system:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework Team
.SYSTEM div#B.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.SYSTEM div#L.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.SYSTEM a.SYSTEM span#H.char{ font-weight : bold ;}.SYSTEM span#I.char{ font-style : italic ;}.SYSTEM span#U.char{ text-decoration : underline ;}#PAGE1-001.page@media screen {#MAIN.win{ overflow : auto ;}}@media print {#MAIN.win{ overflow : hidden ;}}#PAGE1-001.page #MAIN.win.AGGR-BILL div#B.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.AGGR-BILL div#F.par{ font-family : "Arial" ; font-size : 8pt ; font-weight : normal ; line-height : 3.39mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#L.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#R.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : right ; clear : both ;}.AGGR-BILL a.AGGR-BILL span#H.char{ font-family : "Arial" ; font-size : 12pt ; font-weight : bold ;}.AGGR-BILL span#I.char{ font-family : "Arial" ; font-size : 12pt ; font-style : italic ;}.AGGR-BILL span#K.char{ font-family : "Arial" ; font-size : 8pt ;}.AGGR-BILL span#M.char{ font-family : "Arial" ; font-size : 10pt ;}.AGGR-BILL span#U.char{ font-family : "Arial" ; font-size : 12pt ; text-decoration : underline ;} div#PROJEKTE.tab@media screen { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media print { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media screen { div#PROJEKTE.tab table.tr{ margin-top : -1px ;}}@media print { div#PROJEKTE.tab table.tr{ margin-top : 0px ;}} div#PROJEKTE.tab table.tr div#PROJEKTE.tab .topline{ border-top : 1pt solid black ;} div#PROJEKTE.tab .bottomline{ border-bottom : 1pt solid black ;} div#PROJEKTE.tab .leftline{ border-left : 1pt solid black ;} div#PROJEKTE.tab .rightline{ border-right : 1pt solid black ;}#PROJEKTE.tab #sf--LTYPE1.tr td#C1
and here comes the email's body: bla,bla,bla... bla.
Do you have any idea how can I solve the problem with the css file? Any suggestion is welcome!
Regards,
JaimeI just solved the problem by activating the service /SAP/BC/BSP/SAP/smart_forms/ through the transaction SICF. So I close the thread!
Jaime -
Smart form rotate 90 degrees with Zebra printer
Hi Experts,
We are using smart form to design label which need be printed by Zebra printer, and the label need be printed in landscape. Currently we are using the Zebra command '^FWR' in smartform to rotate the field in each window, but the rotated format is very strange. Can anyone let me know how the rotate command work?
It would be highly appreicated if an rotate example can be provided.
Many thanks.
Benny.The Zebra command ^FWR rotates each individual field by 90 degrees (clockwise). But then you'll have to adjust position of each field again for landscape output.
In ZPL II printer language is no command for rotating label by 90 degrees. The printer driver doesn't understand "orientation=LANDSCAPE".
A slightly better solution could be to define a smartform with portrait orientation. Add a "command node" in first window and enter attribute name "S_LZPL_SETUP" with value '^FWR'.
Please note that this command doesn't has an effect on barcodes. They have their own parameters for rotation. Please define these parameters in SE73 for each barcode type your're using.
Steffen -
Smart forms Error - Form does not exist
Hi,
I have created a smart form and activated without any inconsistancies. SE38 code has been done properly and activated.
While executing the forms an error has raised saying 'Form does not exist'.
Could anyone suggest me what is the route cause for this error?
Regards,
Arundathi.Hi
Have you designed the smartform in SMARTFORMS tcode?
after writing the code
see the steps and check once again
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.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.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
<b>step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html</b>
Subtotals - Check the link...
Re: Subtotal with Table Node in smartforms
<b>Reward points for useful Answers</b>
Regards
Anji -
Hi Abapers,
i'm getting an error while printing a form.
error descr.: -
Output could not be issued
Message no. VL086
Diagnosis
An error occurred in the message processing program.
Procedure
Contact your system administrator
Also if I run my smartfrom independently i got message like this
Exception FORMATTING_ERROR
Message ID: SSFCOMPOSER Message number: 601
Message:
Reference field GS_LIKP-ZWEIGHWT unknown in form.
with 0 entriesHi Adams,
The error is for field GS_LIKP-ZWEIGHWT. It seems to be a quantity field. If it is then you'll have to maintain a reference field for it in you Smartform. To do this -
Goto Global Definations -> Currency/Quant.fields
Here give the field name GS_LIKP-ZWEIGHWT and in the reference field give some quantity field contained in some internal table that you have passed in the form attributes. Give data type as QUAN.
Activate the Form and execute. This should solve your problem.
Hope this helps!
Regards,
Saurabh -
Smart Forms : Total pages greater than 9 printing as *
Hi All,
I have one Smart form having 10 pages.
If the Total pages more than 9 pages its showing as page 9 of * .
but If total pages are less than 10 then its is coming properly as Page 1 of 9.
[Smart Forms Total number pages more than 9 print ing as *;
I have also check this thread and use &SFSY-FORMPAGES(3ZC)& But in this case it is coming page 1 of 01
Please help.
Thanks
GauravDefine the window containing this text as a "late processing window" (General attributes, Window type set to "L Final Window")
(For 46c/46d this option did not exist, there was a solution described in [Note 359009 - Postprocessing and query of the total number of pages|https://service.sap.com/sap/support/notes/359009] for older versions [Note 588352 - '*' when you output the total number of pages|https://service.sap.com/sap/support/notes/588352] suggested to "reserve sufficient space for the number of pages by specifying an explicit length in the formatting options")
Regards,
Raymond -
Dear Friends
I have smart form and I have use template for Main window with loop statement, its working and data growing for three pages.
i have another Template for summary and there are 15 rows, i have used loop statement for fill that also.
that thing also working properly
so my problem is , if last page of main window not enough space for display 15summary template hole teplate should be move to next page (new)
so friend i hope your valuable help to solve my problem.
Thanks in Advance.Hi
In Last Template , you can use Page Protect option, it will work for you.
let me know it's working or not.
With Regards
Nikunj Shah -
Hi Experts,
I have designed a Smart Form for Sales Order Details which should Display Sales Order line Items using Internal Table.
After Displaying Line Item I have to display Terms & Conditions in Second Page.
I have Created Secondary window in Second Page for Terms & Conditions, while activating it is showing error as "A page without a main window cannot point to itself as next page".
My Requirement is after passing all line items, in Next page to that I have to pass Terms and Conditions.
Ask you solve the issue at the latest.
Regards,
Kumar
Edited by: Thomas Zloch on Jan 17, 2011 11:13 AM - priority adjustedABAP Wrote >
I have Created Secondary window in Second Page for Terms & Conditions, while activating it is showing error as "A page without a main window cannot point to itself as next page"
You cannot have more than one main window in smartform. Check PAGE Attributes of the second page. Remove NEXT and keep a space there.
Set
For FIRST Page : Under General attributes set : NEXT Page = FIRST
For NEXT Page : Under General attributes set :NEXT Page = NEXT
For T&C Page : Under General attributes set :NEXT Page = SPACE
Set the page counter mode to Page and Overrall page unchanged. -
Global error page - compatible with partial page rendering
My global error page doesn't show in some isolated cases. Could this be because of partial page rendering? What changes might be needed to have it work in all cases?
I have created a global error page and set it in the web.xml with:
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>pages/htmlErrorPage.html</location>
</error-page>
This displays the htmlErrorPage when errors occur in nearly all my tested cases. However, when the test error is created inside one page redraw I find that the application dies without ever displaying my error page. On the console I get an error message that starts with:
Jun 13, 2008 12:54:11 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
SEVERE: Error during partial-page rendering
javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.softrek.adf.view.managed.JFreeChartPlotter'.. class com.softrek.adf.view.managed.JFreeChartPlotter : java.lang.NullPointerException
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
But my error page doesn' t show up. I've used the identical test error in most other parts of my application and it shows - so other than the partial page rendering going on, I can't see why this case would be different.
Is there any known bug (or feature) about the use of an error page during partial page rendering?
Any ideas will be welcome.I'm unclear on how I would get the error to redirect.
I've changed my web.xml to go to a servlet of my creation, set up the mapping and all.
It works fine for exceptions generated in a backing bean normally.
When the exception occurs as part of partial page rendering the error servlet is not called and the user's session dies.
This is being done in JDeveloper 10.1.3.3
The new web.xml contains:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/servlet/errorAction</location>
</error-page>
Which is working for errors generated under most circumstances but not when they are inside my partial page change.
How do I get errors to go to my error page when the error occurred during PPR?
PS. Using the PartialPageUtils.isPartialRequest() method generated a recursive error in my error servlet. This looks like the known limitation for Faces error handling. -
Undeline text in Smart forms character/paragraph format
hi!!!
i have a problem in printing a Undelined text in Smart forms bec. when i print it, only the words is underlined and the spaces between the words dont have underline.
can anybody help me?
thanks in advance!!!
jamesHi Mohamed,
SmartForms and WebDynpro are two different technologies
- You can not do PrintPreview in WebDynpro.
What You could do is to store Your text using SAVE_TEXT and use text module in SmartForms,
but You can't use printer, but i.e. store PDF on the server or send PDF using mail.
Regards,
Przemysław -
Error-page problem with Tomcat 5.0.24
I want to display an error page in case any exception is thrown by my JSF application.
I configure the error page in the web.xml and run the application on Tomcat 5.0.24.
When an error really happens while loading a jsf-page A the error page is not displayed. In IE i see just a blank page. When I check the source code it shows me some parts of the page A (javascript functions). So it actually never navigates to the error page.
I tried to use jsf, simple jsp or even html pages as an error page - the same effect.
And one more thing. When plain jsp-page throws an exception I see my error page all right. Also I see an exception stack trace in Tomcat console. When jsf-page throws an exception I don't see any exception information in the Tomcat console.
Does anybody has an explanation to this? Can anybody recommend me any other way to watch for exceptions in a JSF-application?
Any help will be appreciated.
SlawaI resolved the problem.
I had to increase the jsp-buffer size for the erroneous page. It looks like it started to load and when the error happened the container couldn't redirect to the error page.
Thanks to jBoss which gives more log messages though is also based on tomcat.
Slawa -
Specifying page format with a DocPrintJob
I want to print myPageable using legal paper. I tried adding the attributes to the simpledoc, but it still prints out in normal, letter size.
How can I change my page format using the docPrintJob?
PrintRequestAttributeSet set = new HashPrintRequestAttributeSet();
set.add(MediaSizeName.ISO_A3);
DocAttributeSet set2 = new HashDocAttributeSet();
set2.add(MediaSizeName.ISO_A3);
SimpleDoc doc = new SimpleDoc(myPageable, DocFlavor.SERVICE_FORMATTED.PAGEABLE, set2);
DocPrintJob m_job = ...
m_job.print(doc, set);I wouldnt try to use that method If I were you.
Try using PrinterJob.print(PrintRequestAttributeSet)
Of course this doesnt work on linux (Which seems to have 0 ability to select different printer attributes)
Cross platform compatable BS !
Maybe you are looking for
-
Mozilla runs only in protected Mode Error Reports
ID: 4f3e605c-1c38-4b19-9997-427d12140808 Signature: igd10iumd32.dll@0x7fa17 Details Metadata Modules Raw Dump Extensions Signature igd10iumd32.dll@0x7fa17 More Reports Search UUID 4f3e605c-1c38-4b19-9997-427d12140808 Date Processed 2014-08-08 10:59:2
-
Hi friend; I have one tkrpof and end of the file the query value is too high like 43830952, what doest it mean? How i can solve this problem
-
How this copy controls can be configured
hi, please show me the way by explaining the copy controls from quotation to quantity contract to sales order needed config settings please. regards
-
Deactivate change pointer in particular article type
Dear all expert We are using IDOC type Wp_plu02 for outbound article processing we also activate change pointer setting on IDOC type wp_plu02 but now we want to do deactivate change pointer in particular article type (project articles) how we can do
-
I love this forum - I had something that I couldn't solve for the life of me, then went to type it out in a way that someone else could understand and it all suddenly became clear :))))) Thanks sun! Jess xxx