Problem with currency fields in alv while editing
hi guys,
while creating the editable fields and saving the data in database i have problem with currency(price fields),
when iam entering 10000 it is storing as 100.00 in database but
i want to store it as 10,000.00
can any one help me ....
it is urgent
thanks..
When populating the fieldcatalog for ur currency amount field then
populate these additional fields with currency key and table name where this key field belongs.
cfieldname type slis_fieldname, " field with currency unit
ctabname type slis_tabname, " and table
May be then it will solve ur prob.
Regards,
Joy.
Similar Messages
-
Problem with currency field in smart form
hi
friends ..
i had problem with currency field in smartform iam printing 5 currecny
fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
each fields for ex.
33,260.00
120.00
0.00
0.00
0.00
i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i get the value in char variable i get 2260.20 which i dont want .
so pls help me how to condense or shift left and print the currency field on right place.
regards
answers will be rewarded points.hi,
this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
eve if not solve the problem use the TEMPLATE node..
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K -
Problem of currency field in ALV grid
Hi,
Actually I am working on ALV gird editables. I have passed the CURR 17,2 type to the i_fcat table. But when I am trying to edit a new value to this field with a new value. i.e. '12345' it takes its value as '123.45'. and whenever I am entering a value '123.45' it gives error message that decimals 0 place. I am not able to make out this problem.
Even while I am doing get_cell_value, I am getting its returning 0.00 as e_value.
Any help in this regard will be helpful to me...
regards,
Brijesh PatelHi Brijesh,
Are you using the FM "REUSE_ALV_GRID_DISPLAY" to populate field catalogue? if so, define this in your field catalogue for that particular field.
g_t_fieldcat-CFIELDNAME = 'X'
where <b>g_t_fieldcat</b> is your custom defined field catalogue. CFIELDNAME here refers to that column in the field catalogue as currency field and SAP automatically adjusts the decimal places.
Hope this helps and let me know if you need more details.
Regards,
Vicky
PS: Award points if helpful -
PROBLEM WITH CURRENCY CONVERSION IN ALV
HI..
When iam trying to convert currency field from one currency to
another (eg: usd to inr) iam getting error.
iam using the fm 'convert_to_local_currency'.
i want to display both the coloumns i.e usd,inr in the same grid.
help me....
thanks.Rk,
Pass all these parameters.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
* CLIENT = SY-MANDT
date = p_ekko_bedat
foreign_amount = p_i_po_info_ntval
foreign_currency = p_ekko_waers
local_currency = r_buk-waers
* RATE = 0
type_of_rate = 'M'
* READ_TCURR = 'X'
IMPORTING
* EXCHANGE_RATE =
* FOREIGN_FACTOR =
local_amount = p_i_po_info_ntval
* LOCAL_FACTOR =
* EXCHANGE_RATEX =
* FIXED_RATE =
* DERIVED_RATE_TYPE =
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Problem with currency field on screens
hai gurus i am using currency field on screen , when i am trying to display 0.0 value on the screen it showing blank , how to display the value zero on the screen
thanx in advance
afzalOnly solution is hard code it...
DATA : dummy type char4 value '0.00'.
IF currency EQ 0.
WRITE : dummy RIGHT-JUSTIFIED.
ENDIF.
Message was edited by:
Perez C
Message was edited by:
Perez C -
Hi,
My international settings are set to Turkish locale. I created a spreadsheet and defined a column as currency. Turkish currency symbol is YTL. When I want to make calculations using cells on that column, I get "+The operator "*" expects a number but the cell contains string+" error. Numbers doesn't understand that YTL is the currency symbol and prohibits any calculation. If I change the locale to U.S.A, and define the same column as currency, i can make calculations on this column. Does anyone has the same problem with different locale?
Thanks
BilgehanHello
Glad to give you the ability to work flawlessly.
I will report to Apple because the behaviour is really foolish.
If I enter System Prefs to select Turkish as used language, the currency is displayed as
If with this setting I enter Numbers, type 123 and apply the currency format, the cell displays
TRY is the official ISO 4217 symbol but it's not the system setting and it is not treated as a currency symbol so the cell is treated as a string.
If I enter the Inspector and select "livre turque (TL)"
the cell is treated as a number.
Funny isn't it.
Yvan KOENIG (from FRANCE vendredi 8 février 2008 14:33:53) -
Problem with Currency Field?
Hello Friends,
I have a currency fields in a Screen, When it's value is null, It is showing me as SPACE. But My requirement is to display 0.00. How can I do this? Please do the favour needful.
Thanks & Regards
Sathish Kumar.Hi Satish,
You must have declared the field as CHAR locally...
just declare it like ..
DATA : var type <some Currency filed from dictionary>
This will work,
Reward points if helpful,
Regards,
Tejas -
I have a problem with elements 11 freezing up while editing photos.
It freezes up with a checkered window of the photo. I uninstalled/reinstalled the software and that worked for a while but now the probelm has returned. It seems to have cured it for a while but now the problem has returned. I have to restart the computer everytime this occurs. It is working fine at the moment but I know it is goingot happen again. I looked for an update but I couldn't find one for Photoshop Ele 11.
Now at version 9, so that is old enough that I do not think Adobe has a download now
But, since this is a USER TO USER forum, with only the space provided by Adobe, it may be that nobody here will know what old products Adobe has
Does your laptop have a program to create an install CD from the "reserve" area?
Have you asked your laptop vendor if they will sell you an install CD? -
To calculate average for a currency field in alv
Hi,
I have a requirement in which i need to find the average of a currency field in alv. For the particular field, i'm passing the value of DO_SUM = 'C' in thr field catalog(as suggested in many threads); but I'm not able to calculate the average. it still shows me summation when i click on summation button.
What could be the possible error??? Is there any other method we can do the same??
Thanks in Advance.
JaspreetHi
U can try this way.
*& Report Z_DEMO_JG
*& Display average in ALV report
REPORT z_demo_jg LINE-SIZE 80 LINE-COUNT 50
NO STANDARD PAGE HEADING.
TABLES: sflight.
TYPE-POOLS: slis.
* Data declaration
DATA: i_flight TYPE STANDARD TABLE OF sflight,
i_catalog TYPE slis_t_fieldcat_alv,
w_flight TYPE sflight,
w_catalog TYPE slis_fieldcat_alv.
DATA: v_repid TYPE syrepid.
* Selection screen
SELECT-OPTIONS: s_carrid FOR sflight-carrid.
START-OF-SELECTION.
* Fetch data from sflight table
SELECT *
FROM sflight
INTO TABLE i_flight
WHERE carrid IN s_carrid.
CHECK sy-subrc = 0.
v_repid = sy-repid.
* Build field catalog for ALV report
PERFORM build_catalog.
* Display ALV report
PERFORM display_report.
*& Form build_catalog
* Build field catalog for ALV report
* None
FORM build_catalog .
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = v_repid
i_structure_name = 'SFLIGHT'
CHANGING
ct_fieldcat = i_catalog
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
* For average populate 'C' as value in
* field DO_SUM
w_catalog-do_sum = 'C'. " C = Average
* Modify record with new value
MODIFY i_catalog FROM w_catalog TRANSPORTING
do_sum WHERE fieldname = 'PRICE'.
ENDIF.
ENDFORM. " build_catalog
*& Form display_report
* Display ALV report
* None
FORM display_report .
IF i_catalog[] IS NOT INITIAL.
* Call ALV grid
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = i_catalog
TABLES
t_outtab = i_flight
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc = 0.
ENDIF.
ENDIF.
ENDFORM. " display_report
Edited by: meetjoe on Sep 15, 2009 7:17 PM -
Error in smart form with currency fields
while i am using with currency fields in samrt forms error is comming in while i am giving print-preview in se38 "<b>Reference field WA_EKPO-NETPR unknown in form."</b>
In smart forms if we want to display quantity and currency fields. We cannott directly display currency field and quantity fields.
To display the mdo like this
Ex: GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
Close the thread once your question is answered.
Regards,
SaiRam -
How can we sort up currency field in alv grid??
Hi GUrus,
Can any one suggest me how to sort the currency field in alv grid...Please help me out of this issue..
Thanks in advance!!!
regards,
Kranthi.hii,
SAP provides a set of ALV (ABAP List Viewer) & function modules, which can be used to enhance the readability and functionality of any report output.
ALV is a flexible tool used for displaying lists.The tool provides common list functions & can be enhanced by self-defined options.
so u will get the option for sorting in your alv report.
Thanks -
I have problems with seeing my bookmarks, file, view, edit...buttons. I tried other shortcuts. I noticed that all of my bookmarks are located in the Internet Explorer browsers, how can I restore setting back to Mozilla Firefox?
Is the menu bar missing (the one containing File, View, Edit etc)? If it is, the following link shows how to restore it - https://support.mozilla.com/kb/Menu+bar+is+missing
-
I am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unablesend any email with my iMac ( i can recieve email) . This problem started suddenly and the error message i get is error 5.7.8. I have read the threads on line and went into settings, even created a new profile, nothing helps...Please advice..is this something to do with my keychain Access?
As Outlook is not an Apple product, you will find more helpers familiar with Outlook here:
Office for Mac forums -
Problem with a field set to refresh after insert at Row level
hello all,
i have a problem with a field (a serial) which is set by a db trigger at insertion. The field "refresh after insert" is properly set in the Entity and everything is refreshed correctly when i insert data via an adf form in a jspx but when i want to insert programmatically nothing is refreshed. I insert data this way :
ViewObject insertVO = findViewObject("myView");
Row newRow = insertVO.createRow();
newRow.setAttribute("mandatoryAttribute1",value1);
newRow.setAttribute("mandatoryAttribute2",value2);
<more init here but not the serial since it will be set by the DB trigger>
insertVO.insertRow(newRow);
but when i want to get back the value with "newRow().getAttribute("TheSerial");" i always get a null back and not the value set by the db trigger.
One way to get the serial is to commit after each insert but i don't want to commit between inserts.
i've tried to unset the refresh after insert and override the createDef() method to setUseReturningClause(false) as it's is advised in chapter 26.5 of the ADF 4GL dev. guide but in this case i have an exception JBO-29000: JBO-26041.
How can i get the value back properly ?
thanks
-regardsThe data for the newly created row doesn't get inserted into the database until the commit is executed, so the insert trigger isn't called.
If you need to get the value without committing, then you should implement the trigger programmatically and drop the trigger from the database. The code below shows how you could do this.
ViewObject insertVO = findViewObject("myView");
Row newRow = insertVO.createRow();
SequenceImpl seq = new SequenceImpl("MY_SEQ", insertVO.getDBTransaction());
Long next = (Long)seq.getData();
newRow.setAttribute("primaryAttribute", new Number(next));
...You will need to replace MY_SEQ and primaryAttribute with the correct values for your example, but this should acheive what you want. -
hi,
can u please help me in dispalying currency fields in alv?.
i have given in fieldcatalog cfieldname and cabname.amount is printing, but currency unit is not printing.
Thnaks
Gopisearch forum
lfs_fieldcat-fieldname = 'AMOUNT'.
lfs_fieldcat-tabname = text-022.
lfs_fieldcat-CFIELDNAME = 'CURRENCY'.
lfs_fieldcat-col_pos = '1'.
APPEND lfs_fieldcat TO t_fieldcat.
lfs_fieldcat-fieldname = 'CURRENCY'.
lfs_fieldcat-tabname = text-022.
lfs_fieldcat-col_pos = '2'.
APPEND lfs_fieldcat TO t_fieldcat.
{code]
Maybe you are looking for
-
Just got a new 15" MacBook Pro (Lion) and would like to move my saved emails from my older Intel MacBook Pro 17" (Snow Leopard). I enabled sharing, but cannot open Entourage or find a way to import or export the emails. I can copy the archived emails
-
Edit in photoshop loses chromatic aberration corrections
Hi I have a problem I have not noticed before... when I do a chromatic aberration correction in Lightroom, then do "Edit in Photoshop", it opens in PS but the chromatic aberration is still there, uncorrected. It seems to be applying other correction
-
1080p output possible from iDVD?
I want to get hi-def output to burn travelogue DVDs of pictures and video clips. I have read that iDVD will only directly burn 720P output. On a large LCD screen, the results at 720 are obvious. Toast with a HD plugin can burn HiDef (and BlueRay), bu
-
Can't get granular file .bak or .cmp to restore.
I made a granular backup of my site collection into .bak. and now im trying to import said file by using I have the site I'm importing to already created at http:/testserver/sites/test Import-SPWeb -identity http:testserver/sites/test -path \\shareds
-
WebEnterprise: Hardcoded IIOP Port Number
All, I am using IIOP component from the Forté Web Enterprise 1.0 B and I have a problem with the IIOP port number that I have to set to my Service Object Properties. I am using the following properties : IORFILE=(name=MySO.ior, runtime), listentlocat