How to generating the template from apex ?
I have created a quick application that contains names of employees and thier skillset. I am exploring the possibilities of generating a template containing the skills of the individual selected.
In other words, if I have a resume template of "Oracle apps" and I click the individual , His all skills should get amended in this template and resume should be generated automatically.
Any ideas how to accomplish the same?
Is there any similar application out there that generates templates so that I can extract the idea or build on similar lines.
Any pointers would be a great help.
Thanks
Subodh
Hi Gussay,
First of all, thanks for your input. I was unable to respond to you earlier due to other presssing issues and travel..
I was able to use the information you provided on something else that I have been working. So in a way, the information was helpful.
However in my oringinal query, actually I am looking to develop apps with employees name and their skillsets. Then I will also standard resume templates built in with no names.
In next step, if users goes in and wants to select individuals with " RAC" and "APPS" skills, all those individuals resume should be automatically prepared from the template. ( the names would get appended in template and each individuals skills would be printed from skills table in PDF format.)
So partly your response has answered question. The first part of selecting individuals and then getting their information appended in templates is somthing I am seeking information on.
Any ideas how to go about it?
Thanks in advance
Subodh
Similar Messages
-
Hello Experts,
Can anyone clearly explain me to generate the IDoc from ME22n, if there would be any changes in the orders I need to generate the idoc.
Please guide me to generate the Idoc using ORDRSP with ORDRSP05.Hi Kiran,
I am also looking into the same issue.
I don't have any idea how to generate the idoc from the tcode if there would be any changes in the orders.
The link which you provided is not giving much information to generate the idoc.
Can you please provide me the detailed steps to generate the idoc if there would be any changes occures in ME22N. -
I would like to know how can I have the templates from premiere as customer of adobe creative cloud
I would like to know how can I have the templates from premiere.
I am Adobe Creative Cloud member.
Thanks
Dmitre RaposoNot sure what you are referring to. If you have any files MIA, simply re-download and reinstall the app via AAM.
Mylenium -
How do you copy the templates from another webstie and use them as your own?
Hi Everyone, I was told that with Dreamweaver it is possible to copy another websites templates? What are the steps in copying another websites template with Dreamweaver? I would like to know I am a newbie when it comes to this program so please make your statement understandable for me, thanks. Also, I am having problems creating a drop down menu for each of my web pages. When I go to highlight a specific box on my homepage I want the dropdown menu to appear vertically and not horizontally. I may have missed something when watching the video tutorials or I didn't quite understand what they meant. Thank you for any information on the series of questions that I have asked in this new thread.
Hi Everyone, I was told that with Dreamweaver it is possible to copy another websites templates? What are the steps in copying another websites template with Dreamweaver?
This is difficult to understand. How are you copying templates from another site?
If you have all the files that make up the template, then it's only a matter of saving all the files to a folder on your hard drive and setting up a site definition pointing to this folder. You then work on the files as usual.
Also, I am having problems creating a drop down menu for each of my web pages. When I go to highlight a specific box on my homepage I want the dropdown menu to appear vertically and not horizontally. I may have missed something when watching the video tutorials or I didn't quite understand what they meant. Thank you for any information on the series of questions that I have asked in this new thread.
Without seeing the page it's difficult to judge what your problem is. If possible, please upload the files to a remote server and provide a link to the page. It's the only way people can help - if they see your page in action.
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates | Tutorials | SEO Articles
http://www.DreamweaverResources.com
Web Design & Development
http://www.perrelink.com.au
http://twitter.com/nadiap -
How to generate the BPEL interface from XSD?
I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string?
Thank youI made the following change to the xsd file, however when the input type change to emailDataType, it is underline by red color. and the bpm process, activity guide, organization become the unknown project object.
<?xml version="1.0" encoding="UTF-8"?>
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/SampleBPM/SampleEmailNotification/SendEmail"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="process">
<complexType>
<sequence>
<element name="input" type="emailDataType"/>
</sequence>
</complexType>
</element>
<element name="processResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
<complexType name="emailDataType" >
<sequence>
<element name="toEmailAddress" type="string" />
<element name="ccEmailAddress" type="string" />
<element name="emailSubject" type="string" />
<element name="emailContent" type="string" />
</sequence>
</complexType>
</schema>
The XSD file is viewed by the design mode is fine on JDeveloper. Please help! -
How to generate the ARE-1 from SAP?
Hi,
Please suggest how to generate the ARE-1 form from SAP and what are the settings we have to do for it. Please suggest the settings and T. codes
Thanks in advance...
Regards
NItinHi,
You need to do the complete customization of
SPRO>Logistics General> Tax on goods Movements>India for processing CIN relevant transactions.
Check this link:
http://wiki.sdn.sap.com/wiki/display/ERPLO/CIN+Configuration
CIN Version - ARE1 & ARE3 Configuration
This is the transaction where we define which series group belongs to exports.
SPRO>Logistics General> Tax on goods Movements>India> Business Transactions> Out going excise invoices> Maintain Default excise groups and series groups.
VA01 - Order
VL01n - outbound delivery
VF01 - Export Billing
J1iin - excise invoice for exports
J1ibn01 - Create Bond
J1ia101 - create/post/ update/Change/Display ARE1.
J1iBn05 u2013 Close bond
Hope this helps.
Regards,
Sharan -
How can automatic save file from apex to user local directory?
how can save pdf file from apex to user local directory on button click?
>
Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "940509".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
how can save pdf file from apex to user local directory on button click?As Tony points out the ability to do so would represent a major security breach. The normal approach is to present the user with a download link that when clicked prompts them with a Save dialog in which they can select a location for the downloaded file.
What is the source of the PDF file? -
How to load the data from excel file into table in oracle using UTL_FI
How to load the data from excel file into table in oracle
and from table to excel file
using UTL_FILE package
Please give me some exampleThis is something i tried in oracle apex
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Regards,
CKLP -
How to generate the DNS_VERIFY program
I�d like to prevent form the spam mails from internet. I edited the mappings table of orig_mail_access segment, but I couldn't find the DNS_verify program in the iPlanet Messaging Server 5.1. Not knowing how to generate the DNS_VERIFY program in the iPlanet Messaging Server 5.1. Could you please kindly check and let me know the way to solve? Thank you very much!
ps. system info.: solaris8.0,iPlanet Messaging Server 5.1 Patch 1 (built Jun 6 2002)look at this link
http://www.stylusstudio.com/docs/v2006/d_help30.html
I read sometime back that castor has a tool to do
conversion. You might have a look into casto as well. -
How to generate the Cobol Source part of the ApplicationViewer
Hello,
I'm actually generate the Cobol Source part of the application viewer on a windows environment.
I'm trying to build it from a Unix environment but I don't know how because I doesn't find the same script in Unix I use in windows.
Can someone tell me how to generate the Cobol Source part of the application Viewer please ?
Thank you in advance.>
How can I read the html source code of a webpage
with a java application?
Is there a good idea?
I don't know if this is a good idea, but it works.
1) Use a URL to obtain the document's location
2) Use a URLConnection to open a connection between your computer and the
document server
3) Connect to the server
4) Get the InputStream of said connection
5) Associate the Input Stream with a Buffered Input Stream
At this point you can use a loop to read lines from the BufferedInput Stream and append them to a TextArea or other suitable text component. -
How to generate the insert script of the tables data present in an entire
How to generate the insert script of the tables data present in an entire schema in sqlplus environment
with out toad can you please help me please!!!!!!!!!!!!!HI,
First create this function to get insert scripts.
/* Formatted on 2012/01/16 10:41 (Formatter Plus v4.8.8) */
CREATE OR REPLACE FUNCTION extractdata (v_table_name VARCHAR2)
RETURN VARCHAR2
AS
b_found BOOLEAN := FALSE;
v_tempa VARCHAR2 (8000);
v_tempb VARCHAR2 (8000);
v_tempc VARCHAR2 (255);
BEGIN
FOR tab_rec IN (SELECT table_name
FROM user_tables
WHERE table_name = UPPER (v_table_name))
LOOP
b_found := TRUE;
v_tempa := 'select ''insert into ' || tab_rec.table_name || ' (';
FOR col_rec IN (SELECT *
FROM user_tab_columns
WHERE table_name = tab_rec.table_name
ORDER BY column_id)
LOOP
IF col_rec.column_id = 1
THEN
v_tempa := v_tempa || '''||chr(10)||''';
ELSE
v_tempa := v_tempa || ',''||chr(10)||''';
v_tempb := v_tempb || ',''||chr(10)||''';
END IF;
v_tempa := v_tempa || col_rec.column_name;
IF INSTR (col_rec.data_type, 'CHAR') > 0
THEN
v_tempc := '''''''''||' || col_rec.column_name || '||''''''''';
ELSIF INSTR (col_rec.data_type, 'DATE') > 0
THEN
v_tempc :=
'''to_date(''''''||to_char('
|| col_rec.column_name
|| ',''mm/dd/yyyy hh24:mi'')||'''''',''''mm/dd/yyyy hh24:mi'''')''';
ELSE
v_tempc := col_rec.column_name;
END IF;
v_tempb :=
v_tempb
|| '''||decode('
|| col_rec.column_name
|| ',Null,''Null'','
|| v_tempc
|| ')||''';
END LOOP;
v_tempa :=
v_tempa
|| ') values ('
|| v_tempb
|| ');'' from '
|| tab_rec.table_name
|| ';';
END LOOP;
IF NOT b_found
THEN
v_tempa := '-- Table ' || v_table_name || ' not found';
ELSE
v_tempa := v_tempa || CHR (10) || 'select ''-- commit;'' from dual;';
END IF;
RETURN v_tempa;
END;
SET PAUSE OFF
SET LINESIZE 1200
SET PAGESIZE 100
SET TERMOUT OFF
SET HEAD OFF
SET FEED OFF
SET ECHO OFF
SET VERIFY OFF
SPOOL GET_INSERTS.SP REP
SELECT EXTRACTDATA('EMP') FROM DUAL;
SPOOL OFF
SET PAUSE ON
SET LINESIZE 120
SET PAGESIZE 14
SET TERMOUT ON
SET HEAD ON
SET FEED 5
SET ECHO ON
SET VERIFY ON
SELECT 'insert into EMP ('
|| CHR (10)
|| 'EMPNO,'
|| CHR (10)
|| 'ENAME,'
|| CHR (10)
|| 'JOB,'
|| CHR (10)
|| 'MGR,'
|| CHR (10)
|| 'HIREDATE,'
|| CHR (10)
|| 'SAL,'
|| CHR (10)
|| 'COMM,'
|| CHR (10)
|| 'DEPTNO) values ('
|| DECODE (empno, NULL, 'Null', empno)
|| ','
|| CHR (10)
|| ''
|| DECODE (ename, NULL, 'Null', '''' || ename || '''')
|| ','
|| CHR (10)
|| ''
|| DECODE (job, NULL, 'Null', '''' || job || '''')
|| ','
|| CHR (10)
|| ''
|| DECODE (mgr, NULL, 'Null', mgr)
|| ','
|| CHR (10)
|| ''
|| DECODE (hiredate,
NULL, 'Null',
'to_date('''
|| TO_CHAR (hiredate, 'mm/dd/yyyy hh24:mi')
|| ''',''mm/dd/yyyy hh24:mi'')'
|| ','
|| CHR (10)
|| ''
|| DECODE (sal, NULL, 'Null', sal)
|| ','
|| CHR (10)
|| ''
|| DECODE (comm, NULL, 'Null', comm)
|| ','
|| CHR (10)
|| ''
|| DECODE (deptno, NULL, 'Null', deptno)
|| ');'
FROM emp;
SELECT '-- commit;'
FROM DUAL;now run the baove select statement you will get the following insert statements
/* Formatted on 2012/01/16 10:57 (Formatter Plus v4.8.8) */
--'INSERT INTO EMP('||CHR(10)||'EMPNO,'||CHR(10)||'ENAME,'||CHR(10)||'JOB,'||CHR(10)||'MGR,'||CHR(10)||'HIREDATE,'||CHR(10)||'SAL,'||CHR(10)||'COMM,'||CHR(10)||'DEPTNO)VALUES('||DECODE(EMPNO,NULL,'NULL',EMPNO)||','||CHR(10)||''||DECODE(ENAME,NULL,'NULL',''''|
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm, deptno
VALUES (7369, 'SMITH', 'CLERK', 7902,
TO_DATE ('12/17/1980 00:00', 'mm/dd/yyyy hh24:mi'), 800, NULL, 20
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm, deptno
VALUES (7499, 'ALLEN', 'SALESMAN', 7698,
TO_DATE ('02/20/1981 00:00', 'mm/dd/yyyy hh24:mi'), 1600, 300, 30
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm, deptno
VALUES (7521, 'WARD', 'SALESMAN', 7698,
TO_DATE ('02/22/1981 00:00', 'mm/dd/yyyy hh24:mi'), 1250, 500, 30
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7566, 'JONES', 'MANAGER', 7839,
TO_DATE ('04/02/1981 00:00', 'mm/dd/yyyy hh24:mi'), 2975, NULL,
20
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7654, 'MARTIN', 'SALESMAN', 7698,
TO_DATE ('09/28/1981 00:00', 'mm/dd/yyyy hh24:mi'), 1250, 1400,
30
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7698, 'BLAKE', 'MANAGER', 7839,
TO_DATE ('05/01/1981 00:00', 'mm/dd/yyyy hh24:mi'), 2850, NULL,
30
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7782, 'CLARK', 'MANAGER', 7839,
TO_DATE ('06/09/1981 00:00', 'mm/dd/yyyy hh24:mi'), 2450, NULL,
10
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7788, 'SCOTT', 'ANALYST', 7566,
TO_DATE ('04/19/1987 00:00', 'mm/dd/yyyy hh24:mi'), 3000, NULL,
20
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7839, 'KING', 'PRESIDENT', NULL,
TO_DATE ('11/17/1981 00:00', 'mm/dd/yyyy hh24:mi'), 5000, NULL,
10
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm, deptno
VALUES (7844, 'TURNER', 'SALESMAN', 7698,
TO_DATE ('09/08/1981 00:00', 'mm/dd/yyyy hh24:mi'), 1500, 0, 30
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7876, 'ADAMS', 'CLERK', 7788,
TO_DATE ('05/23/1987 00:00', 'mm/dd/yyyy hh24:mi'), 1100, NULL,
20
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm, deptno
VALUES (7900, 'JAMES', 'CLERK', 7698,
TO_DATE ('12/03/1981 00:00', 'mm/dd/yyyy hh24:mi'), 950, NULL, 30
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7902, 'FORD', 'ANALYST', 7566,
TO_DATE ('12/03/1981 00:00', 'mm/dd/yyyy hh24:mi'), 3000, NULL,
20
INSERT INTO emp
(empno, ename, job, mgr,
hiredate, sal, comm,
deptno
VALUES (7934, 'MILLER', 'CLERK', 7782,
TO_DATE ('01/23/1982 00:00', 'mm/dd/yyyy hh24:mi'), 1300, NULL,
10
);i hope this helps .
Thanks,
P Prakash
Edited by: prakash on Jan 15, 2012 9:21 PM
Edited by: prakash on Jan 15, 2012 9:22 PM -
How to generate an idoc from invoice cancellation (VF11)
Hi
How to generate an idoc from invoice cancellation (VF11)?
Can someone help ..
Regards
PratikshaHi,
You can generate an IDOC from invoice cancellation.Define a new "Z" output type for this cancellation billing document type and select the medium as 5(EDI).Check with your ABAPer for this.
Regards,
Krishna. -
Hello colleagues!
How are u?
Could you help me explain me how to send an email from Apex please?
I suposed that Apex has an option designed for this purpose.
I would thank you your prompt reply.
Best Regards.Hello Erik.
FYI this is the sytax I use to send an email in one of my pages as part of a PL/SQL process...
l_id := APEX_MAIL.SEND(p_to => v_recipient_mail
,p_from => '[email protected]'
,p_body => l_body
,p_subj => 'Issue Updated Regarding: '||INITCAP(:P203_SUBJECT)
,p_cc => v_cc_recipients
,p_replyto => '[email protected]');Please feel free to post back if you get stuck.
Regards
Simon -
How to download a template from BDN to a program?
Hi,
There is an excel sheet in BDN(t-code-oaor). I need to call this template in a report.
After that I will fill data in this excel and download it on the local PC.
I need suggestions that how can I do it?This is sample prog for downloading the template from BDN to local system.
REPORT YVAI_SV_LOC.
type-pools : slis.
Tables containing the Fields for appl. toolbar on selection screens.
tables : sscrfields.
Business Document Navigator: Internal Connection Table for the
download of excel template.
data: begin of i_bds_conn occurs 10.
include structure bdn_con.
data: objecttext like toasp-objecttext,
objecttext2 like toasd-objecttext,
objecttext3 like toasr-objecttext,
ntext like tojtt-ntext,
end of i_bds_conn.
*data : i_local_path_for_copy like rlgrap-filename.
**i_local_path_for_copy = 'E:\'.
data: gv_flag type xflag,
gv_item_no type i.
data: gs_bds_conn_marked like i_bds_conn occurs 5 with header line.
data: l_ipi(40) type c.
selection-screen function key 1.
selection-screen begin of block c1 with frame title text-001.
parameters : p_po type rlgrap-filename
obligatory default 'E:\test98.xls'.
selection-screen end of block c1.
Intialization for the text for function key.
Create application toolbar with following mentioned text
initialization.
move text-tit to sscrfields-functxt_01.
At selection screen on value request the file seach is performed.
File search opens standard window pop-up for searching the file.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_po.
PERFORM file_search.
at selection-screen.
if sscrfields-ucomm = 'FC01'.
The Excel Id and other information is to be passed to the program
SAPLBDS_TOOLS to get the excel template.
perform fill_bds_data.
perform export_document
in program saplbds_tools
using gs_bds_conn_marked.
perform y_export_document
using gs_bds_conn_marked.
if sy-subrc = 0.
call TRANSACTION 'YVAI_TEST98'.
endif.
call TRANSACTION 'YVAI1'.
elseif sscrfields-ucomm = 'ONLI'.
The Check for the file Existence for uploading.
call function 'DX_FILE_EXISTENCE_CHECK'
exporting
filename = p_po
pc = 'X'
importing
file_exists = gv_flag
exceptions
rfc_error = 1
frontend_error = 2
no_authority = 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.
if gv_flag = ' '.
message e070(zf) with p_po.
endif.
endif.
*& Form fill_bds_data
Passing the Required parameters for the excel.
form fill_bds_data .
gs_bds_conn_marked-client = sy-mandt.
gs_bds_conn_marked-classname = 'SOFFICEINTEGRATION'.
gs_bds_conn_marked-classtype = 'OT'.
gs_bds_conn_marked-objkey = 'SOFFICEINTEGRATION'.
gs_bds_conn_marked-loio_id =
'BDS_LOC2 DDBD0807B93B26F19ED30050569F4158'.
gs_bds_conn_marked-doc_ver_no = '1'.
gs_bds_conn_marked-doc_var_id = '1'.
gs_bds_conn_marked-doc_var_tg = 'OR'.
gs_bds_conn_marked-descript = 'VCPI'.
gs_bds_conn_marked-langu = 'E'.
gs_bds_conn_marked-comp_id = 'vai - test99 file.xls'.
gs_bds_conn_marked-mimetype = 'application/vnd.ms-excel'.
gs_bds_conn_marked-contrep = 'BDS_DB2_R'.
gs_bds_conn_marked-docuclass = 'XLS'.
gs_bds_conn_marked-doc_type = 'BDS_SHEET'.
gs_bds_conn_marked-stor_tab = '2'.
endform.
" fill_bds_data
form y_export_document using i_bds_conn_marked structure i_bds_conn.
-- data declaration -- *
data: local_signature like bapisignat occurs 1 with header line,
export_components like bapicompon occurs 5 with header line,
i_local_path_for_copy like rlgrap-filename,
popup_fields like sval occurs 5 with header line.
DATA : i_files like bapifiles occurs 1 with header line.
clear: i_files.
refresh: i_files.
-- check if document is currently in change modus -- *
if ( ( i_bds_conn_chng-loio_id = i_bds_conn_marked-loio_id and
i_bds_conn_chng-doc_ver_no = i_bds_conn_marked-doc_ver_no and
i_bds_conn_chng-doc_var_id = i_bds_conn_marked-doc_var_id and
i_bds_conn_chng-doc_var_tg = i_bds_conn_marked-doc_var_tg )
and ( i_bds_conn_chng-loio_id <> space and
i_bds_conn_marked-loio_id <> space )
and ( doc_chng_is_open = 'X' ) ).
-> set info popup -> doc can not be exported
message i337(sbds).
endif.
-- check if components exist -- *
-- fill signature table
local_signature-doc_count = '1'.
local_signature-doc_id = i_bds_conn_marked-loio_id.
local_signature-doc_ver_no = i_bds_conn_marked-doc_ver_no.
local_signature-doc_var_id = i_bds_conn_marked-doc_var_id.
local_signature-doc_var_tg = i_bds_conn_marked-doc_var_tg.
append local_signature.
call function 'BDS_BUSINESSDOCUMENT_GET_INFO'
exporting
logical_system = i_bds_conn_marked-log_system
classname = i_bds_conn_marked-classname
classtype = i_bds_conn_marked-classtype
client = i_bds_conn_marked-client
object_key = i_bds_conn_marked-objkey
all = 'X'
tables
components = export_components
signature = local_signature
exceptions
nothing_found = 1
parameter_error = 2
not_allowed = 3
error_kpro = 4
internal_error = 5
not_authorized = 6
others = 7.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
-- get path for export -- *
call function 'WS_QUERY'
exporting
query = 'CD'
importing
return = i_local_path_for_copy
exceptions
inv_query = 1
no_batch = 2
frontend_error = 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.
-- get path for the documents by the user -- *
perform get_local_path using i_local_path_for_copy.
loop at export_components.
i_files-doc_count = export_components-doc_count.
i_files-comp_count = export_components-comp_count.
i_files-comp_id = export_components-comp_id.
i_files-directory = i_local_path_for_copy.
i_files-directory = p_po.
append i_files.
endloop.
call function 'BDS_BUSINESSDOCUMENT_GET_FILES'
exporting
logical_system = i_bds_conn_marked-log_system
classname = i_bds_conn_marked-classname
classtype = i_bds_conn_marked-classtype
client = i_bds_conn_marked-client
object_key = i_bds_conn_marked-objkey
tables
files = i_files
signature = local_signature
exceptions
nothing_found = 1
parameter_error = 2
not_allowed = 3
error_kpro = 4
internal_error = 5
not_authorized = 6
others = 7.
if sy-subrc <> 0.
message i338(sbds).
else.
message i339(sbds).
endif.
endform. " EXPORT_DOCUMENT -
How to generate nested xml from a resultset
there is a table which contains two field:key and fatherkey.
like this:
key fatherkey
node1 root
node2 node1
node3 node2
a tree can be builded from the table by recursion of key and fatherkey.
now I want to use this table to generate a xml buffer.
like this:
<nodes>
<node>
<key>node1</key>
<fkey>root</fkey>
<node>
<key>node2</key>
<fkey>node1</fkey>
<node>
<key>node3</key>
<fkey>node2</fkey>
</node>
</node>
</node>
</nodes>
if oracle special sql --"Connect by" can be used ,it is so easy.
but I can only use ansi sql.
how to generate the xml?hehe, I solved it by JDom!
source code is :
public StringBuffer loadInitResource()
Vector theOrphans = new Vector();
StringBuffer theInitRes = new StringBuffer();
Element root = new Element("NODES");
String xsql = "SELECT KEY,FATHERKEY FROM TABLE1";
ResultSete m_rs = stmt.executeQuery(xsql);
try{
while(m_rs.next())
Element theNode = new Element("NODE");
Element theFLD = new Element("ID");
theFLD.addContent(m_rs.getString(1));
theNode.addContent(theFLD);
theFLD = new Element("SID");
theFLD.addContent(m_rs.getString(2));
theNode.addContent(theFLD);
if("Root".equals(theNode.getChildText("SID").trim()))
root.addContent(theNode);
else if(x_setFatherRes(theNode, root))
System.out.println("find");
else
theOrphans.addElement(theNode);
Element theNode;
int nIndex;
boolean isDo = false;
while(theOrphans.size()>0)
System.out.println("find the orphan!");
isDo = false;
for(nIndex = 0;nIndex < theOrphans.size();nIndex++)
theNode = (Element) theOrphans.get(nIndex);
if(x_setFatherRes(theNode, root))
theOrphans.remove(nIndex);
isDo = true;
System.out.println("found the orphan!");
break;
if(!isDo)
System.out.println("some nodes could not be loaded!");
break;
//OutputStream out=new FileOutputStream("e:/XMLFile.xml");
Document doc = new Document(root);
XMLOutputter outputter = new XMLOutputter();
outputter.setEncoding("GB2312");
//outputter.output(doc,out);
theInitRes = new StringBuffer(outputter.outputString(doc));
catch(Exception e)
m_error += e.toString() ;
return theInitRes;
private boolean x_setFatherRes(Element theSon,Element theFather)
boolean isOK = false;
String sFatherSID = theFather.getChildText("ID");
if(sFatherSID != null)
if(theSon.getChildText("SID").equals(sFatherSID.trim()))
theFather.addContent(theSon);
isOK = true;
if(isOK)
return isOK;
Iterator iterator = theFather.getChildren().iterator();
while(iterator.hasNext())
Element theFather2 = (Element) iterator.next();
isOK = x_setFatherRes(theSon,theFather2);
if(isOK)
break;
return isOK;
enjoy it!
Maybe you are looking for
-
Modbus and shared variable performanc​e in large applicatio​n
Hi all, I am preparing to work on an application which is going to reading from up to 500 Modbus input registers on a CompactRIO over Modbus Ethernet using the LVRT Modbus IO Server implementation. I've put together some minor test VIs on the local
-
The only other thing I notice is that it is opening urls that I had accessed in the recent past. It would be helpful it you would include a bullet point list of the 'the more information' that you would like. For instance does it matter what kind of
-
BAPI_COPAACTUALS_POSTCOSTDATA Posting document number
Hi, I am using BAPI : BAPI_COPAACTUALS_POSTCOSTDATA for posting documents of type 10, B0 , 12,B2(01,02,03,04 – Paledger no's). My requirement is to post records with same document number for all the 4 currency types in ce10100 table as in screen s
-
Can you suggest a best way to store and read arabic from oracle database?
Hi , can you suggest a best way to store and read arabic from oracle database? My oracle database is Oracle Database 10g Release 10.1.0.5.0 - 64bit Production on unix HP-UX ia64. NLS_NCHAR_CHARACTERSET AL16UTF16 NLS_LANGUAGE AMERICAN NLS_TERRITORY AM
-
Adobe form on SAP NetWeaver 7.0 ABAP Trial Version SP12
Hello, I want to develop adobe form on SAP NetWeaver 7.0 ABAP Trial Version SP12. I have a message that says ADS is missing. I know also that I need Java Stack. Do you know if it is possible to install this component. If yes where can I find this com