How to populate a table by sending a csv attachment to a particular mail id
Hi Experts,
I have to populate a table in the database by sending a csv attachment to a particular mail id.
Eg:
I have a table , test
with fields: name, designation, address
and i am sending a csv attachemnt with the values , name, designation, address to a generic email id say : [email protected]
my table -test should be populated automatically with the values from the attached csv.
Any idea how this can be achieved ?
Regards,
Archana
Hi,
Why cant you try uploading the data in your csv file to your table by using external table concepts? This would help you much i beleive.
CREATE TABLE "EXT_EMP_TEST"
( "EMPNO" NUMBER,
"EMPNAME" VARCHAR2(20 BYTE),
"JOB" VARCHAR2(20 BYTE)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY "DUMP_DIR"
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE
BADFILE 'emp.bad'
LOGFILE 't.log_xt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY ' " ' LDRTRIM
REJECT ROWS WITH ALL NULL FIELDS
"EMPNO",
"EMPNAME",
"JOB"
LOCATION
( 'emp_det.dat'
REJECT LIMIT UNLIMITED;
{code}
In the above code, default directory is the place where the file resides in your server. So before creating an external table you need to follow the below steps,
1. Create a default directory.
2. Place your file into that directory.
3. Create an external table using the above script.
4. Just execute the simple select statement upon that external table, {code} select * from EXT_EMP_TEST {code}
*NOTE: In the above exaple i have used .dat file to load the data, you need to specify .csv over there*
Regards,
Sakthi.
Similar Messages
-
How to Populate Internal table data to Table Control in a Report Program
Dear All,
How to Populate Internal table data to Table Control in a Report Program? It is a pure report program with out any Module pool coding involved, which is just used to display data. Till now it is being displayed in a report. Now the user wants the data to be displayed in a table control. Could someone tell me how to go about with this.
Thanks in Advance,
Joseph ReddyIf you want to use a table control, you will need to create a screen.
In your report....
start-of-selection.
perform get_data. " Get all your data here
call screen 100. " Now present to the user.
Double click on the "100" in your call screen statement. This will forward navigate you to the screen. If you have not created it yet, it will ask you if you want to create it, say yes. Go into screen painter or layout of the screen. Use the table control wizard to help you along the process. It will write the code for you. Since it is an output only table control, it will be really easy with not a lot of code.
A better way to present the data to the user would be to give it in a ALV grid. If you want to go that way, it is a lot easier. Here is a sample of the ALV function module. You don't even have to create a screen.
report zrich_0004
no standard page heading.
type-pools slis.
data: fieldcat type slis_t_fieldcat_alv.
data: begin of imara occurs 0,
matnr type mara-matnr,
maktx type makt-maktx,
end of imara.
* Selection Screen
selection-screen begin of block b1 with frame title text-001 .
select-options: s_matnr for imara-matnr .
selection-screen end of block b1.
start-of-selection.
perform get_data.
perform write_report.
* Get_Data
form get_data.
select mara~matnr makt~maktx
into corresponding fields of table imara
from mara
inner join makt
on mara~matnr = makt~matnr
where mara~matnr in s_matnr
and makt~spras = sy-langu.
endform.
* WRITE_REPORT
form write_report.
perform build_field_catalog.
* CALL ABAP LIST VIEWER (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = fieldcat
tables
t_outtab = imara.
endform.
* BUILD_FIELD_CATALOG
form build_field_catalog.
data: fc_tmp type slis_t_fieldcat_alv with header line.
clear: fieldcat. refresh: fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material Number'.
fc_tmp-fieldname = 'MATNR'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '18'.
fc_tmp-col_pos = 2.
append fc_tmp to fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material'.
fc_tmp-fieldname = 'MAKTX'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '40'.
fc_tmp-col_pos = 3.
append fc_tmp to fieldcat.
endform.
Regards,
Rich Heilman -
How to populate a table based on a row selection from another table.
Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
ganeshI understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
"EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
Hope this helps. -
How to Populate a table in PL/SQL
Hi Every1,
please clarify me How to Populate a table in PL/SQL,Thanx in advance...
Thanks & Regards,
Ram Nainar SNot possible. SQL is used to populate tables - it is the language that interacts (CRUD) Oracle data in tables. Not PL/SQL.
So even when using PL/SQL, you still need to use SQL. Thus "populating" a table is no different than using SQL or using SQL (from inside PL/SQL). -
How to populate a table instaed of creating a file
Hello Everybody,
I have been thinking if any of you has ever done simmilar thing..
I have a crontab task that runs a script that gathers some space statistics each month from couple of servers..and sends an output to a file..
how to redirect that output so it populates certain table in the database?
can you recomend best approach?
thanks a lot,
agat81The easiest way would be to create your file in a way that it will look like
insert into your_table_name values (bla, 1,2 ,3);
insert into your_table_name values (blub, 4,5 ,6);
commit;
Then execute the script with sqlplus from cron.
cu
Andreas -
How to populate internal table field with text data?
Hello Experts,
I was able to load text file to a internal table but data is not populating each field. Can someone help me how to populate each field of internal table from text file?
Here is the text file:
io_name, io_type, io_txsht, io_txlng, io_datatype, io_length
ZEA_IO1, CHA, IO Test, IO Test 1, CHAR, 20
ZEA_IO2, CHA, IO Test, IO Test 2, CHAR, 20
Here is the Code:
*& Report ZAS_BAPI_TEST *
*& InfoObject Creation through BAPI.
*& Read the Text file, call a BAPI to create InfoObjects. *
*& Text file will hold the Info Object Structure. Text file will be *
*& located either work station or local PC.
*& Step 1. Create internal table to hold InfoObject structure *
*& Step 2. Retrieve/Load text file into Internal Table structure *
*& Step 3. Call BAPI Function to Create IO *
*& Step 4. Call BAPI Function to Activate IO *
REPORT ZAS_BAPI_TEST .
Make data separator a comma
CONSTANTS: gc_tab TYPE c VALUE ','.
Declaring Internal table for creating InfoObject
DATA: p_file TYPE string.
DATA: BEGIN OF itab-bapi OCCURS 0,
io_name like BAPI6108-infoobject,
io_type like BAPI6108-type,
io_txsht like BAPI6108-textshort,
io_txlng like BAPI6108-textlong,
io_datatype like BAPI6108-datatp,
io_length like BAPI6108-intlen,
END OF itab-bapi.
DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
PUT THE TEXT FILE PATH TO P_FILE
p_file = sel_file.
Copy the file from the workstation to the server ****
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = SPACE
HEADER_LENGTH = 0
DAT_MODE = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
READ_BY_LINE = 'X'
IMPORTING
FILELENGTH =
HEADER =
TABLES
data_tab = itab-bapi[]
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
&1 &2 issued return code &3
ELSE.
pit_data[] = lit_data[].
ENDIF.
ENDIF.
loop at itab-bapi.
write: /5 itab-bapi-io_name,
20 itab-bapi-io_type,
30 itab-bapi-io_txsht,
50 itab-bapi-io_txlng,
75 itab-bapi-io_datatype,
85 itab-bapi-io_length.
endloop.
SELECT THE LOCATION FOR TEXT FILE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = ''
def_path = 'C:\'
mask = ',Documentos de texto (*.txt), *.txt.'
mode = ''
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
find '.txt' IN p_file.
if sy-subrc <> 0.
concatenate p_file '.txt' into sel_file.
else.
sel_file = p_file.
endif.
Create InfoObject through BAPI Function
*CALL FUNCTION 'BAPI_IOBJ_CREATE'.
*IMPORTING
VALUE(DETAILS) LIKE BAPI6108 STRUCTURE BAPI6108
*EXPORTING
VALUE(INFOOBJECT) LIKE BAPI6108-INFOOBJECT
VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
TABLES
COMPOUNDS STRUCTURE BAPI6108CM OPTIONAL
ATTRIBUTES STRUCTURE BAPI6108AT OPTIONAL
NAVIGATIONATTRIBUTES STRUCTURE BAPI6108AN OPTIONAL
ATRNAVINFOPROVIDER STRUCTURE BAPI6108NP OPTIONAL
HIERARCHYCHARACTERISTICS STRUCTURE BAPI6108HC OPTIONAL
ELIMINATION STRUCTURE BAPI6108IE OPTIONAL
RETURNTABLE STRUCTURE BAPIRET2 OPTIONAL
Activate InfoObject through BAPI Function
CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
*ENDFORM. " RETRIEVE_DATASET
I appreciate your help.
Regards,
MauI have used tab delimited file.
Here are file contents
io_name io_type io_txsht io_txlng io_datatype io_length
ZEA_IO1 CHA IO Test IO Test 1 CHAR 20
ZEA_IO2 CHA IO Test IO Test 2 CHAR 20
And here is program used
*& Report ZAS_BAPI_TEST *
*& InfoObject Creation through BAPI.
*& Read the Text file, call a BAPI to create InfoObjects. *
*& Text file will hold the Info Object Structure. Text file will be *
*& located either work station or local PC.
*& Step 1. Create internal table to hold InfoObject structure *
*& Step 2. Retrieve/Load text file into Internal Table structure *
*& Step 3. Call BAPI Function to Create IO *
*& Step 4. Call BAPI Function to Activate IO *
REPORT ZAS_BAPI_TEST .
Make data separator a comma
CONSTANTS: gc_tab TYPE c VALUE ','.
Declaring Internal table for creating InfoObject
DATA: p_file TYPE string.
DATA: BEGIN OF itab-bapi OCCURS 0,
io_name like BAPI6108-infoobject,
io_type like BAPI6108-type,
io_txsht like BAPI6108-textshort,
io_txlng like BAPI6108-textlong,
io_datatype like BAPI6108-datatp,
io_length like BAPI6108-intlen,
END OF itab-bapi.
DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
PUT THE TEXT FILE PATH TO P_FILE
p_file = sel_file.
Copy the file from the workstation to the server ****
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_file
<b>FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'</b>
TABLES
data_tab = itab-bapi[]
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
&1 &2 issued return code &3
ELSE.
pit_data[] = lit_data[].
ENDIF.
ENDIF.
loop at itab-bapi.
write: /5 itab-bapi-io_name,
20 itab-bapi-io_type,
30 itab-bapi-io_txsht,
50 itab-bapi-io_txlng,
75 itab-bapi-io_datatype,
85 itab-bapi-io_length.
endloop.
SELECT THE LOCATION FOR TEXT FILE
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = ''
def_path = 'C:\'
mask = ',Documentos de texto (*.txt), *.txt.'
mode = ''
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
find '.txt' IN p_file.
if sy-subrc <> 0.
concatenate p_file '.txt' into sel_file.
else.
sel_file = p_file.
endif.
Create InfoObject through BAPI Function
*CALL FUNCTION 'BAPI_IOBJ_CREATE'.
*IMPORTING
VALUE(DETAILS) LIKE BAPI6108 STRUCTURE BAPI6108
*EXPORTING
VALUE(INFOOBJECT) LIKE BAPI6108-INFOOBJECT
VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
TABLES
COMPOUNDS STRUCTURE BAPI6108CM OPTIONAL
ATTRIBUTES STRUCTURE BAPI6108AT OPTIONAL
NAVIGATIONATTRIBUTES STRUCTURE BAPI6108AN OPTIONAL
ATRNAVINFOPROVIDER STRUCTURE BAPI6108NP OPTIONAL
HIERARCHYCHARACTERISTICS STRUCTURE BAPI6108HC OPTIONAL
ELIMINATION STRUCTURE BAPI6108IE OPTIONAL
RETURNTABLE STRUCTURE BAPIRET2 OPTIONAL
Activate InfoObject through BAPI Function
CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
*ENDFORM. " RETRIEVE_DATASET
This program is working fine. You can test it.
Only problem is as the column headings are big for some columns, they are getting truncated which you can always change by changing the column width in declaration
Please let me know if this helps.
ashish -
How to populate a Table inside a structure?
Hello,
Im very new to ABAP and Im having a rather sily problem. I have a Structure (ZSHIPMENT) with one component (CASES) of the type Z_CASE_TABLE. Z_CASE_TABLE is a table with a line type of ZCASE_STR. ZCASE_STR is a Structure with one Component (CASE_ID) of type String.
So ZSHIPMENT - ZCASE_TABLE - ZCASE_STR - CASE ID.
I want to write some code to create this object and use it in a method.
This is what Im trying:
method TEST_02.
DATA: Shipment TYPE ZSHIPMENT,
case TYPE ZCASE_STR.
case-case_id = 'case1'.
INSERT case INTO Shipment-cases.
endmethod.
But I get this error: CASE is not an internal table - the "OCCURS n" specification is missing.
Can someone give me a hint on how to populate my memory object?
Ive tryed all shorts of things but I never get it to work.
Thanks in advance.
GonsoRamiro,
wow! you hit the nail in the head! The zshipment type was not active to its latets version. Thanks to the debugger I could see its real face.
Thanks!!!! -
How to populate a table in the html page from the java script
Hi all,
I have doubt in populating a table in the html page. my application is as follows
I have a html page in which i have a combo box and a table following the combo box.
i have to populate the table depending on the item selected in the combo box.
for this i am using javascript to get the value of combo box onClick
then i have to call some function thru jsp to get the data and then i have to populate the table with thst into from java script
how can i do this, i.e populating html table from java script
Thanks in advance
satyaHi Mihai,
You can populate data in DO_INIT_CONTEXT method of ur impl class in your Z component.
data:
lv_struct_ref type ref to YOUR_STRUCTURE,
lv_value_node type ref to cl_bsp_wd_value_node,
lv_bo_coll type ref to if_bol_bo_col.
Data: current type ref to if_bol_bo_property_access.
data: dref type ref to data.
data: lv_guid_h type crmt_object_guid.
data: lt_attr type table of YOUR_STRUCTURE.
data: ls_attr type YOUR_STRUCTURE.
data: lr_entity type ref to cl_crm_bol_entity.
create object lv_bo_coll type cl_crm_bol_bo_col.
lt_attr is ur internal table.
Loop at lt_attr into ls_attr.
create data lv_struct_ref.
create object lv_value_node
exporting
iv_data_ref = lv_struct_ref.
call method lv_value_node->if_bol_bo_property_access~set_property
exporting
iv_attr_name = 'YOURFIELDNAME1'
iv_value = ls_attr-firstname.
call method lv_value_node->if_bol_bo_property_access~set_property
exporting
iv_attr_name = ' YOURFIELDNAME2'
iv_value = ls_attr-lastname.
lv_bo_coll->add( lv_value_node ).
typed_context->YOURCONTEXTNODE->set_collection( lv_bo_coll ).
endloop.
Regards,
Raghu -
How to populate a table in JDeveloper 9i on page display?
Can anybody help me out regarding this issue.
The issue is i want to populate a table on displaying a page in OAF using JDeveloper.
The methods which i know are populating on clicking button,etc.
But how to populate on first time page display.It would be easier to answer in case you have provided more details of what you are doing currently.
Anyway, assuming that you are trying to show data from some DB table on an OA page and you have the mapping done on your OA table columns, all you need is call executeQuery on the VO attached to the table in the processRequest of the page controller.
--Shiv -
How to populate a Table from a WebApplication JSF from a MySQL database
Hi,
I'm trying to populate a table on a WebApplication JSF. I don't know how the table can be filled with informations from a MySQL database.
Please show me the way.In the future, JSF related questions should be posted in a forum devoted to JSF: [http://forums.sun.com/forum.jspa?forumID=427].
Regarding to your question, you may find this article useful: [http://balusc.blogspot.com/2006/06/using-datatables.html]. -
How to populate the table using webservice
Hi,
i have created the web service from function module and integrated this web service in interactive form using New data connection.
I have drag and drop all field into the form table and test the form,but its not populate table.
if any script need for this,
Kindly explain in detail or give the sample code.
Thanks in advance
ParthasarathiDear folks
M about to create a midlet
application in which i need to populate my table
with the current stock exchange values. Since these
values get changed dynamically , I planned to use
streaming. Since m new to streaming ,pls someone
come up to guide me in right path. M using Canvas
application. I appreciate all the repliesthats fine and funny....
let me tell you something, in GCF everything you fetch through GPRS is bound to come as an inputstream and whatever request you send is passed as outputstream. so if you have worked with GCF, you have worked with streaming already. isn't it.
SD -
How to populate the table using streaming data
Dear folks
M about to create a midlet application in which i need to populate my table with the current stock exchange values. Since these values get changed dynamically , I planned to use streaming. Since m new to streaming ,pls someone come up to guide me in right path. M using Canvas application. I appreciate all the repliesDear folks
M about to create a midlet
application in which i need to populate my table
with the current stock exchange values. Since these
values get changed dynamically , I planned to use
streaming. Since m new to streaming ,pls someone
come up to guide me in right path. M using Canvas
application. I appreciate all the repliesthats fine and funny....
let me tell you something, in GCF everything you fetch through GPRS is bound to come as an inputstream and whatever request you send is passed as outputstream. so if you have worked with GCF, you have worked with streaming already. isn't it.
SD -
Urgent: How to Populate SETUP table in LO for perticular period
Hi Expert,
I want to populate SETUP tables for perticuler period. Which one is the selection field.Hi,
You can not add new selection fields to the selection screen for filling up the set up tables. The fields available for selection actually depends on the application you are referring to.
If you see in the below transactions for filling up of set up tables for different applications, you will see that a certain date field is available for selection for some of them. Please refer below. You can also check it directly in the system using the transaction.
Tcode: Application number: Date filed available
OLI1BW: Application 03(material movements): Posting Date
OLI3BW: Application 02: Document date
OLI4BW: Application 04: Created on date
OLI7BW: Application 11: No date selection possible
OLI8BW: Application 12: No date selection possible
OLI9BW: Application 13: No date selection possible
Hope this helps,
Regards,
Shilpa -
How can we export table data to a CSV file??
Hi,
I have the following requirement. Initially business agreed upon, exporting the table data to Excel file. But now, they would like to export the table data to a CSV file, which is not being supported by af:exportCollectionActionListener component.
Because, when i opened the exported CSV file, i can see the exported data sorrounded with HTML tags. Hence the issue.
Does someone has any solution for this ... Like, how can we export the table data to csv format. And it should work similar to exporting the data to excel sheet.
For youre reference here is the code which i have used to export the table data..
><f:facet name="menus">
><af:menu text="Menu" id="m1">
><af:commandMenuItem text="Print" id="cmi1">
><af:exportCollectionActionListener exportedId="t1"
>title="CommunicationDistributionList"
>filename="CommunicationDistributionList"
>type="excelHTML"/> ---- I tried with removing value for this attribute. With no value, it did not worked at all.
></af:commandMenuItem>
></af:menu>
></f:facet>
Thanks & Regards,
Kiran KonjetiHi Alex,
I have already visited that POST and it works only in 10g. Not in 11g.
I got the solution for this. The solution is :
Use the following code in jsff
==================
<af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="text/csv; charset=utf-8"
>filename="test.csv"
>method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
></af:commandButton>
OR
<af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="application/vnd.ms-excel; charset=utf-8"
>filename="test.csv"
>method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
></af:commandButton>
And place this code in ManagedBean
======================
> public void test(FacesContext facesContext, OutputStream outputStream) throws IOException {
> DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
>DCIteratorBinding itrBinding = (DCIteratorBinding)dcBindings.get("fetchDataIterator");
>tableRows = itrBinding.getAllRowsInRange();
preparaing column headers
>PrintWriter out = new PrintWriter(outputStream);
>out.print(" ID");
>out.print(",");
>out.print("Name");
>out.print(",");
>out.print("Designation");
>out.print(",");
>out.print("Salary");
>out.println();
preparing column data
> for(Row row : tableRows){
>DCDataRow dataRow = (DCDataRow)row;
> DataLoaderDTO dto = (DataLoaderDTO)dataRow.getDataProvider();
>out.print(dto.getId());
>out.print(",");
>out.print(dto.getName());
>out.print(",");
>out.print(dto.getDesgntn());
>out.print(",");
>out.print(dto.getSalary());
>out.println();
>}
>out.flush();
>out.close();
> }
And do the following settings(*OPTIONAL*) for your browser - Only in case, if the file is being blocked by IE
==================================================================
http://ais-ss.usc.edu/helpdoc/main/browser/bris004b.html
This resolves implementation of exporting table data to CSV file in 11g.
Thanks & Regards,
Kiran Konjeti -
How to capture the screen and send it to attachment for that mail
hi sir ,
how to capture the screen shot and attach with that e-mail , whether it is possible or not ..
Regards,
kumarhi sir,
i am asking about while creating the support message from help menu in sap..
while creating the support message we have to give component , priority and text also .. after that click the send icon in that support desk message .. while clicking the send button the entire screen ( what we have entered in that creen na ) i have to capture the screen ( it may be save in local file also ) after that it will attach into attachment and then send it to ...
Regards,
kumar
Maybe you are looking for
-
Using a variable to name a window?
Is it possible to use a user-defined variable to name a window? I'm hoping to set up a "template" system of sorts for a family of products, all of which are very similar. I'd just like to name the window accordingly to the product name via a variable
-
Hello, Our PI system is 7.4 . We have a lot of interface with related to proxy to soap.When they are used very intensively, errors occur in soap receiver . Types are error: 503 server not avalibale, 401 unauthorized , invalid content type for SOA
-
I have been getting my email in duplicate in MacMail for the past week. I haven't changed any settings on MacMail. My server is Verizon/Yahoo. How can I get it to stop?
-
SimpleDateFormat Easy Question..
I can't get SimpleDateFormat to work, I get this exception: Unparseable date: "Sat Jun 15 20:23:23 CDT 2002" Here's the code: System.out.println(new SimpleDateFormat("yyyy-MM-dd").parse(new java.util.Date().toString()));What's wrong? When I was looki
-
Filters not working in Compressor
Sorry if this has been posted before, but none of the filters I am applying to an MPEG-1 setting seem to be taking effect. Anyone experiencing this problem as well? I'm going in uncompressed 8-bit and, but things are coming out quite pixelated, contr