Is there any inbuilt function to split a comma seperated text
Dear Friends,
Is there any inbuilt function to split a comma seperated text for inserting the values thus split in to a table.
Text Ex: Mango, Orange, Pinapple, Jack Fruit
Output: Mango
Orange
Pineapple
Jack Fruit
Thanking you,
With regards,
Franklin
Using DBMS_UTILITY.COMMA_TO_TABLE:--
DECLARE
l_tab dbms_utility.uncl_array;
l_tablen number;
BEGIN
dbms_utility.comma_to_table('A,B,C', l_tablen, l_tab);
dbms_output.put_line('TABLE LENGTH : '|| l_tablen);
dbms_output.put_line('TABLE COUNT : '|| l_tab.COUNT);
for i in 1..l_tablen
loop
dbms_output.put_line(l_tab(i));
end loop;
END;
source --google.
Similar Messages
-
Is there any bapi/Function module to change only header text in fb02
Hi ,
I want to change only header text in FB02 .the header text will come from a internal table.My Requirement is
1. open a document in FB02
2.change the header text of the document.
Right now i'm doing this through an BDC.but i'm looking for a BAPI /FM.
I Tried bapi_acc_gl_posting_post, fI_document_change..
is there any BAPI/FM for this???
Thanks,
ChallaYou can use SAVE_TEXT FM
Thanks
Seshu -
Is there any recursive function in DB2
Hi all,
Could you please tell me is there any recursive function in DB2 and if yes then please provide me a sample code.
I want to write a function as below but it's giving me following error:
>[Error] Script lines: 1-33 -
( DB2 SQL error: SQLCODE: -440, SQLSTATE: 42884, SQLERRMC: SCF_MC2;FUNCTION
Message: No authorized routine named "SCF_MC2" of type "FUNCTION" having compatible arguments was found.
Line: 11 )
create FUNCTION scf_mc2 (@@certname varCHAR(20),@@assignee varCHAR(20),@@currentUser varCHAR(20), @@javaLocale
varCHAR(20) )RETURNS float
LANGUAGE SQL
READS SQL
DATA format:
BEGIN ATOMIC
declare @n_cost float;
declare @n_cost1 float;
set @n_cost1 =0.00;
FOR @n_cost as
select
COALESCE ((CASE substr(ep.part_id,1,5) when 'cours' then tp2.scf_nc(ep.part_id,@@assignee,@@currentUser,@@javaLocale) else
tp2.scf_mc2(ep.part_id,@@assignee,@@currentUser,@@javaLocale) end ),0) cost
from
tpt_ext_ce_certification certi
inner join tpt_ext_ce_track tr on tr.certification_id = certi.id
inner join tpt_ext_ce_group gr ON gr.track_id = tr.id
inner join tpt_ce_education_plan ep ON ep.owner_id = gr.id
WHERE
tr.locale_id = @@javaLocale
AND
gr.locale_id = @@javaLocale
AND
certi.locale_id = @@javaLocale
and
substr(tr.flags,2,1) = '1'
and
certi.id=@@certname
DO
SET @n_cost1 = @n_cost+@n_cost1;
END FOR;
return @n_cost1;
end format
Regards
VishalJava is an object-oriented language, so you're not just searching for a method to do what you want, but for a Class, that provides that ability.
And since you don't define what "the date that I want" means I can only guess.
If you've got the date value in a String in some format, then you might look into the DateFormat or SimpleDateFormat classes. -
Is there any RFC function module to read domain fixed value
Hi,
Is there any RFC function module to read domain fixed value from remote system in basis layer?
As we cannot simply wrap DD_DOMVALUES_GET with a new RFC module,because remote system will not install our component, our wrap function module is not there.
We may need a RFC fm from basis layer.HI,
Try using Function Module:
DD_DOMA_GET , If it is RFC enabled it can be used for reading the domain,
Kindlly go through this link below:
How to get "Fixed Domain Values" from other system by RFC-Call?
Hope it helps,
Regards
Mansi -
Is there any standard function available for generation of RIN number.
Hi experts,
RIN is Renewable Identifiaction Number.
Structure for a RIN is a 34-character numeric code in the format:
YYYYCCCCFFFFFBBBBBRRDKSSSSSSEEEEEE
YYYY = Year of Batch Production (when it leaves the facility)
CCCC = Company registration ID
FFFFF = Facility registration ID
BBBBB = Producer assigned Batch Number
RR = Equivalence Value for the renewable fuel
D = Renewable Type Flag (1 - cellulosic; 2 - non-cellulosic)
K = RIN Type Flag (1 - standard, 2 - extra-value)
SSSSSS = RIN Block Starting Gallon Number
EEEEEE = RIN Block Ending Gallon Number
Is there any standard function avaiable in R3 to generate such number?
Please reply asap.
Thank you in advance.Hi deepak,
1. we can use the FM
DATE_CHECK_PLAUSIBILITY
regards,
amit m. -
Is there any registry functions available in Flex
Is there any registry functions available in Flex:
So that it can be useful...to make a application to start during startupI dont think so through Flash player security constraint you can access registry on local.
-
Is there any way to find out where a standard text is used?
Is there any way to find out where a standard text is used?
We can see the text from SO10, but i want to find out where it is used.HI
juct check out this thread
How to find Standard Text
a similar query is answered here
hope this helps
regards
Aakash Banga -
Is there any way to convert the selected rows to text in javascript??
Hi All,
I have place some word file to indesign cs 5.5 it is almost in one table, i need to separate the text from the real tables, Is there any way to convert the selected rows to text in javascript??
If there is no way to make that, any one can help me to make a script to cut the selected rows and place it in privies pointer of the table to make it independent table and after that convert it to text ?This insert the rows contents after the table instead of being before:
for (var r = app.selection.length - 1; r >= 0; r--) {
for (var t = app.selection[r].rows.length - 1; t >= 0; t--) {
for (var u = app.selection[r].rows[t].cells.length - 1; u >= 0; u--) {
for (var c = app.selection[r].rows[t].cells[u].paragraphs.length - 1; c >= 0; c--) {
app.selection[r].rows[t].cells[u].paragraphs[0].move (LocationOptions.AFTER, app.selection[r].rows[t].parent.parent.storyOffset.parent.insertionPoints.nextItem(app.se lection[r].rows[t].parent.parent.storyOffset));
if (c != 0)
app.selection[r].rows[t].parent.parent.storyOffset.parent.insertionPoints.nextItem(app.se lection[r].rows[t].parent.parent.storyOffset).contents += "\r";
if (u != 0) {
app.selection[r].rows[t].parent.parent.storyOffset.parent.insertionPoints.nextItem(app.se lection[r].rows[t].parent.parent.storyOffset).contents += "\t";
else {
app.selection[r].rows[t].parent.parent.storyOffset.parent.insertionPoints.nextItem(app.se lection[r].rows[t].parent.parent.storyOffset).contents += "\r";
for (var r = 0; r < app.selection.length; r++) {
for (var t = app.selection[r].rows.length - 1; t >= 0; t--) {
app.selection[r].rows[t].remove (); -
Is there any way of getting split screen function in firefox 4
Being able to split screen was a very helpful feature in the previous version of firefox, however, it is not available in version 4. Is there any other way of getting this tool?
Firefox has never had a built-in option to split the screen, such a feature is added by an extension. The only one that I know of that is compatible with Firefox 4 is Split Pannel - https://addons.mozilla.org/firefox/addon/split-pannel
-
Are there any JCOP functionality to measure performance within card ?
Hello,
We are trying to measure some functions performances. Bu we dont have any specific tool for that.
We made some tests with PC applications, but it is not precise(as you know there are some scard library delays).
Is there any internal card(jcop) functionality to estimate the time interval for our card functionalities, or do you you have any other suggestions ?
Thank you in advance.Hi,
Given a card does not have a real time clock it is not really aware of time in this way and adding a measurement would affect the performance as well (note there is some timing in the crypto chip to help protect against certain attacks, but this is not exposed to the JC API).
The best you can do it measure the time before and after transmitting an APDU at the lowest level possible. It is safe enough to assume that the PC/SC overhead is going to be consistent for the same amount of data. You could even benchmark just sending data to the card without doing anything with it to measure the time for transmitting your data. This is not generally needed as you are interested in the performance as perceived by a client application or a user and this transmission overhead is a part of that as well.
Just my $0.02 anyway.
Cheers,
Shane -
Is there any predefined functions to get the current month info?
Hi,
I have a business rule which is used to calculate the budget of current month. Right now, I set the current month as a variable, which will need to be changed every month, I know it's stupid, I am new to this area, so I am thinking is there any better way to do this?
Any inputs is appreciated.
Thanks
TonyUsing substitution variables for current month is perfectly acceptable and widely used.
Cheers
John
http://john-goodwin.blogspot.com/ -
Is there Any Standard Function Module that populates mail in SAP inbox
Hello Experts,
The scenario that we are working is , Email Integration in SOLMAN.That is the done using XI , first the mails raised for Support Desk issues from Outlook are read and collected in XI ,now the requirement is from XI we have to populate the mails into SOLMAN's Inbox. So is there any standard FM that can be used in XI for this purpose.
Or is there any other way in which the mails can come into Solman's Inbox,If someone has worked on this , please give me your valuable suggestions ASAP.
Thanks & Regards,
MohanaHi deepak,
1. we can use the FM
DATE_CHECK_PLAUSIBILITY
regards,
amit m. -
Is there any way in RH9 to search on the text that appears in images?
I have a Webhelp project with many screen shots. Some of these screen shots contain messages. I think users mights want to search the help project when these messages appear on the screen. Are there any options in RH9 that would allow this?
Thank you very much for any help or guidance you can provide.
nankinnankinI doubt there is a chance with any software. The messages are part of an image so as far as any search tool is concerned, there is no text.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Hello,
I often work with long pieces of text that are too long to be fitted inside a pre-determined text box.
I want to know how much text is not appearing inside of my text box without having to change the size of the text box. Is there any way of doing that? Perhaps via plug-in?If there is more text than will fit inside an area text object, the out port of the object will show as a red + sign. Select the object with the Selection tool. Click on the red + and the pointer becomes a "loaded text" icon. Click and drag on an empty space of the artboard, creating a new text object containing the overflow text. It may be necessary to resize the new text object to view all remaining text.
-
Function module to read Comma Seperated File (CSV)
Hi,
Is there any Function module to read CSV file from presentation server or Application server?
Regards,
MadhuHi madhukeshwar,
1. Exactly for this purpose,
i have developed an independent FORM
where we give inputs
a) file name (eg. abcd.txt)
b) separator (eg , COMMA in your case)
c) internal table (eg. t001)
2. It will provide the data
in proper format
(no matter what the separator)
(it can work with any kind of separator)
3. just copy paste in new program.
REPORT abc.
change your table declaration and file name
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
PERFORM myupload TABLES t001 USING 'd:\t001.txt' ','.
BREAK-POINT.
in debug see t001
INDEPENDENT FORM
FORM myupload TABLES orgtab
USING filename separator.
Data
DATA : BEGIN OF itab OCCURS 0,
myline(1000) TYPE c,
END OF itab.
DATA : extension(5) TYPE c.
DATA : name(100) TYPE c.
DATA : newfilename TYPE string.
Step 1
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
TABLES
data_tab = itab.
Step 2
LOOP AT itab.
REPLACE ALL OCCURRENCES OF separator IN itab-myline WITH
cl_abap_char_utilities=>horizontal_tab.
MODIFY itab.
ENDLOOP.
Step 3
DATA : path LIKE pcfile-path.
path = filename.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
extension = extension
name = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
invalid_drive = 1
invalid_extension = 2
invalid_name = 3
invalid_path = 4
OTHERS = 5
Step 4
newfilename = filename.
REPLACE name IN newfilename WITH 'temp'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = newfilename
TABLES
data_tab = itab
FIELDNAMES =
Step 5
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = newfilename
has_field_separator = 'X'
TABLES
data_tab = orgtab.
ENDFORM. "myupload
3.
regards,
amit m.
Maybe you are looking for
-
Hi , Please assist as how can we do this thing i have a nested table of object type create or replace type a1 as object a number, b varchar2(30), region varchar2(30) create type a1_array s table of a1; declare v_a1 a1; v_a1_array a1_array:=a1_array()
-
Remote Access VPN Support in Multiple Context Mode (9.1(2))?
Hi Guys, I am currently running two Cisco ASA5520 (ASA Version: 9.1(2)) firewalls in Active/Standby failover and was contemplating the option of migrating my remote access VPN to these firewalls. However seeing that the new IOS now support mixed mult
-
I stood in line the first day the original iPhone came out to purchase one. The next day I purchased my second iPhone for my daughter and before long we had 4 iPhones in the house. We still to this day have 4 iPhones. Over the years several of my
-
I have a new iPad wi-fi lte 16gb.when I try to sync thru I tunes it keeps on accessing I tunes stores.i have windows xp service pack 3.after running diagnostics it showed iTunes secure connection failed.unable to sync completely even once. Plz help.t
-
I downloaded a knitting package with 50 pages. It has several pics on each page. The document prints but the pics won't come in. Any ideas. I have tried to reach the publisher to no avail.