How to sum a field in smartform
hi experts,
i m new to smartform. i made a smartform in which i get the output in a tabular form......
i want to sum a field. how can i get the sum in the footer?
Hi
Welcome to SDN forum
see this and doa ccordingly
Subtotals - Check the link...
Re: Subtotal with Table Node in smartforms
You 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
<b>Reward points for useful Answers</b>
Regards
Anji
Similar Messages
-
How to add a field in smartforms
hello friends,
how to add a RFQ field in smartforms.
thx,
kiHi,
Pls check
Smartform
Eddy
PS.
Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d! -
Sum quantity field with 5 key fields
How to sum quantity field with 5 key fields
try this out.
loop at <itab>.
at new <field>.
sum.
endat.
endloop. -
How to add fields in smartform
Hi,
I would like to add some fields in standard smartform for outbound delivery ( VL03N ). Actually, I formatted smartform accourding to clent requirement. But I am not getting how to add some fields in that. Please, help me with any example.
Thanks ...Hi Manoj,
it depends: If the values for new fields are passed in any interface structures/tables, just add in the eight context.
If not, you must insert a Program lines node.
This tutorial may be helpful as your smartforms experience may be limited:
[SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
Regards,
Clemens -
How to sum + group bp line items per a specific field?
Hi,
I found out about the SYS Numeric Query Based data definition, allowing me to sum the line items of a BP according to certain conditions.
Now we have a more complex problem. We need to sum the line items of BP1 into the line items of BP2, grouping them by a given field. We know how to auto-create BPs on workflow events conditions, but we don't know how to sum the line items together.
Is there a workaround?
Thanks,
S.R.We do not currently support QBDEs on line items so there isn't a way to sum values from other line items onto a line item.
-
How to Handle Blank Field Value based Condition in SmartForms
Dear Sir,
In SMARTFORM , we need to define a Condition that incase Field Value is not equal to BLANK value (blank means that field is empty) then a specific text gets printed .
Our problem is that We do not know as how to define Empty Field Value based condition .
Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
Field Value R Comparision Value
WA_KZDKZ = 'X'
In our case , we need to give Blank (Empty Value) instead of 'X' .
Kindly help us pl .
Rgds
B MittalHi,
To handle blank field values in SMARTFORMS,
Go to the conditions tab in your SMARTFORM and give condition there
Field Comparision operator value
<Field name> <> Here symbol is diff space.
eg:
wa_mara-matnr =/ space.
Regards,
Santosh Kumar M. -
How can i avoid leading zeros for a field in smartform?
how can i avoid leading zeros for a field in smartform?
Hi,
Using the Symbols.
&symbol(Z)& Omit Leading Zeros &symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Regards,
Shiva Kumar -
How to deal with table.Field/sum(table.Field) BIEE
I have a question with this table.Field/sum(table.Field),
and another case is: one field of table /another field of a table, but these two tables not directly relation, such as: one day sales(one table)/the last day sales(another table)The way to go is hierarchical field names, as it has been said.
What would give you more flexibility, would be to give your element page's fields logical names. This would lead to building blocks, which can be freely combined. Any logic within the building blocks would not change at all, and logic going beyond a block would be straightforward to set up.
Hope this can help.
Max Wyss. -
HOW TO USE PERFORM STATEMENT IN SMARTFORMS
Hi,
Can anyone tell me how to use call subroutine in smartform?
Thanks & Regards,
Gauarv.Hi,
Hope this helps you..
You can use the PERFORM command to call an ABAP subroutine
(form) from
any program, subject to the normal ABAP runtime
authorization
checking. You can use such calls to subroutines for
carrying out
calculations, for obtaining data from the database that is
needed at
display or print time, for formatting data, and so on.
PERFORM commands, like all control commands, are executed
when a
document is formatted for display or printing.
Communication between a
subroutine that you call and the document is by way of
symbols whose
values are set in the subroutine.
The system does not execute the PERFORM command within
SAPscript
replace modules, such as TEXT_SYMBOL_REPLACE or
TEXT_INCLUDE_REPLACE.
The replace modules can only replace symbol values or
resolve include
texts, but not interpret SAPscript control commands.
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM
INVAR1 and INVAR2 are variable symbols and may be of any of
the four
SAPscript symbol types.
OUTVAR1 and OUTVAR2 are local text symbols and must
therefore be
character strings.
The ABAP subroutine called via the command line stated
above must be
defined in the ABAP report prog as follows:
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
ENDFORM.
The values of the SAPscript symbols passed with /: USING...
are now
stored in the internal table IN_TAB . Note that the system
passes the
values as character string to the subroutine, since the
field Feld
VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR
80). See the
example below on how to access the variables.
The internal table OUT_TAB contains names and values of the
CHANGING
parameters in the PERFORM statement. These parameters are
local text
symbols, that is, character fields. See the example below
on how to
return the variables within the subroutine.
From within a SAPscript form, a subroutine GET_BARCODE in
the ABAP
program QCJPERFO is called. Then the simple barcode
contained there
('First page', 'Next page', 'Last page') is printed as
local variable
symbol. -
How to add standard text in smartforms?
Hi friends,
How to add standard text in smartforms ?
points rewarded soon
Regards
RHCreating the Standard Text:
Go to SO10
1. Enter Text Name. For example, ZABC
2. Text ID ST
3. Language EN
Click on Create.
And enter the Required Information and save.
To include a Standard text in SmartForm.
Follow the steps below:
1. Create a text node in the window.
2. Under general attributes select "Include text" as Type.
3. Specify the fields under Text.
Text Name ZABC
Text Object TEXT
Text ID ST
Language EN.
Hope it helps.
Regards. -
How to hide a window in smartforms
Hi experts,
How to hide a window in smartforms depends on the conditions. The condition is the window how a hard coded values + fields. if the condition satisfies i want to display in form if its fails no need to display in the form... plz, its urgent.
Regards.
Gowrisankarhi,
inside the window, you can create a condition.
right click on the window, CREATE>FLOWLOGIC>ALTERNATIVE.
you can give your condition there
thx
pavan -
How to change the language in smartform?
hi
how to change the language in smartform?Hi,
U can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.
But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.
U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.
see this..
Use transaction SE63, after activate your smartform, to translate.
In the First Page of your Smart Forms click on Global Settings under that click Form Attributes
now in the Right side screen Go to Subscreen Language Attributes.
select the Radiobutton Translate To all Languages
from the Translate subscreen out of three radio buttons.
rewaards if useful
regards,
nazeer -
Setting output length of desired values for a Field in Smartforms.
Hi,
I'm working right now on 4.6c system and I have a field declared as "String" in the Global Definition, on viewing the output in the print preview i find that it is printing only 255 characters while the actual field value is more than that (somewhere around 600+).
Could you please help me out in as to how to declare this particular field in Smartforms.
Thanks in Advance,
Regards,
Divakercheck this
Re: Output length restricted to 255 when running ALV report in background
in that case u have to create a new Print Format which can give u complete data in while prining.
format will be like this
65*512.
Regards
Prabhu -
How to map journal fields and whats is the better process type
/Journal/JournalSuspenseCostCentre NULL
/Journal/JournalBalancingCentre Lookup from Organisation ID
/Journal/JournalMultiCompany u2018Nu2019
/Journal/JournalBatchNumber NULL
/Journal/JournalNumTransactions Total number of /Journal/JournalLine transactions
/Journal/JournalBaseDRTotal Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Debit Values only
/Journal/JournalBaseCRTotal Sum of /Journal/JournalLine/JournalLineBaseValue u2013 Credit Values only
How to map journal fields and whats is the better process type idoc/proxies?please let me know
Journal Line
Multiple journal lines per header:
Schema Element Data
/Journal/JournalLine/JournalLineCostCentre Bank account control Cost Centre
/Journal/JournalLine/JournalLineAccount Bank account control Account Code
/Journal/JournalLine/JournalLineMoneyTotal Transaction Line Amount
/Journal/JournalLine/JournalLineVolume NULL
/Journal/JournalLine/JournalLineDescription Payee Name
/Journal/JournalLine/JournalLineChequeBookReference NULL
/Journal/JournalLine/JournalLineMatchField Cheque Number
NB Contra accounting entries should be posted to:
Schema Element Data
/Journal/JournalLine/JournalLineCostCentre Bank account control Cost Centre
/Journal/JournalLine/JournalLineAccount Bank account control Account Code
/Journal/JournalLine/JournalLineMoneyTotal Transaction Line Amount * -1
/Journal/JournalLine/JournalLineDescription Payee Name
/Journal/JournalLine/JournalLineMatchField Cheque Number
/Journal/JournalPeriod Current General Ledger Period
/Journal/JournalYear Current General Ledger YearIt looks you are new to PI,
you have to develop scenario end to end, by creating source data type and target data type(if you have XSD's not required),then use Graphical mapping (message mapping) to map source and target structures.
Search in sdn for one end to end scenario you will understand easily
Regards,
Raj -
How to print multiple fields in single barcodes
Hello friends,
How to create a single barcodes with multiple fields in smartforms and retrieve same multiple fields while scanning also.
My requirement is, i want to create barcodes which contains material no, serial no, material description and quantity all fields together in a single barcodes.
While scanning how to identify all this different fields. For e.g. from single barcodes how we will identify while scanning which is material no, serial no, material description and quantity.
Thanks in advance.......
Regards,
DevHello friends,
How to create a single barcodes with multiple fields in smartforms and retrieve same multiple fields while scanning also.
My requirement is, i want to create barcodes which contains material no, serial no, material description and quantity all fields together in a single barcodes.
While scanning how to identify all this different fields. For e.g. from single barcodes how we will identify while scanning which is material no, serial no, material description and quantity.
Thanks in advance.......
Regards,
Dev
Maybe you are looking for
-
Outlook does not display linked images after installin 7525 printer
Installed 7525HP photosmart printer earlier today. Since installation, Outlook does not display linked images when I open emails. p6620f HP desktop computer.
-
Remove lines in Outgoing Payments
Hi, I'm trying to remove all the lines i add into the "Payment Means" any time that y return no load this screen...before creating the payment. is there an object to do this??? or i have to do this removing item by item navigating from the all th
-
Multiple transaction in activity
Hi everyone, I need to update users in the directory using the Fuego library, and in the same time update a flag in an external database. This is done in an activity, handling 300 or 400 users at the time. My problem is that a database transaction is
-
Adobe Plugin doesn't terminate immediately
Hello Xperts! when I stop/close my application the acrobat takes 10-20 seconds to terminate, i.e. AcroRd32.exe/acrobat.exe doesn't ends immediately. My plugin is based on the "external Window" sample. It uses the window messaging and communicates wit
-
[Solved] Conflicting conflicts (and dependencies)
Attempting to update an AMD x86_64 system this morning: 07:55 Sun Dec 28 [root@arch64://~]# pacman -Su :: Starting full system upgrade... resolving dependencies... looking for inter-conflicts... :: bluez-libs conflicts with bluez. Remove bluez? [Y/n]