One omre QUS in smartform
i want to include check box so the end user can mark person male or female
Hello,
Check this thread. It deals with ur problem.
Re: Subtotal with Table Node in smartforms
Regards,
Deepu.K
Similar Messages
-
REQUIRE One spool request for n copies in one print command in smartform
Hii Friends,
I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
Duplicate in second copy
Triplicate in third copy....n so on
So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
Note: By default sometimes it create one spool request and sometimes 3 spool request...
Pls share your inputs ............
Thanks,
Regards,
Sujit.hi,
this is more complicated see below description from help
regards,darek
Printing Several Forms in One Print Request
Use
You want to bundle several forms into one print job.
Print Request vs. Spool Request
SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
Whether a new spool job is created in the spool depends on the settings in the spool dialog.
Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
Procedure
Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
Result
The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ). -
Creating only one or several invoice smartforms for a global company
Hi,
I'd like to hear your thoughts how smartform development should be arranged for a global company. Let's take an invoice as an example.
A global company has several divisions, company codes, plants and sales organizations. Invoices are printed in different languages in several countries.
Of course it would be better to build exactly one smartform for everything, but on the other hand, the smartform would be extreme complex and difficult to maintain in future, since each company has slightly different requirements for the invoice. On the other hand, it doesn't make any sense to just keep on creating a new smartform for each country, since at the end you will have tens of almost identical smartforms which doesn't sound good either.
What is your experience--should one try to build exactly one smartform for all the company codes, or would it be better to create a new smartform for each company code? In general, I would say that the latter one is perhaps a better approach.
Thanks in advance for your thoughts,
Jarmo Tuominen
Edited by: Jarmo Tuominen on Mar 1, 2008 12:17 PMMy first thought was that it is better to maintain only one form for everything.
However, I am aware that there are also opposite opinions. They explain that creating one form for everything is not the best approach. Because of this, I would like to understand the reasons for that. Do others have any other point of views? -
Duplicate data in only one sheet in a smartform
Hi:
I have data to display in a smartform. The first half of the sheet have exactly the same of the second one. Do I have to program both sides, or there's any way to duplicate the information with only the first half of the sheet.
Any clue will be great.
Thanks.Keep this in main widow and create one more main window in the layout,i.e. you will be having two main window with same data.
Hope this helps.
Thanks,
vamshi -
SMARTFORMS - Calling one second window
Staff,
somebody knows as I make to include one second page in smartform, this second page will have different information of the first one, is trying informs to move it of income, in the first page the data go and in the other page it leaves images to protect the information when folding the letter. I copied the standard form and created a Z, the page with the data SAP already I disponibilizou, then I tried to include a page, but she only appears the first one.
Translated from the Portuguese and moved to the correct forum
Please remember that English is the language of the forums
Edited by: Rob Burbank on Feb 16, 2012 4:29 PMBoa tarde,
Not everyone speaks Portuguese so you might want to resubmit your question in English. -
How to print total stock in smartform by material wise
Dear Experts,
I am trying to print total material stock which is issued and receipt during entered date in a smartform ,Here I want to print totatl stock issued n receipt by material wise in seperate line .For that I fetch alldata and put into one internal table .In smartform I am using table for printing data.
Edited by: BharatRathod on Mar 8, 2010 11:43 AM
Edited by: BharatRathod on Mar 8, 2010 11:46 AMHi,
Try using the CALCULATIONS tab in the tables for printing the total stock in smartforms.
Regards,
Sharin. -
Getting Error of Runtime Exceeded while generating OTF for PDF in smartform.
Hi All,
I am getting a error of runtime exceeded while generating OTF file for PDF in smartform through FM. The report is taking too much time before giving the output...and most of the time going to dump saying report has exceeded the runtime. All is working well till the Smartform FM reached. I debugged this FM and found that the TABLES parameter is having problem, may be there are too many tables in that parameter.Please help. Below is the code-
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_form_name
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
CALL FUNCTION v_fm_name
EXPORTING
control_parameters = wa_control
output_options = wa_output
user_settings = 'X'
spl_gl = p_spl_gl
open_dt = p_budat
bukrs = p_bukrs
w_check = w_check
w_check1 = w_check1
IMPORTING
* document_output_info =
job_output_info = wa_otf
* job_output_options =
TABLES
kna1 = t_kna1
bsid_p = t_bsid_p
bsid = t_bsid
TEXT = t_text
spl = t_spl
bsid_x = t_bsid_x
bsid_l = t_bsid_l
bsid_h = t_bsid_h
bsid_q = t_bsid_q
bsid_tot = t_bsid_tot
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5Hi
Yes as Eltan says you need to consider there are two blocks of abap program:
- the first one is the driver program (but it seems there's no problem here because it called the smartform quickly)
- the second one is inside the smartform (It's possible to write abap routine in the smartform), and it seems the problem could be here
The variable c_form_name has the name of the smartform, you can manage it by transaction SMARTFORMS
but now it's not possible to say you why the print takes too long time, you need to do a trace
Max -
Transaction code to debugg smartforms
transaction code to debugg smartforms ? plz tell me
hi,
1.One way to debug smartform is to debug the Function Module of that smartforms.
2. If you want to debug particular smartform node that the solution is, insert a "Program Line" just above the node you want to debug and this program line write a normal abap break-point.So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
3) SFTRACE can be used for debugging SMARTFORMS.
Read More about SFTRACE here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Regards
Shameem. -
hi,
I want to include one standard text in smartform how cani do itFor long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above -
Smartform Problem in Displaying a string data
Hi Friends,
I am facing a problem while displaying a string data in smartform. Actually it is a one of the field's data in an internal table. It is a STRING field type of length 0. While populating in an internal table it is having a all the data(Around 700 char data). But while displaying in a smartform surprizingly only few characters(Around 225 char data). How can i overcome this problem?
Regards,
Sekhar.JHi
try this and see
Declare some Variables of 72 char each and split that long string data of internal table text field into them and display these variables strings one below other in smartform
var1 = itab-text+0(72)
var2 = itab-text+72(72)
var3 = itab-text+144(72)
like that
and display one below other in smartform.
&VAR1&
&VAR2&
&VAR3&
Reward points for useful Answers
Regards
Anji -
Smartforms : first page in landscape, others in portrait
Hi experts,
I have a problem with a Smartform printing. The first page is in landscape, as i have configured, but the others ones are in portrait.
I don't understand why. I have only one page in my Smartforms and i have put Landscape orientation.
Thankshi all,
I guess we can put this setting at the spool level by passing some attribute in the FM which is used to invoke Smartforms.
there will be a field for orientation which will help us in the same.
please let me know in case you dont find that. -
Barcode pritner issue in smartform printing
Dear Experts,
I have problem with barcode printing. I have only one page in my smartform and there is table in that. I need to print delivery number as barcode. I have writtern logic for that and its working fine. But when I print my output in BARCODING printer, the delivery number is printing as barcode properly but rest of all characters also printing as barcode. Every thing in the output is appearing as all barcodes. I can not see any data in the output all are barcodes only.
Could you please help me on this issues.
Thanks for your time,
Regards,
J.PSolved myself
-
Smartform Table Line types duplicate entries problem
Hi ,
I am getting one strange problem in Smartforms. i tried for information in SDN but i did not get any usefull ones.
I have created my main window with particular width. I created two different Line types. On particular condition i need use these line types.
First line item will have 6 columns in that one column is empty.
Second liitem will have 5 columns.
When i am generating the output, the last item data of the first line type is repeating twice, i.e with first line type and the second line type.
Can anyone give me the inputs to solve this.
Thanks,
Srinivas BhavanamDid you check SAP notes?
I don't understand what you get exactly:
For the last line of the internal table, you would like to get this:
A B C D E F
G H I J K
But you get that:
A B C D E F
A B C D E F
Did I understand correctly?
Did you use something special? (header, footer, conditions, ...) -
Regarding Smartforms printing - multiple pages
Hi Friends:
Please help me out on this query. I know how to make a smartform. I've made smartforms but the condition is that it triggers only one smartform. I've a requuirement that I've to trigger smartform for multiple vendors.The format of the smartform will be the same.Logo will be same. The address of the vendors will be changed.The line items in the main window will be changed.Footer will be constant. There will be a select option on the selection screen, which will select a range of the vendors.There will be some other parameters.I tried using loop, but every time it triggers one smartform & then again displays "print preview dialog box". I want all the smartforms to generate in one go.once the smartform for one vendor finishes, it should trigger a new one on the next page.Please help me out urgently.If anyone has a sample program, please send it to me.Reward points will be there.Hi,
Pass the select-option as a input to smartform.
Check this link.Here I am explaining how to do this.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
If you want to restrict print dialog box,you can achieve it by the following coding.
*& 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'.
Kindly reward points if it helps. -
Bill of lading smartform, Sap script
Can any one tell me the smartform/script for bill of Lading in SD
Thanks a lot.....
Sharath ChandraHi There is no special smartform for Bill of lading
You can use the same smartform for this which is used for delivery note
<b>LE_SHP_DELNOTE</b>
with little changes or
you can use the smartform
Z_VICS_BILL_OF_LADING
or you can use the script <b>RVDELNOTE</b> of delivery note
or use SD_SHIPMENT_CMR (driver program is ZRVADTR01)
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
Setting "reply-to" and "from" headers"?
Using mail.app in Snow Leopard - can someone advise how I can customize the mail headers? I use an email redirection service and publicize my "[email protected]" email address to all my friends. In reality, emails to this address get redirected to my
-
EP & XI on same server and same instance
Dear Experts, Can i use SAP EP and XI server on same host,SID and same instance number. I read old messages on SDN but need perfect answer. Regards, Vishal Borisa.
-
Issue with remote procedure calls
Hello, Within the stored procedure, I am calling a procedure remotely but the '@v_remote_db' variable does not resolve: begin for i in cur_database_list loop v_remote_db := i.database_name; p_trunc_remote_table@v_remote_db; <<<------does not resolve
-
2 week wait for serial number to CS6 (education) help please?
Hi, I need help with this! I really dont know what to do next! i bought a copy of CS6 (education) over two weeks ago, when it (disc) arrived next day I logged in, created an account and emailed off relevant proofs and numbers. Nothing, three days
-
Oracle HRMS Training in Hyderabad,India
Can any one give me details of ORacle HRMS training institutes in Hyderabad,India? raghu [email protected]