Mask a currency to an user setting for BDC
Hi All,
I have to do a BDC and it involves a Amount field.
The value that i'm trying to populate is like '1,234.98'.
But the user has a setting for the amount to be in the format'___.___.___,___'.
I mean the '.'s and ','s are interchanged.
How can i automatically change the value to the specific user format, programatically.
Thanks in advance.
Jr.
Hi,
Please use code as below :
data : len type i, pos type i, curval, namt(13), amt(13).
amt = '1,12,234.29'.
len = strlen( amt ).
do len times.
curval = amt+pos(1).
if curval = ','.
curval = '.'.
elseif curval = '.'.
curval = ','.
endif.
concatenate namt curval into namt.
pos = pos + 1.
enddo.
write :/ amt.
write :/ namt.
If helpful, please reward the points,
Regards,
Sandeep Kaushik
Similar Messages
-
Display Currency Value of User POV for Entity & Value in Text Box (Header)
I am looking for a function in Financial Reporting Studio that operates the same as the HsCurrency function in Smart View. This would allow batch reports displaying the currency value of the User POV for Entity based on the User POV for Value. Right now I have to have Member Lists for separate reports and different currencies as I am only able to display the Value dimension in the heading of a given report. Users will not be certain of the currency if the Value dimension is <Entity Curr Total>.
I tried the HFMCurrency text function, however the entity is not defined in a Row / Column / Page reference as the entity is determined by the User's Point of View.
Is there a way to display the currency value of a User's Point of View for Entity based on the User's Point of View for Value?
Reference from Oracle Hyperion Smart View for Office, Fusion Edition, User's Guide:
HsCurrency
Data sources: Financial Management, Hyperion Enterprise
HsCurrency retrieves the currency value of the specified dimension member. Entity and Value are the only valid members for the HsCurrency function.
Syntax
HsCurrency (“Connection,Entity;Value”)
Example
In this example, HsCurrency retrieves the entity currency where the currency for the East Sales entity is USD, and the currency for the UKSales entity is GBR. The EastSales entity displays USD, and UKSales displays GBR.
HsCurrency(“Comma”,”Entity#EastRegion.EastSales;Value#<Entity Currency>.”)
HsCurrency(“Comma”,”Entity#EastRegion.UKSales;Value#<Entity Currency>.”)Question answered in My Oracle Support Community - Hyperion Reporting Products:
communities.oracle.com -
No per user setting for JRE in Internet Explorer on W2K/W2K3 term. server
After installing Sun Java SE on terminal servers (both 2000 &
2003) you have an additional option within Internet Explorer 5.5 & 6.x under tools, intenet options, advanced; called "Java (Sun) Use JRE
XXX (applet) requires restart". This option cannot be set on a per user base. When a user changes this setting, it is changed for ALL terminal server users immediately. This is a big problem.
It should be able to set this on a per user base.
Current key is located at: HLKM\SOFWTARE\Microsoft\Internet
Explorer\AdvancedOptions\JAVA_SUN\SELECT
As some websites require Sun_Java and others won't work at all
when the Sun Java options is selected each user should be able
to select or disable this option on a per user base.
How can we accomplish this?Hello. Sorry, don't have an answer for your issue. Just wondering whether you've experienced this issue in your Windows Server 2003 envionmnet.
We're running Windows 2000 Server (SP4) (and Citrix Presentation Server 4.0). We typically have 20+ concurrent users logged on to a server. Since JRE 1.5.0_7, we've had issues with Internet Explorer taking upwards of 15 seconds to display even though Iexplore.exe appears in Task Manager almost immediately. If we uninstall JRE 1.5.0_7 and use 1.4.2_6, Internet Explorers displays fine. We've tried JRE 1.5.0_11 and 1.6.0_3, and Internet displays slowly. Has anyone else experienced this issue? Any thoughts of why this is occuring? Thanks. -
Default User setting at Dashboard level
Hi SAP Users,
i want default dashboard user setting & all users will only see my setting
Is it possible to have default user setting for dashboard?
Regards
RavindraIn the administration mode, you can update the current configuration settings/layout (right-click on the UI group you want to update, can be a dashboard, a field...) and save them as the default (standard) settings.
Please try with the administration url I provided you with, and let me know if it helps.
http://server:port/irj/portal?sap/bc/webdynpro/sap/cprojects?sap-config-mode='X'
Matthias -
LDAP authentication not minding user set
I have a publishing rule for an internal website setup with LDAP authentication setup for two different domains, the domain the TMG 2010 is joined to (domain1) and another external domain (domain2). I want users from either domain to be able to authenticate
and I thought it was working perfectly, but found that anyone from domain2 can authenticate successfully (anyone can authenticate from domain1, but that's okay).
I have a LDAP user set with the AD group from domain2 that I want to allow access, but the TMG doesn't seem to adhere to this and lets any authenticated user from that domain in. I have added both user sets for domain1 and domain2 to the "This
rule applies to requests from the following user set:" under the Users tab in the publishing rule.
Any clues?Hi,
Based on my experience,
Server Authentication Certificates
should exist on DCs that you want TMG to use for authentication and
TMG must trust issuer of the Server Authentication Certificate. You can check that in
Trusted Root Certification Authorities on TMG.
In addition, when you add LDAP server Set for LDAP user authentication, you need to add the DCs and type the AD domain name. Please note that the domain name
is the domain in which the user accounts are defined, and not the domain to which Forefront TMG is joined.
More information:
Configuring LDAP authentication on AD LDS
Setting Up and Troubleshooting LDAPS
Authentication in Forefront TMG 2010
Best regards,
Susie -
How do u handle the user parameters for a currency field.
How do u handle the user parameters for a currency field.
Decimal saperator and a hundreds saperator. (depending upon the user parametes set for the user the saperators may differ)
Eg: currency field: 13.896,01 (In this case u2018,u2019 is a thousand saperator and u2018.u2019 is a decimal saperator) How to handle this one.
Regards,
Ram.Hi,
Try this code....
DATA: V_KURSF1 TYPE c LENGTH 10,
v_kursf2 type c LENGTH 10,
v_dcpfm TYPE xudcpfm, "Decimal or Thousand Notation
v_thousand TYPE char1, "Thousands Notation
v_decimal TYPE char1. "Decimal Notation
CONSTANTS: c_x TYPE char1 VALUE 'X',
c_y TYPE char1 VALUE 'Y', "Value Y
c_comma TYPE char1 VALUE ',', "Comma
c_point TYPE char1 VALUE '.', "point
c_blank TYPE char1 VALUE ' '. "Blank
IF v_dcpfm IS INITIAL.
SELECT SINGLE dcpfm
FROM usr01
INTO v_dcpfm
WHERE bname = sy-uname .
IF sy-subrc = 0.
CASE v_dcpfm.
WHEN c_x.
v_decimal = c_point.
v_thousand = c_comma.
WHEN c_blank.
v_decimal = c_comma.
v_thousand = c_point.
WHEN c_y.
v_decimal = c_comma.
v_thousand = c_blank.
ENDCASE.
ENDIF.
ENDIF.
Find c_point in wa_segment-exchange_rate. ( Eg:ield)
if sy-subrc = 0.
replace c_point in wa_segment-exchange_rate with v_decimal.
endif. -
I am trying to set up a user account for my 3 year old so that when she goes into her account, only her games show up on her desktop. How??
yes -- I think I am setting it up right, but when I go into her account to check it, it doesn't work.
-
I have set up two users, one for myself and one for children. The computer automatically logs in for the children with no password required. When the children go to spotlight and type in a search criteria all of my files show and open up. How do I prevent this?
Log in to your account, and move all your files to your home folder. No other users should be able to access them there and they won't show up with a Spotlight search.
Make sure your kids' account(s) do not have admin privileges. -
How can i set up multiple user accounts for my new ipad mini?
How can i set up multiple user accounts for my new ipad mini?
The iPad mini is basically a one user device. There are no Accounts. You can set up restrictions so that only you can do certain things.
-
Need help on to set User status for Operations in Maintenance order
Hi experts,
i am new to PM module.
i need to do BDC for IW31. i want to know some inforamtion
on user status for each opertaion.
my problem is ,, what is user status.
why it is saying order is not yet released when saving and status can not set.
in this cases how can i do BDC.User status are something set in the configuration and specific to the company which SAP hasn't given in the system status.
May be in your system user status are configured to set only after the release of the order.
For doing the userstatus you may need to release the order, you can release the order thru bdc and then do bdc for user status. Also see below link
http://www.sap-img.com/plant/user-status-set-date-in-maintenance-order.htm -
Hi, I forgot my user password mac 10.9.4 I don't need it to log in but i need it to make changes, etc. It says a password hasn't been set for this account but it still asks for one when i click on the lock icon. can anyone help me? thx!
This is a little confusing since you say you have forgotten your password and then the system says you have not entered a password. Even with an Admin account you must have a password to install software.
If you are using Mac OS X 10.7 or above, you can change the admin password by restarting holding the Command and R keys, from the menu bar select Utilities, then Terminal. When the Terminal window opens, at the cursor type exactly:
resetpassword
and press Enter. When the Reset Password window opens, select the internal hard drive, and then the user account. Type a new password twice, leave the Hint blank, and then Save. Accept the next dialog that opens, and at the bottom of the Reset Password window agree to resetting the home directory permissions.
Quit the Reset Password window, go to the apple left side of the menu bar, Restart.
And you have a new password for your account. -
Badi or user exit for changing currency INR to EUR
hi friends,
in po header there is one tab called status.
in this tab there is one field called delivery payment
which has curr INR but i want to change that INR CuRR
to EUR.Can any one tell me how do this is there any badi or user exit
for this req.
thanks.Hi Sonu,
Use the following program to find out the appropriate user exist for ur transaction:
REPORT ZGURU_USER_EXIT_FIND .
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Then u can use the function CONVERT_TO_LOCAL_CURRENCY to change the amount from INR to EUR.
Regards,
Himanshu -
Can new cutsom currency fields on User Records be used for SOD Analytics?
We will have new cutsom currency fields on User Records. Can we utilise these new custom fields for dashboard reporting using SOD Analytics?
Hi
Yuo can try to use FOR ALL ENTRIES option.
IF you have:
WERKS BTRTL
Z002 Z001
Z002 Z002
Z003 Z001
Z003 Z002
You should do something like that:
DATA: BEGIN OF <TAB_SEL> OCCURS 1,
WERKS TYPE WERKS,
BTRTL TYPE BTRTL,
END OF <TAB_SEL>.
WERKS BTRTL
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z002'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z001'.
APPEND <TAB_SEL>.
<TAB_SEL>-WERKS = 'Z003'. <TAB_SEL>-BTRTL = 'Z002'.
APPEND <TAB_SEL>.
SELECT * FROM <TABLE> INTO TABLE ITAB
FOR ALL ENTRIES IN <TAB_SEL>
WHERE WERKS = <TAB_SEL>-WERKS
AND BTRTL = <TAB_SEL>-BTRTL.
In this case you need to fill correctly the internal table <TAB_SEL> with the all combinations.
Max -
Hi All,
How can I set the user-status for a PP order, also let me know which user exit suits this requirement, as I know I have to make use of a FM or a BAPI which sets the user-status in the user-exit somewhere.
Thanks
MarkHi,
Try the following enhancements/exits for setting the status for PP order.
STATTEXT
CCOWB001
COIB0001
Regards,
Anji -
Enhancement /User Exit for logic setting call date / Horizon
Due toe planning in IP10 we have a horizon set by the system for (eks.) 80%. This is working OK for small planning intervals (i.e. up to 24 mth intervals).
However when intarval exceeds this limit we will set the call date to be maximum 30 days (for instance) ahead of the sceduled start date of the order.
Thus we need a user-defined way to manipulate / set the call date by a user exit (logic in ABAP - or by IMG settings if possible) that differs from the standard SAP setting for this date.
The question is then how we - in best practice - can do so.
Please advice if you need mor information on this issue.Hi
Find the available exits with the following program:::
*& Report ZFINDUSEREXIT
report zfinduserexit.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
If there are no available user exits you could go for badi's.
To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.
Please reward if useful....
regards
Dinesh
Maybe you are looking for
-
When I try putting songs from itunes on my ipod, they don't show up
It doesn't acknowledge that I put them on, and when I try to sync it it still doesn't have them on. ipod touch 4th gen
-
Hi gurus, My client have to handle lots of freight charges and they want report for each freight charge paid. 1.Freight charges divided into transporter,loader man and unloader man etc. 2.When material comes to godown transporter,unloading and loadin
-
Need to upgrade from 10.5.8 leopard to what?
I would like to upgrade my operating system. I have 10.5.8 Leopard. I do not know what to upgrade to. Help.
-
How to get the source code of a PRT application in the portal
Hi! Does anybody know how to get the source code of a PRT application in the portal? Thanks in advance, Celso
-
Deploying Objects in the Target Warehouse , The job just hanging there!!
I just try to run through the Oracle Warehouse Builder 11g tutorial, I did every steps as the tutorial did and everything was good until I try to deploy the objects, When I set the objects' action from "none" to "create", then hit the "deploy" button