Amount field in smartform
Hi Experts,
I am developing smart form for invoice.In output it is displaying amount field like this
123.44,65 instead of 123,44.65.(I.e full stop is coming in place of comma and vice versa).
please help me.
Thanks,
Santosh
Hi
In order to convert the amount field we need to check first user settings . Even though the User setting value is 'X' .
The amount will not display correclt .
For this proper soultion is change the format according to country settings .
for that we need to give the syntax set country countryid.
this syntax will look into T005X if the country id is avaliable it will fetch the decimal notation provided.
if not provided you need to provide the syntax
SET COUTNRY SPACE . Here space will check the user settings and change the correct settings.
Please provide the SET COUNTRY SPACE before where you are trying to display . ie using flow logic -> program lines
or in driver program where you are trying to calculate .
I have done the same thing when i had this problem for Purchase order smartform.
Thanks
Hariharan.
Similar Messages
-
Displaying amount field in smartform output
hi experts,
i am printing amount field in smartform output. like this 11,200.
but i need to display like this $11,200.
i need to print $ with amount field .
can u give me some idea?
ThanksHi,
Try like this.
Data : v_amount type i value 11200,
v_final type string
If u r getting currency, then check the currency.
If Curr eq 'USD'
concatenate '$' v_amount into v_final separated by space.
endif.
Print V_FINAL where do u want. -
Supress gaps in the field in smartform
Hi
I am using wrbtr as amount field in my smartform and length of that field is 15. i want to decrease the gap between the preceding word(Rs.) and amount field. How can it be done?before putting in the smart form you just add one program lines and declare one character variable of size 15 say
AMOUNT type CHAR15.
now
AMOUNT = it_tab-wrbtr.
condense amount.
then drag & drop this amount field... -
User defined function to check the NULL and 0.00 value in a Amount field
Hi Experts,
I have one scenario in which i have amount field in Data type.
I have to create one UDF which will do the following thing.
1. If the amount field is Null it should throw an exception in mapping.
2.If the amount field is 0.00 it should throw an exception in mapping.
3. For all other cases it should pass the amount value to the target.
Can anyone provide me the code For this UDF.
Thanks in advance.Hi,
You can add this logic to the UDF. Here var1 is the input string.
java.math.BigDecimal b=new java.math.BigDecimal(var1);
if(b.compareTo(new java.math.BigDecimal("0.00"))<=0)
//write your logic for values less equal to zero
One small request, if you think your question has been answered, properly and correctly, could you please kindly if possible close down this thread. It helps people who look for solutions to similar problem.
regards
Anupam -
DIsplaying WRBTR (AMOUNT FIELD)WITHOUT DECIMAL PLACES
Dear all,
I am facing a problem in displaying amount field in alv report. I have two currency keys (US dollar and Japan yen). if it is japan yen I should not have to show decimal places and if it is US dollar I should show decimal places.
How can I do it in a alv report if I have only one output amount field?
thanks
Ranjan.Hi chittaramjan,
1. use this kind of funda (just copy paste in new program)
Important things
a) one extra field in internal table
declared in the same exact fashion
waers LIKE tcurc-waers,
b) Populate this field
c) REST THE System will take care
(based upon country settings)
2.
REPORT abc.
TYPE-POOLS : slis.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : BEGIN OF itab OCCURS 0,
f1 LIKE P0008-BET01,
waers LIKE tcurc-waers,
END OF itab.
START-OF-SELECTION.
itab-f1 = '-4.15'.
itab-waers = 'KRW'.
APPEND itab.
itab-f1 = '4.68'.
itab-waers = 'GBP'.
APPEND itab.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = alvfc
TABLES
t_outtab = itab
EXCEPTIONS
OTHERS = 2.
regards,
amit m -
Error in Report: Next to amount field i could see 'ERROR' word in report
Guys,
Problem in Report: Next to amount field i could see 'ERROR' word in report
Eg: Invoice Amount : "1200ERROR" it should be like "$1200".
Pls help where do i need to check.
ThanksAjeet wrote :
Hi,
It can heppens if all the records getting aggregated in the report are of different currencies and not belonging to one currency.
Do a currency conversion for the key figures and make them all with same currency.
See if the records in the cube for the selection which you have given in the report gives you records with different currency and if it is true then as above said.
Thanks
AJeet
Are you sure ???
The mixed unit values will be displayed as * (by default unless its changed).
ERR comes if unit is not maintained. -
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! -
Length of amount field in New GL at the document entry
Hi,
1) At present I am working on ECC 6, EhP 4 with New GL Activated & Old GL "Not deactivated" (i.e deactivate update of Classic General Ledger GLT0 not done).
2) The total table (FAGLFLEXT) & Line item table (FAGLFLEXA) field in new GL has amount field length as 23 digit.
3) When I am trying to enter any FI Document in SAP, using transaction code F-02 or FB60 etc, the length of amount field is coming as 13 digit. I am not able to enter higher value
Question:-
a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
Thanking you in advance
Santosh Agarwala) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
No, it is not.
b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
No, there isn't. The field length that is appearing during document entry is really dictated by the data type of fields such as DMBTR, WRBTR in table BSEG; which is CURR (13,2). Although the GL view (FAGLFLEX* tables) have longer length, the limitation in entry view (BSEG, etc.) stays as 13,2. -
How to maintain the amount field format after GUI_DOWNLOAD
Hi everyone.
I have this problem on my object.
The format of field ERFMG in table AUFM is 3.921,569.
After I SELECT it INTO an internal table it becomes like this 3921.569
I would display this internal table in ALV and its ok. Its format is 3.921,569 The format is also not changed when I download it into an excel file using LIST -> EXPORT -> LOCAL FILE -> SPREADSHEET.
However my program should automatically download to local if the user tick a checkbox in the selection-screen. It will use function module GUI_DOWNLOAD. When this is used, the format of ERFMG changes to 3921.569 again, since it is using my declared internal table.
How will I use GUI_DOWNLOAD without changing the format of amount fields like ERFMG? What are my other options to do this?
The Decimal Notation in my User Profile is already set to 1.234.567,89
Thank you in advance.Hi Cris,
To get the output in the user format for the decimals, try the following code.
data: wg_dec(7) type p decimals 2.
data: wg_dcp type usr01-dcpfm.
data: wg_dec_str(10) type c.
wg_dec = '111135.67'.
select single dcpfm from usr01
into wg_dcp
where bname = sy-uname.
move wg_dec to wg_dec_str.
if wg_dcp ne 'X'.
replace all occurrences of '.' in wg_dec_str with ',' .
endif .
write:/ wg_dec, wg_dec_str.
I dont feel there is any other option where you can change the decimals format as per the user profile.
While giving the output of decimal values in a list, the system automatically displays it in the profile set by the user.
This code will help you to set the decimal value as '.' or ',' as per the user profile.
Note: It wont add the unit separator for hundreds and thousands. Again you have to do that manually.
Hope this proves of some help to you.
Regards,
Pulkit -
How to roll up Amount field upto Input Criteria Posting period
Hi All,
I have a requirement to create a FI Budget report where the User will give the Posting Period as the input criteria, and based on the entered Posting period, 2 amount fields, "Original Budget" & "Current Month" need to get derived by looking at another amount field called actual, by rolling up the Amounts up to the entered Posting period.
For example, the user gives input as Posting period = 06, which is December because Fiscal year starts from July here. And my Cube has an amount field "Actual" which displays amount for each posting period. Therefore when posting period = 06, then the "Actual" amount value for months July (PP = 01) through December (PP = 06) should be rolled up i.e added and displayed in the "Original Budget field". The Current month should only display the amount for the input criteria month.
How can I do that, any suggestions please?
Thanks!!Hi Sam,
Is there any way i could do it without the SAP Exit? If yes, how? If no, can u specify in the document you sent, which code i could use as reference for my requirement?
Thanks -
Error when displaying amount field in HTMLB Tableview
Hi all,
I am displaying some 'X' table in HTMLB Tableview and it has one amount field.But reference(currency) field of that amount field is in other table . I know it gives the error.
Please tell me there is any other way to resolve this problem with out adding reference(currency)field in the same table?
Thanks and Regards ,
Harikrishna .Hi Hari,
But reference(currency) field of that amount field is in other table . I know it gives the error.
It will not give any error , you can use the currency key field of other table or structure .
Alternatively you can use predifined type DEC instaed of CURR .
Regards,
Anubhav -
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 -
Amount field is not populating properly
Expert's,
Here is an issue where one of the amount field not populating properly.For some opportunities the amount field will be just displyed as'0' but for some opprtunities the amount field is displaying as'$0'.The data we are pulling is from CRM.
Thanks in advance.
vasu.Hi,
looks like extenstion of your last thread
did you already have a look in data in cube?just to make sure,try to display cube's data using List cube transaction .Take this amount field,corresponding Currency Key,and you rmost impotant characteristics...and check whether all records are having entry in 'currency' column? -
DOWN PAYMENT AMOUNT FIELD NEEDS TO BE NOT MODIFIABLE IN PAYMENT REQUEST
Hi
In SAP, when Down Payment is called through Payment Request, the "amount" field will be changeable mode.
My client requirement is that, the amount field should be in "not modifiable" status.
Is there anyway that we can do this...using EXIT or something....
Thanks in advance...
Srikanth MHi,
system will not allow to change the Vendor line item.
F-47 Down pyamnet request 10000
f-48 you need to select the above request
and enter the 10000 in bank gl line.
you cannot change the vendor line while f-48.
i hope will clearify your issue.
reg
Mmadhu M -
Hi;
I've already made a Z for payment check and works fine, but we have notice something when preview the checks in the spool, some checks in the amount (in numbers) field "*****999,999.99" sometimes it´s moves like this:
1) example "......******999,999.99"
2) example ".............******99,999.99"
3) example "....******999.99"
and so....
in DEV we made a lot of test printing in paper the payment check an worked fine, but the problem is in QAS.
How can i get that the amount doesn´t move in the sapscript...?
Thanks on advance,
David Fúnez
Tegucigalpa, Honduras
Edited by: David Funez on Feb 23, 2012 9:27 PM
Edited by: David Funez on Feb 23, 2012 9:27 PMHi David,
create a SIGN aligned tab for that amount field. The tab is nothing but the position in the form from where the printing of that particular field should start.
This should solve your problem.
Please revert if you still face any problems.
Regards,
Praveenkumar T.
Maybe you are looking for
-
DB_WRITER_PROCESSES in Oracle 10.2.0.4 HP UX
Hi all, I noticed that asynchronous i/o cannot be used with regular filesystem on HP UX (only raw devices). As far as I know what I can do is to configure multiple db writers with DB_WRITER_PROCESSES parameter. DB has CPU_COUNT in 16, but 2 db writer
-
How do I get the mic feature on the keyboard if an I pad 2 to dictate messages?
How do I get the mic feature on the keyboard if an I pad 2 to dictate messages?
-
Hello, I am trying to split a string into an internal table with: split content at '##' into table it_content but as the expected 6 line I only get 1 line into the table with the complete string. Any ideas? regards stefan
-
Remove attachment link from standard task
I want to get rid of the attachment for a standard task TS90100038 - Approve trip. In our scenario we want PDF instead of the transaction screen. I am able to pull PDF but, Its showing up two attachments on the task. I am not able to get rid of the a
-
Power Search - how does it work and where does it get the data from?
Hiya, Power search in NWBC is great, when it works. Recently I've been gettign increasingly erratic results - sometimes desktop items are found, sometimes they're not. Sometime my emails are searched, sometimes they're not... And so I'm wondering whe