Sub total in smart forms
how to calculate sub total in smartforms
give step by step
mak
Check out the below related thread .... Hope it helps
total and subtotal in smartform
HI SUBTOTAL IN SMARTFORM
Hi can any one help subtotal in SMARTFORM with sample steps&code
Regards,
Santosh
Similar Messages
-
Urgent : how to calculate sub total and grand total in smart forms
Hi Friens..how to calculate sub total and grand total in smart forms..How to print them in smart forms...Also kindly explain how to handle events in smart forms..Thanks in advance
Re: Subtotal with Table Node in smartforms
-
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 -
How can i print the serial no: and total in smart form?
how can i print the serial no: and total in smart form?
i have two fields Quantity and Price; so i want to display the total for each item and
atlast the grand total. also the serial no: for each line item.
how it is possible?Hi
You can do it by two ways
By making table node or by making simple loop node
ex
loop node
command line node
total = total + itab-quantity.
text node
&total&
Regards
Aditya -
Hi i have a requirement where i have to do total for a group of records based on the order number which are displayed in the table.
Could you sugest how do i go ahead, as i have written the code for Sub total and it works extremely fine but the problem is that i have used the text fields in the table format and it works but the problem is that the heading keeps on getting repeated for each record which i dont need.
So to aviod this i took a table but this does not support the sub totals.
Could you please suggest a way to acheive this.
Thanks
Phani Kumar PHi!
make the grandtotal fielf in the layout and it should be in a one subform.
click in the field for which the grandtotal is there and then up where you can see different options like EDIT,VIEW like that BELOW THERE YOU CAN SEE : SHOW and a list box displaying events select Events with Scripts click on language as java script and RUN AT client
and add the java script code there
sum(data.Table1.Group1.Row1[].PRICE[])
this will give the grandtotal as well.
Try it will work.
Regards. -
Sub page total in the smart forms
Hi Experts
I am facing page total problem in smartform. In my first page sub total adding only first line item amount of second page and it keeps going on every page further i.e. always next page first line item amount is getting added and therefore in every page, page total comes wrong. I am not able to find out the error.
plse help me .. many thanks in advance.
with regards
aaryaahi
input parameters output parameter s
W_NET_PRICE W_CAARY_FWD
IS_BIL_INVOICE GS_IT_PRICE
V_NETAMOUNT GS_IT_GEN_W
W_NET_PRICE
w_net_price = w_net_price + v_netamount. -
Smart form: how to display two total amount in footer
hi, In smart form i trying to dispaly carry forward total and page total in footer, the first statment
of the footer only displaying, next one not displaying. But each page in footer i have to dispaly both carry forward total and page total. how to do this?Hi ,
This is a tricky solution.
Split the footer into two.
i.e create two windows with the property of footer.
Now use the first window to display a result and second window to display the next result.
This will surely work .
Just take care of the formatting.
Regards,
K.SIbi -
GRAND TOTAL SOULD BE DISPLAYED ON THE LOST PAGE OF THE SMART FORM
Hi friend,
i calculated the grand total value in my smart form, i want to display it in a smartforms lost page only can any one help me pls.
In my footer i gave the grand total in a separate line type and condition i gave only before end of main window check box activated but in every pages i got the grand total value.
kindly any one help me to accuire the exact value.
Thanks .
M.S.Amirtharaj Vijay.HI Vijay,
What Sowmya said is correct
check the table SFSY
and PAGENO holds current page no
FORMPAGES holds all page numbers
Check the condition like
SFYS-FORMPAGES > SFSY-PAGENO
or
SFYS-PAGENO > SFSY-FORMPAGES
any of above condition will work
Thanks
Surendra -
Totaling Different Currencies in Smart Forms
Hi Experts,
I am able to print smart form in the form of table ,
Country | Employee No. |Visa Type |Amount| Currency
USA 1 B1 500 USD
USA 1 L1 200 USD
UK 1 WP 100 GBP
UK 1 BV 500 GBP
NL 1 BV 500 EUR
DK 1 BV 100 EUR
But I want to sum up differnet currencies total wise.
Please advice.
Regards,
IFFIFF,
can you not create program line in Smartforms and use
At end of for summing up?
Amit. -
Smart Forms : Total pages greater than 9 printing as *
Hi All,
I have one Smart form having 10 pages.
If the Total pages more than 9 pages its showing as page 9 of * .
but If total pages are less than 10 then its is coming properly as Page 1 of 9.
[Smart Forms Total number pages more than 9 print ing as *;
I have also check this thread and use &SFSY-FORMPAGES(3ZC)& But in this case it is coming page 1 of 01
Please help.
Thanks
GauravDefine the window containing this text as a "late processing window" (General attributes, Window type set to "L Final Window")
(For 46c/46d this option did not exist, there was a solution described in [Note 359009 - Postprocessing and query of the total number of pages|https://service.sap.com/sap/support/notes/359009] for older versions [Note 588352 - '*' when you output the total number of pages|https://service.sap.com/sap/support/notes/588352] suggested to "reserve sufficient space for the number of pages by specifying an explicit length in the formatting options")
Regards,
Raymond -
Hi guru's in SMART FORMS how i can get subtotals , and page totals
hi guru's in SMART FORMS how i can get subtotals , and page totals plz help me
Hi
check this
Subtotals - Check the link...
<b>Re: Subtotal with Table Node in smartforms can use the PROGRAM LINES node to calculate the page totals in Table node.
Table Node has three sections:
Header: (Triggered once in the beginning of a page)
Create a Program lines node to reset the value of TOTAL to 0.
Main Area (For each row of internal table)
Create a Program lines node to add the Value to TOTAL
Footer (Triggered once in the End of a page)
Display the TOTAL
Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.
2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters
Regards
Anji -
Smart forms not displaying result from sub routine
I am working on a smart form and need to display the description of the fabric code. Under Form Routines, I create a sub routine
FORM fcc_values USING gv_fabrictext.
which is supposed to store the description in gv_fabrictext. GV_FABRICTEXT has been declared in global data as char64. Then I call prior to displaying my table as
perform fcc_values using gv_fabrictext.
And then insert the field &gv_fabrictext& in cell but this does not display any result
I know for sure that this sub routine works as I have tested it separately as a test program. Any ideas?1. put break point at ssf_function madulename and check field value.
or
2 fm_name export parameter ur not mentioned
or
3 global variable not defined properly
go through above. still if u didnt get
need program where the problem to find.
Message was edited by:
Deepa KN -
Problem with printing the sub totals
Hi,
I am having a problem with smart forms in printing the line items of invoice.
I need to print the sub total of each page and need to display the sub total in the footer, with the caption 'Balance C f/w'. It works fine in some cases.
In some cases, the sub total is getting printed wrongly, because its adding the amount of the next page's first line item also. I checked the form page by printing SFSY-PAGE along with the line item's text. It's observed that, the vlaue of SFSY-PAGE for the first line item's displayed in the second page is '1'. Due to this, the amount for this line item also is getting calculated with the sub total of the previous page.
Could you please suggest a solution for this problem?
Thanks & Regards,
JohnHi,
In smartforms, in the general attributes of the FIRST page the Mode for the page counter should be 'Initialize counter' and for the NEXT page it should be 'Increase counter'.
Please check this in your smartform.
Regards,
Ram -
hi
how to add sub total in SAP Script using subroutineSAPscripts How to calculate Totals and Subtotals
I have some doubs in BDC and SMART FORMS. I want to change the material number using the transaction code MM02 through BDC.
In scripts and smartforms how to calculate totals and subtotals?
To calculate totals and sub totals in sap scripts you have to use subroutines.
Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
/: DEFINE &TOT_PRICE&
/: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
Then write the variable where ever you want it to be printed (mostly it will be in footer window)
Then create subroutine pool program and you have to write the code.
FORM F_GET_PRICE tables int_cond structure itcsy
outt_cond structure itcsy. data : value type kbert.
statics value1 type kbert.
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
I have given a rough outline, please be aware of the variable conversions as Int_cond-value and outt_cond-value are characters. -
Short dump when I do total or sub total in the ALV report
Hi,
When I do total or sub-total on the currency field in the ALV report, it'll give a short dump like
" The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X)".
Short text of error message:
Technical information about the message:
Message classe...... "0K"
Number.............. 000
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
Variable 3.......... " "
Variable 4.......... " "
Trigger Location of Runtime Error
Program SAPLSLVC
Include LSLVCF36
Row 2,726
Module type (FORM)
Module Name FILL_DATA_TABLE
sometime when I do the page down on the ALV report, the same short dump is coming.
Can anyone help me out.
Thanks
SelvaHi,
I'm getting this short dump in the standard program.
I'm getting ALV report display perfectly. the problem is, when I do total or subtotal on the currency fields.
2704
2705 ************************************
2706 * Column per Fieldcat Entry
2707 ************************************
2708 ls_lvc_data-value = space.
2709 clear ls_lvc_data-style.
2710 loop at it_fcat_local assigning <ls_fcat>
2711 where tech ne 'X' and no_out ne 'X'.
2712 if l_invisible eq 'X'.
2713 clear l_invisible.
2714 if <ls_fcat>-do_sum is initial.
2715 continue.
2716 else.
2717 clear ls_lvc_data-col_pos.
2718 endif.
2719 endif.
2720
2721 add 1 to ls_lvc_data-col_pos.
2722
2723 assign component <ls_fcat>-fieldname
2724 of structure <ls_data> to <l_field_value>.
2725 if sy-subrc ne 0.
>>>>> message x000(0k).
2727 endif.
2728
in this standard program, I'm getting the dump. the line is mentioned above in the code.
Maybe you are looking for
-
Jxl -need help to solve error generated while using createWorkbook() method
I need to copy a template excel file(template will hold the file name) to another new generated excel file (book.xls). And I was trying this, - FileInputStream fis = new FileInputStream(template); jxl.Workbook jwbook = Workbook.getWorkbook(fis); Shee
-
Sclaing issues in Illustrator CS4
When I try to scale items, text etc in proportion while holding down the shift key it doesn't work. Is there some preference that needs ticking or other obvious solution to this (other than using the scale tool in the menu bar, which works fine) Than
-
Can we read a ZIP file through ESB file adapter?
Hi, Is it possible to read a ZIP file from a specified locaiton either through a FTP adapter or file adapter as a opaque element and place it in another specified locaiton? So far the available options are to read a txt, csv, fixed length or cobol fi
-
Transaction Lauch returns a blank page
Hi, we have a problem with Transaction Launch. In the Webgui of CRM 7.0 we use transaction launch to start some transactions from other systems like ERP. Clicking a link of WebGUI we could start the launching. But we got only a blank page. But if we
-
VPD (Row Level Security) Implementation at Middle Layer
Hi All, Is there any provison to implement Row Level Security at the Entity Object level? We have a table where in some rows need to be displayed based on the user logged in. We are aware of the VPD implementation using a function and adding a policy