Need xsl function which will convert 100 = One Hundred.
Hi
i have to print the number as a text .
EX:100=Hundred
In one of the Vetsrini reply i seen this
""we have xsl function which will convert 100 => One Hundred.
If anybody interested to use this function, let me know.
i will post that in my blog in sometime.""
Convert Number into words in RTF
Thanks,
Ananth.v
<?xdoxslt:toWordsAmt(100)?>http://winrichman.blogspot.com/2008/08/convert-number-into-amount-in-words.html
Convert Number into words in RTF
Similar Messages
-
Want to create a function module which will convert smartform into PDF .
Hi All ,
Requirement : I want to create a function module/report which will convert smartform into PDF .
Thanks in advanceHi All ,
zsuresh_test : for converting smartform into pdf.
when I am excuting this report(zsuresh_test) and by passing the smartform name FOPCR_STANDARD_F1
I am getting error :
Incorrect parameter with CALL FUNCTION
Can you please help me out..
REPORT zsuresh_test.
Variable declarations
DATA:
w_form_name TYPE tdsfname VALUE 'FOPCR_STANDARD_F1',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal tables declaration
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
This function module call is used to retrieve the name of the Function
module generated when the SMARTFORM is activated
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_fmodule
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Calling the SMARTFORM using the function module retrieved above
GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
format of the output
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box
" for print preview
w_cparam-getotf = 'X'.
Printer name to be used is provided in the export parameter
OUTPUT_OPTIONS
w_outoptions-tddest = 'LP01'.
CALL FUNCTION w_fmodule
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otf_from_fm
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
t_otf[] = t_otf_from_fm-otfdata[].
Function Module CONVERT_OTF is used to convert the OTF format to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = W_bin_filesize
BIN_FILE =
TABLES
otf = T_OTF
lines = T_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILE_NAME =
FILE_FILTER =
INITIAL_DIRECTORY =
WITH_ENCODING =
PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = T_pdf_tab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
I need a function that will go through and encrypt all the strings
I want to use one way enryption and need a function that will
go through and encrypt all the strings in my password column in sql
server 2003.
I also need a function that compares a test password string
is equal to the hash value in the database. Can anyone give me some
advice in this?Apparently it's not as simple as I thought. My first instinct
was
update yourtable set password = '#hash(password)#'
but that will crash
This is inefficient, but you only have to do it once.
query1
select id, password thepassword
from yourtable
cfloop query="query1"
update yourtable
set password = '#hash(thepassword)#'
where id = #id# -
Need a function module to convert xstring to string in web dynpro applicati
hi,
need a function module to convert xstring to string in web dynpro application other than HR_KR_XSTRING_TO_STRING.
Moderator message: please (re)search yourself first.
Edited by: Thomas Zloch on Nov 17, 2010 5:31 PMHi,
Check the following link:
FM to convert XString to String
Regards,
Bhaskar -
I am after a Video Converterfrom the App Store which will convert the likes of a avi format to then play on a Humax FOXSAT-HDR PVR, any ideas anyone please?
Without knowing the exact details of the AVI files in question, or the formats and codecs supported by the Humax, I can only suggest Handbrake. Simple and powerful. Produces excellent results.
S. -
Having more than one mail box, how do I define which will be the one to send e-mails?
I have 5 mail boxes and always when I send an e-mail, it sends automatically from one that I don't use much. How do I change for my preferred e-mail?
Mail preferences under Compose tab. Set which account to send mail from, or set it to use the highlighted account.
You might also verify in Mail preferences under Accounts, that each account has it's own SMTP server. Be sure the correct one shows for each account. I would also check the box to use only that server for that account, which will insure that the correct server and only that server will be used for the account. Otherwise if the SMTP server for the sending account fails, it will just switch to another account's server. -
Hi there,
I'm working on testing a AJAX and JavaScript Project which has several pages but all in the same URL. I need to test some attribute on the page or parameter past by AJAX or Javascript. Can Web Performance Test work to get what I want?
Thanks,
Hello,
Thank you for your post.
Web performance test is used to test if a server responses correctly and the response is consistent with what we expected. And we test the response speed, the stability and scalability.
The Web Performance Test Recorder records both AJAX requests and requests that were submitted from JavaScript, but
web test does not execute JavaScript. I am afraid that you can’t use web test to test parameter past by AJAX or JavaScript.
Please see:
Web Performance Test Engine Overview
About JavaScript and ActiveX Controls in Web Performance Tests
From the first link, “Client-side scripting that sets parameter values or results in additional HTTP requests, such as AJAX, does affect the load on the server and might require you to manually modify the Web Performance Test to simulate the scripting.”
If you want to execute the function typically performed by script in web test, you need to accomplish it in coded web performance test or a web performance test plugin. Please see:
How to: Create a Coded Web Performance Test
How to: Create a Web Performance Test Plug-In
I am not sure what the ‘some attribute on the page’ is. If you mean that you want to test those controls on the page, you can do coded UI test, which can test that the user interface for an application functions correctly. The coded UI test performs actions
on the user interface controls for an application and verifies that the correct controls are displayed with the correct values. You can refer to this article for detailed information about code UI test:
Verifying Code by Using Coded User Interface Tests
Best regards,
Amanda Zhu [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
NEED A FUNCTION WHICH CAN DECODE THE URL
Hi all,
I am trying to decode the URL which appears in the address link.
Please read the following for more clarification:
On some search engine, I type the search item.
Say Google is the search engine
The search criteria that i gave is
Case 1
"Human Resources"
Resulting URL
"http://www.google.com/search?biw=1003&hl=en&q=Human+Resources"
Expected result after decoding the URL is
Human Resource
Case 2
Seaechitem http:// oracle
Result
http://www.google.com/search?hl=en&lr=&biw=1003&q=http%3A+%2F%2F+oracle
Expected Result after decoding the URL:
http:// oracle
Can anybody suggest me how to achieve this goal using Oracle?
Is there any function/procedure or any utility available to do it?
Thanks in advance.
HimanshuHi,
You lucky guy... I did something really close to what you need. I modified the code a bit (there might be some glitches) to match your requirements:DECLARE
ref1 VARCHAR2(1000 CHAR) := 'http://www.google.fr/search?hl=fr\&biw=1280\&q=http%3A+%2F%2F+oracle\&btnG=Rechercher\&meta=';
ref2 VARCHAR2(1000 CHAR) := 'http://www.google.fr/search?hl=fr\&biw=1280\&q=Human+Resources\&btnG=Rechercher\&meta=';
FUNCTION hextodec( h IN VARCHAR ) RETURN NUMBER
AS
h2 VARCHAR2( 10 );
i NUMBER( 10 );
j NUMBER( 2 );
d NUMBER;
BEGIN
h2 := LTRIM( h, '0' );
d := 0;
FOR i IN 1 .. LENGTH( h2 )
LOOP
SELECT DECODE( SUBSTR( h2, i, 1 )
, '0', 0, '1', 1, '2', 2, '3', 3, '4', 4, '5', 5
, '6', 6, '7', 7, '8', 8, '9', 9, 'A', 10
, 'B', 11, 'C', 12, 'D', 13, 'E', 14, 'F', 15 )
INTO j
FROM DUAL;
d := 16 * d + j;
END LOOP;
RETURN d;
END hextodec;
FUNCTION strip(samplevalue IN VARCHAR2) RETURN VARCHAR2
AS
finalvalue VARCHAR2(1000 CHAR) := samplevalue;
decimalvalue NUMBER(2);
pospct NUMBER;
extract VARCHAR2(2 CHAR);
BEGIN
finalvalue := SUBSTR(finalvalue ,INSTR(finalvalue ,'\&q='));
finalvalue := SUBSTR(finalvalue ,4);
finalvalue := SUBSTR(finalvalue ,1,INSTR(finalvalue ,'\&')-1);
finalvalue := REPLACE(finalvalue ,'+',' ');
LOOP
pospct := INSTR(finalvalue ,'%');
EXIT WHEN pospct = 0;
extract := SUBSTR(finalvalue ,pospct+1,2);
finalvalue := SUBSTR(finalvalue ,1,pospct-1) || chr(hextodec(extract)) || SUBSTR(finalvalue ,pospct+3);
END LOOP;
RETURN finalvalue;
END;
BEGIN
DBMS_OUTPUT.PUT_LINE(strip(ref1));
DBMS_OUTPUT.PUT_LINE(strip(ref2));
END;
/Warning: ESCAPE must be ON in order to do that under SQL*Plus (because of the '&').
Regards,
Yoann. -
I need a map which will retrive values in the same order i give?
can any body tell which map technique will retrive the vlaues in which order i inserted.
HashMap uses hash technique.
TreeMap has it's own.. like way.
so, which mapping tech. can i use for my requirement?
Thank u in advance.The hash, or tree etc. is the internal structure used
to retrieve items. I don't understand what benefit you
would expect to gain from a "ListMap" if one existed.It's like Ken Olsen founder and CEO of DEC once said (before the company went bust). I can't understand why anybody would want a computer in their home -:) -
Need a panelGrid which renders a List one item per column
I want to show items from a list in my backing bean as icons in a grid, 4 columns wide.
This means I need to iterate through the list and show each item in the list in a separate column, moving to the next row after every fourth item.
My experience with the dataGrid shows that I can only display one record per row with this control, and the panelGrid doesn't allow iteration through a data structure.
Any suggestions?I solve this problem using binding
First
<h:panelGrid id="panel" columns="4"
binding="#{BeanClass.panelList}" >
</h:panelGrid>
this is all that need in my jsp.
Inside my BeanClass i have a property panelList
/** This is in my BeanClass */
private HtmlPanelGrid panelList;
public UIComponentBase getPanelRole() {
panelList = new HtmlPanelGrid();
//TODO this is option, because already it's define in jsp page
panelRole.setColumns(4);
List objectList = getAnyWhere(); // this should be your object List
for (Iterator iter = objectList.iterator(); iter.hasNext();) {
AnyObject element = (AnyObject) iter.next();
// You can create other object ( link, button, simple text and soon )
// I wanted to create a button link
UICommand out = new UICommand();
out.setValue(element.getName());
out.setId(element.getId());
// Both name and id are String
panelList.getChildren().add(out); // here attach the components
return panelList;
public void setPanelRole(UIComponentBase panelRole) {
//I don't use this method
} -
I have a Table called Test_ X in which there are two fields:
1) date_value
2)Application_Name
requirement: we have to calculate the number of days ramaining through date_value field and compare it to with n days.
if it is less than n days it should raise an error through raiserror statement.
I get the below logic to get the no of days before expiry:
select GETDATE() 'Today Date',
date_value 'expiry date',
abs(DATEDIFF(dd,date_value,getdate()))'No of days before expiry'
from dbo.Test_X
where Application_Name='xyz'
With above satatement am able to get the Number of days before expiry .
my question is how to comare it with a variable say n days and if is less than n days it should raise an by using raiserror statement .
Please help or advice.You can use variables in the RAISERROR, but not expressions, e.g.
DECLARE @Days INT;
SET @Days = ABS(datediff(day, '19000101', CURRENT_TIMESTAMP));
RAISERROR (
N'This is message %s %d.'
,-- Message text.
10
,-- Severity,
1
,-- State,
N'number'
,-- First argument.
@Days
);-- Second argument
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
It is an iPhone 5.
The Problem is resolved by :
Click on the "Start" button. Click "Run." Type the word "cmd" in the open box. When the DOS screen comes up, type "netsh winsock reset." Press "Enter." Type "exit" to close the DOS window and go back to Windows.
Restart the computer.
Thanks to my friend Sunil.
Read more: http://www.ehow.com/how_2125133_do-winsock-reset.html#ixzz2kyccghec -
Function module to convert character type to required data type
Hi,
Is there a function module which can convert data in character type to any other required data type?
Like i have a date 12.2.2008 and it is stored as character now i want to convert it into type d.
so that when i use
Describe field <field_name> type <type>.
statement afterwards then it gives me D not C as its data type.
The requirement does'nt stick to conversion of just one data type.I need an FM which can convert data in character type to any data type.
Hope you understood the problem.
Thanks for your time.Hi,
Use the code.
data : date like sy-datum.
call function 'CONVERT_DATE_TO_INTERNAL'
exporting
date_external = '01.01.2008'
IMPORTING
DATE_INTERNAL = date
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 1
OTHERS = 2
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Morris Bond.
Reward Points if Helpful. -
Function Module to Convert Amount to the Right Decimal
Hi,
There is a function module that helps convert currency without decimals into the right format. For eg if the amount in BSEG table is in Taiwanese Dollars it will be displayed as 17.95 whereas the real amount is 1795.
So there is a function module which will convert the amount of 17.95 to 1795 (which can be used in a report for eg), once we pass the amount and the currency.
Any help would be greatly appreciated.
Thanks in advance.
MickHello,
Make use of this sample:
REPORT ZV_CONVERT_CURR .
DATA : L_NETWR TYPE VBAP-NETWR.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
DATE = SY-DATUM
FOREIGN_AMOUNT = '10.00'
FOREIGN_CURRENCY = 'INR'
LOCAL_CURRENCY = 'EUR'
IMPORTING
LOCAL_AMOUNT = L_NETWR
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
DERIVED_2_TIMES = 5
OTHERS = 6.
WRITE: L_NETWR.
Cheers,
Vasanth -
Transaction Currency Tables which will give totals only
Transaction currency purpose bseg, bkpf, bsis, bsid contain document wise details hence will not be useful for my purpose, i need a table which will give transaction currency totals only.
Hi Anu,
I am unable to understand your exact requirement as if you need total of any transaction currency then there must be a criteria for the same like one want to add all currencies monthly/annually/weekly for reporting purpose and in this case you have to write a report and add currencies.No tables can hold such calculative recordes.
Please elaborate more so I can u'stand requirement.
Regards,
Gaurav
Maybe you are looking for
-
Mac Projectors not working at all
Hey all, This issue is very frustratring... I am simply trying to publish a Macintosh projector from a PC running Flash CS3. It creates an app folder fine, but when I drag it over to any of the several Macs in our office it doesnt run. I also tried t
-
Integrated planning Content and SEM-BPS Content
Hi Experts Is there any integrated planning Business Content for CRM? Where do I find it? SEM-BPS has Business Content planning scenarios for CRM. Is this BC also available in BW-BPS now? Where do I find it? We use NW04s BI and CRM 5.0. Kind regards
-
Is a separate update page necessary?
Hi Is it necessary to have a separate page for updates when you have a requirement to allow updating of records for only a specific set of users or roles? Say i have a page that allows querying, inserts, and deletes for records. Now if I only want s
-
anyone help me? Message was edited by: anand N
-
The hard dri've on my zen touch doesn't appear to be working. It started freezing when skipping tracks. Then I loaded it into recovery mode and tried to reinstall the firmware, but again it just froze. Now I can only access my player in recovery mode