How to convert a table exists in db into an ore.frame object ?
Hi:
I can get the "ore.frame "object that is returned by ore.ls() while have created by ore.create(),but I want to make a table in db as "ore.frame" object and I can operate it in R console.But how?
thanks very much.
Let's say you have a table <tt>FOO</tt> in the same schema that you used to <tt>ore.connect</tt> to. To get it as an <tt>ore.frame</tt> object:
ore.sync(table = "FOO")
ore.attach()
Similar Messages
-
How many types of tables exists and what are they in data dictionary?
hi,
How many types of tables exists and what are they in data dictionary?
regards.Hello Liu,
Please search in forum before posting any question .
anyhow check the below link :
http://web.mit.edu/sapr3/dev/sap_table_types.htm
Thanks
Seshu -
How to convert database table into xml file
Hi.
How to convert database table into XML file in Oracle HTML DB.
Please let me know.
Thanks.This not really a specific APEX question... but I search the database forum and found this thread which I think will help
Exporting Oracle table to XML
If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
Hope this helps
Chris -
How to convert internal table data to PDF format
HI,
I have an internal table data having one field with 255 chars. length.I want to send that intenal table data as attachemnt with external mail. i am thinking of converting that data into PDF format and use the FM to send the mail. How to convert internal table data to PDF format.
KishoreIn which format is your data in the internal table currently. Is it returned by a smartform/script or its just data fetched from some database table into an internal table. Since its obvious that the data should appear in the PDF with some Layout, you should be using smartform to format the data properly. See the Link
Smartform to PDF to EMAIL
This shows convertion of smartform to pdf and send it through email
Regards,
Abhishek -
How to convert Internal Table to Cluster Table ?
How to convert Internal Table to Cluster Table ?
Use :
EXPORT itab TO DATABASE dbtab(ar) ID key.
<i>EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
Additions:
1. ... = f (for each field you want to export)
2. ... FROM f (for each field you want to export)
3. ... CLIENT g before ID key )
4. ... USING form
5. ... FROM wa (as last addition or after dbtab(ar))
In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Implicit field names not allowed with clusters and Table work areas not allowed.
Effect
Stores a data cluster in database table dbtab. The specified objects obj1 ... objn (fields, structures, or tables) are stored as a single cluster in the database table dbtab.
The specified database table dbtab must have a standard structure.
The database table dbtab is divided into various logically-related sections (ar, two-character name).
You can export a collection of data objects (a data cluster) to a part of the database using a key (field key).
You can import individual data objects from this collection using the IMPORT statement.
Notes
In classes, you must always assign explicit names to the data objects you want to export, that is, you must use either addition 1 or addition 2.
In classes, you must always specify the work area explicitly, that is, addition 5 is obligatory.
The table dbtab that appears after DATABAE must be declared under TABLES (except in addition 5).
You cannot export the header lines of internal tables. If you specify the name of an internal table with header line, the system always exports the body of the table.
You cannot export data, object, or interface references.
The data is stored in the database, and is consequently not actually stored until a database commit occurs (see LUW). Until this point, you can undo all of your changes using a database rollback (see Programming Transactions).
Example
Exporting two fields and an internal table to the database table INDX:
TABLES INDX.
TYPES: BEGIN OF ITAB3_TYPE,
CONT(4),
END OF ITAB3_TYPE.
DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
F1(4), F2 TYPE P,
ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH NON-UNIQUE
DEFAULT KEY INITIAL SIZE 2,
WA_INDX TYPE INDX.
Fill the data fields before CLUSTR
before the actual export
INDX-AEDAT = SY-DATUM.
INDX-USERA = SY-UNAME.
Export der Daten.
EXPORT F1 FROM F1
F2 FROM F2
ITAB3 FROM ITAB3
TO DATABASE INDX(ST) FROM WA_INDX ID INDXKEY.
</i>
Regards -
How to check one table exist or not in SAP
Hi, Gurus:
How to check one table exist or not in the SAP.
Thanks,Hi,
Query the table DD02L..
Select single * from DD02L where tabname = 'Your table name'
AND TABCLASS = 'TRANSP'. " For transparent tables.
Thanks
Naren -
How to convert date format dd.mm.yy into yyyymmdd?
Hello experts,
how to convert date format dd.mm.yy into yyyymmdd?
Thanx
AxelHi
go through these previous threads on similar question
https://forums.sdn.sap.com/click.jspa?searchID=673529&messageID=1763194
Date Conversion in Flat File
converting the DATE(yyyymmdd) into MONTH(yyyymm) format
Date Format Conversion from MM.DD.YYYY to YYYYMMDD
gives clear idea
Reagrds
Kiran
Message was edited by:
ravi kiran naalla -
Anyone know how to convert a 3D sphere .STL file into a .igs file?
Anyone know how to convert a 3D sphere .STL file into a .igs file?
And for what? Why? This would be kinda atrocious and awful, but weird things happen...
Mylenium -
How to Convert internal table data into text output and send mail in ABAP
Hi All,
Good Morning.
Taking a glance at a code that converts internal table data to an Excel file in ABAP. also checked how to send this excel to mailing list as attachment.
But thought of doing it without excel.
I mean, I have an internal table which contains fields of all types (character,integer,date,time). Since it is only around 4 to 5 rows in it (output),why to convert it to excel. not required!!. Instead I want to send this output to User's mails as Normal mail body with No attachments.
Could anybody please suggest me a way as to how to send internal table data as a mail ( not as an excel or PDF etc).
as of now my findings are, it is quite complex to convert internal table data to email (Text) format. but i believe if there is some way of doing it.
Best Regards
Dileep VThere's something I have used in the past where we send out information about failed precalculation settings (which are stored in internal table gt_fail)
notice we use gt_text as "mail body"
TRY.
* -------- create persistent send request ------------------------
gv_send_request = cl_bcs=>create_persistent( ).
* -------- create and set document -------------------------------
* create text to be sent
wa_line = text-001.
APPEND wa_line TO gt_text.
CLEAR wa_line.
APPEND wa_line TO gt_text.
LOOP AT gt_fail ASSIGNING <fs_fail>.
MOVE <fs_fail>-retry_count TO gv_count.
CONCATENATE text-002
<fs_fail>-setting_id
text-003
gv_count
INTO wa_line SEPARATED BY space.
APPEND wa_line TO gt_text.
CLEAR wa_line.
ENDLOOP.
APPEND wa_line TO gt_text.
wa_line = text-007.
APPEND wa_line TO gt_text.
* create actual document
gv_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = gt_text
i_length = '12'
i_subject = 'Failed Precalculation Settings!' ).
* add document to send request
CALL METHOD gv_send_request->set_document( gv_document ).
* --------- set sender -------------------------------------------
gv_sender = cl_sapuser_bcs=>create( sy-uname ).
CALL METHOD gv_send_request->set_sender
EXPORTING
i_sender = gv_sender.
* --------- add recipient (e-mail address) -----------------------
LOOP AT s_email INTO wa_email.
MOVE wa_email-low TO gv_email.
gv_recipient = cl_cam_address_bcs=>create_internet_address(
gv_email ).
CALL METHOD gv_send_request->add_recipient
EXPORTING
i_recipient = gv_recipient
i_express = 'X'.
ENDLOOP.
* ---------- set to send immediately -----------------------------
CALL METHOD gv_send_request->set_send_immediately( 'X' ).
* ---------- send document ---------------------------------------
CALL METHOD gv_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE text-004.
ENDIF.
COMMIT WORK.
* exception handling
CATCH cx_bcs INTO gv_bcs_exception.
WRITE: text-005.
WRITE: text-006, gv_bcs_exception->error_type.
EXIT.
ENDTRY.
with the following declarations
* TABLES *
TABLES:
adr6,
rsr_prec_sett.
* INTERNAL TABLES & WORK AREAS *
DATA:
gt_fail TYPE SORTED TABLE OF rsr_prec_sett
WITH UNIQUE KEY setting_id run_date,
gt_text TYPE bcsy_text,
wa_fail LIKE LINE OF gt_fail,
wa_line(90) TYPE c.
FIELD-SYMBOLS:
<fs_fail> LIKE LINE OF gt_fail.
* VARIABLES *
DATA:
gv_count(4) TYPE n,
gv_send_request TYPE REF TO cl_bcs,
gv_document TYPE REF TO cl_document_bcs,
gv_sender TYPE REF TO cl_sapuser_bcs,
gv_recipient TYPE REF TO if_recipient_bcs,
gv_email TYPE adr6-smtp_addr,
gv_bcs_exception TYPE REF TO cx_bcs,
gv_sent_to_all TYPE os_boolean.
* SELECTION-SCREEN *
SELECT-OPTIONS:
s_email FOR adr6-smtp_addr NO INTERVALS MODIF ID sel.
DATA:
wa_email LIKE LINE OF s_email. -
How to convert internal table data into excel format?
Hi all,
I want to convert internal table data in excel format and then
send it as email attachment in workflow.
Please tell me how do i perform this.
Regards,
Arpita.Hi Arpita,
Try this sample code::
Send mail
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test Subject'.
loop at htmllines.
mailtxt = htmllines.
append mailtxt.
endloop.
mailrec-receiver = 'your receiver mail id'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'EXL'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 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.
Hope it will help you.
Regards,
NIkita -
How do I import an existing finalised movie clip into a new developing project ? I go through the imovie 11 procedure for importing and the list of clips (finalised and un-finalised) appears, but always "greyed out" which makes it impossible to create anything. I have tried placing it on the desk top and dragging but this doesn't work either.
AppleMan Thanks very much for the information, however I could't make it work. I followed your instructions to the letter, in fact I tried every which-way. I created a dedicated file into which I copied and pasted the project from "package contents" but it was still greyed out when I went to retrieve it. I also found that the file size was reduced to only a few Kb. Any further step-by-step instructions would be appreciated as I am obviously doing something wrong. Babowa It appears that in imovie everything has to be "finalised" before it can be used or shared elsewhere in the same way as a disk has to be to be played elsewhere. Funnily enough an MOV file I converted to Mp4 was not greyed out and I was able to import it.... an exercise I am not keen on because of resolution loss during conversion
-
Proc C - How to convert datetime variable in Proc C into C?
Hi,
Does anyone know how to convert a datetime variable in Pro C into C?
For Example,
Order_Table with OrderId and OrderDate fields.
How do I compare the OrderDate with the system datetime in Pro C or C?
Thank you.Maybe this will help:
http://asktom.oracle.com/~tkyte/Misc/CTime.html -
Do anyone know how to convert a decimal to binary, 1 into 01
do anyone know how to convert a decimal to binary
i wants to convert 1 into 01, but the computer print out 1, it didn't print 0
also 0 it also print only 0, and 3 it print11
so decimal of 3, the computer print correct, but 0 and 1 it print wrong
how can i print 01 if my decimal is 1
int a=1;
System.out.print(Integer.toBinaryString(a));
can anyone help me solve this question
and
you can use java or jsp
if you can use jsp it would be better, if not use javait's not printing anything 'wrong'.
0 in binary is 0
1 in binary is 1
All it's doing is cutting off leading zeros since they don't change the value.
1 is the same as 01 is the same as 00000001...no difference
Similarly, when you print decimal 3 as 11, it could just as easily say 00000011 and be correct, since the zeros don't change anything. -
How to convert desimal in range 0-100 into binary 8 bit.
hi everybody..
i have a questions. i want to design pwm that contollered by labview software..in pwm duty cycle..range of duty is 0-100. how to convert in the 8 bit binary?
example
duty_cycle binary
100 00000000
99 00000010
0 11111111If your percentage is x, then your 8-bit value would be y = (100-x)/100*256 = (100-x)*2.56.
You can convert y into binary easily enough.
EDIT: Nevermind, I just read your example again.
With having only 8 bits to play with, your percentage has to be in steps of 12.5. You could take your number and divide by 12.5. This would give how many bits are to be high.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions -
How to convert date format(mm/dd/yy) into dd-mm-yy
I want to convert date format(mm/dd/yy) into dd-mm-yy
like 12/23/06 into 23-sep-06hey, you can use SimpleDateFormat to format your date. this is sample code, maybe could help you.
class dateFormat
public static void main(String[] args)
Date now = new Date();
System.out.println("Before format : "+now);
SimpleDateFormat sdf = new SimpleDateFormat( "dd-MM-yy" );//Change your date format in here.
String display = sdf.format(now);
System.out.println("After format : "+display);
}If you already understand about my sample code, i think it's easy to make your own date format. Just modified few line of my code.
Maybe you are looking for
-
Windows xp and getting rid of all blackberry software problems
I am having major problems just uninstalling -Blackberry Desktop Manager 5.0.1 -Blackberry Device Software updater -Blackberry Device Software v4.5.0 for the Blackberry 8310 smartphone -Blackberry Device Software v5.0.0 for the Blackberry 9700 smartp
-
I am so frustrated tonight. My BRAND NEW Wacom Intuos tablet worked fine the last time I tried it, a couple months ago. I am running a Mac OSX with Parallels and Windows 7, which I run Photoshop CS3 on. It was doing fine but now suddenly I try it ton
-
Recently i have been getting the color wheel a lot and it is screwing with my happiness. Any thoughts on how to clean the computer up so this stops?
-
HTTPS using SOAP and sharing certificates
Hi Experts, We have been able to activate HTTPS port in our PI system and created a scenario with SOAP sender with option -- >> HTTPS without client authentication. Now, we generated the URL from sender agreement -- >> https:<host>:<port>:XISOAPAdapt
-
Transforming XML into complex type in ADF/Java
Hi all, Maybe a simple question for you all - maybe too simple for some of you - but not for me as a Java newbie. So I'd appreciate any help. I have used a WebService Proxy and created a new Pojo in order to create a Data Control. The WS proxy works