FM or text function for initial capitals
Hi everyone.
I need to turn a sentence into initial capitals. In other words, if I get a string such as
"one thousand and forty dollars" I want a function that returns "One Thousand and Forty Dollars".
Can anyone help
Regards
Martin
Hi Martin,
you need to separte each word of the sting take it into the separete word..and try to use the TRANSLATE key word with PATTARN..
like below
DATA: text TYPE string.
text = `ADFDFDFD`.
TRANSLATE text USING 'Aasdfsd'.
write:text. "ouptu will be Adfdfdfd
and do that for all your words in that string ...and merge into one your final sting...
other than this i think we don't have the option.
hope it helps...
Thanks!
Similar Messages
-
Making a User Defined Function for Mapping in XI
Hi folks..
I knw how to make User defined Function in XI,
i was wondering about can we have any room for making a function for Initializing Purpose, which intializes few fields in source Message to some Global variables, and later we can use these Global Variables to set the the Target field
My Doubt is this...
i have Source & target Structure like this Structure like this....
SOURCE TEST DATA IS...
Parentsrc
child1src a
child2src b
child3src c
child4src hi
child4src hello
child4src hey
(On the basis of instances of child4src the istance of the Parentdst will be generated)
TARGET DATA SHUD BE LIKE THIS....
Parentdst
child1dst a
child2dst b
child3dst c
child4dst hi
Parentdst
child1dst a
child2dst b
child3dst c
child4dst hello
Parentdst
child1dst a
child2dst b
child3dst c
child4dst heyHi
You have to modify your target structure:
<b>Source</b>
Parentsrc
child1src a
child2src b
child3src c
child4src hi
child4src hello
child4src hey
<b>Target</b>
<b>root</b>
Parentdst
child1dst a
child2dst b
child3dst c
child4dst hi
Parentdst
child1dst a
child2dst b
child3dst c
child4dst hello
Parentdst
child1dst a
child2dst b
child3dst c
child4dst hey
<b></root></b>
Now map like this:
child4src -
Parentdst
child1src--|
child4src--| UseOneAsMany -- Splitbyvalue --- child1dst
child4src--|
child2src--|
child4src--|UseOneAsMany --Splitbyvalue --- child2dst
child4src--|
child3src--|
child4src--| UseOneAsMany -- Splitbyvalue --- child3dst
child4src--|
child4src -- SplitbyValue -- child4src.
Regards
Suraj -
Rich Text Editor functionality for a DIV tag in a publishing page in SharePoint online
Hi,
We are having a requirement where we need RTE behavior of SharePoint 2013 Rich Html Field for a custom DIV. The scenario goes like this:
1. I have a publishing page
2. I dropped the content editor web part and to that content editor web part I will point to an HTML file that needs to be rendered in that content editor web part
3. I have one DIV in the above mentioned HTML files and I want that div to be editable and I need to RTE options for that DIV.
How to accomplish the above behavior?Hi,
According to your post, my understanding is that you wanted to create html rich text editor for a DIV tag in a publishing page in SharePoint online.
You can create your own Rich Text Editor.
Here are some great blogs for your reference:
An Example to Use HTML Rich Text Editor
Example: Using the Editor's instance
Rich Text Editor control in SharePoint 2010
Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
Office 365 forum
http://community.office365.com/en-us/forums/default.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Mat. for Initial Download: Table not supported by function "C_"
Hi All,
We are in SRM 5.0 & ECC 6.0 with Classic scenario. While uploading the MATERIAL through R3AS, we have the "Mat. for Initial Download: Table not supported by function C_" & "No product ID determined for material number ... of logical system" error in SMW01.
In SMQ2 in SRM, Queue is blocked with "Error in Mapping (Details: transaction SMW01)"
For your information RFC Users at both the ends have SAP_ALL authorisation. SAP Notes 720819, 420980 & 432339 are implemented.
Please guide me to resolve this issue.
Regards
Ashutoshhi,
How was the issue resolved , i am having the same problem.
can somebody provide with clue
regards -
Mat. for Initial Download: Table not supported by function
Dear All,
While replicating material from R3AS, I am getting error in SMW01 as below:
"Mat. for Initial Download: Table not supported by function"
Kindly suggest.
Regards,
SagarHi,
if anybody is interested:I solved the problem for our systems, but it's not a very nice solution:
In backendsystem, which is ECC 6.0 for us, in table CRMRFCPAR the field CRM_REL was empty for connection to CRM. I think this field should be filled automatically but it wasn't. I filled it 'hard' with '700' and then product/material data could be replicated.
Background:
In ECC system while collecting material data the subroutine GET_DOWNLOAD_PARAMS_AND_QUEUE of FG CRM0 is called and there is a request 'IF gt_rfcdest-crm_rel GE '500'.'
This field crm_rel is filled from table CRMRFCPAR.
I think CRMRFCPAR-CRM_REL should be filled automatically when using SM30 using the RFC-Destination but in our system it was empty. (CRMPAROLTP -> CRM_RELEASE is set !). So I set CRMRFCPAR-CRM_REL 'hard' in SE11 to '700'.
This is not a very nice solution but maybe it will help anyone.
I'm also interested if anybody has another better solution.
Regards
Christoph -
Both my boss and I have the iPhone 5C for Verizon. When I text, I have the little microphone next to the space bar, allowing me to use the speech to text function. He does not. How do you turn this on or remedy this problem?
Does your boss have Siri turned ON? See Settings > General > Siri.
-
Financial Reports - Text function to trim description for charts
Hello!
I have looked at the text functions in Hyperion Financial Reports Studio 9.3.1 to grab either Member Description or Alias ( Planning ) and need to trim or section or segment per the following example:
Member = "C3402" Alias = "C3402 Major Projects South"
Need to get either "Major Projects South" or just "South" to appear in legend or axes description in charts and graphs.
I have tried MID(<<MemberAlias, 1, 1, 1>>), 7,10) is there something else available?
Any suggestions or input appreciated.
Regards
NigelI suggest modifying the descriptions as per the reporting needs, because the descriptions are there to be used on the reports. Removing the name from the description would be a good way but you should be sure that it will not have a negative impact on any of the developed parts of the application..
-
Spry Validation-text field shows the "required" text even in initial state
Hi,
I'm having trouble with spry validation.
I insert my spry textfied and go to the properties inspector where I choose validate on "Blur" and "submit" for the Required state. I check the required box for the "required state" but the initial state will also have the "a value is required" text. If I try to delete the "a value is required" text from the initial state, the required state won't show this error.
What should I do?
Any help is much appreciated.
Thank you.Hi, thanks so much for the reply
Well the javascript came with the spry file that I downloaded from the adobe site.
Here is my statement:
<label for="name"><span class="style87">Name:</span></label>
<span id="sprytextfield1">
<input name="name" type="text" class="textInput" id="name" />
<span class="textfieldRequiredMsg">A value is required.</span> </span></p>
<p> <span class="style87">
<label for="email">Email:</label>
</span><span id="sprytextfield2">
<input name="email" type="text" class="textInput" id="email" />
<span class="textfieldRequiredMsg">A value is required.</span></span></p>
This is the statement for the submit button:
<span class="clearIt">
<input name="send" type="submit" id="send" onclick="MM_validateForm('username','','R','password','','R','name','','R','email','','R' ,'comments','','R');return document.MM_returnValue" value="Send comments" />
</span><span class="clearIt">
<input type="hidden" name="MM_insert" value="form1" />
This is the javascript
<script type="text/javascript">
<!--
function MM_validateForm() { //v4.0
if (document.getElementById){
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
//-->
</script>
This is at the bottom of the page:
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur"]});
//-->
</script>
Thank you for your help. -
Text determination for billing document
pls tell me text determination for billing document.pls tell me each and every phace for text determination for header billing document;
when am creting text determination am getting so many problems,
i saw in text form in header text,but i didnot get it in out put invoice,
pl send each and every phace of the text determinations,if possible send screen shots for text determination,
its urjunthi
1) T-code VOTXN ,for the text object Customer>Sales and distribution>click the Text types-->create your 4 digit Text ID
2) Come back to initial screen of this t-code and again selct the text object Customer-->Sales and distribution and click change. Select the text procedure and double click on the Text IDs in text procedure.Here you create a new sequence and select the 4 digit Text ID you have created initialy.
3)Asign the Text procedure which you have selected in step2 and double click onText procedure assignment .Here you assign the Text ID to the Customer Accout group.
4) In the customer master,sales area tab>Extras menu>text,Select the text which you have created now and enter text into it. and save.
The text which you have created now ,can be used for multiple purpose(Ex.sales order,delivery,billing,pricing,inforecords,legal). for example in this case, You just want to display this text during sales order processing,then proceed as follows,
5)T-code VOTXN ,for the text object Sales document>Header>click the Text types-->create your 4 digit Text ID.
6) Come back to initial screen of this t-code and again selct the text object Sales document-->Header and click change. Select the access sequence and create new acces sequence(This access sequence is similar to that of in Pricing).Select this acces sequence and double click the access sequence for text ids.Here in the first column this is Serial no.second column is text object(This is the area from which text has to be refer.In our case we have created the customer Text object for sales and distribution area,so i.e.KNVV) and the next column is Text id,This is the id which we have created at customer text object for sales and distribution initialy,at step 1). The next column is partner function,it will identify for which parter this text has defined.Next 2columns are Languages(if you want to define for all langugage or specififed language),next column is for specified languge for partner function.if you have any requirement to be fulfilled you can create those requirements in the next columns or else leave blank,save and come back to text proceudure.id.
7)Select the text procedure(for ex.01-Sales header) and double click on the Text IDs in text procedure.Create new entries Fill in the sequence and the text id which we have created for sales document-header(in step 5).There is a small check box in the 3rd column which is used whether the text should be refered or copied(this is used if you want to modify the text during the sales order processing or just dispaly the originail text as it is),next column is whether the text should be displayed while creating or it is not obligatory, last column is acces s sequce,this is nothign but the sequence which we have created in step 6) and save.
8)in the final step assign the text proceudre id to the particualre sales order. -
BI IP --- Planning function for File Upload
Hai All,
In BI IP , When I am trying to load the data (text file) by using Planning function for File Upload. I am getting an error message When I am clicking on Update .
Error Message : Inconsistent input parameter (parameter: <unknown>, value <unknown>).
In Text file I am using Tab Separation for each value
Anyone help me out.
Thanks,
BhimaHi Bhima
Try one of these; it should work:
1. If you are on SP 14 you would need to upgrade to SP 15. It would work fine
2. If not, then -
a] apply note 1070655 - Termination msg CL_RSPLFR_CONTROLLER =>GET_READ_WRITE_PROVIDS
b] Apply Correction Instruction 566059 [i.e: in Object - CL_RSPLFR_CONTROLLER GET_READ_WRITE_PROVIDS,
delete the block: l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = p_infoprov ).
and insert block - l_r_alvl = cl_rspls_alvl=>factory( i_aggrlevel = i_infoprov ).
Goodluck
Srikanth -
Do you know how to change the Text Object for Billing Document?
Hi,
If you execute Transaction VOTX or VOTXn it will take you to Text Determination. The Billing Doc & Sales Document both has the VBBK as Text Object for me and is it like that for all.
I need to change the Text Object to VBRK for Billing Doc, which is the ideal because I am using the Function Module READ_TEXT to retrieve text. This work perfectly for Sales Document which has VBBK as Text Object, but does not work for Billing Doc where it through as error message saying Text 0020000021 ID 0002 language EN not found.
Thank You
KishanHi kishan,
For updating these text you can use FM 'SAVE_TEXT'.
As for your problem, to get the parameter you need, go to the billing document, go to the text, and display it in plain page mode.
Then you do 'GO TO' -> 'HEADER', and a pop-up window open with the parameters you need Obect type, ID, Name, ...
Regards,
Erwan. -
How to maintained the Text language for CKF keyfigure
Dear All,
Please let me know how to maintained the text language for CKF I am using only keyfigures in CKF.
Issue is text is not showing in Spain language when user exeuted the report (longin Spain) for CKF keyfigures .
As per report design there are formuals and direct keyfigures and CKF has defined and we keep it under in Row struture in the report.
After exeuted the report (Login Spain)Text has converted in all languages along with spain except for CKF keyfigures.
Issue in text CKF's:
There is a main CKF (Cost) under this again we defined two sub CKF's those are total cost and average cost. We able to see the text in Spain language for Main CKF(cost) and also cheked in RSZELTTXT(Texts of reporting component elements) for the same.
We can able to see the text in all languages for main CKF(cost) and enteries are there in RSZELTTXT table.
We can see only the text in english for total cost and average cost and also enteris are there only in EN in RSZELTTXT table.
It would help to me if any one can answer my question.
Thanks in advance .
Regards,
MQU can fetch the texts for the items using
Read_text.
Example:
g_f_tdname = xvttp-vbeln.
g_f_obj = p_obj.
g_f_langu = 'DE'.
REFRESH g_t_lines.
CLEAR g_t_lines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = p_var
language = g_f_langu
name = g_f_tdname
object = g_f_obj
TABLES
lines = g_t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The Required fields are,
Text-id ,language,name,object.
Let me know if you further require help.
Regards -
Text Area for long text not appearing properly for BBP_POC_DISPLAY Service
Hi,
In our development we have added additional Icon at ITS in Process PO transaction and onclicking that icon Web dynpro AB screen called with the Purchase Order No of selected row .(SRM 5.0)
There is one more icon in Web dynpro screen on click of that Purchase order service open in ITS with display mode .This is achieved with service BBP_POC_DISPLAY from Web Dynpro-AB.
This is also working ok only the issue is in Document tab of PO The Text Area for long text appear at Top .This functionality is working fine with BBP_POC service from ITS .
Has anybody faced this kind of issue ?
Thanks,
SMSHi SMS,
I am unsure of the additional component you are talking about. In general, issues with text area misplacing, is solved by note 1067625. May be you can check it.
thanks,
Ashwin -
How to find the text id for the text in the sales order
Hi all,
How to find the text id for the item-text in the sales order?
There are different Text available in the sales order under item like Warehouse instruction, CSR instruction...
I want to know the corresponding Text id for the text ELECTRONIC ORDER COMMENT.
Table TTXID contains the validation of the Text id.
Please help me in knowing the way to identify the text-id from the text list..
Thanks foryour help
Suresh KumarU can fetch the texts for the items using
Read_text.
Example:
g_f_tdname = xvttp-vbeln.
g_f_obj = p_obj.
g_f_langu = 'DE'.
REFRESH g_t_lines.
CLEAR g_t_lines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = p_var
language = g_f_langu
name = g_f_tdname
object = g_f_obj
TABLES
lines = g_t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The Required fields are,
Text-id ,language,name,object.
Let me know if you further require help.
Regards -
Can I use the value returned from a Text Function in another Formula?
I'm writing a report in Hyperion System 9 BI + Financial Reporting Studio version 9.2. I have 2 grids in my report.
Grid1 Column A is set up as a text function using the function type - <<GetCell("Grid2", 1, a, 1)>>. I would like to use the values returned from this text function in Column A (Grid 1) in a formula in Column B (Grid 1).
Is it possible to use the values returned in Column A of the text function in another formula? My report does not seem to recognize Column A as numerical values, even though the values to be returned are numerical.
If so, how do I recognize the values in Column A Grid 1 as numerical values and not text?
Thanks for any help you can offer!Hi Edson,
Yes you need to use the CALC_ERROR macro function to be able to test whether the last macro function returned an error. CALC_ERROR will return an 'X' if there an error occured during the execution of the last macro function.
You can use a macro similar to the following:
IF
CALC_ERROR( )
= 'X'
DO SOMETHING HERE
ENDIF
Let me explain how this works internally. The SAP system maintains a global variable g_flg_calc_error during the execution of macros in the planning book. The g_flg_calc_error variable will contain the value of f_calc_error that was set by the last macro function which executed. The ABAP coding of a planning book is something like this:
data: g_flg_calc_error type /SAPAPO/FLAG.
* SAP will pass g_flg_calc_error variable to all macro
* functions. When SAP calls a macro function, it does
* something like this.
call function '/SAPAPO/MACRO_FUNCTION_HERE'
exporting
plob_values = i_s_adv_plob_values
sdp_book = g_c_advf_sdp_book
sdp_view = g_c_advf_sdp_view
tables
cols_index = i_t_cols
value_tab = l_t_value_tab
changing
f_calc_error = g_flg_calc_error
As you can see, the g_flg_calc_error variable
is passed in the "changing" part of the call. The macro function being called can then use the f_calc_error
variable to change the value of the global
g_flg_calc_error variable. In fact, the macro function being called can also check (by looking at the f_calc_error variable) if the last macro function reported an error. The CALC_ERROR macro function just checks the value of f_calc_error parameter (w/c in fact is the value of the g_flg_calc_error variable) and returns "true/X" if the f_calc_error was set to true by the last macro function.
Hope this helps in clearing things out
Maybe you are looking for
-
Processo de entrada NFe, processo de compra padrão
Olá, Qualquer um pode por favor me avise o processo de compra padrão na NFe Gosto de como as da empresa receber XML de fornecedor e como o processo começa em NFe e como a NFe trata de ERP, pelo menos. plese fornecer com boa explicação ele vai me ajud
-
How do i make my own wireless connection the default
Everytime my mb goes to sleep mode and then wakes up it reconnects to one of the other wireless networks in range instead of my own. Is there a way to make it to were my connection is the default? Also is there a way to make it to where the macbook d
-
The programs open tab ( list of programs open on comp) is always popping up on middle of screen whenever I go near the mouse. HELP!!! Have turned it off recently and moved it, a mac mini, now on new plug in and set up it now does it. Yes I have tur
-
Unable to install on OS X 10.9.3
Why will Adobe Reader not load unto Mac Air, using OS X 10.9.3?
-
Source URL/Address - Hazel
Hazel is not supporting my credit card so I cant get it. But in the trial version Hazel has this property "Source URL/Address" which is the same information as "Where from" value in "Get info" in the contextual menu of a file. Does anyone know how t