REGARDING TABLE FOOTER IN SMARTFORMS
hi
i hav to pritn 6 items in page1 and 13 items in page2 and so on.
but while calculating total for fields
if pages exceed more than one i hav to fill with constant value'total' for corresponing fields in table in all pages except in last page
in last page i hav to total all the values from page1 and so on and i hav to print in the last page in table footer.
how to do this?
and what code i hav to write and where i hav to write it?
wether in code lines for text or in initialization of global definitions?
Hi,
Another idea is to have a structure declared in the smartform with the same type of the table being displayed.
In the table body section in the end you can insert program lines to add the required fields in another structure or simply some fields ( declared again in global definitions ) passing the table line data just got processed.
Then use the footer at page break option checked and the option footer at the end of table in the events tab of the table node.
And display the totals per page and also at the end of the table.
Hope this solves your problem.
Ram
Similar Messages
-
Formatting error in table footer in smartform
hi
in the footer of table in smartform currency field vbrp-cmpre and quantity field vbrp-fkimg are cuming with leading spaces as follows:
32.000 copies
@ Rs. 7.00=
2.24
this should come as :
32 copies @ Rs. 7 = 224
also the product of fkimg & cmpre is not coming correct.
kindly help.Points 'll b rewarded
thanks.
Message was edited by:
abapuserwrite as below
<b>&wa1-fkimg(c)& copies @ Rs &wa1-cmpre(c)&</b>
Please Close this thread.. when u r problem is solved
Reward if Helpful
Regards
Naresh Reddy K -
Regarding TABLE node -- Footer Area in smartform
Hi Friends,
This is regarding smartform.
I have created TABLE node in MAIN window. As long as data exists in internal table my smartform is working fine. I mean it is displaying all the items and followed by TABLE FOOTER text.
Assume if no data exists in the internal table. In that case the TABLE FOOTER text is moving up. But I need at least 10 line space in that table MAIN Area. I mean even thogh the data is not there in the internal table.. It should display some space and then TABLE FOOTER text should be displayed.
Can any body tell me is there any way the TABLE FOOTER can fix irrespective of the data?
This is very urgent. Thanks in advance.
Regards
RaghuFor that, you can create one additional window such that it overlaps with the main window.
The size of this window should be exactly equal to the size of the main window, excluding footer. That means footer should come just after this window.
If there are no data to be displayed in the main window, then this empty window will be displayed.
In effect, some blank lines will be shown.
Just try this and check whether it suffice your requirement...
Jissa. -
How to print grandtotal in table footer only in the last page in SMARTFORMS
Hello Experts,
How do I print the GRANDTOTAL in the table footer only on the LAST PAGE in SMARTFORMS.
What I have done is in the text element of CELL1 of the table footer i wrote the folowing logic but not working.
/: IF &SFSY-PAGE& EQ &SFSY-FORMPAGES&.
* V_SUM.
/: ENDIF.
I even tried this.
/: IF &NEXT-PAGE& EQ 0.
* V_SUM.
/: ENDIF.
but still it displays the grand total on all pages at table footer.
How do i go for this experts.
Regards,
Ranjith NHI Nambiar,
To print the grand total only on the last page then create the secondary window --> create the text node for the grand total -->In the condition tab check only after the end of the main window.
This grand total will be displayed after all the items and end of the main window.
Footer in the table displays as the subtotals i.e on every page total is displayed..
Regards,
Sravanthi -
Subtotal in Table Footer Appears in Body on the Next Page - Smartform
Hi experts,
I have a subtotal row in my table footer. It works find (appears correctly for each page). But when I check the body of the table, in page 2, there is a line with the subtotal amount from page 1, appearing in line 2. Do you guys know why does this happen and how to solve it?
Thanks,
SamHi Sam,
1. Can you cross check whether you have coded anything which will modify the internal table content with the subtotal value?
2. Did you keep any condition like printing the sub total at each new value for a particular field
(Eg: If there is a field f1 in your internal table with values a, a, a, b, b, b, d, d, d - is there any condition to print sub total when f1value changes from a to b or b to d ? )
Regards,
Swarna Munkoti. -
Table footer when page break in smartform
I put a table component into a loop control, and in the table footer, there are some texts in several lines and a command component.
the problem is that, when there's not enough space to print the whole table footer texts in one page, the extra part of will be output in the next 2 pages.
for example, I suppose there are 3 pages totally. and for the first page, it's all right about the main window. when there's no enough space, the footer is still output, the rest is printed on the 2nd page. but on the 3rd page, the footer texts in the 2nd page is output again and followed main windows on the 3rd page.
Could anyone help? Thank you in advance.Hi,
Create a folder for that window and set page protection.
Regards,
Prashant
Message was edited by:
Prashant Patil -
Table footer printed in next page without upper border line
Hi Experts
I am faceing a problem regarding printing of smartform. I have 2 tables under one LOOP control, TABLE2 and TABLE1 respectivelity. TABLE2 display the Header data and TABLE1 displays the Item data under Main window.
TABLE2 has no ROWs under table Footer section. TABLE1 has footer and I want to print the TABLE1 footer according to the page size, for that I have added a Folder under TABLE1 footer section and then create the line type under that Footer, also check the Page Protection check box. I manage to print the Footer in next page according to the page size but when the Footer goes to next page for printing the upper line border of Footer section is not dislayed.
Please give some tips or example, how to manage the Footer at print time.Hi,
Yes your problem is common because of two different line types while you are selecting the pattren the
pattern is assuming that the pattern is selected for the entire two line types.
solutions are
1). Use same line type for both footer and item
2). create a window with a template and copy the same for both the pages and put a check box
in the conditons of your window as only after end of main window.
3). Create windows with the lines you required with the postions(but not advisible because page numbers or line items lenghts are dynamic) .
Thanks,
Phani. -
In which table scripts and smartforms are stored
in which tables scripts and smartforms are stored
eg scripts in tadir.Hi this may be of some help.
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
with regards,
Hema Sundara.
pls give points if u find this helpful. -
Read_text no of line in a table footer
Hi Expert,
With the help of Read_Text FM we get many no of lines in internal table. I want to print these lines in Table footer at smart forms main window. But my problem is that itu2019s not printing all lines. Is there any limitation for no of lines in table footer?
Kindly let me know the limitation for no of lines in smart form footer.
Regard
SwatiHi all,
I tried some more on this and found its only print first 355 lines. Itu2019s wonu2019t print if no of lines 366, in such case program comes out from smart forms with out any error message.
Regards
Swati -
Passing an Internal table to the Smartform
Hi Experts,
I have build an internal table in the driver program with some (20 fields) now I need to pass the same internal table to Smartform as importing parameter or Tables Parameter so that I can use the table data for my further processing.
I have searched the forums and its look like I can't pass an Internal table to the smartform unless and until it is defined in the DDIC with the table types.
FYI...
I can't create the DDIC table type as it needs lot of approvals to get it created.
Please help me on how to proceed further.
Thanks in advance.
Regards,
SrinivasI can't create the DDIC table type as it needs lot of approvals to get it created.
It's a shame you need approval for this.
Anyway can you overcome this with field symbols:
- type parameter in Smartform FM with TYPE STANDARD TABLE (or INDEX/SORTED/HASHED - depending which one you use)
- pass your locally typed table
- in SF create the same data type
- declare field symbol with this type
- assign the table from the parameter to this field symbol - this way you can work with the table via field symbol as it would be of the table type
"in SF
TYPES: tt_my_type TYPE TABLE OF my_type..
FIELD-SYMBOLS <tab> TYPE tt_my_type .
"itab is parameter table
ASSIGN itab TO <tab>.
"now you can even address its components
<wa_tab>-field1 = ...
Although FM parameters in general should be typed with DDIC types only, this way you can cheat the system a little bit;)
Regards
Marcin -
How to find page subtotal in tables in a smartform?
Hi All,
Can anyone please help me how to find the page subtotal of any field thats populated in a table in a smartform?hi ,
for sub-totals create int.table and work area of type your required db.table and go through the below steps.
1. mention the field in <b>Sort Criteria</b> (you can find in DATA tab inTABLE)based on which you want subtotal for another field.And check the check-boxes Event on SortBegin,Event on SortEnd.
2.then you will get 2 nodes with name of the field u have given.before and after main area. for ex.NTGEW Event on SortBegin
NTGEW Event on SortEnd
( for example you want subtotal based on the weight-wise i.eNTGEW and you want to add cases delivered i.e.LFIMG)
3.pass the data to subtotal internal table from int.table which contains item data or from datadbase. in main area
4.below the <b>NTGEW Event on SortEnd</b> node create one <b>loop</b> and under the loop create <b>programlines</b> there you have to write coding for subtotal like in reports,
loop at it_sub into wa_sub.
at end of <f>
sum.
endloop.
and then create one <b>TEXT</b> and give the variable for ex. &wa_sub-lfimg&(which contains subtotal value)
5.and dont forget you should refresh the int.table of subtotal below the <b>NTGEW Event on SortBegin</b> node.
for <b>totals</b> simply mention in the calculation tab.
regards,
rajkumar.
Message was edited by:
rajkumar -
Dot matrix printers Capable of printing TABLE lines In Smartforms
Hey guys,
we are using EPSON LX-300+ (dot matrix pritner)
but the problem is,
it is not able to print table lines present in a SMARTFORM..
it can print the same table lines presnet in SCRIPT ...
so i want to know,
all the dot matrix printers in the market...
that can print table lines in SMARTFORMS...
(pls suggest the DM printers u are using and dont have this problem..i.e unable to print table lines in SMARTFORMS)
thank you...Hi Sreesudha,
I have used three different line types for the main window.
LTYPE1(Header) : For printing the column heading along with the title for consignor address.
LTYPE2(Main Area) : For printing the line items detail. For the first line, I have to print Material Description and chapter Id and if the same material exists for the second line item, then it should not be printed, so I have written condition for not printing it.
LTYPE3(Footer) : For printing the footer with the net and gross weight details.
And for paragraph format, I have used the custom Para. Format only.
Suggest me ASAP.
Rgds,
JK -
Hello Guys,
Im just new in ABAP...and currently using smartforms . Im quite confuse in table width..
my report should be in legal size with 18 columns...dont know what is the exactly size for each column. I tried to use a table width of 300 MM..but once i preview the report..its just so small and the top and bottom size of each cell is large..so it looks like this :
Please give me some advice or technik on what to do:
99,99999
Thanks in advance
aVaDuDzHi
Go through the doc and handle the Table width/height in smartforms
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.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....</b>
<b>http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html</b>
Reward points if useful
Regards
Anji -
Good morning all of you, regarding table of
smartforms?
I have added a table for my smartform project and got the print preview of the table elements, data.
However I do not know how to do calculations on smartforms?
I want two fields to give a result and print also that.
What can be do more than just viewving the data?
Thanks all of you.
Deniz.Hi
Create PROGRAM lines and write the code for adding the 2 variables
see the doc related to smartforms creation and links
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.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
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
Reward points if useful
Regards
Anji -
How to increase the row height of the table in the smartform
Hi,
Can any one say,
How to increase the row height of the table in the smartform.
It is presently show the row width very small, i want to increase the row with of the table in the smartform.
Plase say how can we increase the row height in the smartform.Hi Ravi,
In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
Reward points if that Helps.
Manish
Maybe you are looking for
-
How do I consolidate multiple PDF pages into one iBook file ?
I have a big test coming up, and I have 600 practice questions saves as PDF's on my iMac. I tried downloading them through iTunes on my iPad, but it looks like they downloaded as 600 individual iBook files. Needless to say, it will waste a lot of t
-
How do i delete programs from my MacBook Pro
how do i delete programs from my MacBook Pro?
-
Performing operations on multiple arraylists - efficiently
If I have several items, let's say ArrayLists, is there an easy way to perform similar operations on them all in some sort of tidy loop? Example, instead of: arraylist1.dosomethingmethod(); arraylist1.myothermethod(); anotherarraylist.dosomethingmeth
-
Calling javascript function from applet
Can anyone pl help me with the syntax for calling a javascript function from applet. Thanx.
-
No matter what I do, the file extension names (i.e. jpg) show up in the contact sheet. Any way to eliminate them? I'm creating a grid for a gallery show and having the filename extensions added to the title of each image is cheesy.