Hi Doubt in Smartforms
1.In smartform when i execute the driver program , printpreview window is coming asking u to give LP01,LOCL....etc , how to Deactivate that window .
Hi,
This sample code is an example of calling the smartform without dialog.Kindly reward points by clikcing the star on the left of reply,if it helps.
*& Report ZZZ_JAYTEST1 *
REPORT zzz_jaytest1 NO STANDARD PAGE HEADING MESSAGE-ID zhrt.
Variable Declaration
DATA : v_form_name TYPE rs38l_fnam,
itab TYPE STANDARD TABLE OF pa0001,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl.
SELECT * FROM pa0001 INTO TABLE itab UP TO 5 ROWS.
SORT itab BY pernr.
DELETE ADJACENT DUPLICATES FROM itab COMPARING pernr.
DATA: control TYPE ssfctrlop,
control_parameters TYPE ssfctrlop,
output_options type SSFCOMPOP.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
control-device = 'PRINTER'.
output_options-tddest = 'LOCL'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
USER_SETTINGS = ' '
OUTPUT_OPTIONS = output_options
CONTROL_PARAMETERS = control
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.
output_options-tddest = 'LOCL'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
CALL FUNCTION '/1BCDWB/SF00000066'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = output_options
USER_SETTINGS = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = w_return
JOB_OUTPUT_OPTIONS =
TABLES
itab = itab
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.
CALL FUNCTION 'SSF_CLOSE'.
Similar Messages
-
Hi Group
I have one doubt in smartforms. I have following requirement.
I want to print 14 labels on one A4 size page using smartforms. Can somebody please tell me how to go about it.
Please reply ASAP as it is a bit urgent requirement.
Thanks & Regards
Deeptihi Deepti,
Check out the thread
Re: LABEL Printing in SMART FORMS
Re: Goods Receipt Label
Regards,
Richa -
Doubt in smartform table control
hi,
in my smartform i want to display the table control, i got that normal table control, but i want to change the table control format, that means in write side in the tabs column no need of calculation i need event tab, how to make that?
Thanks and regards,
Gowri.Hi Gowri,
You cannt display Table control in smartform output. As it is reporting tool. Not Dialog Module.
In data tab of table control you can have events.
Reward if useful. -
Hi Experts,
In Smartform I am having a table in which data is coming at runtime more than a page and have to sum the column fields and to display at the end of the table.At the bottom of every page the table column lines look unfinished..How to put a line at the bottom of the table for every page.
thanks,
Yoganand.GHi,
Declare the table window in a TEMPLATE. Now declare the new line type which you would like to print at the end of the table on every page. So place this window below the table. Also put a condition like, when table window is displayed with some data, then print this line type, otherwise neglect it.
Regards,
Santhosh. -
hi all
i need to declare an internal table in the smartforms( but not in tables of form interfaces) ...... where i can declare an internal table and how ....
thanks in advance
sharathHI,
you can declare using path
GLOBAL DEFINATIONS-->INITILIZATION tab
there you can declare you internal tables.
Regards, -
Doubt in Smartforms - how to display multiple sale document no. in s
Hi guru's,
I need sample code like print program and Smartform download for multiple 'Vbeln' sale order document no.
Please help me
Rewards for helpful sample code.
Regards,
Rajiv Christopher.You can use the next query:
Select o.DocNum
From DLN1 d
Join ORDR o On o.DocEntry=d.BaseEntry and d.Linenum=0
Where d.DocEntry=$(INV1.BaseEntry)
(You should replace the ')' with '']' and the '(' with '[')
But this is usable only when the user derives the invoice from one delivery and the delivery from one order. -
1.
CAN ANY ONE TELL ME HOW TO USE COPIES WINDOW ACTUALY WHERE DO U PLACE THIS WINDOW IN SMARTFORMS.
2.
IAM NOT ABLE TO DISPLAY
MULTIPLE DATA IN SECONDARY WINDOW
WHY THIS IS NOT POSSIBLE.
3.
HOW TO SEND AND RECIEVE MAIL IN SMARTFORMS
IS THERE ANY CODING FOR THIS PLZZ TELL ME.Hi Harsh,
Check below link for copies window in Smartforms
http://www.****************/Tutorials/Smartforms/Copies/Window.htm
Best Regards,
Brijesh -
Doubts in smartforms plz provide smartform notes imp topics
hi experts
i am new to smartforms some interviews they are asking about smartforms could plz tell me imp topics in smart forms and send good notes to create smartforms from scrach, some imp faq's.
my mailid is [email protected]hi Prasanna,
SmartForms : some links
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
http://www.sap-img.com/smartforms/smart-001.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sap-img.com/smartforms/smart-002.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm -
Doubt in smartforms and script
normally when we want to activate previous versions of report
we get form version management and we can activate previous
versions but how can be we activate previous versions of smartforms and script.please help.Hi Krishna,
Please check the below threads,
Version management in smartforms ?
Re: Version Management in smartforms
how can we revort the smartform previous version
Best Regards. -
Hi all,
I have a requirement in which i have to print some of the fields in the o/p of a report. let me explain in detail.
Let there is a report zemployee. The selection screen consists of spme fields like name, addr, etc. Let a period be there in the sel. screen....like.....
Period: From_________ To__________
After entering the values some output will come. Let us assume as name, addr, marks,percentage etc.
Now my requirement is... I should write a report for a smartform whose sel.screen has the name and year. This report should call zemployee. If I give 2007 as year in smartform report, then it should run zemployee with period...from 01.01.2007 to 31.12.2007. And i need to print the smartform with only 3 flds of zemployee o/p, say name, marks and percentage.
I have created the texts, templates...the entire smartform is created. Now I have to write the report for that smartform which has to call zemployee and fulfills the entire requirement. I haven't even filled Global definitions in smartform. As I am new to smartforms, please help me out by explaining in detail. Thanks a lot.
Regards,
Seenuhi
as i understand from what u written, is u want to give year in select options and want data for whole year .
like if you give 2007 to 2008
then data from 01.01.2007 to 31.12.2008 should come ?
it is better to call DRIVER PRG. then REPORT when u call script or smartforms by a prg.
fo ur problem try this :
take LOW and HIGH value of select option and change them like
v1 = sel_opt-LOW + ' 01 ' + ' 01 ' .
if sel_opt-HIGH is not initial.
v2 = sel_opt-HIGH + ' 12 ' + ' 31 ' .
else.
v2 = sel_opt-LOW + ' 12 ' + ' 31 ' .
endif.
then make ur select query based on these twi variable ,
this may help.
reward if helpful. -
hi,
In smartform how do we get 3 invoice forms at a time one form for each page..i have chosen invoice number in driver program ..I am getting only first invoice form ...wat should i do in smartform...
Thanks in advance.
KavithaHi Kavitha,
can you tell me ur problem more in detail??
wether smae form should be printed with different text thrice,
or threee different forms, for that u will have to use select-options and in that you can give invoice no range.
Regards,
Bharat. -
Regarding smartform page wise total.
hi
guru's
i am having doubt on smartform
i want to caluclate sum of qunatities in pagewise
Regards
AnandHello Anand ,
Really good Question.
As per my knowledge and understanding it is possible only a only when , when the you know the no of row you can print in Main window like......
In my Main Window I can print 5 Row . Then in the Footer you can Code like this. That's i don't thing big issue. But majar thing on the basic of your data in internal table (you can say how many row can be printed in first and so on page).
I haven't done this yet , quite sure it will help you.
Regards
Swati namdeo -
Hai,
i have a doubt in smartforms 'if u want to change the address in smartforms what can i do? is there any event or not.
plz tell me.
Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PMhi reddy,
It seems like you are using an address node, and not a free-form text node with explicit address fields, which was the way things used to be done in SAPscript. This is good. The key strength in address nodes is the standardized way they rely upon address numbers and a few other key pieces of information to format addresses properly and consistently. However, a minor negative is that we lose some of the fine-tuned control available to us with explicit address formatting from SAPscript (e.g. deliberately suppressing certain lines).
Here is a simple test to simulate how a vendor address will look on output:
Go to vendor display (transaction FK03)
Select a vendor
Click on the address option under 'General data' and press enter
On the next screen, click the 'print preview' icon
The address which appears should resemble the one you see on your Smart Form output. From here you can click on the 'change parameters' icon to tweak the settings. One of these settings, maximum number of lines, is something which you have control over in your Smart Form's address node. Perhaps reducing this number will squeeze out the blank lines you currently see. Once you determine the proper value, update it within your form's address node. If the address appears fine in vendor display, but not on your form, double-check the address node to see if something else might be wrong with it (e.g. sending country).
regards
karthik
<REMOVED BY MODERATOR>
Incidentally, the 'print preview' and 'change parameters' icons are available for other address types in SAP as well. They provide a quick diagnostic to determine if addresses are printing correctly on a form
Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM -
HI Experts,
I have one doubts in smartforms, i m using two SELECT SINGLE statement first SELECT SINGLE is working properly, i m getting employee name but second SELECT SINGLE is provide dump error,
i m providing below my se38 code for ur help. Plz help me as soon as possible.
TABLES: PERNR, PA0000, PA0001, PA0006.
*INFOTYPES: 0000, 0001, 0006.
DATA: V_FORMNAME TYPE TDSFNAME VALUE 'ZWARN_LETTER',
v_fmname type rs38l_fnam.
SELECTION-SCREEN BEGIN OF BLOCK SAN WITH FRAME TITLE Title.
PARAMETERS: EMPNO TYPE PA0000-PERNR OBLIGATORY.
SELECTION-SCREEN END OF BLOCK SAN.
DATA: ENAME LIKE PA0001-ENAME, " EMPLOYEE NAME.
STRAS LIKE PA0006-STRAS,
ORT01 LIKE PA0006-ORT01,
ORT02 LIKE PA0006-ORT02,
PSTLZ LIKE PA0006-PSTLZ,
LOCAT LIKE PA0006-LOCAT.
DATA: BEGIN OF ITAB OCCURS 0,
ENAME LIKE PA0001-ENAME, " EMPLOYEE NAME.
STRAS LIKE PA0006-STRAS,
ORT01 LIKE PA0006-ORT01,
ORT02 LIKE PA0006-ORT02,
PSTLZ LIKE PA0006-PSTLZ,
LOCAT LIKE PA0006-LOCAT.
DATA: END OF ITAB.
*SELECT SINGLE PERNR INTO ITAB-EMPNO FROM PA0000 WHERE PERNR = EMPNO.
SELECT SINGLE ENAME INTO ITAB-ENAME FROM PA0001 WHERE PERNR = EMPNO.
SELECT SINGLE STRAS FROM PA0006 INTO (ITAB-STRAS) WHERE PERNR = EMPNO .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = v_formname
IMPORTING
FM_NAME = v_fmname
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 V_FMNAME
EXPORTING
ENAME = ITAB-ENAME.
STRAS = ITAB-STRAS.
ORT01 = ITAB-ORT01.
ORT02 = ITAB-ORT02.
PSTLZ = ITAB-PSTLZ.
LOCAT = ITAB-LOCAT.
Regards,
SwapnikaHI,
In FM
CALL FUNCTION V_FMNAME
EXPORTING
ENAME = ITAB-ENAME.
STRAS = ITAB-STRAS.
ORT01 = ITAB-ORT01.
ORT02 = ITAB-ORT02.
PSTLZ = ITAB-PSTLZ.
LOCAT = ITAB-LOCAT.
Here ITAB is the Internal table. So we can't directly pass internal table values.
Try like this,
just change the declarations.
data : itab-ename type table value,
itab-stras type table value.
Select statements.
call FM -
Hi,
Guys i have a doubt in smartforms.i.e .i want to change the format of date within smartform not in print program.
I am getting dates trrough internal table in 9 character long .i want to change the date 16 character.i.e. 20 December 2005 like this.
In table structure 9 character only.so,i want to format date like this.
Inside smartforms where to write code for call FM and formatting and all?
If i call FM inside smartforms it'll work? .that means where i have to call and format? Please help me..
Regards,
Nandha..HI,
you can write the code as you want in the Smartform,
Just create <b>Program lines</b> then call the Function module, so you input will be 9 character field and the output will be 16 Character field.
In the Program lines window, just give Input Parameter is 9 character field and the output parameter is 16 Character field, so this 16 Character field will be available for you in the Smartform, so you can use this and Print this anywhere
Hope you got it..
Regards
Sudheer
Maybe you are looking for
-
ICloud email is not working in Safari
Consistently getting popup message: "Cannot load Inbox". Messages cannot be dispalyed at thei time." This is happening for a couple of hours. APPLE, let's get this fixed. It is a problem with iCloud or Safari, not sure which. No longer able to reset
-
E-Business Suite Integration with Oracle Business Intelligence
Hi, To integrate E-Business Suite with Oracle Business Intelligence I have done all the configurations as specified in DocId. *552735.1* of Metalink. I have tested the configurations by logging in from EBS and navigating to OBIEE Presentation Service
-
MAnaging Dreamweaver and fireworks
Hi Folks I am having trouble managing my site. I created it in fireworks and have a placed a slice to receive my dynamic content using dreamweaver. However whne I republish any changes to the layout in fireworks I have to go in and handcraft the code
-
I've been using Zenwork for many years but just started a company wide design to use Zenworks Server management, primarily T.E.D. System overview: Windows 2003 SP2 – eDir 8.7.3.9 – Zenworks Desktop Management 7.01 HP3 – Zenworks Server Management 7.0
-
Hi all, I have created a variable with some code in CMOD for checking if the choosen value is allowed according to our logical rules. If wrong value is choosed, a warningmessage is displayed and it´s not possible to run the report. The problem occurs