Simple XML Non-interactive Export
I'm looking for some advice on a simple approach to exporting entire tables (select * from X) in batch or non-interactive mode that we can schedule. We are competent in PL/SQL but not Java. Our files are approximately 50MB in size. We are confused because there are so many ways in Oracle to work with XML, and all we want to do is a basic export using only Oracle supplied packages (no 3rd party utilities) akin to how you'd do it in MS Access using export. Our environment is Oracle 10gR2 on Windows 2003.
thanks!
You could try something like. I'm not sure how well it would scale to 50MB but it's very simple so it should not take long to try
Basically
1. Use SQL/XML to create a view containing a single document that contains the information from all rows in the table.
2. Obtain a REF to the row in the view
3. Create a resource in the XML DB repository based on the REF
4. Use FTP to read the document from the XDB repository
SQL> create or replace view EMP_EXPORT_VIEW of XMLType
2 with object id
3 (
4 'EMP'
5 )
6 as
7 select xmlElement
8 (
9 "Table",
10 xmlAgg
11 (
12 xmlElement
13 (
14 "Row",
15 xmlForest(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO)
16 )
17 )
18 )
19 from EMP
20 /
View created.
SQL> set long 1000000
SQL> --
SQL> select * from EMP_EXPORT_VIEW
2 /
SYS_NC_ROWINFO$
<Table><Row><EMPNO>7369</EMPNO><ENAME>SMITH</ENAME><JOB>CLERK</JOB><MGR>7902</MG
R><HIREDATE>1980-12-17</HIREDATE><SAL>800</SAL><DEPTNO>20</DEPTNO></Row><Row><EM
PNO>7499</EMPNO><ENAME>ALLEN</ENAME><JOB>SALESMAN</JOB><MGR>7698</MGR><HIREDATE>
1981-02-20</HIREDATE><SAL>1600</SAL><COMM>300</COMM><DEPTNO>30</DEPTNO></Row><Ro
w><EMPNO>7521</EMPNO><ENAME>WARD</ENAME><JOB>SALESMAN</JOB><MGR>7698</MGR><HIRED
ATE>1981-02-22</HIREDATE><SAL>1250</SAL><COMM>500</COMM><DEPTNO>30</DEPTNO></Row
<Row><EMPNO>7566</EMPNO><ENAME>JONES</ENAME><JOB>MANAGER</JOB><MGR>7839</MGR><HIREDATE>1981-04-02</HIREDATE><SAL>2975</SAL><DEPTNO>20</DEPTNO></Row><Row><EMPNO
7654</EMPNO><ENAME>MARTIN</ENAME><JOB>SALESMAN</JOB><MGR>7698</MGR><HIREDATE>1981-09-28</HIREDATE><SAL>1250</SAL><COMM>1400</COMM><DEPTNO>30</DEPTNO></Row><Row
<EMPNO>7698</EMPNO><ENAME>BLAKE</ENAME><JOB>MANAGER</JOB><MGR>7839</MGR><HIREDA
SYS_NC_ROWINFO$
TE>1981-05-01</HIREDATE><SAL>2850</SAL><DEPTNO>30</DEPTNO></Row><Row><EMPNO>7782
</EMPNO><ENAME>CLARK</ENAME><JOB>MANAGER</JOB><MGR>7839</MGR><HIREDATE>1981-06-0
9</HIREDATE><SAL>2450</SAL><DEPTNO>10</DEPTNO></Row><Row><EMPNO>7788</EMPNO><ENA
ME>SCOTT</ENAME><JOB>ANALYST</JOB><MGR>7566</MGR><HIREDATE>1987-04-19</HIREDATE>
<SAL>3000</SAL><DEPTNO>20</DEPTNO></Row><Row><EMPNO>7839</EMPNO><ENAME>KING</ENA
ME><JOB>PRESIDENT</JOB><HIREDATE>1981-11-17</HIREDATE><SAL>5000</SAL><DEPTNO>10<
/DEPTNO></Row><Row><EMPNO>7844</EMPNO><ENAME>TURNER</ENAME><JOB>SALESMAN</JOB><M
GR>7698</MGR><HIREDATE>1981-09-08</HIREDATE><SAL>1500</SAL><COMM>0</COMM><DEPTNO
30</DEPTNO></Row><Row><EMPNO>7876</EMPNO><ENAME>ADAMS</ENAME><JOB>CLERK</JOB><MGR>7788</MGR><HIREDATE>1987-05-23</HIREDATE><SAL>1100</SAL><DEPTNO>20</DEPTNO></
Row><Row><EMPNO>7900</EMPNO><ENAME>JAMES</ENAME><JOB>CLERK</JOB><MGR>7698</MGR><
SYS_NC_ROWINFO$
HIREDATE>1981-12-03</HIREDATE><SAL>950</SAL><DEPTNO>30</DEPTNO></Row><Row><EMPNO
7902</EMPNO><ENAME>FORD</ENAME><JOB>ANALYST</JOB><MGR>7566</MGR><HIREDATE>1981-12-03</HIREDATE><SAL>3000</SAL><DEPTNO>20</DEPTNO></Row><Row><EMPNO>7934</EMPNO>
<ENAME>MILLER</ENAME><JOB>CLERK</JOB><MGR>7782</MGR><HIREDATE>1982-01-23</HIREDA
TE><SAL>1300</SAL><DEPTNO>10</DEPTNO></Row></Table>
SQL> declare
2 res boolean;
3 xmlRef REF XMLTYPE;
4 begin
5 select ref(x)
6 into xmlREF
7 from EMP_EXPORT_VIEW x;
8 res := dbms_xdb.createResource('/public/EmpTableExport.xml',xmlREF);
9 end;
10 /
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
C:\xdb\bugs\clobtest>ftp
ftp> open localhost 2100
Connected to mdrake-lap.
220- mdrake-lap
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle Database) ready.
User (mdrake-lap:(none)):
530 Please login with USER and PASS.
Login failed.
ftp> user scott tiger
331 pass required for SCOTT
230 SCOTT logged in
ftp> cd public
250 CWD Command successful
ftp> ls -l
200 PORT Command successful
150 ASCII Data Connection
-rw-r--r-- 1 SCOTT oracle 0 FEB 16 15:27 EmpTableExport.xml
-rw-r--r-- 1 INVALID_ oracle 630 JAN 31 19:44 newTestcase.xsd
-rw-r--r-- 1 INVALID_ oracle 531 JAN 31 19:44 testcase.xsd
226 ASCII Transfer Complete
ftp: 213 bytes received in 0.03Seconds 6.87Kbytes/sec.
ftp> get EmpTableExport.xml -
200 PORT Command successful
150 ASCII Data Connection
<Table><Row><EMPNO>7369</EMPNO><ENAME>SMITH</ENAME><JOB>CLERK</JOB><MGR>7902</MGR><HIREDATE>1980-12-17</HIREDATE><SAL>800</SAL><DEPTNO>20</D
EPTNO></Row><Row><EMPNO>7499</EMPNO><ENAME>ALLEN</ENAME><JOB>SALESMAN</JOB><MGR>7698</MGR><HIREDATE>1981-02-20</HIREDATE><SAL>1600</SAL><COM
M>300</COMM><DEPTNO>30</DEPTNO></Row><Row><EMPNO>7521</EMPNO><ENAME>WARD</ENAME><JOB>SALESMAN</JOB><MGR>7698</MGR><HIREDATE>1981-02-22</HIRE
DATE><SAL>1250</SAL><COMM>500</COMM><DEPTNO>30</DEPTNO></Row><Row><EMPNO>7566</EMPNO><ENAME>JONES</ENAME><JOB>MANAGER</JOB><MGR>7839</MGR><H
IREDATE>1981-04-02</HIREDATE><SAL>2975</SAL><DEPTNO>20</DEPTNO></Row><Row><EMPNO>7654</EMPNO><ENAME>MARTIN</ENAME><JOB>SALESMAN</JOB><MGR>76
98</MGR><HIREDATE>1981-09-28</HIREDATE><SAL>1250</SAL><COMM>1400</COMM><DEPTNO>30</DEPTNO></Row><Row><EMPNO>7698</EMPNO><ENAME>BLAKE</ENAME>
<JOB>MANAGER</JOB><MGR>7839</MGR><HIREDATE>1981-05-01</HIREDATE><SAL>2850</SAL><DEPTNO>30</DEPTNO></Row><Row><EMPNO>7782</EMPNO><ENAME>CLARK
</ENAME><JOB>MANAGER</JOB><MGR>7839</MGR><HIREDATE>1981-06-09</HIREDATE><SAL>2450</SAL><DEPTNO>10</DEPTNO></Row><Row><EMPNO>7788</EMPNO><ENA
ME>SCOTT</ENAME><JOB>ANALYST</JOB><MGR>7566</MGR><HIREDATE>1987-04-19</HIREDATE><SAL>3000</SAL><DEPTNO>20</DEPTNO></Row><Row><EMPNO>7839</EM
PNO><ENAME>KING</ENAME><JOB>PRESIDENT</JOB><HIREDATE>1981-11-17</HIREDATE><SAL>5000</SAL><DEPTNO>10</DEPTNO></Row><Row><EMPNO>7844</EMPNO><E
NAME>TURNER</ENAME><JOB>SALESMAN</JOB><MGR>7698</MGR><HIREDATE>1981-09-08</HIREDATE><SAL>1500</SAL><COMM>0</COMM><DEPTNO>30</DEPTNO></Row><R
ow><EMPNO>7876</EMPNO><ENAME>ADAMS</ENAME><JOB>CLERK</JOB><MGR>7788</MGR><HIREDATE>1987-05-23</HIREDATE><SAL>1100</SAL><DEPTNO>20</DEPTNO></
Row><Row><EMPNO>7900</EMPNO><ENAME>JAMES</ENAME><JOB>CLERK</JOB><MGR>7698</MGR><HIREDATE>1981-12-03</HIREDATE><SAL>950</SAL><DEPTNO>30</DEPT
NO></Row><Row><EMPNO>7902</EMPNO><ENAME>FORD</ENAME><JOB>ANALYST</JOB><MGR>7566</MGR><HIREDATE>1981-12-03</HIREDATE><SAL>3000</SAL><DEPTNO>2
0</DEPTNO></Row><Row><EMPNO>7934</EMPNO><ENAME>MILLER</ENAME><JOB>CLERK</JOB><MGR>7782</MGR><HIREDATE>1982-01-23</HIREDATE><SAL>1300</SAL><D
EPTNO>10</DEPTNO></Row></Table>226 ASCII Transfer Complete
ftp: 2131 bytes received in 0.00Seconds 2131000.00Kbytes/sec.
ftp> quit
221 QUIT Goodbye.Message was edited by:
mdrake
Similar Messages
-
Export data to adobe non interactive form
Hello,
I would like to fill a non interactive adobe form with seized data in visual composer.
How I can do that please ?Tony-
I have not worked with Adobe Forms so I am not sure if this is feasible. If I had to populate a Web Dynpro form with data from a VC form I would have an action which would invoke the URL of the Web Dynpro application. This URL would have appended to it the field name and values as entered in the VC form. In the Web Dynpro component I would retrieve all the parameter values being passed through the URL and then set these values into the context. If the context is bound to a form, the data will automatically be displayed.
Cheers-
Atul -
Digital Signatures in Adobe Forms (Non-Interactive)
Hi everyone,
I need to sign a receipt that will be sent by e-mail. The form is non-interactive, it´s only a simple receipt. This form may be printed or sent by e-mail; in case of being sent it must be signed before sending it. The receiver should be able to open it using Adobe Reader.
I´ve read other posts/help about singatures in Adobe Forms, but none of them of non-interactive forms; I need to know if it is possible to do this if the form is not interactive, and how it can be done.
Thanks!
PabloHi Jinal,
Here it goes:
report fp_pdf_test_07.
* set signature
class cl_fp definition load.
selection-screen begin of block s_files with frame title text-100.
parameters: p_pdf(64) type c lower case obligatory,
p_out(64) type c lower case obligatory.
selection-screen end of block s_files.
selection-screen begin of block s_conn with frame title text-101.
parameters: p_dest type rfcdest default 'ADS' obligatory.
selection-screen end of block s_conn.
selection-screen begin of block s_sig with frame title text-102.
parameters: s_key(64) type c lower case,
s_field(64) type c lower case,
s_reason(64) type c lower case,
s_loc(64) type c lower case,
s_cinfo(64) type c lower case.
selection-screen end of block s_sig.
types: ty_raw(255) type x,
ty_tab type standard table of ty_raw.
data: l_filename_pdf type string,
l_filename_out type string,
l_fp type ref to if_fp,
l_pdfobj type ref to if_fp_pdf_object,
l_pdf type xstring,
l_out type xstring,
l_fpex type ref to cx_fp_runtime.
l_filename_pdf = p_pdf.
l_filename_out = p_out.
perform load_file using l_filename_pdf
changing l_pdf.
* get FP reference
l_fp = cl_fp=>get_reference( ).
try.
* create PDF Object
l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
* set document
call method l_pdfobj->set_document
exporting
pdfdata = l_pdf.
* set signature
call method l_pdfobj->set_signature
exporting
keyname = s_key
fieldname = s_field
reason = s_reason
location = s_loc
contactinfo = s_cinfo.
* execute, call ADS
call method l_pdfobj->execute( ).
* get result -> l_out
call method l_pdfobj->get_document
importing
pdfdata = l_out.
catch cx_fp_runtime_internal into l_fpex.
perform error using l_fpex 'INTERNAL ERROR'.
catch cx_fp_runtime_system into l_fpex.
perform error using l_fpex 'SYSTEM ERROR'.
catch cx_fp_runtime_usage into l_fpex.
perform error using l_fpex 'USAGE ERROR'.
endtry.
check l_fpex is initial.
* download PDF
data: l_len type i,
l_tab type tsfixml.
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = l_out
importing
output_length = l_len
tables
binary_tab = l_tab.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = l_len
filename = l_filename_out
filetype = 'BIN'
changing
data_tab = l_tab
exceptions
others = 1.
if sy-subrc = 0.
write:/ 'Datei erfolgreich geschrieben'(001).
else.
write:/ 'Fehler beim Schreiben der Datei'(002).
endif.
form error using p_fpex type ref to cx_fp_runtime
p_str type string.
data: l_errcode type i,
l_errmsg type string,
l_string type string.
write:/ '***************************************************'.
write:/ '***', p_str.
write:/ '***************************************************'.
skip 2.
call method p_fpex->get_errall
importing
errcode = l_errcode
errmsg = l_errmsg.
write:/ 'ERROR CODE : ', l_errcode.
write:/ 'ERROR MESSAGE : ', l_errmsg.
l_string = p_fpex->get_text( ).
write:/ l_string.
endform.
form load_file using p_filename type string
changing p_content type xstring.
data: l_rawtab type ty_tab,
l_len type i.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = p_filename
filetype = 'BIN'
importing
filelength = l_len
changing
data_tab = l_rawtab
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.
endif.
perform convert_tab_to_x using l_rawtab l_len
changing p_content.
endform.
form convert_tab_to_x using p_rawtab type ty_tab
p_len type i
changing p_xstr type xstring.
data: l_line type ty_raw,
l_count type i,
l_len type i,
l_rest type i.
describe table p_rawtab lines l_count.
loop at p_rawtab into l_line.
if sy-tabix = l_count.
l_rest = p_len - l_len.
concatenate p_xstr l_line(l_rest) into p_xstr in byte mode.
else.
concatenate p_xstr l_line into p_xstr in byte mode.
add 255 to l_len.
endif.
endloop.
endform.
Good Luck!
Pablo -
How do I save to mixdown in mono, 0 db reduction in volume, (Same volume level as in the files-no -3db reduction) in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.
Several solutions to this problem. I believe we may have discussed this over the support e-mail, but I'll share it again here so that it can help others as well.
First, as I discussed in the e-mail, Audition defaults to support Pan Law which prevents content mixed to the center of a Stereo field from being louder than the same content panned far left or right. This provides a -3dB drop to center content by default, but you can disable this completely by entering Preferences > Multitrack and setting the Default Panning Mode to Left/Right Cut (Logarithmic)
Now, when you create a new Multitrack session, there is an option to specify the Master channelization. Here, you can select Mono, Stereo, or 5.1 and this will be the default channelization mode for a basic mixdown operation regardless of your clip content, though can be overridden when exporting a session mixdown.
Next, if you just choose the menu item Multitrack > Mixdown Session to New File... it will always default to the Master channelization. This command does not write to disk, it is a preview or pre-processing step. If you wish to export your multitrack session mixdown directly to disk, in your desired channelization and file format, please use the command File > Export > Multitrack Mixdown > Entire Session... You will then have the complete set of output options, including the option to output at any channelization you like and the format you prefer.
Here, I've disabled the default 5.1 output and selected a Mono mixdown instead.
I've now changed the file format settings as well to MP3, 64K.
With most of these configuration details, you should only need to set them once and these will remain the defaults for any subsequent projects, unless modified again. The Export Multitrack Mixdown dialog will reset the Mixdown options to match the default output, and the MP3 settings may update to reflect the kBps setting nearest your session sample rate. -
Cloning context file on db tier fails when run non-interactively
Hi all,
I have a problem where cloning the DB tier context file using adclonectx.pl non-interactively using a pairsfile and noprompt fails in certain circumstances and continually returns this error
Target System Port Pool [0-99] : RC-00201: Error: Not a valid port pool number
If we clone from prod or uat (which are on different nodes) to non-prod it works fine, if we clone from a different non-prod environment (on the same node) it fails.
We can run adclonectx.pl interactively with the same pairsfile and it works, so I copied all of the variables in the log into the pairsfile and ran it non-interactively and it failed with the same error.
My understanding is that adclonectx.pl uses the source DB context file and the pairsfile to create the new context file. I've tried cloning the context file non-interactively from several different non-prod envs with the same error, so I don't think it's specific to 1 source env.
It seems to want to prompt for the portpool when it's on the same node as the source environment.
EBS 12.1.3, DB 11.2.0.3 RAC 2 node on Oracle Linux 5.
I've raised 3-9540409031 : adclonectx.pl on db Tier errors with RC-00201 when run non-interactively using pairsfile - but haven't got an answer yet.
This is the pairsfile with everthing in it - generated from an interactive session that worked.
s_db_ons_remoteport = 6411
s_cmanport = 1532
s_clusterInterConnects = dxd1db01-ib
s_dbhost = dxd1db01-ib
s_dbSidLower = ebscnv1
s_dbhome4 = +DATA_DXD1
s_dbhome3 = +DATA_DXD1
s_dbSid = EBSCNV1
s_dbhome2 = +DATA_DXD1
s_dbhome1 = +DATA_DXD1
s_isAdmin = YES
s_clonestage = /u01/EBSDEV/product/11.2.0/appsutil/clone
s_jretop = /u01/EBSDEV/product/11.2.0/jdk/jre
s_db_rollback_segs = NOROLLBACK
s_db_util_filedir = /u01/EBSCNV/tmp
s_isForms = YES
s_undo_tablespace = APPS_UNDOTS1
s_temp = /u01/EBSDEV/product/11.2.0/appsutil/temp
s_database_type = RAC
s_dbuser = orebscnv
s_instName = EBSCNV1
s_dbGlnam = EBSCNV
s_domainname = mgmt.shared.health.nz
s_dbgroup = oinstall
s_hostname = dxd1db01-ib
s_jdktop = /u01/EBSDEV/product/11.2.0/jdk/jre
s_isConc = YES
s_instThread = 1
s_dbport = 1532
s_isWeb = YES
s_dbCluster = true
s_contextname = EBSCNV1_dxd1db01-ib
s_dbClusterInst = 2
s_dbdomain = mgmt.shared.health.nz
s_base = /u01/EBSCNV
s_db_ons_localport = 6311
s_contextfile = /u01/EBSCNV/tmp/EBSCNV1_dxd1db01-ib.xml
s_db_oh = /u01/EBSDEV/product/11.2.0
s_instNumber = 1
s_virtual_hostname = dxd1db01-ib
s_display = y
this is the adclonectx.pl comand i use - I've checked all the env variables before running and they're all good
perl ./adclonectx.pl \
contextfile=$SRCCTX \
template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
outfile=$NEWCTX \
pairsfile=$PAIRSFILE \
initialnode
when run non-interactively i use this command - and as mentioned above this works under certain circumstances
dummypw=dummypw
echo \$dummypw | perl ./adclonectx.pl \
contextfile=$SRCCTX \
template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
outfile=$NEWCTX \
pairsfile=$PAIRSFILE \
initialnode noprompt
Any ideas, it's got 3 DBAs stumped...That makes sense to me ... the pool parameter should be in the pairsfile, .. or in the parameters when calling it at command line
You can force the pool to be changed, even when you're on the same server. Actually, I would use different pools for any environment, different server or not. And, avoid the default pool as well. If you do it this way, one of the advantages is that you spot issues - like the one you have - much much earlier. In that case, you would need that extra parameter on every run. -
SSRS XML Errors when exporting to .xlsx from Dynamics NAV Database
We use Dynamics NAV for our ERP and have many SSRS reports. We get xml Errors when exporting to Excel .xlsx. I've seen this happen since SQL 2008 R2 and have posted in many places trying to find an answer, but was hoping MS would solve the
issue. The numeric data types in the Dynamics NAV database are all decimal(38,20) and when the value is zero the Excel renderer throws the errors.
We now have over 400 reports and we export them to Excel 2003 format. I'm starting to feel like this is my new Y2K issue when Excel 2003 is set to sunset. I'm fearing that I'll have to do conversions on all numeric data types for all reports.
Both of these are Microsoft products so I'm wondering is this even on their radar.
We're running SQL Server 2012 SP2, and just rolled out CRM 2015 on SQL Server 2014. I get the errors in SSRS 2008R2, 2012, and 2014. Has anyone seen this before?
Timothy KruseHi Skywalker73,
According to your description, when you export the report to Excel, the error “Excel was able to open the file by repairing or removing the unreadable content.” throws out when opening the Excel file.
Based on my research, it has reported the same issue when exporting to Excel. The issue could cause by numeric columns has a precision of 16 or higher. To fix the issue, we could change data type in the table to a support lower precision, or convert
the numbers in the stored procedure that populates the report. For more information, please refer to this article:
SSRS 2012 Bug – “Excel found unreadable content”. Besides, please refer to this
article to check if non-printing characters exist in the report.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Can anyone plz send a simple example of interactive reports
Hi gurus,
Can anyone plz send a simple example of interactive reports using subscreenswhich contains at line-selection, at user-command, pf and other commands.
Thanks in advance.Hi,
* Macro definition
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
ls_fieldcat-cfieldname = &3.
ls_fieldcat-qfieldname = &4.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
TYPE-POOLS: slis. " ALV Global types
TYPES:
BEGIN OF ty_vbak,
vkorg TYPE vbak-vkorg, " Sales organization
kunnr TYPE vbak-kunnr, " Sold-to party
vbeln TYPE vbak-vbeln, " Sales document
netwr TYPE vbak-netwr, " Net Value of the Sales Order
waerk TYPE vbak-waerk, " Currency
END OF ty_vbak,
BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln, " Sales document
posnr TYPE vbap-posnr, " Sales document item
matnr TYPE vbap-matnr, " Material number
arktx TYPE vbap-arktx, " Short text for sales order item
kwmeng TYPE vbap-kwmeng, " Order quantity
vrkme TYPE vbap-vrkme, " Quantity Unit
netwr TYPE vbap-netwr, " Net value of the order item
waerk TYPE vbap-waerk, " Currency
END OF ty_vbap.
DATA :
gs_vbak TYPE ty_vbak,
* Data displayed in the first list
gt_vbak TYPE TABLE OF ty_vbak,
* Data displayed in the second list
gt_vbap TYPE TABLE OF ty_vbap.
SELECT-OPTIONS :
s_vkorg FOR gs_vbak-vkorg, " Sales organization
s_kunnr FOR gs_vbak-kunnr, " Sold-to party
s_vbeln FOR gs_vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data_vbak.
PERFORM f_display_data_vbak.
* Form f_read_data_vbak
FORM f_read_data_vbak.
SELECT vkorg kunnr vbeln netwr waerk
INTO CORRESPONDING FIELDS OF TABLE gt_vbak
UP TO p_max ROWS
FROM vbak
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg
and vbtyp = 'C'. " C = Sales Orders.
ENDFORM. " F_READ_DATA_VBAK
* Form f_display_data_vbak
FORM f_display_data_vbak.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VKORG' 'VBAK' '' ''.
m_fieldcat 'KUNNR' 'VBAK' '' ''.
m_fieldcat 'VBELN' 'VBAK' '' ''.
m_fieldcat 'NETWR' 'VBAK' 'WAERK' ''.
m_fieldcat 'WAERK' 'VBAK' '' ''.
* Display the first list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA_VBAK
* FORM USER_COMMAND *
FORM user_command USING u_ucomm TYPE syucomm
us_selfield TYPE slis_selfield. "#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_vbak INDEX us_selfield-tabindex INTO gs_vbak.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbap. " Read data from VBAP
PERFORM f_display_data_vbap.
ENDCASE.
ENDFORM. " USER_COMMAND
* Form f_read_data_vbap
FORM f_read_data_vbap.
SELECT vbeln posnr matnr arktx kwmeng vrkme netwr waerk
INTO CORRESPONDING FIELDS OF TABLE gt_vbap
FROM vbap
WHERE vbeln = gs_vbak-vbeln.
ENDFORM. " F_READ_DATA_VBAP
* Form f_display_data_vbap
FORM f_display_data_vbap.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VBELN' 'VBAP' '' ''.
m_fieldcat 'POSNR' 'VBAP' '' ''.
m_fieldcat 'MATNR' 'VBAP' '' ''.
m_fieldcat 'ARKTX' 'VBAP' '' ''.
m_fieldcat 'KWMENG' 'VBAP' '' 'VRKME'.
m_fieldcat 'VRKME' 'VBAP' '' ''.
m_fieldcat 'NETWR' 'VBAP' 'WAERK' ''.
m_fieldcat 'WAERK' 'VBAP' '' ''.
* Display the second list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbap.
ENDFORM. " F_DISPLAY_DATA_VBAP
2nd example
* Macro definition
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = &2.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
TYPE-POOLS: slis. " ALV Global types
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
TYPES:
* Data displayed in the first list
BEGIN OF ty_kna1,
kunnr TYPE kna1-kunnr, " Customer number
name1 TYPE kna1-name1, " Customer name
ort01 TYPE kna1-ort01, " Customer city
END OF ty_kna1,
* Data displayed in the second list
BEGIN OF ty_vbak,
vkorg TYPE vbak-vkorg, " Sales organization
kunnr TYPE vbak-kunnr, " Sold-to party
vbeln TYPE vbak-vbeln, " Sales document
netwr TYPE vbak-netwr, " Net Value of the Sales Order
END OF ty_vbak,
* Data displayed in the third list
BEGIN OF ty_vbap,
vbeln TYPE vbap-vbeln, " Sales document
posnr TYPE vbap-posnr, " Sales document item
matnr TYPE vbap-matnr, " Material number
arktx TYPE vbap-arktx, " Short text for sales order item
kwmeng TYPE vbap-kwmeng, " Order quantity
netwr TYPE vbap-netwr, " Net value of the order item
END OF ty_vbap.
DATA:
gs_kna1 TYPE ty_kna1,
gt_kna1 TYPE TABLE OF ty_kna1,
gs_vbak TYPE ty_vbak,
gt_vbak TYPE TABLE OF ty_vbak,
gt_vbap TYPE TABLE OF ty_vbap.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data_kna1.
END-OF-SELECTION.
PERFORM f_display_data_kna1.
* Form f_read_data_kna1
FORM f_read_data_kna1.
* Read customer data with a least one order
SELECT kunnr name1 ort01 INTO TABLE gt_kna1
FROM kna1 AS k
UP TO p_max ROWS
WHERE EXISTS
( SELECT kunnr FROM vbak WHERE kunnr = k~kunnr ).
ENDFORM. " F_READ_DATA_KNA1
* Form f_display_data_kna1
FORM f_display_data_kna1.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'KUNNR' 'KNA1'.
m_fieldcat 'NAME1' 'KNA1'.
m_fieldcat 'ORT01' 'KNA1'.
* Display the first list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND_KNA1'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_kna1.
ENDFORM. " F_DISPLAY_DATA_KNA1
* FORM USER_COMMAND_KNA1 *
FORM user_command_kna1 USING u_ucomm TYPE sy-ucomm
us_selfield TYPE slis_selfield."#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_kna1 INDEX us_selfield-tabindex INTO gs_kna1.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbak. " Read data from VBAK
PERFORM f_display_data_vbak. " Display orders
ENDCASE.
ENDFORM. " USER_COMMAND_KNA1
* Form f_read_data_vbak
FORM f_read_data_vbak.
SELECT vkorg kunnr vbeln netwr
INTO TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr = gs_kna1-kunnr.
ENDFORM. " F_READ_DATA_VBAK
* Form f_display_data_vbak
FORM f_display_data_vbak.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VKORG' 'VBAK'.
m_fieldcat 'KUNNR' 'VBAK'.
m_fieldcat 'VBELN' 'VBAK'.
m_fieldcat 'NETWR' 'VBAK'.
* Display the second list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_user_command = 'USER_COMMAND_VBAK'
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA_VBAK
* FORM USER_COMMAND_VBAK *
FORM user_command_vbak USING u_ucomm TYPE sy-ucomm
us_selfield TYPE slis_selfield."#EC CALLED
CASE u_ucomm.
WHEN '&IC1'.
READ TABLE gt_vbak INDEX us_selfield-tabindex INTO gs_vbak.
CHECK sy-subrc EQ 0.
PERFORM f_read_data_vbap. " Read data from VBAP
PERFORM f_display_data_vbap. " Display items
ENDCASE.
ENDFORM. " USER_COMMAND_VBAK
* Form f_read_data_vbap
FORM f_read_data_vbap.
SELECT vbeln posnr matnr arktx kwmeng netwr
INTO TABLE gt_vbap
FROM vbap
WHERE vbeln = gs_vbak-vbeln.
ENDFORM. " F_READ_DATA_VBAP
* Form f_display_data_vbap
FORM f_display_data_vbap.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv.
* Build the field catalog
m_fieldcat 'VBELN' 'VBAP'.
m_fieldcat 'POSNR' 'VBAP'.
m_fieldcat 'MATNR' 'VBAP'.
m_fieldcat 'ARKTX' 'VBAP'.
m_fieldcat 'KWMENG' 'VBAP'.
m_fieldcat 'NETWR' 'VBAP'.
* Display the third list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = lt_fieldcat
TABLES
t_outtab = gt_vbap.
ENDFORM. " F_DISPLAY_DATA_VBAP
3rd Example
** Macro definition*
*DEFINE m_fieldcat.*
*add 1 to ls_fieldcat-col_pos.*
*ls_fieldcat-fieldname = &1.*
*ls_fieldcat-ref_tabname = &2.*
*append ls_fieldcat to lt_fieldcat.*
*END-OF-DEFINITION.*
*CONSTANTS :*
*c_x VALUE 'X'.*
*TYPE-POOLS: slis. " ALV Global types*
*TYPES:*
** Data displayed in the first list*
*BEGIN OF ty_vbak,*
*vkorg TYPE vbak-vkorg, " Sales organization*
*kunnr TYPE vbak-kunnr, " Sold-to party*
*vbeln TYPE vbak-vbeln, " Sales document*
*netwr TYPE vbak-netwr, " Net Value of the Sales Order*
*END OF ty_vbak,*
** Data displayed in the popup list*
*BEGIN OF ty_vbap,*
*posnr TYPE vbap-posnr, " Sales document item*
*matnr TYPE vbap-matnr, " Material number*
*arktx TYPE vbap-arktx, " Short text for sales order item*
*kwmeng TYPE vbap-kwmeng, " Order quantity*
*netwr TYPE vbap-netwr, " Net value of the order item*
*END OF ty_vbap.*
*DATA :*
*g_vkorg TYPE vbak-vkorg,*
*g_kunnr TYPE vbak-kunnr,*
*g_vbeln TYPE vbak-vbeln,*
*gt_vbak TYPE TABLE OF ty_vbak,*
*gt_vbap TYPE TABLE OF ty_vbap.*
*SELECT-OPTIONS :*
*s_vkorg FOR g_vkorg, " Sales organization*
*s_kunnr FOR g_kunnr, " Sold-to party*
*s_vbeln FOR g_vbeln. " Sales document*
*SELECTION-SCREEN :*
*SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED*
*PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.*
*SELECTION-SCREEN END OF LINE.*
*INITIALIZATION.*
*v_1 = 'Maximum of records to read'.*
*START-OF-SELECTION.*
*PERFORM f_read_data_vbak.*
*PERFORM f_display_data_vbak.*
** Form f_read_data_vbak*
*FORM f_read_data_vbak.*
*SELECT vkorg kunnr vbeln netwr*
*INTO TABLE gt_vbak*
*FROM vbak*
*UP TO p_max ROWS*
*WHERE kunnr IN s_kunnr*
*AND vbeln IN s_vbeln*
*AND vkorg IN s_vkorg.*
*ENDFORM. " F_READ_DATA_VBAK*
** Form f_display_data_vbak*
*FORM f_display_data_vbak.*
*DATA:*
*ls_fieldcat TYPE slis_fieldcat_alv,*
*lt_fieldcat TYPE slis_t_fieldcat_alv.*
** Build the field catalog*
*m_fieldcat 'VKORG' 'VBAK'.*
*m_fieldcat 'KUNNR' 'VBAK'.*
*m_fieldcat 'VBELN' 'VBAK'.*
*m_fieldcat 'NETWR' 'VBAK'.*
** Display the first list*
*CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'*
*EXPORTING*
*i_callback_program = sy-cprog*
*i_callback_user_command = 'USER_COMMAND'*
*it_fieldcat = lt_fieldcat*
*TABLES*
*t_outtab = gt_vbak.*
*ENDFORM. " F_DISPLAY_DATA_VBAK*
** FORM USER_COMMAND **
*FORM user_command USING u_ucomm TYPE sy-ucomm*
*us_selfield TYPE slis_selfield. "#EC CALLED*
*DATA:*
*ls_vbak TYPE ty_vbak.*
*CASE u_ucomm.*
*WHEN '&IC1'.*
*READ TABLE gt_vbak INDEX us_selfield-tabindex INTO ls_vbak.*
*CHECK sy-subrc EQ 0.*
*PERFORM f_read_data_vbap " Read data from VBAP*
*USING ls_vbak-vbeln.*
*PERFORM f_display_data_vbap.*
*ENDCASE.*
*ENDFORM. " USER_COMMAND*
** Form f_read_data_vbap*
*FORM f_read_data_vbap USING u_vbeln TYPE vbeln_va.*
*SELECT posnr matnr arktx kwmeng netwr*
*INTO TABLE gt_vbap*
*FROM vbap*
*WHERE vbeln = u_vbeln.*
*ENDFORM. " F_READ_DATA_VBAP*
** Form f_display_data_vbap*
*FORM f_display_data_vbap.*
*DATA:*
*ls_private TYPE slis_data_caller_exit,*
*ls_fieldcat TYPE slis_fieldcat_alv,*
*lt_fieldcat TYPE slis_t_fieldcat_alv.*
** Build the field catalog*
*m_fieldcat 'POSNR' 'VBAP'.*
*m_fieldcat 'MATNR' 'VBAP'.*
*m_fieldcat 'ARKTX' 'VBAP'.*
*m_fieldcat 'KWMENG' 'VBAP'.*
*m_fieldcat 'NETWR' 'VBAP'.*
*ls_private-columnopt = c_x. " Optimize width*
** Display items in a POPUP*
*CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'*
*EXPORTING*
*i_selection = ' '*
*i_tabname = 'GT_VBAP'*
*it_fieldcat = lt_fieldcat*
*is_private = ls_private*
*TABLES*
*t_outtab = gt_vbap.*
*ENDFORM. " F_DISPLAY_DATA_VBAP*
***************** END OF PROGRAM Z_ALV_GRID_AND_POPUP *******************
reward if helpful
raam -
WebDynpro - Creating a non-interactive Adobe file
Im trying to display some information in an Adobe file, but it seems that webdynpro uses only Interactive form which<b> I dont need.</b>
The information I display usually come from different BAPIsIm Looking for <b>NON</b> Interactive forms
all the questions and replies talks about interactive forms but I NEED <b>NON Interactive</b> .
The problem is as simple as reading some data from Backend and opening a PDF file that contains the information from WebDynpro application.
<b>I dont need to use Adobe Designer to create the form</b> -
Rendering a non-interactive form
How do we use scripting in Live Cycle Designer to render a non-interactive pdf. Data is populating the form using xml. Thanks and help will be appreciated
Couple of issues that you should know before proceeding.
1. To communicate with a web service from the form using Reader you will need to Reader Extend the form using Reader Extensions Server and not Acrobat. Acrobat does not turn that right on. Note that if you intend to use Acrobat this is not an issue.
2. There is no means of getting the PDF form while it is running into the context of a SOAP message. There is no programmatic way to put the PDF into the payload from the form. I can get the data but not the form.
3. Once the data is populated into the form we could change all of the fields to Read Only ...thereby achieving the flattening that you require.
4. The web service will not be able to save or print locally through the client. The client will have to do that . The client being Reader or Acrobat. -
Error during activation of adobe non-interactive form
Hello everyone,
I am trying to activate a non-interactive adobe form and am getting the below error:-
"Field p_lifnr has a conversion routine(see SAP note 796755)".
I have made sure that this field (which is corresponding to LFA1-lifnr) has context binding, I even tried using below code in its interface:-
GET PARAMETER ID 'LIF' FIELD p_lifnr.
and also tried the below:-
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_lifnr
IMPORTING
output = p_lifnr.
just in case..
but all above in vain,can someone let me know what might be the problem....or where would I find this 'SAP note 796755' ?
Thanks,
Rachna.Hi,
I am facing the same problem of "Error during activation" while activating the SAP interactive form.
I am using ECC 6.0, ADL 7.1 and Adobe reader 8.0
Could you please suggest a way out.
Thank You
Aser -
Non-interactive FrameAccess.java and frame conversion woes
Hello all,
I am searching for a way to convert a webcam-acquired AVI file into a sequence of numbered TIFF images (one for each movie frame). While searching the 'net, I ran into the well-known sample called FrameAccess.java. Although it looks like a good starting point, I got stuck by a number of problems:
1) I'm not interested in visualizing the frames as they get processed: I've got tons of players I can check the movie with before feeding it in to my extractor. A simple non-interactive application would be better. However, when I comment out the AWT-related portions of FrameAccess, it hangs after processing two or three frames.
2) Which way is better to process the single frame with: PreAccess or PostAccess?
2.1) In PreAccess it looks like the frame is still in raw YUV420 format, whereas in PostAccess it seems to have undergone some conversion since the buffer size is equal to the number of pixels. But the buffer data is returned as short[] when I would expect it to be of type byte[]. What am I missing here?
3) Although it is a priori known that the AVI files were acquired in B/W mode, it looks like the AVI is made of 8-bit RGB frames. How can I possibly convert them into 8-bit or 16-bit grayscale images and save them as TIFF images? (*)
Any ideas/hints/suggestions whatsoever that might help me tackle the above problems will be highly valued.
Thanks in advance,
Emmanuele
(*) I am aware that this question could be partly off-topic since it may fall more appropriately into the Java2D/JAI realm. However, for the moment I'd like not to open too many threads.Hello all,
I am searching for a way to convert a webcam-acquired AVI file into a sequence of numbered TIFF images (one for each movie frame). While searching the 'net, I ran into the well-known sample called FrameAccess.java. Although it looks like a good starting point, I got stuck by a number of problems:
1) I'm not interested in visualizing the frames as they get processed: I've got tons of players I can check the movie with before feeding it in to my extractor. A simple non-interactive application would be better. However, when I comment out the AWT-related portions of FrameAccess, it hangs after processing two or three frames.
2) Which way is better to process the single frame with: PreAccess or PostAccess?
2.1) In PreAccess it looks like the frame is still in raw YUV420 format, whereas in PostAccess it seems to have undergone some conversion since the buffer size is equal to the number of pixels. But the buffer data is returned as short[] when I would expect it to be of type byte[]. What am I missing here?
3) Although it is a priori known that the AVI files were acquired in B/W mode, it looks like the AVI is made of 8-bit RGB frames. How can I possibly convert them into 8-bit or 16-bit grayscale images and save them as TIFF images? (*)
Any ideas/hints/suggestions whatsoever that might help me tackle the above problems will be highly valued.
Thanks in advance,
Emmanuele
(*) I am aware that this question could be partly off-topic since it may fall more appropriately into the Java2D/JAI realm. However, for the moment I'd like not to open too many threads. -
OrgChart 3.0 : Chartbook Printing Error (non-interactive)
Hi,
I'm using OrgChart 3.0.
When printing Chartbook using non-interactive method, I get the *.jsp page generated. In the top right, there's a print button. When I click on that, it brings me to the print menu where I can add footer/header..etc. Everything seems to work fine. When I'm done, I click to PDF button. The result in PDF doesn't look right. All boxes and lines are gone. All I got is the content of the box, like Org unit name.
Is this another error? Or I did something wrong?
Thanks.Hi,
How many boxes are in your PDF? I know there are limitations like this with PDF when there are a lot of boxes. However, some lines should still be visible. Are you able to put a link to an example here?
I know in 3.0 there is a new PDF engine used and I wonder if there is a problem with that. Also, is this exported from the Flex or the HTML mode?
Best regards,
Luke -
Simple script that will export the coordinates (layer bounds - top left x,y)
Hi,
I'm looking for a simple script that will export the coordinates (layer bounds - top left x,y) of the layers to an seperate xml/txt file.Your screen capture looks like it's from Photoshop.
In InDesign sub layers are page items, the containing layer has no dimension. So you could get all the page item's x, y, width, height. But you might have to consider groups and then the layering could be very complex. The stacking order could also get complex. Page items have an index, but it's relative to its parent container. -
Oracle code+simple XML tags
Hi ,
I wrote a shell script which contains " Oracle SQL query + simple XML tags".
the code was executing successfully.But My problem is to create a document based on the code.Don't mind any one please help me to preparingn the document..
Can I post the code here?? Is it right place to post my code.? Because I am new member to this forum..Please let me know...
I'll post the code as per ur suggestion..
Thank you..dbuser=SCOTT/TIGER
dbname=PRODDB
connect_string=$dbuser@$dbname
tableowner="DEVPS"
TABLEOWNER=$(echo $tableowner | tr '[a-z]' '[A-Z]')
#. ${MMHOME}/rfx/etc/config.env
OUT_DIR=/ifiles/inbox/data
# Set it to number of CPU on the server
MAX_THREAD=12
TASK_RUNNING=0
PROGRAM_NAME='Out_Source'
get_partname()
sqlplus -s $connect_string <<!
set pages 0
set feedback off
set heading off
SELECT PARTITION_NAME, PARTITION_POSITION
FROM DBA_TAB_PARTITIONS
WHERE TABLE_NAME='EMP'
ORDER BY PARTITION_POSITION;
exit;
create_part_flow()
cat > dats/outFlow_${PROGRAM_NAME}_$1.xml - <<EOF1
export PROGRAM_NAME="item_sale_$1"
. \${MMHOME}/config.env
. \${LIB_DIR}/lib.ksh
message "Program started ..."
\${ITEM_EXE} \${ITEM_OPTIONS} << EOF
<FLOW name="output.flow">
\${DBREAD}
<PROPERTY name="query">
<![CDATA[
SELECT <stmt>
]]>
</PROPERTY>
<OPERATOR type="convert">
<PROPERTY name="convertspec">
<![CDATA[
<CONVERTSPECS>
<CONVERT destfield="EMP_SAL" sourcefield="EMP_SAL" newtype="int16">
<CONVERTFUNCTION name="int16_from_dfloat"/>
<TYPEPROPERTY name="nullable" value="false"/>
</CONVERT>
</CONVERTSPECS>
]]>
</PROPERTY>
<OUTPUT name="tmp.v"/>
</OPERATOR>
</OPERATOR>
<OPERATOR type="export">
<INPUT name="tmp.v"/>
<PROPERTY name="outputfile" value="\${DATA_DIR}/sao0_irt_i_$1.dat"/>
<PROPERTY name="schemafile" value="\${SCHEMA_DIR}/item_on_off.schema"/>
</OPERATOR>
</FLOW>
EOF
checkerror -e $? -m "Program failed - check \${ERR_FILE}"
# Remove the status file
if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
message "Program completed successfully"
# cleanup and exit
rmse_terminate 0
EOF1
create_nopart_flow()
cat > outFlow_${PROGRAM_NAME}.xml - <<EOF
<FLOW name="output.flow">
<OPERATOR type="oraread">
<PROPERTY name="query">
<![CDATA[
<![CDATA[
SELECT <STmt>
]]>
</PROPERTY>
<OUTPUT name="tmp.v"/>
</OPERATOR>
<OPERATOR type="export">
<INPUT name="tmp.v"/>
<PROPERTY name="outputfile" value="sao0_irt_i_$1.dat"/>
</OPERATOR>
</FLOW>
EOF
create_full_flow()
cat > dats/item_sale.xml << EOF1
export PROGRAM_NAME="item_sale"
. \${MMHOME}/config.env
. \${LIB_DIR}/lib.ksh
ON_SALE_OUTPUT_FILE=\${DATA_DIR}/smo0_onseffdt_.txt
ON_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_on_sale.schema
OFF_SALE_OUTPUT_FILE=\${DATA_DIR}/sm0_ofseffdt_.txt
OFF_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_off_sale.schema
#export RFX_DEBUG=1
# input files:
ONOFF_DATE=\${DATA_DIR}/dm0_onseffdt_ofseffdt.dat
ONOFF_DATE_SCHEMA=\${SCHEMA_DIR}/item_on_off.schema
message "Program started ..."
\${RETL_EXE} \${RETL_OPTIONS} << EOF
<FLOW name="Store_Source.flw">
<OPERATOR type="import">
<PROPERTY name="inputfile" value="\${ONOFF_DATE}"/>
<PROPERTY name="schemafile" value="\${ONOFF_DATE_SCHEMA}"/>
<OPERATOR type="copy">
<OUTPUT name="on_off_sale.v"/>
</OPERATOR>
</OPERATOR>
<!--START_INS_C2.1-->
<OPERATOR type="copy">
<INPUT name="on_off_sale.v"/>
<OUTPUT name="on_sale_out.v"/>
<OUTPUT name="off_sale_out.v"/>
</OPERATOR>
<!--END_INS_C2.1-->
<OPERATOR type="fieldmod">
<INPUT name="on_sale_out.v"/>
<!--START_DIS_C2.1
<PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
END_DIS_C2.1-->
<!--START_INS_C2.1-->
<PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=ONSALE_DATE"/>
<!--END_INS_C2.1-->
<OPERATOR type="export">
<PROPERTY name="outputfile" value="\${ON_SALE_OUTPUT_FILE}"/>
<PROPERTY name="schemafile" value="\${ON_SALE_OUTPUT_SCHEMA}"/>
</OPERATOR>
</OPERATOR>
<OPERATOR type="fieldmod">
<INPUT name="off_sale_out.v"/>
<!--START_DIS_C2.1
<PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
END_DIS_C2.1-->
<!--START_INS_C2.1-->
<PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=OFFSALE_DATE"/>
<!--END_INS_C2.1-->
<OPERATOR type="export">
<PROPERTY name="outputfile" value="\${OFF_SALE_OUTPUT_FILE}"/>
<PROPERTY name="schemafile" value="\${OFF_SALE_OUTPUT_SCHEMA}"/>
</OPERATOR>
</OPERATOR>
</FLOW>
EOF
checkerror -e 0 -m "Program failed - check ${ERR_FILE}"
# Remove the status file
if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
message "Program completed successfully"
# cleanup and exit
rmse_terminate 0
EOF1
# Remove all individual xml files
rm outFlow_${PROGRAM_NAME}*.xml
NO_OF_PART=`get_partname $TABLEOWNER |wc -l`
if [ ${NO_OF_PART} -eq 0 ]; then
echo Table not partitioned
create_nopart_flow
time retl -c ${1} -f outFlow_${PROGRAM_NAME}.xml
else
echo Table partitioned
get_partname $TABLEOWNER |while read PARTNAME THREAD_SEQ
do
echo PartName: $PARTNAME POS: $THREAD_SEQ
create_part_flow $THREAD_SEQ ${PARTNAME}
time /app/rms/scripts/rms_retl_aip.sh outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml&
echo Running outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml ....
sleep 1
#TASKS_RUNNING=`ps -ef|grep retl|grep -v java|grep -v grep|wc -l`
TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
echo Running: ${TASKS_RUNNING} Max: ${MAX_THREAD}
while [ "${TASKS_RUNNING}" -ge "${MAX_THREAD}" ]; do
sleep 2
TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
done
done
wait
#Concatenate all files
cat ${OUT_DIR}/dm0_src_i_*.dat > ${OUT_DIR}/sm0_onseffdt_ofseffdt.dat
if [ $? -eq 0 ]; then
rm ${OUT_DIR}/sm0_src_i_*.dat
fi
create_full_flow
time dats/item.sh item_sale.xml
fi -
Multiple images into a subform in a dynamic non-interactive adobe form
I want to convert a set of images into a PDF (one page for each image) with Webdynpro. I'm trying with a non-interactive adobe form.
I followed the tutorial "Dynamic Non-Interactive PDF Form".
I've got a multiple Context node: 'Images' with a string attribute 'url' for each image.
In the form, I've created subform1, and subform2 within. I put an image field into subform2, setting its url to: $record.Images[*].url
and its script to: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
It doesn't work.
If I add a field into subform2 binding it to url attribute, I can see some lines with the correct path for each image, but the image isn't displayed.
It works with a single dynamic image in the page. What am I doing wrong?
Regards
Anibal Pozo.No. It's form scripting. In any case I'm working with Webdynpro Java.
I tried this code in table 'initialize' event.
for int=0 upto $record.nImages do
Table1.Row1[int].ImageField.value.image.href = $record.Images[int].url;
Table1.Row1[int].Cell4.value.#image.href = $record.Images[int].url;
endfor
Cell4 is a static image.
In 04SP9, it show always the same image in the image field (first column), and alternating image in cell4 (second column).
In 04sSP6, it shows always the same image in all the rows in both columns.
Any idea? I didn't find any OSS related.
Maybe you are looking for
-
Cancel billing doc with Accounting doc clearing
Dear gurus , the scenario is that we have a billing doc with wrong pricing and the relative accounting doc has cleared status,then we use VF11 to cancel the billing doc , the system give the information "Document #### saved (no automatic clearing)"
-
How do I get Itunes to allow music onto 2nd Ipod?
I've got 2 Ipods (one for me, one for wife). When I plug my wife's Ipod into computer, Itunes recognizes it, but won't allow it to copy over some albums that were purchased back when DRM was the norm. Is it not possible to share an older bought alb
-
hello all, i have a problem in keyListener , i want to restart my system by using java program . i have an idea that is : get the keycode of ctrl+alt+del using that we can restart the system .but my idea not work .pls help me by sent code. [email pro
-
Hi all. I have the following sql wich performance isn't good enough because one of the tables used in the join as a lot of data. So i Want to know how i can improve it ? SELECT DISTINCT ordered_prod INTO TABLE ht_data-ordered_prod FROM crmd_order
-
Interconnect HTTP adapter and B2B
The HTTP adapter within Interconnect does not seem to support SOAP HTTP formats, would B2B be able to manipulate the HTTP from the HTTP Adapter and create it in SOAP format.