Smart form-setting dynamic window height
Hi all,
I am new to smart-forms.My requirement is the set the height of the window to dyamic.How do I do that ?
Your ideas are appreciated and will be rewarded.
Thanks,
Stock.
Hi,
You can't keep the Window Height dynamic in Smartforms. It's not possible.
Regards,
Anji
Similar Messages
-
Hi all,
Can it be possible to display Smart Form in another window rather than main screen (screen of report calling to that smart form).
please let me know.
regards,
vikas.TO call a Smartform, we have to call its corresponding F/M.
Here what you can do is, before calling this F/M, set a custom screen and Call that screen first. (say, Call Screen 9000)
Then in the PBO of that screen 9000, call the Smartform F/M.
Do let me know if this worked for you.
Pranjal.
Edited by: Pranjal Gadkari on Apr 24, 2008 9:48 AM -
Smart forms-copies&final windows
hi! please give me info on copies and final windows in smart forms with examples if possible.
Hi,
<b>Copies Window</b>
Use
You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.
Prerequisites
You use this window type only if you want to print copies of your form. In the spool dialog in the Number input field of the Copies group box enter the number of copies (including the original).
Features
You can determine where to print the inferior nodes of a copies window:
Both on the original and on the copies ( Original and Copies )
Only on the original ( Only Original )
Only on the copies ( Only Copies )
You can use the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 to query whether the current output is the original or, respectively, which number the copy has.
Extras
You frequently print a graphic on the copies to flag them as copies. If, independent of the copy, the graphic is always the same, SAP Smart Forms can buffer the graphic before printing the page and thus increase performance. To do this, you must flag the copies window accordingly:
If you mark Identical Copies SAP Smart Forms buffers the output to increase performance. Within such a window, any queries of the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 have no effects.
If you mark Different Copies SAP Smart Forms generates the contents again for each copy. You use this option if, for example, you want to number your copies consecutively (Copy 1, Copy 2, Copy 3, and so on).
<b>Final Window</b>
Use
You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.
In such a case, you use the final window: Processing first skips all windows of this type in the tree and works its way to the end of the tree. Only after the actual processing is finished, the final windows are processed in the order in which they appear in the tree (from top to bottom). Now any information is available that is known only at the end of the form processing.
Integration
As of Release 6.10 you can set this window type using a radio button on the General Attributes tab. For Releases 4.6C and 4.6D you must first upload a Support Package. Selection of this window type differs for these releases. For more information, refer to Note 359009 in SAPNet.
Activities
Create a window.
To set the window type, use the Window Type list box on the General Attributes tab.
For further details refere the smart form documentation...
http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
Thanks and Regards,
Bharat Kumar Reddy.V -
Skillbuilders Modal Page Plugin - Help in setting Modal window height/width
Hello Apex Experts,
I have downloaded the Skillbuilders Modal Page Plugin. I have tried to implement the same but my modal window is not showing correctly. I can see all the fields and scroll bar. I also tried to set the initial height/width settings but no luck.
Can anyone help me?
Your help would be appreciated.
FYI: I'm using Apex v4.2 on Google Chrome.
Many Thanks,
BhavinBhavin,
Go into the setting in the Shared Components for the plug-in and change the theme from custom to a number (1-5). Also, make sure to read this:
http://www.danielmcghan.us/2011/08/new-browser-security-attributes-in-apex.html
Regards,
Dan
blog: http://DanielMcghan.us/
work: http://SkillBuilders.com/APEX/ -
Hi
am new in abap .am tin smart forms am trying drag and drop the fields .but it is giving the problem .is there any settings to drag and drop the fields. In smart forms. Is any other way pls give me a solution.hi,
why dont u give the filed names at the text elements level.use the text element.if u are creating templete or text whatever give the field names at text elament.then u wont get any problem.
Thanks,
Madhukar -
**To branch to a new page in Smart forms after main window**
I have three pages where on second pages main window so my data many be carry on next 3, 4, pages and my requirement is to display data(like notes ) on last page after all contain of main window .that last third page is different formatting on basis of company code lets 10 different pages. On second page in main window I write u2018commandu2019 and General Attributes, Tick Go to new page in. On the Determine the new page using the list box next to the checkbox. The output of the main window will continues on the new page of third pages. I did this for my all company like (command for 10 , command for 11u2026.).BUT also on second page option of next page in General Attributes. Where in can maintain next pages entry is single...if I put blank the error comesu2026thingu2019s 1) what should I have to maintain in second page for next page.
2) how I get data from multiple page design (I design 10 pages from that I want one should display):- I used condition option in command for company still getting error .
So kindly help me for such scenario.
Edited by: nshahare on Aug 5, 2011 4:07 PMHi nshahare ,
Format the way you have asked the question, It is highly unclear what issue you are facing.
Be clear, be cool and then post(edit) the question again. we are here to help you.
BR
Dep -
Smart Forms - Set decimal places in display formatting
Hello,
i have a variable (quantity 15 field with 3 decimal places) which i want to print via smartforms.
sap help describes that you have to set (.<number>)
for example: &field(.2)& to do that.
this doesn t work at all.
Does anybody know how you can do that?
I would appreciate an answer, because that costs me already alot of time.
thanks alot!
JasminHi Jasmin,
We use this notation in a smartform to print weights and it works fine. Perhaps you should also mention the total numbers to display before the decimal?
We have used: &BRGEW(8.0)&
Regards,
John. -
Smart forms - Dynamic sizing of the windows.
Hi gurus, iam working on smartforms, i have a problem.
My requirement is: Printing a table data on the smart form. Is the window which prints this table data is resized with the amount of table data, if so, what is the procedure i should follow for to print this data in the window.
Please give me the steps to go with the above issue. iam new to smartforms. what is the size of the window i should give in the Form painter and what all the attributes i should declare.
Plz give a detailed explanation..
Regards,
chaitanyaHi Chaitanya.
I would like to suggest a few references,
[SDN - Reference for Smart form - setting dynamic window height |Smart form-setting dynamic window height;
[SDN Library - Standard Reference - Dynamic Window Height - SMARTFORM Tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef]
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
What does mean You can include static and dynamic tables into a Smart Form?
Hi guys,
If you check the official documentation for Smart forms in the Internet you will read that the initial pharagraphs of the text tell you "Tables - You can include static and dynamic tables into a Smart Form. Dynamic tables enable you to display tables whose size is determined only at the moment of their output by the number of the table items to be displayed". The link is the following: http://help.sap.com/saphelp_nw04/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
I was wondering if this means that I can use field symbols with dynamical number of columns to print a smart form. Because it would be great since the customer wanted a dynamical report depending on the week day it was (If Monday, there was only 12 columns, but if Friday, it will be 52 columns (1 column more for every day elapsed in the current week)). I had to create 5 different forms, but I think using field symbols I had spent less effort. Do you know if it is really possible? If not, then what does mean "You can include static and dynamic tables into a Smart Form"?
Thank you in advanceHi ,
The concept of static and dynamic tables in smartforms, means you can use template- ( static table as no of rows and columns is fixed). Also you can use table- dynamic as the no of rows will depend on your line items.
Hope this will help you to close this thread.
Also, try to find this answer in posted forums. Creating a new forum everytime just increases the network traffic. So please try to avoid it.
Regards,
Vinit -
How to assign standard texts assign dynamically to smart forms
Dear Experts
I need your help in adjusting the smart form texts dynamically. I will explain you the situation please revert me your valuable answers.
1. I am integrating 12 smart forms using same program.
2. Out of 12 smart forms 4 forms are having similar kind of template. Client is requesting like create one smart form template.
3. By creating the standard texts you can assign the standard texts into smart form during runtime dynamically.
4. Maintain all standard texts for smart forms in another custom table, during run time of the program you can assign the standard texts to smart form.
5. Here my question is how to assign the standard texts to template texts dynamically ?
Please revert me your suggessions.
Thanks for your support.Hi Indra neel ,
You are maintaining all the standard texts in custom table right, u need to get standard text based on condition which works for your smartform
than create text module in smartforms and change that to include text and give the variable name or internal tbale with field name in that text name fields and press (>) button and give the remaining fields in that than that will work dynamically -
Hi
Please clarify me regarding smart forms background logo. I'm trying to migrate sap script into smart forms, for the background logo in smart form is it required to write ABAP code, please let me know?
2) Is it possible for background pictures in script? Is there any document regarding logo/pictures in sap script or smartforms? is there standard forms like purchase order etc., in smart forms? Please correct me If i'm wrong...
Regards
sree reddyHi
Background LOGOS are possible only in smartforms not in Scripts
see the logo printing for Scripts and Smartforms and the important smartforms and scripts with their programs
SAP SCRIPT
To create a logo in SAP printouts just do the following
1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.
2. Run program RSTXLDMC and enter the following parameters
Enter file name C:\COMPLOGO.TIF
UOM CM
Line width for text 132
Text name ZHEX-MACRO-COMPLOGO
Text ID ST
Text language = E
Number of Tiff gray levels (2,4,9) 2
3. Then Create a new window 'COMP' with attributes;
Window COMP description Company Logo
Left margin 7.00 CH window width 10.00 CH
Upper margin LN window height 8.00 LN
Finally in the text element, mention
/: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
Please note that if object name is not indicated as 'ZHEX... the logo may not be printed!
You will not be able to see the logo in a test print. The same will be printed in actual printout.
SMARTFORM
1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
4) Select any picture and set its Resolution in DPI
5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
6) Set any other parameters if required, save and activate.
7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
8) Use TCode SE78 to upload new pictures and logos.
look at Thread Dynamic Graph in smartforms
Refer the links also -
Re: Dinamic Graph in smartforms
How to get file perperties in Unix server
SD
SALES ORDER/ENQUIRY/QUOTATION
Output type : BA00
ScriptForm Name : RVORDER01
Driver Program Name : RVADOR01
smartform name
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
MM
PUCHASE ORDER/RFQ/CONTRACT
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
smartform driver program: /SMB40/FM06P
GOODS RECEIPT
Output type : WE01
ScriptForm Name : WESCHEINVERS1
smartform name : /SMB40/MMGR1_A
smartform driver program: /SMB40/M07DR
GOODS ISSUE
Output type : WA01
ScriptForm Name : WA_SCHEINVERS1
smartform name : /SMB40/MMGI1_A
smartform driver program: /SMB40/M07DR
FI Forms
Account Statement : F140_ACC_STAT_01
Cheque Printing : F110_PRENUM_CHEK
Balance Confirmation: F130_confirm_01
Dunning Form: F150_DUNN_01
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
SMARTFORMS -Driver Program
PO: /SMB40/FM06P
SO: /SMB40/RVADOR01
GR: /SMB40/M07DR
Reward if useful
regards
Anji -
hi,
i have one logo and i want to insert that logo into the smart forms
so can u suggest me the steps to insert that logo in smart forms.
regards,
kamalHi
SAP SCRIPT
To create a logo in SAP printouts just do the following
1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.
2. Run program RSTXLDMC and enter the following parameters
Enter file name C:\COMPLOGO.TIF
UOM CM
Line width for text 132
Text name ZHEX-MACRO-COMPLOGO
Text ID ST
Text language = E
Number of Tiff gray levels (2,4,9) 2
3. Then Create a new window 'COMP' with attributes;
Window COMP description Company Logo
Left margin 7.00 CH window width 10.00 CH
Upper margin LN window height 8.00 LN
Finally in the text element, mention
/: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
Please note that if object name is not indicated as 'ZHEX... the logo may not be printed!
You will not be able to see the logo in a test print. The same will be printed in actual printout.
SMARTFORM
1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
4) Select any picture and set its Resolution in DPI
5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
6) Set any other parameters if required, save and activate.
7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
8) Use TCode SE78 to upload new pictures and logos.
look at Thread Dynamic Graph in smartforms
Refer the links also -
Re: Dinamic Graph in smartforms
How to get file perperties in Unix server
Regards
Anji -
How do we write the sub routines in smart forms?
1) How do we write the sub routines in smart forms?
2) What is the form interface in smart forms?
3) Write down the path for writing for select queries in smart forms?
4) How do we put dynamic page break in smart forms?
5) in which system field contain the total page number of all forms in the currently processed print request in smart forms?
6) What is the name of function module used to calling smart forms?
1) What is the functionality of function module controal_form?
2) How do we print the system date in this format 15th Jan 2008 on scripts?
3) What r the various print modes available in scripts?
4) What is the tcode for text element?
5) How do we draw horizontal line in scripts?
6) How can we suppress the leading zeros for a field in scripts?
7) In which system field is used to print current no page in scripts?
Which f.m is used to reads text in sap scripts1) How do we write the sub routines in smart forms?
after opening form see global definitions
click on that there one tab called form routines inthat you can write subroutines logic.
You can call in program lines .
2) What is the form interface in smart forms?
It is an interface between program and form .
like function module we provide import,export,tables,exceptions
Based on import and export parameters form will display for us.
3) Write down the path for writing for select queries in smart forms?
On window give right click in that command->programlines
you can write all select statements.
4) How do we put dynamic page break in smart forms?
you can define break point using break-point<>. syntax.
5) in which system field contain the total page number of all forms in the currently processed print request in smart forms?
SFSY-PAGE
SFSY-JOBPAGES
6) What is the name of function module used to calling smart forms?
SSF_FUNCTION_MODULE_NAME
=================
1) What is the functionality of function module control_form?
This function module is used to insert SAPScript control commands like NEW-PAGE etc from whithin the ABAP program.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND =
EXCEPTIONS
UNOPENED = 1
OTHERS = 3
IF SY-SUBRC NE 0.
MESSAGE ...
ENDIF.
2) How do we print the system date in this format 15th Jan 2008 on scripts?
Use SET DATE MASK to change format of date display.
3) What r the various print modes available in scripts?
4) What is the tcode for text element?
se91
5) How do we draw horizontal line in scripts?
&ULINE&
6) How can we suppress the leading zeros for a field in scripts?
&it_vbak-vbeln(Z)&
7) In which system field is used to print current no page in scripts?
&SYST-PAGE& of &SYST-FORMPAGES&
Which f.m is used to reads text in sap scripts
READ_TEXT functiomodule.
Reward points -
Suppress leading spaces while displaying an amount field in a Smart form
Hi all,
In a smart form, I am using fields like KONV-kbetr and VBAP-netwr each of them currency type and 2 decimal places. I want to suppress the decimal places and also the leading spaces while displaying these fields in a smartform cause when this field is inserted in a sentence, a lot of gap is there between the field and the words of the sentence. I dont want to change the field length cause it can be that huge in some cases.
Please help.
Thanks ,Hi, if you would place it in a sentence, it would be an option to concatenate the text and values into one string and then condense it.
concatenate <text> <value> into lv_sentence.
condense lv_sentence.
but another way is to use codes for displaying values in smartforms:
This is from a smartforms PDF i have..
Output Options for Field Contents
Use the Formatting options to adapt the value of a field before printing it. You can enter the
relevant parameters directly behind the field name. Make sure to write the short forms of the
different options in uppercase letters. Some of the options can be combined.
General Information
The formatting options are not suited for all data types of fields (for example, for character fields
you need no exponential representation). You must distinguish between numeric fields and
character fields.
Numeric Fields
If specified, the system first evaluates the length (<length>).
If no length is specified, the system displays the value in its overall length.
The trailing blank indicates a positive sign. To suppress it, use formatting option S.
Any offset <offset> specified is ignored.
Sequence of evaluation: (<length>), sign to the left(<),Japanese date (L), suppress blanks (C),
right-justified display (R), insert fillers (F).
Character Fields
By default, the system displays the value of a field in its overall length, but truncates trailing
blanks.
Sequence of evaluation: suppress blanks (C), <offset> and (<length>), right-justified display (R),
insert fillers (F).
Overview
Formatting Options for Fields
Syntax Description
&field+<offset>& Skips <offset> places of the field value (character fields only). If the
offset is greater than the length of the value, nothing is displayed.
&field(<length>)& Sets the output length to <length>.
&field(*)& If the field is defined by a Data Dictionary type, Smart Forms set the
output length to the value specified there.
&field(S)& Suppresses the sign
&field(<)& Displays the sign to the left of the number
&field(.<nat.number>)& Limits output of decimal places to <nat.number>
&field(E<nat.number>)& Displays the field value with the fixed exponent <nat.number>. The
mantissa is adapted to this exponent by shifting the decimal
character and inserting zeros.
SAP Smart Forms (BC-SRV-SCR) SAP AG
Output Options for Field Contents
72 April 2001
&field(T)& Suppresses thousand indicators when displaying fields of types
DEC, CURR, INT, and QUAN.
&field(Z)& Suppresses leading zeros of numbers
&field(I)& Suppresses display of initial values
&field(K)& Deactivates a conversion routine specified in the Data Dictionary.
&field(R)& Right-justified display. Use this option only when specifying an
output length as well.
&field(F<filler>)& Replaces left-justified blanks in the value by the fill character <filler>.
&field(L)& Converts and a date field to a local date and displays it. The date is
then formatted using edit mask JPDAT.
Since this representation uses Japanese characters, use it in the
Japanese version of the SAP System only.
&field(C)& The system takes the field value as a sequence of words separated
by blanks. Option C shifts these words to the left and leaves only
one blank inbetween as separator. Any leading blanks are
suppressed. This effect corresponds to that of the ABAP statement
CONDENSE. -
Hi all,
i want to print multiple purchase orders in smart form
i have two windows in smart form layout
header window and main window
in header i need to print few header details
and in main window i need to display correspoinding line items
I need every po to be start in new paper or new form
In driver se 38 program
I_header - contains all header info
i_lineitems - contains all item info ofPO'S
iam confused whether i have to call SSF_FUNCTION_MODULE_NAME
between loop of i_header .
like this
loop at i_header.
PERFORM SMARTFORM_FM.
endloop.
if this right how do you want me to pass the info to smart form
in form interface i would declare a table similar to item
and header info right i need only one row right?
FORM SMARTFORM_FM.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZTEST'
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
ENDFORM.
ThanksHi,
Yes you will have to call smartform function module inside the loop.
some what like this.
loop at header_itab in workarea say HEAD.
refresh and clear itab_export.
loop at items_itab
append these lines to itab_export which you will pass to smartform
end items_itab
now call smrtform function module
and pass head and table itab_export which you populated above
inside item loop.
endloop.
Hope this makes sense. let me know if need more details.
Enjoy SAP.
Pankaj Singh.
Maybe you are looking for
-
CSS file compiled into SWF...
Hello, I have a problem with all my css files in my Flex project. I need them to be compiled into SWF because its the only way to load and switch them at runtime. I use a ClassReference to a custom programmatic skin in the css file: skin: ClassRefere
-
BAPI_SALESORDER_CHANGE problem: change sold-to-party
Hi guys, I am having a problem with my current dev. I am using BAPI_SALESORDER_CHANGE to change the sold-to of a sales order. However, I am getting error message: "You cannot change entry in partner function XX". Can anyone help me on this? Thanks! j
-
Changing default open file location
Hi all, In Outlook 2010, is there anyway to change the default folder that is opened by explorer when you want to open any pst files? I have tried the registry changes listed in other forums but this only changes the default save location. I have man
-
The edges of my touch don't work
when I try to use the edges of the screen nothing happens. Why? Is there any way to fix that?
-
Do others need quicktime to play my movies?
Hi I have made my first video at home using my isight camera, emailed it to a friend but he couldnt watch it unless he had Quicktime. Is this normal? Cant he use windows media player? or some kind of equivelant? The video was done on a mac. Thanks fo