Error in smartform
hai,
i created a smartform to display data from vbap. i looped the internal table t_tab. but when go for print preview values are not printing but field names are displaying like
&w_tab-vbeln& &w_tab-posnr& &w_tab-netwr&
i followed thw link
<link to blacklisted site removed by moderator>
what additionaly i have to do. please tell me.
thanks in advance,
Dastagir
Edited by: Thomas Zloch on Feb 3, 2012
Hi,
Just in the left of the MS WORD editor there will be a change editor button. Press it.
Then Full screen MS WORD editor will open. Now follow this - GOTO->Change Editor.
It will open SapScript type editor. Write your &w_variable& here. Now value will show up.
This is the preffered way.
But If you want to do it from MS word editor itself, then there is a button called - Insert Field just above the normal editor.
Press that and enter &w_variable& in it. Always use it to insert the variables.
Regards,
Harsh Bansal
Similar Messages
-
Error in smartform when printing multiple pages
Hi,
I m using a smartform which have two pages in it,
i m able to save and activate it without any error message and when i run the function module generated to chk my smartform
it runs fine and diplays two pages i m using.
but as i m attaching this form with my driver program it is giving an error message while running . the error message is " No other output defined in main window."
Please help me out to resolve the issue.Re: error in smartform when printing multiple pages
dharani tadikonda
Thanks for this answer. It is absolutely correct. -
Fpcopara job log - error in smartform
Hello,
I am running Fpcopara tcode for a mass printing.
After the job finishes, when I look in joblog I can see the error message no 6323: Error in smartform ....
Any ideas on how to debug the job, because fpcopara is running in background and DBUG seems not to work...
Thank youHi
Check this report RSNAST00 and debug the code
I think you have not maintained the print parameters in your driver program
please check the same
for reference check the driver program RLB_INVOICE
and this perform
determine print data
PERFORM set_print_data_to_read USING lf_formname
CHANGING ls_print_data_to_read
cf_retcode.
Regards
Shiva -
Error In smartform - FOOTERTEXT Field "EQ" is unknown.
Hi all,
I am getting an error in smartform in the FOOTERTEXT - Field "EQ" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. .
What is the problem and how to fix this error
Thanks in advance
NeelaHi,
I checked in the coding i get the error in this line of the coding
IF &3 EQ 'T'.
%L_NAME = &1-PARAMETER.
ENDIF.
pls help me in debugging this error.
Thanks in advance,
Neela -
Smartform Experts,
We are having issues with smartform and it errors out only in particular cases. Is there a way to handle Errors in Smartforms and find out exactly where the error occured in Form and catch the relevant Error message.
Appropriate reward point will be awarded.
Thanks
PrasadHi Prasad,
You can debug smartform in 2 ways.
1. put break-point in a program lines and debug.
2. goto the smartform function module.
Goto->Main Program
double click on the last include program name, which will take you to the code which we write in smartform program lines.
there select the appropriate line and click on STOP button to put a break point.
then run the program, system will stop at the break point, from there you can debug line by line.
i would prefer the 2nd way to debug smartforms than 1 way.
coz in 1st way we have change the form, which is not possible in quality and production systems.
if this suits your requirement, pls award the points.
Satish -
E-Mail print error; check SmartForm or printer definition
Hi Team,
We are facing an issue when we try to print the email in SAP CRM 7.0. Getting an error saying -Mail print error; check SmartForm or printer definition.
Any pointers on this how this can b resolved will be of great help.
Have gone through the similar sdn thread, not able to really understand how the issue was resolved.
Error when printing an email > CRM_IC_APPL_UI_CHMSG
Regards,
UdayaHi Udaya,
Try to maintain a default printer for a particular user in t-code SU01 (on Defaults tab -> Output Device).
Then, when you print again it will generate a spool order for chosen printer (can check on t-code SP01).
Kind regards,
Garcia -
Hi,
I developed a smartform for printing quotations.
It is working fine for some quotations but
when i run it with few quotations i am getting the error message
as below -
"Table row is larger than 176 cm.
An attempt was made to display a Smart Forms table that is bigger than the maximum height of around 176cm."
This is occuring even when there is only one line item. But i have use the same kind of item details in other quotations and they are printing fine.
Please help me in solving the error.
Regards.Thanks for the reply.
I had already disbled the checkbox for page break in the table rows, so that the data splits into different pages.
But it is working for some cases and giving the error for few.
Can you pls explain if there is any other way to split?
Regards. -
Error in smartform converting into xsf file
Hi all,
I have modified the standard purchase order and created a Zsmartform.The output is working fine in SAP.My requirement is that it should be sent to streamserve (which is a 3rd party tool ).
For this in the Form Attributes I have changed the output format : XSF Output
& tput mode : SPOOL
and generate a xsf formatted xml file by printing it to my local PC.
I followed the same procedure for my previous smartforms like invoice list , order confirmation,etc.
But for this PO I'm getting the following error.
<b>The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
End tag 'v' does not match the start tag 'version'. Error processing resource 'file:///C:/TMP/PO2.xml'. Line 2, Position 85
<smartxsf xmlns="urn:sap-com:SmartForms:2000:xsf"><header><general><version>1.14.2</v</b>
Could anyone tell me how to resolve this error ?
Regards.Hi,
Can You Please tell me how you solve this problem?
I am also facing the same.
Thanks in Advance
Swapnil -
Error in SmartForm to PDF while Saving with Preview option.
Hi,
I have created a report to convert Smartform to PDF.
I want the user to Preview data, if user is interested, then they can save the file.
When user clicks the Back button in SmartForm Print Preview, user can select the path of PDF file to save the data.
My code works fine, if Preview is disabled.
In the sub-routine createpdffile, I am getting error while creating PDF file.
The program works fine, if I disable the preview option i.e. if I uncomment
cparam-getotf = 'X'.
How can I have the both options in my report?
1) Preview SmartForm.
2) Save the SmartForm as PDF.
Regards,
Vikas
DATA:
cparam TYPE ssfctrlop,
outop TYPE ssfcompop,
* fm_name TYPE rs38l_fnam,
* my_tabix TYPE sy-tabix,
file_size TYPE i,
bin_filesize TYPE i,
s_filename TYPE string.
DATA:
tab_otf_data TYPE ssfcrescl,
* tab_otf_data TYPE itcoo OCCURS 0 WITH HEADER LINE,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
it_ekpo TYPE STANDARD TABLE OF ekpo WITH HEADER LINE.
* it_docs TYPE STANDARD TABLE OF docs.
START-OF-SELECTION.
PERFORM fetchdata.
***************** suppressing the dialog box****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = 'X'.
* cparam-getotf = 'X'.
END-OF-SELECTION.
PERFORM callsmartform.
tab_otf_final[] = tab_otf_data-otfdata[].
PERFORM createpdffile.
PERFORM getfilename.
PERFORM savepdffile.
*& Form FetchData
FORM fetchdata .
SELECT * FROM ekpo INTO CORRESPONDING FIELDS OF TABLE it_ekpo
WHERE ebeln > '4500009071' AND ebeln < '4500009073' .
ENDFORM. " FetchData
*& Form CallSmartForm
FORM callsmartform .
CALL FUNCTION '/1BCDWB/SF00000234'
EXPORTING
control_parameters = cparam
output_options = outop
user_settings = space
IMPORTING
job_output_info = tab_otf_data
TABLES
t_ekpo = it_ekpo
* EXCEPTIONS
IF sy-subrc <> 0.
MESSAGE 'Error in Calling Smart Form ' TYPE 'I'.
ENDIF.
ENDFORM. " CallSmartForm
*& Form CreatePDFFile
* text
FORM createpdffile .
****removing the initial and final markers from the OTF data**********
* DELETE tab_otf_data-otfdata WHERE tdprintcom = '//'.
* READ TABLE tab_otf_final WITH KEY tdprintcom = 'EP'.
* my_tabix = sy-tabix + 1.
******** appending the modified OTF table to the final OTF table****
* INSERT LINES OF tab_otf_data-otfdata INTO tab_otf_final INDEX my_tabix
************ converting OTF data into pdf data**************************
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = bin_filesize
* BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE 'Error in Creating PDF File ' TYPE 'I'.
ENDIF.
ENDFORM. " CreatePDFFile
*& Form SavePDFFile
FORM savepdffile .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = s_filename
filetype = 'BIN'
IMPORTING
filelength = file_size
TABLES
data_tab = pdf_tab
EXCEPTIONS
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE 'Error in Saving PDF File ' TYPE 'I'.
ENDIF.
ENDFORM. " SavePDFFile
*& Form GetFileName
FORM getfilename .
DATA:
v_name TYPE string,
v_path TYPE string,
v_fullpath TYPE string,
v_filter TYPE string,
v_uact TYPE i,
v_guiobj TYPE REF TO cl_gui_frontend_services.
* v_filename TYPE string.
CONCATENATE 'smrt' '.pdf' INTO v_name.
CREATE OBJECT v_guiobj.
CALL METHOD v_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name
path = v_path
fullpath = v_fullpath
user_action = v_uact.
IF v_uact = v_guiobj->action_cancel.
EXIT.
ENDIF.
MOVE v_fullpath TO s_filename.
ENDFORM. " GetFileNameI think the excerpt and link below is the why, but the page talks about server code and not javascript. I guessing that this is why blank pages work, but not wiki pages. Can anyone verify this?
The following are general rules for using server-side code on a site page.
If the page is uncustomized, server-side code is supported on the page.
If the page is customized, server-side code does not run, and the page does not render. This includes the code-behind for the page itself.
http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx -
Error in smartform calling in a report
Moved from General to Form Printing. Please take care to post in the correct forum.
Hi All,
I'm working on standard Smartform 'EBPP_DEBIT_CREDIT_MEMO'(biller Notification) calling in a report.In report smartform generating function module successfully(/1BCDWB/SF00000095).
problem accuring while calling the generating function module.
if anything wrong please help me.
The coding is:
Data : fm_name TYPE rs38l_fnam.
Data:L_URI type AD_URI.
START-OF-SELECTION.
L_URI = '11223'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'EBPP_DEBIT_CREDIT_MEMO'
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 function fm_name
Exporting
L_URI = L_URI
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.
Edited by: Matt on Apr 23, 2009 11:25 AMHi Vijay,
Thank You for ur replay.
before the dynamic function module excution sy-subrc is '0'
While comes to dynamic FM giving the error as:
Incorrect parameter with CALL FUNCTION.
When calling a function module, one of the parmaeters was not
specified.
Error in ABAP application program.
This is standard smartform , u check the code once and suggest me. -
Error in Smartforms a page without a main window
Dear Friends
I have suffred one problam in Smartforms, whe we create new page then system gives error
"A page without a main window cannot point to itself as next page".
Please provide solution.
Regards
Ajit SharmaHello Ajit,
In Smart Form Main window is optional but check if this satisfies in your case ....
Main Window
In a main window you display text and data, which can cover several pages (flow text). As soon
as a main window is completely filled with text and data, the system continues displaying the text
in the main window of the next page. It automatically triggers the page break.
You can define only one window in a form as main window.
The main window must have the same width on each page, but can differ in height.
A page without main window must not call itself as next page, since this would trigger
an endless loop. In such a case, the system automatically terminates after three
pages.
It means if you have Next page you need to use a Main window in your smart form.
Regards,
Kittu -
Dump error in smartforms , please help me urgent
Hi,
i have created a smartform with two pages in it , i was not able to create the window in the second page it was showing me a dump error but i manage to copy the main window of first page in to second page it was working fine but if i delete anything in it , it was reflecting in first page , then i managed to reduce the size of the main window and add a secondayry window , as the content of the second page must flow to pages . i need to create a main window , it is aagin throwing a dump error , plsease help me in sloving in this , thanks
sriharHi,
create folder in main area in main wondow and keep all the rows of table in folder.
the go to output options of folder and tick check box Page protection.
Now u can reduce the size of main window in second page .it will not get any short dump.
regards,
Sunil.K -
I am having a problem with an error message in a SmartForm. I have tracked the error down to the following function call:
CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'
EXPORTING HEADER = %HEADER
DOCSTRUC = %DOCSTRUC
STARTPAGE = CONTROL_PARAMETERS-STARTPAGE
ARCHIV_INDEX_TAB = %ARCTAB
MAIL_APPL_OBJECT = MAIL_APPL_OBJ
IMPORTING RESULT = %RESULT_PD
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.
It is returning with a value, in sy-subrc, of 1. This function call is after an included text is displayed. I have the checkbox "No error if no text exists" checked so I am not sure why I am getting an error. The error message is as follows:
Field ULINE does not exist in form.
I am not using ULINE at all in the form (as the error message states) but I don't understand why/where it is looking for ULINE.
Regards,
DavisHello Aaron,
I have a query similar to your original post but don't know exactly how to proceed.
When i am trying to issue Delivery output for T code VL02N after selecting Output type e.g. 'ZABC'
and then selecting print preview, it gives following error.Please see the screen shot :
I have checked the driver program as well as smart form thoroughly , wa_name has not been declared any where.
I tracked down the place of error and it coming from FM 'SSFCOMP_PROCESS_DOCUMENT'
CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'
EXPORTING HEADER = %HEADER
DOCSTRUC = %DOCSTRUC
STARTPAGE = CONTROL_PARAMETERS-STARTPAGE
ARCHIV_INDEX_TAB = %ARCTAB
MAIL_APPL_OBJECT = MAIL_APPL_OBJ
IMPORTING RESULT = %RESULT_PD
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.
DOCUMENT_OUTPUT_INFO = %RESULT_PD.
SY-SUBRC becomes 1, consequently it raises that error using subroutine %RAISE.
Dont know how to track down the error, please let me know the solution to eliminate this.
Best Regards.
Saurabh Singh -
I have a SAPScript that I converted to a SmartForm. I used the print program from the SAPScript and modified it for the SmartForm. When I run the Tcode (VL70) I am getting the following error: "<b>WRITE_FORM is invalid, OPEN_FORM is missing</b>.
Could this be because I am using the output type that I used for the SAPScript? If so do I need to create a new output type?
Regards,
DavisIf anybody is still looking at this question, I have found where I can modify EK00 but I can't figure out what to do in order for it to work.
I have the program as the print program (ZRVADEK01) Form routine as (SMARTFORM_PRINT) and the form as the form name (ZPCC_PICKLST_STD)
I also put the function module for the smart form in the spot for the Layout Module (/1BCDWB/SF00000017 and under the heading SmartForm I put the name of the form in there (ZPCC_PICKLST_STD).
Regards,
Davis -
Error in Smartform: Nested output of tables is not possible....
Hi ,
I am getting the below error while executing the smartform.
Nested output of tables is not possible
Message ID: SSFCOMPOSER
Message Numer : 171
could any one plese help me?
Thanks & Regards,
surendraDear
AS i reply in thread ,
this error comes with some problem in functional Module .
as we know that two FM use in smartforms -
SSF_function_mudule
call funcion .
so you check both and i hope you handle this problem .
Regards,
Ravi -
Error in Smartform: No output request open.End not possible..
Hi Experts,
I am getting below mentioned error while trying to execute smartform..
NO OUTPUT REQUEST OPEN..END NOT POSSIBLE..
Message no. SSFCOMPOSER154.
Help me to resolve the issue..
Thanks in advance..
Hampanna KamatarHi experts,
I am getting the same error and found found that its because ssfcstat-tdopen getting false in the FM ssfcomp_close.
if ssfcstat-tdopen = c_false.
err_comp ssf_err_close_unstarted 'A' 154 space space space space.
endif.
I want to know the reason why and where exactly the field is getting populated with c_false.
ps: I am using a Zprogram and it PRINTS FOR FEW DELIVERIES AND THIS ERROR FOR FEW DELIVERIES.
Maybe you are looking for
-
Sender JDBC Adapter - Connectivity Problems
I installed JDBC Driver for Oracle 9 ojdbc14.jar on the J2EE Engine as per the instructions in the How To Guide. I updated the tnsnames.ora on the server appropriately. Also I could connect to Oracle database from the server using sqlplus. I configur
-
I have a four page document that I have created multiple buttons for. I created remote rollovers and have to show/hide buttons often. My problems are as followed: !. In the "Actions" drop down menu in the "Buttons" pallet, only three buttons from a l
-
My Photosmart 2610 All in One works percectly except it wont print photos from my files. The printer is about 6 years old and is no longer supported by HP. I have the original set-up disc. Can I use it by using that set-up disc?
-
When dowloading itunes 10.5 i am getting error message
there is a problem with this windows installer package. a program required for this install to complete could not be run. can anyone help? Thanks
-
Image distortion when not in frame 1
I have a fla produced with Flash MX 2004 Pro. It has a movie clip sitting on the main time line in frame 1. Nothing else. The movie clip contains a sequence of images flowing one into the other. With the movie clip in frame one everyting is fine. If