Using ?import:file? command in a linux Enterprise server
Hello.
I'm with a problem with a template. I never had a client that use linux as OS in enterprise server.
I work with embedded bi publisher in JDEDWARDS and usually i use this command to call dinamic footers and never had a problem. For example
<?import:file:///\\10.153.2.86\BIP\R5543501\footerlastpage.rtf?>. This customer is in linux and dont know nothing about linux but i think that the problem is in this command because linux dont use " \\ " to perform this command \\10.153.2.86\BIP\R5543501\footerlastpage.rtf.
Someone know how i can solve this problem? i tried something like this ( <?import:file://///10.153.2.86\BIP\R5543501\footerlastpage.rtf?>) but still not working and cant find much information in internet about this.
Any help is appreciated
Tks in Adavance
Paulo Duarte
Hi Paulo,
You can import subtemplates this way:
<?import:http://myservername/subtemplates.rtf?> (access over HTTP)
or
<?import:file:///mydirectory/subtemplates.rtf?> (access over File System)
(Notice: http uses two forward slashes // and file uses three /// )
So in your case try this: <?import:file:///10.153.2.86/BIP/R5543501/footerlastpage.rtf?>
Another thing to make sure is set is this:
1) http://www.oracle.com/webfolder/technetwork/de/community/bip/tipps/Subtemplates/image01.png
2) http://www.oracle.com/webfolder/technetwork/de/community/bip/tipps/Subtemplates/image02.png
References:
BI Publisher Subtemplates:
http://www.oracle.com/technetwork/middleware/bi-publisher/overview/bip-subtemplate-1-132933.pdf
Cheers
Jorge
ps. If this answers your question then please grant the points and close the thread
Similar Messages
-
Running livecycle es 8.2 on suse linux enterprise server
Hi, I've recently received a strange bug while trying to startup jboss livecycle on suse linux enterprise server. The error that occurs first is:<br /><br />2008-10-23 10:58:23,065 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deployment: file:/app/jboss/server/all/deploy/adobe-livecycle-native-jboss-x86_linux.ear<br />java.lang.OutOfMemoryError<br /> at java.util.zip.ZipFile.open(Native Method)<br /> at java.util.zip.ZipFile.<init>(ZipFile.java:203)<br /> at java.util.jar.JarFile.<init>(JarFile.java:132)<br /> at java.util.jar.JarFile.<init>(JarFile.java:70)<br /><br />After some research i found out that this is not a java heap space bug nor a livecycle bug , but a java 1.5 bug, the bug database url is as follows:<br /><br />http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4705373<br />duplicate of:<br />http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6280693<br /><br />As stated this is a java bug that was fixed in the mustang release (jdk1.6), but since we cant use jdk1.6, is it even possible to deploy lc on suse linux enterprise server ?
Hi Jayan, thanks for the reply, but as I stated, this is not a java heap space problem. I have done all the necesary tests to confirm that, the XmX is set to 1280m which is the maximum for the 32-bit jdk and at the point of the crash there's still plety of java heap space avaible (the crash occurs after like a 3 minuts already in the early stage of the deployment phae). Also, when Livecycle does run out of heap space (which happened to us on some windows machines), you get a clear message java.lang.OutOfMemory : Out of heap space, which does not occur in our case.
So to clariy, the java heap space is here not the problem, the bug is the same as in sun's bug database (see links for details) and has to do with the mmap system call under linux. -
I installed Oracle database 10g on SuSE Linux Enterprise Server 8 edition.
I installed Oracle database 10g on SuSE Linux Enterprise Server 8 edition.
But this massage pop up when I used my browser first time before start database.
Actually when I clicks on yes to start database.
The web browser you are using is not optimized for this release of Oracle enterprise manager. It is recommended that you use one of the following:
* Microsoft Internet Explorer version 5.5, 6.0 or higher
* Netscape Navigator version 7 and higher
*Mozilla version 1.3.1 and higher
Dose any one know hoe to upgrade mozilla or install internet explorer 5.5, 6.0 or higher or SLES 8.
Regards,
DYou can download package for your distribution (for example) from http://www.mozilla.org or directly from SuSE ftp server ftp://ftp.suse.com/pub/suse/i386/9.1/suse/i586
IE for linux does not exist. -
Can't Install Solution Manager on Suse Linux Enterprise Server 10 - JAVA
Hello everyone!
I've been trying to complete the pre-requisites in order to install Solution Manager SR2 on Suse Linux Enterprise Server 10 x64 - SP1.
There's only one last condition that I haven't met, and it's the Java Runtime Environment version...
I checked the recommended note 867110 and it says that i need to have installed the J2SDK 1.4.2_08.
SLES10 includes the 1.4.2_13, so I had to uninstall it, and download the right version from Sun Microsystem's official webpage.
When I installed the version 1.4.2_08, i'm not able to run SAPINST because there's no Java Runtime Environment running on the server.
I started to investigate and I found in some forums [NOT EXPLICITLY] that there's no port for J2SDK 1.4.2_08 on x64 linux systems.
I can't believe this is true because SLES10 is recommended by SAP to install Solution Manager, so I hope somebody can help me on this.
My specific question is: Does anybody know if is true that J2SDK 1.4.2_08 is NOT COMPATIBLE with x64 Linux?
In case of being true, is there any way to be able to run SAPINST ? because if I enable the version SLES brings built in, i'm able to run the SAPINST but it detects that i'm not running version 1.4.2_08 and doesn't allow me to continue installation.
I hope somebody can help me soon...
Regards!> SAPINST_JRE_HOME=/opt/IBMJava2-s390-142/jre/bin:$PATH
>
> JAVA_HOME=/opt/IBMJava2-s390-142/jre/bin:$PATH
You downloaded the wrong version - the one you have is for Z-Linux(Linux running on the mainframe - not for x64).
You need to download the x86_64 (or AMD64) version.
Install the correct one and try on a new console:
export JAVA_HOME=/opt/IBMJava2-amd64-142
export PATH=$JAVA_HOME/bin:$PATH
Then execute
java -fullversion
and it should show the correct version.
Markus -
Install Oracle 10g on Suse Linux Enterprise Server 10
Will 10g install on Suse Linux Enterprise Server 10? If so, what setting do I need to change to get it to install?
Yes, it will install. Oracle supports it.Apparently they forgot to tell support. Certify still holds at SLES 9.
http://www.oracle.com/technology/support/metalink/index.html
It's possible to make it work. However, I usually watch http://www.novell.com/products/server/oracle/matrix.html for info. -
UBE: Retrieve of UBE file failed. The file may not exist on Enterprise Serv
Hi,
I'm getting the following message in my pdf file , after running the batch R3465 :
UBE: Retrieve of UBE file failed. The file may not exist on Enterprise Server.
What does that mean ? Can anyone help ?
Thanks,
thiensu2810Thank you for your good suggestion. Here is what the new home folder permissions looks like:
Last login: Fri Dec 22 14:45:24 on ttyp1
Welcome to Darwin!
Louise-Heifetzs-Computer:~ joy$
Louise-Heifetzs-Computer:~ joy$ id
uid=503(joy) gid=503(joy) groups=503(joy), 81(appserveradm), 79(appserverusr), 80(admin)
Louise-Heifetzs-Computer:~ joy$ ls -ln
total 0
drwx------ 3 503 503 102 Dec 16 18:39 Desktop
drwx------ 3 503 503 102 Dec 16 18:39 Documents
drwx------ 22 503 503 748 Dec 16 18:45 Library
drwx------ 3 503 503 102 Dec 16 18:39 Movies
drwx------ 3 503 503 102 Dec 16 18:39 Music
drwx------ 4 503 503 136 Dec 16 18:39 Pictures
drwxr-xr-x 4 503 503 136 Dec 16 18:39 Public
drwxr-xr-x 7 503 503 238 Dec 16 18:52 Sites
Louise-Heifetzs-Computer:~ joy$ ls -ln /Users
I see the differences between the two, but am not sure how to proceed. I feel in over my head and would be grateful for guidance. Many thanks. -
ALV issue: when save list using Local File command will get run time error!
help!!!!
report list using ALV method when to save this list using Local File.
i will get GETWA_NOT_ASSIGNED run time error information.
how resolve it?
source code :
REPORT ZIFT0103.
TABLES : MARA,MARC,CDHDR,CDPOS,MAKT.
******DEVK909212****************
****利用工厂来区分不同的SERVER的FTP ADDRESS ,user ,PASSWORD
DATA: FTP_WERKS LIKE MARC-WERKS.
********定义一个RANGE用来抓取MARC的信息
RANGES:R_MATNR FOR MARA-MATNR OCCURS 0.
********定义一个INTERNAL TABLE 来抓取MARC 的信息
DATA:BEGIN OF IT_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,
WERKS LIKE MARC-WERKS,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
FLAG_UI TYPE C,
END OF IT_MARC.
*******定义存放北京的数据的变量
DATA : BEGIN OF FTP_BEIJING OCCURS 0 ,
MATNR(25) ,
MATNR1(25) ,
MAKTX(30) ,
END OF FTP_BEIJING .
******定义福清的数据变量
DATA : BEGIN OF FTP_FUQING OCCURS 0 ,
MATNR(25) ,
MATNR1(25) ,
MAKTX(30) ,
END OF FTP_FUQING .
*******DEVK909212*****************
DATA : BEGIN OF FTP_ITEMDOC1 OCCURS 0 ,
MATNR(25) ,
MAKTX(30) ,
END OF FTP_ITEMDOC1 .
DATA : BEGIN OF FTP_ITEMDOC OCCURS 0 ,
MATNR(25) ,
MATNR1(25) ,
MAKTX(30) ,
END OF FTP_ITEMDOC .
DATA: WA_ZMSGTA TYPE ZMSGTA ,
l_ersda like MARA-ERSDA .
***********DEVK909553********************
****用来决定执行FTP还是显示LIST**********
DATA:g_tcode_flag.
***********DEVK909553********************
Error message process ******************************
DEFINE EXPLAIN_MSG.
break soe_richard.
CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
EXPORTING
ID = &1 "SY-MSGID
NUMBER = &2 "SY-MSGNO
LANGUAGE = SY-LANGU
TEXTFORMAT = &3
LINKPATTERN =
MESSAGE_V1 = &4 "SY-MSGV1
MESSAGE_V2 = &5 "SY-MSGV2
MESSAGE_V3 = &6 "SY-MSGV3
MESSAGE_V4 = &7 "SY-MSGV4
IMPORTING
MESSAGE = &8 "WA_ZMSGTA-MSE1
RETURN =
TABLES
TEXT =
END-OF-DEFINITION.
DEFINE ERROR_MSG_UPDATA.
CALL FUNCTION 'ZINSERT_MSG' "IN UPDATE TASK
EXPORTING
XZMSGTA = &1 "WA_ZMSGTA
EXCEPTIONS
UPDATE_ERROR = 1
OTHERS = 2.
END-OF-DEFINITION.
IF SY-TCODE = 'ZIFT103' .
g_tcode_flag = 'L'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = '请耐心等候,系统正在抓数据'.
ENDIF.
l_ersda = sy-datum - 1 . "取前一天产生的物料号码。
DATA:BEGIN OF it_change OCCURS 0,
OBJECTID TYPE CDHDR-OBJECTID,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
TABKEY TYPE CDPOS-TABKEY,
END OF it_change.
DATA:BEGIN OF it_cDhdr OCCURS 0,
OBJECTID type CDHDR-OBJECTID,
CHANGENR TYPE CDHDR-CHANGENR,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
END OF it_cdhdr.
DATA:search_len TYPE I.
DATA:BEGIN of it_insert OCCURS 0,
MATNR TYPE MARA-MATNR,
WERKS TYPE MARC-WERKS,
END OF it_insert.
DATA:BEGIN OF it_MAKT OCCURS 0,
MATNR TYPE MAKT-MATNR,
MAKTX TYPE MAKT-MAKTX,
END OF it_makt.
DATA IT_MARA TYPE TABLE OF MARA WITH HEADER LINE.
DATA:BEGIN OF IT_OUT OCCURS 0,
MATNR TYPE MARA-MATNR,
WERKS TYPE MARC-WERKS,
MTART TYPE MARA-MTART,
MEINS TYPE MARA-MEINS,
MATKL TYPE MARA-MATKL,
MAKTX TYPE MAKT-MAKTX,
PSTAT TYPE MARA-PSTAT,
BRGEW TYPE MARA-BRGEW,
NTGEW TYPE MARA-NTGEW,
GEWEI TYPE MARA-GEWEI,
FERTH TYPE MARA-FERTH,
KZUMW TYPE MARA-KZUMW,
ERNAM TYPE MARA-ERNAM,
ERSDA TYPE MARA-ERSDA,
END OF IT_OUT.
*-- DECLARE DATA FOR ALV
TYPE-POOLS: slis.
DATA : g_variant LIKE disvariant,
g_save(1) TYPE c,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE, "
gt_events TYPE slis_t_event,
gt_list_top_of_page TYPE slis_t_listheader,
gs_print TYPE slis_print_alv,
gs_layout TYPE slis_layout_alv .
******只能抓出系统有做更改的数据***************
******而第一次INSERT MARA的数据抓不出来********
START-OF-SELECTION.
SELECT AOBJECTID AUSERNAME AUDATE BTABKEY
INTO TABLE it_change
FROM ( CDPOS AS B INNER JOIN CDHDR AS A ON
AOBJECTCLAS = BOBJECTCLAS AND
AOBJECTID = BOBJECTID AND
ACHANGENR = BCHANGENR )
WHERE A~OBJECTCLAS = 'MATERIAL'
AND A~UDATE = l_ersda
AND B~TABNAME = 'MARC'
AND B~CHNGIND = 'I'.
LOOP AT it_change.
search_len = STRLEN( it_change-TABKEY ).
search_len = search_len - 4.
IF search_len > 0.
IT_MARC-WERKS = it_change-TABKEY+search_len(4).
ENDIF.
IT_MARC-MATNR = it_change-objectid+0(18).
IT_MARC-USERNAME = it_change-username.
IT_MARC-UDATE = It_change-udate.
IT_MARC-FLAG_UI = 'U'.
APPEND IT_MARC.
CLEAR IT_MARC.
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = IT_MARC-MATNR.
APPEND R_MATNR.
ENDLOOP.
****CDPOS is Cluster TABLE 所以没有办法用INNER JOIN******
SELECT OBJECTID CHANGENR USERNAME UDATE
INTO TABLE it_cdhdr
FROM CDHDR
WHERE OBJECTCLAS = 'MATERIAL'
AND UDATE = l_ersda.
AND TCODE = 'MM02'.
LOOP AT IT_cdhdr.
SELECT * FROM CDPOS
WHERE OBJECTCLAS = 'MATERIAL'
AND OBJECTID = IT_CDHDR-OBJECTID
AND CHANGENR = IT_CDHDR-CHANGENR
AND TABNAME = 'MARC'
AND CHNGIND = 'I'.
search_len = STRLEN( CDPOS-TABKEY ).
search_len = search_len - 4.
IF search_len > 0.
IT_MARC-WERKS = CDPOS-TABKEY+search_len(4).
ENDIF.
IT_MARC-MATNR = IT_cdhdr-objectid+0(18).
IT_MARC-USERNAME = IT_cdhdr-username.
IT_MARC-UDATE = IT_cdhdr-udate.
IT_MARC-FLAG_UI = 'U'.
APPEND IT_MARC.
CLEAR IT_MARC.
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = IT_MARC-MATNR.
APPEND R_MATNR.
CLEAR IT_MARC.
ENDSELECT.
ENDLOOP.
IF g_tcode_flag = 'L'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 20
TEXT = '处理好当天CHANGE的数据'.
ENDIF.
*******抓当天做了INSERT的数据*************
*******不需要***********************
SELECT BMATNR BWERKS INTO TABLE IT_INSERT
FROM MARC AS B JOIN MARA AS A
ON AMATNR = BMATNR
WHERE A~ERSDA = l_ersda.
LOOP AT IT_INSERT.
IT_MARC-MATNR = IT_INSERT-MATNR.
IT_MARC-WERKS = IT_INSERT-WERKS.
IT_MARC-FLAG_UI = 'I'.
APPEND IT_MARC.
CLEAR IT_MARC.
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = IT_MARC-MATNR.
APPEND R_MATNR.
ENDLOOP.
IF g_tcode_flag = 'L'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 40
TEXT = '处理好当天INSERT的数据'.
ENDIF.
IF g_tcode_flag = 'L'.
PERFORM get_MAKTX.
PERFORM get_mara.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 100
TEXT = '处理好数据,并开始显示数据'.
PERFORM do_data.
PERFORM display_alv.
ELSE.
PERFORM get_MAKTX.
PERFORM do_ftp.
ENDIF.
*& Form get_marktx
text
FORM get_maktx.
SELECT MATNR MAKTX INTO TABLE IT_MAKT FROM MAKT
WHERE MATNR IN R_MATNR AND SPRAS = '1'.
ENDFORM. "get_marktx
*& Form get_mara
text
FORM get_mara.
SELECT * INTO TABLE it_mara FROM MARA
WHERE MATNR IN R_MATNR.
ENDFORM. "get_mara
*& Form do_data
text
FORM do_data.
SORT IT_MARC BY MATNR WERKS.
DELETE ADJACENT DUPLICATES FROM IT_MARC COMPARING MATNR WERKS.
LOOP AT IT_MARC.
CLEAR IT_MAKT.
CLEAR IT_MARA.
READ TABLE IT_MAKT WITH KEY MATNR = IT_MARC-MATNR.
READ TABLE IT_MARA WITH KEY MATNR = IT_MARC-MATNR.
MOVE-CORRESPONDING IT_MARA TO IT_OUT.
IT_OUT-MAKTX = IT_MAKT-MAKTX.
IT_OUT-WERKS = IT_MARC-WERKS.
IF IT_MARC-FLAG_UI = 'U'.
IT_OUT-ERNAM = IT_MARC-USERNAME.
ENDIF.
APPEND IT_OUT.
CLEAR IT_OUT.
ENDLOOP.
ENDFORM. "do_data
*SELECT AMATNR BMAKTX INTO CORRESPONDING
*FIELDS OF FTP_ITEMDOC1 FROM MARA AS A JOIN MAKT AS B
*ON AMATNR = BMATNR WHERE A~ERSDA = l_ersda
*AND B~SPRAS = '1' . "代表为中文说明。
APPEND FTP_ITEMDOC1.
*******DEVK909212****************
*******添加RANGE*****************
CLEAR R_MATNR.
R_MATNR-SIGN = 'I'.
R_MATNR-OPTION = 'EQ'.
R_MATNR-LOW = FTP_ITEMDOC1-MATNR.
APPEND R_MATNR.
CLEAR FTP_ITEMDOC1.
*******DEVK909212****************
*ENDSELECT.
*******DEVK909212****************
****get WERKS information from MARC*******
*SELECT MATNR WERKS INTO TABLE IT_MARC
*FROM MARC
*WHERE MATNR IN R_MATNR.
*******DEVK909212****************
******DEVK909212****************
**MARK**************************
*LOOP AT FTP_ITEMDOC1 .
MOVE : FTP_ITEMDOC1-MATNR TO FTP_ITEMDOC-MATNR,
FTP_ITEMDOC1-MATNR TO FTP_ITEMDOC-MATNR1,
FTP_ITEMDOC1-MAKTX TO FTP_ITEMDOC-MAKTX.
APPEND FTP_ITEMDOC.
CLEAR FTP_ITEMDOC.
*ENDLOOP.
******DEVK909212****************
******DEVK909212***********************************
**根据IT_MARC中信息,往北京和福清的TABLE写数据*****
FORM do_ftp.
LOOP AT IT_MARC.
***福清的
IF IT_MARC-WERKS = '1010' OR IT_MARC-WERKS = '1020'
OR IT_MARC-WERKS = '1023' .
READ TABLE FTP_ITEMDOC1 WITH KEY MATNR = IT_MARC-MATNR.
MOVE : FTP_ITEMDOC1-MATNR TO FTP_FUQING-MATNR,
FTP_ITEMDOC1-MATNR TO FTP_FUQING-MATNR1,
FTP_ITEMDOC1-MAKTX TO FTP_FUQING-MAKTX.
CLEAR IT_MAKT.
READ TABLE IT_MAKT WITH KEY = IT_MARC-MATNR.
MOVE : IT_MARC-MATNR TO FTP_FUQING-MATNR,
IT_MARC-MATNR TO FTP_FUQING-MATNR1,
IT_MAKT-MAKTX TO FTP_FUQING-MAKTX.
APPEND FTP_FUQING.
CLEAR FTP_FUQING.
ENDIF.
***北京的
IF IT_MARC-WERKS = '1041' OR IT_MARC-WERKS = '1042'.
READ TABLE FTP_ITEMDOC1 WITH KEY MATNR = IT_MARC-MATNR.
MOVE : FTP_ITEMDOC1-MATNR TO FTP_BEIJING-MATNR,
FTP_ITEMDOC1-MATNR TO FTP_BEIJING-MATNR1,
FTP_ITEMDOC1-MAKTX TO FTP_BEIJING-MAKTX.
CLEAR IT_MAKT.
READ TABLE IT_MAKT WITH KEY = IT_MARC-MATNR.
MOVE : IT_MARC-MATNR TO FTP_BEIJING-MATNR,
IT_MARC-MATNR TO FTP_BEIJING-MATNR1,
IT_MAKT-MAKTX TO FTP_BEIJING-MAKTX.
APPEND FTP_BEIJING.
CLEAR FTP_BEIJING.
ENDIF.
ENDLOOP.
****清楚重复的数据**********
SORT FTP_FUQING.
DELETE ADJACENT DUPLICATES FROM FTP_FUQING.
SORT FTP_BEIJING.
DELETE ADJACENT DUPLICATES FROM FTP_BEIJING.
***传送数据********
REFRESH FTP_ITEMDOC.
FTP_ITEMDOC[] = FTP_FUQING[].
FTP_WERKS = '1010'.
PERFORM ftp_work.
REFRESH FTP_ITEMDOC.
FTP_ITEMDOC[] = FTP_BEIJING[].
FTP_WERKS = '1041'.
PERFORM ftp_work.
******DEVK909212***********************************
ENDFORM. "do_ftp
*& Form ftp_work
把以前FTP的工作做一个FORM
*******DEVK909212**************************
FORM ftp_work.
*******DEVK909212**************************
CHECK FTP_ITEMDOC[] IS NOT INITIAL.
FTP function *****************************************************
DATA : HDL TYPE I,
L_SLEN TYPE I ,
ERROR,
KEY TYPE I VALUE 26101957,
DEST TYPE RFCDES-RFCDEST VALUE 'SAPFTPA'.
DATA: FTP_RESULT TYPE TABLE OF TEXT.
DATA: P_FILE TYPE RLGRAP-FILENAME.
DATA: L_USER(16) TYPE C VALUE 'SFIS',
L_PWD(16) TYPE C VALUE 'SFIS',
L_HOST(16) TYPE C VALUE '172.16.31.17'.
*******DEVK909212**************************
*****根据不同的工厂来抓FTP的信息
CALL FUNCTION 'Z_FTP_SFIS'
EXPORTING
BLART = 'S'
WERKS = FTP_WERKS
IMPORTING
HOST = L_HOST
USER1 = L_USER
PASS1 = L_PWD.
*******DEVK909212**************************
CONCATENATE l_ersda '.KP' INTO P_FILE.
SET EXTENDED CHECK OFF.
ERROR = 0.
CHECK HDL IS INITIAL.
Connect to server
L_SLEN = STRLEN( L_PWD ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = L_PWD
SOURCELEN = L_SLEN
KEY = KEY
IMPORTING
DESTINATION = L_PWD.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
TEXT = 'Connect to FTP Server'.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
USER = L_USER
PASSWORD = L_PWD
HOST = L_HOST
RFC_DESTINATION = DEST
IMPORTING
HANDLE = HDL
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MOVE: 'B' TO WA_ZMSGTA-BLART,
l_ersda TO WA_ZMSGTA-REFNUMBER,
SY-MSGTY TO WA_ZMSGTA-MSGTY,
'MARA' TO WA_ZMSGTA-TBMA_VAL.
EXPLAIN_MSG SY-MSGID SY-MSGNO ' ' SY-MSGV1 SY-MSGV2 SY-MSGV3
SY-MSGV4 WA_ZMSGTA-MSE1.
ERROR_MSG_UPDATA WA_ZMSGTA.
EXIT.
ENDIF.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = HDL
COMMAND = 'ascii'
TABLES
DATA = FTP_RESULT
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3.
IF SY-SUBRC <> 0.
EXPLAIN_MSG SY-MSGID SY-MSGNO ' ' SY-MSGV1 SY-MSGV2 SY-MSGV3
SY-MSGV4 WA_ZMSGTA-MSE1.
MOVE: 'B' TO WA_ZMSGTA-BLART,
l_ersda TO WA_ZMSGTA-REFNUMBER,
SY-MSGTY TO WA_ZMSGTA-MSGTY,
'MARA' TO WA_ZMSGTA-TBMA_VAL.
ERROR_MSG_UPDATA WA_ZMSGTA.
EXIT.
ENDIF.
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
HANDLE = HDL
FNAME = P_FILE
CHARACTER_MODE = 'X'
TABLES
TEXT = FTP_ITEMDOC
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
EXPLAIN_MSG SY-MSGID SY-MSGNO ' ' SY-MSGV1 SY-MSGV2 SY-MSGV3
SY-MSGV4 WA_ZMSGTA-MSE1.
MOVE: 'B' TO WA_ZMSGTA-BLART,
l_ersda TO WA_ZMSGTA-REFNUMBER,
SY-MSGTY TO WA_ZMSGTA-MSGTY,
'MARA' TO WA_ZMSGTA-TBMA_VAL.
ERROR_MSG_UPDATA WA_ZMSGTA.
EXIT.
ENDIF.
*******DEVK909212**************************
*******CLOSE FTP******************
CHECK NOT HDL IS INITIAL.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = HDL.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
EXPORTING
DESTINATION = DEST
EXCEPTIONS
OTHERS = 1.
CLEAR HDL.
ENDFORM. "ftp_work
*******DEVK909212**************************
FORM DISPLAY_ALV .
*-- PREPARE ALV DATA
PERFORM EVENTTAB_BUILD USING GT_EVENTS[].
PERFORM COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
*-- LAYOUT SETTING
PERFORM PREPARE_ALV_FIELD USING GT_FIELDCAT[].
*-- ALV DISPLAY
PERFORM CALL_REUSE_ALV_GRID_DISPLAY.
ENDFORM. " display_alv
*& Form eventtab_build
text
-->P_GT_EVENTS[] text
FORM EVENTTAB_BUILD USING PT_EVENTS TYPE SLIS_T_EVENT.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = PT_EVENTS.
READ TABLE PT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
LS_EVENT-FORM = 'TOP_OF_PAGE'.
MODIFY PT_EVENTS FROM LS_EVENT INDEX SY-TABIX.
ENDIF.
ENDFORM. " eventtab_build
*& Form comment_build
text
-->P_GT_LIST_TOP_OF_PAGE[] text
FORM COMMENT_BUILD USING PT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: LS_LINE TYPE SLIS_LISTHEADER,
L_DATE(30),
l_v_BWKEY like T001W-BWKEY, "Valuation area
l_v_BUKRS like T001K-BUKRS. "Firm/Company
Listenerschrift: Typ H
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-KEY: not used for this type
select single BWKEY
into l_v_BWKEY
from t001w
where WERKS IN s_WERKS.
select single BUKRS
into l_v_BUKRS
from t001k
where BWKEY = l_v_BWKEY.
SELECT SINGLE butxt INTO LS_LINE-INFO
FROM t001
WHERE bukrs = l_v_BUKRS.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
Kopfinfo: Typ S
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '报表名称:'.
LS_LINE-INFO = SY-TITLE.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '打印日期:'.
WRITE SY-DATUM TO LS_LINE-INFO.
ls_line-info = sy-datum.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '打印時間:'.
WRITE SY-UZEIT TO LS_LINE-INFO.
ls_line-info = sy-uzeit.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = '使用者:'.
LS_LINE-INFO = SY-UNAME.
APPEND LS_LINE TO PT_TOP_OF_PAGE.
ENDFORM. " comment_build
*& Form prepare_alv_field
text
-->P_GT_FIELDCAT[] text
FORM PREPARE_ALV_FIELD USING P_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: LS_LINE TYPE SLIS_FIELDCAT_ALV.
*-- DEFINE MARCO
DEFINE APPEND_ALV_FIELD.
CLEAR LS_LINE.
LS_LINE-FIELDNAME = &1.
LS_LINE-TABNAME = &2.
LS_LINE-REPTEXT_DDIC = &3.
LS_LINE-SELTEXT_L = &3.
LS_LINE-SELTEXT_M = &3.
LS_LINE-SELTEXT_S = &3.
LS_LINE-QFIELDNAME = &4.
LS_LINE-QTABNAME = &5.
LS_LINE-NO_OUT = &6.
LS_LINE-NO_ZERO = &7.
LS_LINE-OUTPUTLEN = &8.
APPEND LS_LINE TO P_FIELDCAT.
END-OF-DEFINITION.
APPEND_ALV_FIELD: 'MATNR' 'IT_OUT' '料号'
'O' 'X' ''.
APPEND_ALV_FIELD: 'WERKS' 'IT_OUT' '工厂'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MTART' 'IT_OUT' 'MTyp'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MEINS' 'IT_OUT' 'BUn'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MATKL' 'IT_OUT' '物料组\分群码'
'O' 'X' ''.
APPEND_ALV_FIELD: 'MATKX' 'IT_OUT' '物料描述'
'O' 'X' ''.
APPEND_ALV_FIELD: 'PSTAT' 'IT_OUT' '维护状态'
'O' 'X' ''.
APPEND_ALV_FIELD: 'BRGEW' 'IT_OUT' '毛重'
'O' 'X' ''.
APPEND_ALV_FIELD: 'NTGEW' 'IT_OUT' '净重'
'O' 'X' ''.
APPEND_ALV_FIELD: 'GEWEI' 'IT_OUT' 'WUn'
'O' 'X' ''.
APPEND_ALV_FIELD: 'FERTH' 'IT_OUT' '对外机种名'
'O' 'X' ''.
APPEND_ALV_FIELD: 'KZUMW' 'IT_OUT' '高关税标识'
'O' 'X' ''.
APPEND_ALV_FIELD: 'ERNAM' 'IT_OUT' '创建者'
'O' 'X' ''.
APPEND_ALV_FIELD: 'ERSDA' 'IT_OUT' '创建日期'
'O' 'X' ''.
ENDFORM. " prepare_alv_field
*& Form call_reuse_alv_grid_display
text
--> p1 text
<-- p2 text
FORM CALL_REUSE_ALV_GRID_DISPLAY .
gs_layout-f2code = 'DISPLAY'.
gs_print-no_print_listinfos = 'X'.
gs_layout-colwidth_optimize = 'X'. "列宽度自动根据内容优化
gs_layout-f2code = '&ETA'. "double check弹出详细信息
gs_layout-zebra = 'X'. "清单条纹显示
gs_layout-no_vline = ''. "是否显示列间隔线
gs_layout-box_fieldname = ''. "是否显示checkbox
gs_layout-confirmation_prompt = ''. "推出清单是否提示
gs_layout-detail_titlebar = '详细信息'."详细清单的标题
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
I_BACKGROUND_ID = 'ALV_BACKGROUND'
I_CALLBACK_PF_STATUS_SET = 'ALV_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'ALV_USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = GT_LIST_TOP_OF_PAGE[]
IT_FIELDCAT = GT_FIELDCAT[]
IT_EVENTS = GT_EVENTS[]
I_STRUCTURE_NAME = 'IT_OUT'
I_SAVE = 'A'
IS_LAYOUT = GS_LAYOUT
IS_PRINT = GS_PRINT
TABLES
T_OUTTAB = IT_OUT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " call_reuse_alv_grid_display
*& Form PREPARE_ALV_FIELD
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM. "TOP_OF_PAGEHi,
Please check your field catalog and refer field names once again.
Check spelling, or Check strucutre properly.
There are something wrong in your catalog definition
aRs. -
Can't import using Import Files...
Recent download of Aperture 3.1.1 from App Store. Can't get images into Aperture using File>Import>Files... (Command I or the Import arrow). Selecting Import generates file structure in the Browser pane, the "loading Assets" spins a bit, but no thumbnails appear in the Viewer pane. Thus, no images are presented for import selection. However, I can drag images into the Browser from the desktop or Finder window, but this is cumbersome I don't think that should be the only way to do it.
OKay, I have had the issue of images not being able to be directly imported into the Project/Album that Aperture says it will import them into, and it used to do this, but now doesn't, and it is very annoying and frustrating! Even after the images are imported into the general Photos section, they cannot be dragged and dropped into the Project/Album either, even though the tooltip that appears when I am doing so, as it is hovering over the Project/Album shows the correct number of images it will now have, opening up the Project/Album the image(s) aren't shown.
I tried the tip suggested here of dragging the Aperture folder from the Application Support folder to the desktop and reopening Aperture, but still does the same thing.
Where are you guys finding this in the Basic Troubleshooting? I have searched it, but not seeing any topic that documents this. And/or which .plst to delete?
Any help to get this back to how it was before, when be very appreciative, I mean it worked correctly before and images imported directly to the Project/Album without a hitch, just all of the sudden it stopped doing it, and encounter these issues.
Thank you again,
JPH -
How Use "Bin" files net_oepe111130_wls1032_linux32.bin in LINUX
hello DBA's
I've downloaded the Weblogic and Fusion Middleware but they are in format ".bin"
And this is suposse to setup in Lunux?
Any Ideas whet to do with this?
thxs
Bests
CarlosokKarol wrote:
hello DBA's
I've downloaded the Weblogic and Fusion Middleware but they are in format ".bin"
And this is suposse to setup in Lunux?
Any Ideas whet to do with this?Ensure the .bin file is executable and your Linux environment has access to the net. The bin will run a network-based install.
These .bin files are usually self-extracting, and a brief description of this is at http://www.cyberciti.biz/faq/howto-unix-command-run-execute-bin-files-in-linux/ (which can be found using http://lmgtfy.com/?q=linux+.bin+files)
There are forums that deal specifically in installing WebLogic Server, and these forums are available by going to the "Forum Home" link at the top of the page and scrolling down. Curious - why are you asking DBAs who deal primarily with Oracle Database Server and not middleware? -
Problem using the File Dialog Box in a Client/Server application
I am developping a client-server application using Labview 5.1 . The application on the server acquires data from some instruments and saves it on file, while the application on the clients displayes such acquired data. For doing this I call some routines on the server via the "Open Application vi" (remote connection). All goes well except when I open on the server the "File Dialog Box vi" : in this case the application on the clients is blocked (is blocked the execution of the called vi on the server). Only when
the File Dialog Box on the server is closed, the execution of the called vi on the server starts again.
I need to use the File Dialog Box on the server, but I don' t want to stop at the same time
the clients !!
I need help for resolving such problem.
Many thanks in advance !!!Hi!
waldemar.hersacher wrote:
"It seems that the VIs called by the clients are running in the user interface thread.
A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
2 linus:
I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
cle, which responsible for visualization will run continuosly at the same time...
Attachments:
no_block_with_file_open_dialog.zip 42 KB -
Importing PST file using Import-Mailbox Command Crashes Powershell
I am attempting to import a .pst file into a mailbox via the Import-Mailbox powershell command. The command starts and imports the deleted items and creates the folder structure in the Inbox then crashes powershell. I am running Outlook 2007 SP2 on a Windows 2003 Std SP2 server w/Exchange 2007 SP1 Update Rollup 8 management tools. I have tried everything i can think of. This happens on multiple machines with similar packages installed. No anti-virus software is installed. It happens on both pst files i am testing with and no errors are logged in the event logs either on the exchange mailbox server or the server i am using to do the import.
Have you tried to do this from the actual Exchange 2007 server? I assume you are trying to import the pst to an Exchagne 2007 email account to Exchange 2007 correct?
Have you tried to perform the import on a Windows XP machine using the 32bit EMC/EMS rather then using Windows 2003 server?
I honestly recall in the back of my head a problem with Exchange 2007 and Outlook CDOs or something like that. I could be wrong but I remember something from a year ago.....
Seriously though, try it from a Windows XP machine running the Exchange Managerment Tools and see what happens rather then a W2K3 Server.
SF - MCITP:EMA, MCTS
Yea I double check the link i posted as well I never tried from a 2003 server either, I've always done it from an XP machine, but again we know its works because you got it to work with a newly export PST, so I think its more to do with the PST file itself, hopefully you dont have a bunch of them, if so let the users re-import them =) -
Waveburner: Freezes at import file command.
I have opened a new Waveburner session. When I click import on the interface, either on the main interface or in the region list, or when I click import audio in the file menu, the program freezes, spinning beach ball and everything.
Anyone know what's up?You shoul try to do one by one (dataobjects and then reports and the eds and so on).
This link may help you with the rigth command to use: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bam_app_icommand.htm#BABFAAGA
I had the same problem and solved it exporting and importing eache on by time. -
Use XML files stored in directory of Application server as a input for XI ?
I have a scenario that there is a xml file stored in sap application server for example /inf/ERQ/XML/XXX.xml which i want to use it as an input for XI. I know that there is an adapter in XI for getting xml file stored in normal path but in my situation it's in application server of SAP so i don't know how to do this.
Any solution or example for this? Thank you in advance.
Best regardsHi,
We can read this file through FILE adapter with FTP protocol, before that i think need permission from basis for access. Configure source(according to xml format) and target structure according to your requirement. But one thing should remember in XI/PI sour/target XML formats should contain Message type name & namespace name else it can't work.
Find below link for more information.
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2) -
Import files from usb impossible?
I tried to import a .mov file from usb. by using the import file-command in FCPX. Impossible; the clip is empty with red warningsign. I must first via finder import into the map "film" ("movie") and from there import it (by using the importfile-command in FCPX) in the event and than it works.
For audio almost the same; first import in iTunes and from there into FCPX using the FCP-importcomand. I think this is wrong.
Any idea about the reason?Is it possible you unchecked Copy files to Final Cut Events folder-in your Import Preferences?
Because if that's unchecked, then FCP X will go looking for your USB stick to play that file back. And if it's no longer attached to your computer, it will appear as offline- which is what that warning is.
I have no trouble importing footage from USB into FCP X that I then eject- as long as it's copied over on Import. Remember- "Import" is just FCP X getting pointed to your media. If you don't check, Copy files, the media doesn't move from its original import location and when that location is no longer visible to FCP X- i.e. on a drive that gets ejected- it will appear offline which is probably what happened here.
Though personally I wouldn't suggest ingesting directly from a USB stick but rather copying the contents from the stick to your hard drive first and then pointing it to FCP X- for improved performance. -
Sony File Commander really doesn't save files on sd card - they vanished after restart
Like in the subject. I've Sony Xperia Z3 dual sim version - 16GB + 64GB Kingston SD card. I was recording very important meeting with my phone. But after a few hours the internal space was full and I moved all of the recordings to my sd card using Sony File Commander. The files where there. But I have to restart my phone and I was so surprised that after doing that all of my files on sd card that I've moved using SFC where gone. I've lost very important stuff.
I'm using Sony Audio Recorder and this program can save recordings only to internal storage. There is no option in settings to change that. Please help! Sony, help!
Going back to factory settings, uninstalling software updates and cleaning data of SFC didn't solve the problem. All versions of SFC have this problem.alexdon wrote:
I think this is something related to the microSD cards themselves. Have you tried others?
I'm using two Kingston 64 GB SD cards. The same issue is on my Sony Xperia Z3 Tablet Compact. When I remove my SD card and plug it directly through my SD/USB adapter to my computer I can easily cut and paste any files on it and there is no problem with them at all.
Maybe you are looking for
-
ITunes for Windows (64bit) Runs as 32bit!
I have Windows 8 Pro 64 bit, and when I install iTunes (labeled on the download site as 64 bit), it runs as a 32 bit program! I've tried both running the setup directly from download, and downloading the file then running setup. I have other 64 bit
-
Just installed elements 10. When I try to download pictures from camera card, elemnets 6 comes up to process. I did mconvert.
-
How can i pass the parameter for strored procedure from java
dear all, I am very new for stored procedure 1. I want to write the strored procedure for insert. 2. How can i pass the parameter for that procedure from java. if any material available in internet create procedure and call procedure from java , and
-
Hi there, I am looking at purchasing Creative Suite for my small business. I will need to install it on at least 3 computers. Can you suggest how I go about this? Thanks
-
Outlook for Mac - database problem
So I deleted some files from the User files on Mac to free up space on drive. When I tried to open Outlook from Office for Mac 2011 I now get this meesage... There is a problem with the Office database. To use the database, you must rebuild it using