Any issues pulling files from external partners using PI File adapter?
I would like to know if there are any issues with pulling files directly from external partners using PI File adapter.
We are estimating 60 communication channels to pull files from the external vendors (25 vendors). Polling for these communication channels will be done for every 5 minutes. We have a load of around 500 files per day with peak size as 50MB and average file size as 2MB. We are currently using PI 7.0 SP12.
Did any one face any problems with respect to performance or any other issues?
The volume as described would be handled with no issues.
Memory tuning and threads tuning may be required - see this guide:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7?quicklink=index&overridelayout=true
Similar Messages
-
Is Adobe Connect part of Adobe Creative Cloud? Are there any best practices ideas from people who use Connect and Creative Cloud?
I have an Adobe Connect account and I'm are also in the early stages of developing a webinar. I am looking for any tips and advice from anyone who uses both of these services.As the £27, was an introductory offer. Upon the completion of one year, the price will change to the normal creative cloud cost which is at £46.88. However if you have the previous versions of the creative suites like CS 3, 4, 5, 5.5 or the CS 6. You can avail the offer at £27.34 per month incl. VAT. However this Requires annual commitment; billed monthly.
-
Cant do a file get from external server using file sender adapter with ftp
Hi all,
Up until now our company has only used the file sender adapter with ftp protocol to get a file from our XI server for processing and input the file into an integration process
I have a requirement to do an ftp file get from an external server
From our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues and communications are fine
Unfortunately I cannot currently pull files from the external server using the XI file adapter with ftp protocol from the XI development server AWB017
FTP Connection Parameters: External server name using port 21, Data Connection is Passive, No security, I supply a userid and password
Processing Parameters: Processing Mode is Archive (I tried test but this did not work either)
No messages appear in the RWB
Is there something else that I need to set up in order for the external ftp get to work via the XI file adapter?
Regards,
MikeThanks for your responses.
I have found the error messages in the File Adapter Monitor
Scenario 1
When I prefix the source directory with a forward slash, eg <b>/Folder/Subfolder</b> the error message is as follows
<b>EST: Error: Error connecting to ftp server 'ip address': FTPEx: /Folder/Subfolder: The system cannot find the path specified</b>
Scenario 2
When I DO NOT prefix the source directory with a forward slash, eg <b>Folder/Subfolder</b> a different error message is returned
<b>Error: Retrieving file 'FILENAME.XML' failed unexpectedly: FTPEx: Folder/Subfolder: The system cannot find the path specified</b>
At least in this scenario the adapter has been able to identify the file on the external FTP site but cannot retrieve it
Questions
I thought that the backslash prefix for the source directory was mandatory but I am receiving an error in each scenario
I receive the same error message whether the Processing Mode is 'Archive' or 'Test'
The logs on the external ftp server seem to indicate that I am simply connecting, sending username and password then quiting straight away. I am not issuing any commands that they can see
I thought that being a Sender adapter it would inherently execute a Pull or Get command
To recap, from our XI development server I can ftp directly to the external server and view the required directory using the command window via a DOS prompt (FTP open ...). So all firewall issues, communications, userid and password are fine
Has anyone experienced these issues?
Please advise on next course of action?
Regards,
Mike -
Reg : Issue for Sending of external email using SO_OBJECT_SEND
There is one issue while sending external email using SO_OBJECT_SEND functional module.
1. The body of the mail is also included as attachment.
I want to avoid the same.
Please anyone can give the solution.hi check this example ,
Sending mail with attachment report in Background
Content Author: Fernando Faian
I have read the hint about "Sending mail with attachment report".
It's great, but how can I make this function work in background??
I had that needed last year too. See attachment a function group with two functions. The second one has that functionality to send email or fax (SAP office) with attachment objects in background job using SO_ATTACHMENT_INSERT function.
Pay attention because its working with output list from spool converted to pdf.
=================================================================================
z_send_email_fax_global
FUNCTION-POOL z_gfaian_mail_fax. "MESSAGE-ID ..
WORK TABLE AREAS
TABLES: tsp01.
INTERNAL TABLES
DATA: lt_rec_tab LIKE STANDARD TABLE OF soos1 WITH HEADER LINE,
lt_note_text LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE.
DATA: lt_objcont LIKE STANDARD TABLE OF soli WITH HEADER LINE,
lt_objhead LIKE STANDARD TABLE OF soli WITH HEADER LINE.
DATA: pdf_format LIKE STANDARD TABLE OF tline WITH HEADER LINE.
TYPES: BEGIN OF y_files,
file(60) TYPE c,
END OF y_files.
DATA: lt_files TYPE STANDARD TABLE OF y_files WITH HEADER LINE.
DATA: l_objcont LIKE soli OCCURS 0 WITH HEADER LINE.
DATA: l_objhead LIKE soli OCCURS 0 WITH HEADER LINE.
STRUCTURES
DATA: folder_id LIKE soodk,
object_id LIKE soodk,
link_folder_id LIKE soodk,
g_document LIKE sood4,
g_header_data LIKE sood2,
g_folmem_data LIKE sofm2,
g_header_data LIKE sood2,
g_receive_data LIKE soos6,
g_ref_document LIKE sood4,
g_new_parent LIKE soodk,
l_folder_id LIKE sofdk,
v_email(50).
DATA: hd_dat like sood1.
VARIABLES
DATA: client LIKE tst01-dclient,
name LIKE tst01-dname,
objtype LIKE rststype-type,
type LIKE rststype-type.
DATA: numbytes TYPE i,
arc_idx LIKE toa_dara,
pdfspoolid LIKE tsp01-rqident,
jobname LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount,
is_otf.
DATA: outbox_flag LIKE sonv-flag VALUE 'X',
store_flag LIKE sonv-flag,
delete_flag LIKE sonv-flag,
owner LIKE soud-usrnam,
on LIKE sonv-flag VALUE 'X',
sent_to_all LIKE sonv-flag,
g_authority LIKE sofa-usracc,
w_objdes LIKE sood4-objdes.
DATA: c_file LIKE rlgrap-filename,
n_spool(6) TYPE n.
DATA: cancel.
DATA: desired_type LIKE sood-objtp,
real_type LIKE sood-objtp,
attach_type LIKE sood-objtp,
otf LIKE sood-objtp VALUE 'OTF', " SAPscript Ausgabeformat
ali LIKE sood-objtp VALUE 'ALI'. " ABAP lists
CONSTANTS
CONSTANTS: ou_fol LIKE sofh-folrg VALUE 'O',
c_objtp LIKE g_document-objtp VALUE 'RAW',
c_file_ext LIKE g_document-file_ext VALUE 'TXT'.
=================================================================================
z_send_email_fax2
FUNCTION z_faian_mail_fax2.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(FAX_MAIL_NUMBER) TYPE SO_NAME
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" REFERENCE(OBJECT_TYPE) TYPE SO_ESCAPE
*" TABLES
*" LT_BODY_EMAIL STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
Fist part: Verify if the spool really exists
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc NE 0.
RAISE err_no_abap_spooljob. "doesn't exist
ELSE.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
objcont = lt_body_email
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
CLEAR lt_rec_tab.
lt_rec_tab-sel = 'X'.
lt_rec_tab-recesc = object_type. "This field for FAX/MAIL
lt_rec_tab-recnam = 'U-'.
lt_rec_tab-deliver = 'X'.
lt_rec_tab-not_deli = 'X'.
lt_rec_tab-read = 'X'.
lt_rec_tab-mailstatus = 'E'.
lt_rec_tab-adr_name = fax_mail_number.
lt_rec_tab-sortfield = fax_mail_number.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-sortclass = '5'.
APPEND lt_rec_tab.
lt_rec_tab-recextnam = fax_mail_number.
lt_rec_tab-recesc = object_type.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
lt_files-file = c_file.
APPEND lt_files.
begin of insertion by faianf01
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
end of insertion by faianf01
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
check_send_authority = 'X'
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDIF.
ENDFUNCTION.
=================================================================================
z_send_email_fax
FUNCTION ZCBFS_SEND_MAIL.
""Interface local:
*" IMPORTING
*" REFERENCE(SRC_SPOOLID) LIKE TSP01-RQIDENT
*" REFERENCE(HEADER_MAIL) TYPE SO_OBJ_DES
*" TABLES
*" LIST_FAX_MAIL_NUMBER STRUCTURE SOLI
*" EXCEPTIONS
*" ERR_NO_ABAP_SPOOLJOB
DATA: vg_achou(1) TYPE n.
Fist part: Verify if the spool really exists
vg_achou = 1.
DO 60 TIMES.
SELECT SINGLE * FROM tsp01 WHERE rqident = src_spoolid.
IF sy-subrc IS INITIAL.
CLEAR vg_achou.
EXIT.
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
ENDDO.
IF vg_achou = 1.
RAISE err_no_abap_spooljob. "doesn't exist
ENDIF.
client = tsp01-rqclient.
name = tsp01-rqo1name.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
authority = 'SP01'
client = client
name = name
part = 1
IMPORTING
type = type
objtype = objtype
EXCEPTIONS
fb_error = 1
fb_rsts_other = 2
no_object = 3
no_permission = 4
OTHERS = 5.
IF objtype(3) = 'OTF'.
desired_type = otf.
ELSE.
desired_type = ali.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = src_spoolid
desired_type = desired_type
IMPORTING
real_type = real_type
TABLES
buffer = l_objcont
EXCEPTIONS
no_such_job = 14
type_no_match = 94
job_contains_no_data = 54
no_permission = 21
can_not_access = 21
read_error = 54.
IF sy-subrc EQ 0.
attach_type = real_type.
ENDIF.
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
owner = sy-uname
region = ou_fol
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 5.
fill out informations about the header of the email
CLEAR: g_document.
g_document-foltp = l_folder_id-foltp.
g_document-folyr = l_folder_id-folyr.
g_document-folno = l_folder_id-folno.
g_document-objtp = c_objtp.
g_document-objdes = header_mail.
g_document-file_ext = c_file_ext.
g_header_data-objdes = header_mail.
CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
EXPORTING
method = 'SAVE'
office_user = sy-uname
IMPORTING
authority = g_authority
TABLES
attachments = lt_attachments
CHANGING
document = g_document
header_data = g_header_data
EXCEPTIONS
OTHERS = 1.
folder_id-objtp = l_folder_id-foltp.
folder_id-objyr = l_folder_id-folyr.
folder_id-objno = l_folder_id-folno.
object_id-objtp = c_objtp.
object_id-objyr = g_document-objyr.
object_id-objno = g_document-objno.
link_folder_id-objtp = l_folder_id-foltp.
link_folder_id-objyr = l_folder_id-folyr.
link_folder_id-objno = l_folder_id-folno.
REFRESH lt_rec_tab.
LOOP AT LIST_FAX_MAIL_NUMBER.
lt_rec_tab-recextnam = LIST_FAX_MAIL_NUMBER-LINE.
lt_rec_tab-recesc = 'U'.
lt_rec_tab-sndart = 'INT'.
lt_rec_tab-sndpri = 1.
APPEND lt_rec_tab.
ENDLOOP.
lt_files-file = c_file.
APPEND lt_files.
hd_dat-objdes = header_mail.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
EXPORTING
object_id = object_id
attach_type = attach_type
object_hd_change = hd_dat
owner = sy-uname
TABLES
objcont = l_objcont
objhead = l_objhead
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
object_type_not_exist = 17
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
x_error = 1000.
IF sy-subrc > 0.
ENDIF.
send email from SAPOFFICE
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
folder_id = folder_id
object_id = object_id
outbox_flag = outbox_flag
link_folder_id = link_folder_id
owner = sy-uname
TABLES
receivers = lt_rec_tab
note_text = lt_note_text
EXCEPTIONS
active_user_not_exist = 35
communication_failure = 71
component_not_available = 1
folder_no_authorization = 5
folder_not_exist = 6
forwarder_not_exist = 8
object_no_authorization = 13
object_not_exist = 14
object_not_sent = 15
operation_no_authorization = 21
owner_not_exist = 22
parameter_error = 23
substitute_not_active = 31
substitute_not_defined = 32
system_failure = 72
too_much_receivers = 73
user_not_exist = 35.
ENDFUNCTION.
=================================================================================
regards,
venkat. -
User is not able to Login from external supplier, using the WSS (ICH)
Hi Gurus,
The user is not able to login to the server externally from url.
dev_icm is giving below warnings:
[Thr 11052] IcmWatchDogThread: watchdog started
[Thr 11309] ** WARNING => HttpPlugInInit: Parameter icm/HTTPS/trust_client_with_issuer or icm/HTTPS/trust_client_with_subject not set => do
not trust any intermediary*
X.509 cert data will be removed from header [http_plg_mt. 720]
[Thr 11309] =================================================
[Thr 11309] = SSL Initialization on IBM RS/6000 with AIX
[Thr 11309] = (700_REL,May 3 2008,mt,ascii-uc,SAP_UC/size_t/void* = 16/64/64)
[Thr 11309] profile param "ssl/ssl_lib" = "/usr/sap/SCA/SYS/exe/run/libsapcrypto.o"
resulting Filename = "/usr/sap/SCA/SYS/exe/run/libsapcrypto.o"
[Thr 11309] = found SAPCRYPTOLIB 5.5.5C pl16 (Jun 10 2004) MT-safe
[Thr 11309] = current UserID: "scaadm", env-var USER="scaadm"
[Thr 11309] = using SECUDIR=/usr/sap/SCA/DVEBMGS41/sec
[Thr 11309] = secudessl_Create_SSL_CTX(): PSE "/usr/sap/SCA/DVEBMGS41/sec/SAPSSLA.pse" not found,
[Thr 11309] = using PSE "/usr/sap/SCA/DVEBMGS41/sec/SAPSSLC.pse" as fallback
[Thr 11309] = Success -- SapCryptoLib SSL ready!
[Thr 11309] =================================================
HTTPS (SSL) settings are as below, i think which means that no ssl certifiacts are required.
icm/HTTPS/verify_client = 0
Kindly help urgently.
regards,
MJthis is SCM system.
SSL CA's are set.
what should be value of the parameters?
icm/HTTPS/trust_ client_with_ issuer or
icm/HTTPS/trust_ client_with_ subject
http and https ssl conections are correctly set.
I think the SAPSSLA. pse" not found, is not the problem as the parameter icm/HTTPS/verify_ client = 0 is set, it means that no ssl certifiacts are required.
problem is coming when the system is being accessed from externally using other secure domain name.
the system is being accessed ok from web urs which is internal, but not external.
for example in strust tcode the domain name is *abc.com, which is running fine when accessing the system internally.
but when the user is accessing this sytem from other secure login from *xyz.com, which is also the same companys domain, then the user not able to login, its showing errir. -
Icloud mail still pulling emails from external account
Hello,
I am a former dotMac and MobileMe user. I had set up the mail interface to pull emails from an external account. After migrating to iCloud very early, emails are still being pulled, although this *should not happen*, because iCloud does not offer this service. The problem is: how do I disable this behaviour? There is no preference pane where I can set this. It's quite astounding that my mail is basically being provided by uncontrolled services running on Apple servers, even if they should not be running.
Any suggestions?
RegardsYour complaint is different from the OP's - he wants to stop it and can't: you want it to work. I'm afraid it won't - the facility is not available in iCloud, though as we've seen a few people are finding it hanging over.
You can still do one of two things perfectly easily: set up your other accounts separately in the Mail application; or set the other accounts to forward to your @me.address - most ISPs can provide this facility and it was always preferable anyway to collecting the email. It will arrive immediately, for one thing, rather than up to 15 minutes later. -
Production issue - Sender File adapter not picking up the files from folder
Hi Guys,
Ever since the upgrade from XI 3.0 to PI 7.1, we have come acrossinstances of weird error.
Thsi time again - now the 3rd time - tandom basis, in our production PI server, we have teh file slying in the source directory folder in the server.
I can see the files lying there in AL11.
However, it looks like that the file polling has just stopped and the channel is going blank in channel monitoring.
I have checked in SXMB_MONI and there are no messages since the morning.
I have tried craeting a replica of the current channel but it is not working.
This is teh production server and thsi has alraedy created production issues.
I ahve checked in the SDN forum but am not able to find the details.
Plaese help me.
I am anyway going to raise the issue with SAP now.
Regards,
Archana
<REMOVED BY MODERATOR>
Edited by: Prateek Raj Srivastava on Jun 8, 2010 4:50 PMHi Prateek,
I have trying all sorts since the morning and then just checked teh file permissions.
The file permissions were incorrect as compared ot the other files that were processed successfully today.
Somehow the permissions were changed on the server and the interface channel was not able to poll the files.
I got teh permissions changed back to 666 and all the files were pikced up in a minute.
I got the folder checked and it seems like that the permissions were changed somewhere very early in the morning and we are trying to find out how it happened and who did that.
However, another question i had - this sender file adapter was polling the source directory and deleting the files from there.
I would have expected that if the channel had issues with the file permission because of which it was not able to access the file, it would have thrown an error something like the file permissions error.
But there was not a single error in the channel monitoring.
How can we configure it in a beter way so that we at least soem kind of error indication?
Please advice.
Regards,
Archana -
How do l play music from external drive using itune.
Does anyone know how to use itune to play music from external drive without upload sounds to the itune libray.
You don't. Use the QuickTime Player instead.
(61573) -
Regarding issue sender file adapter in clustered environment(PI 7.0)
Hi Experts,
we are using sender file adapter in clustered environment(there are 6 J2EE cluster nodes in XI system) for an interface.the file sender communication channel for this interface is scheduled to run twice every day. recently the channel stopped polling (picking the files from the source directory) and i dont see any error.
when i open Communication Channel monitoring in RWB and select the file sender communication channel and run it manually, none of the cluster nodes are polling for the file.
i have tried editing the communication channel in Integration Directory and activating it. but it does not pick the file.
Can you let me know how the issue can be resolved.
Thanks
-Kaushik
Edited by: Kausik M on Dec 18, 2008 4:13 AMKausik,
A computer cluster is a group of linked computers, working together closely so that in many respects they form a single computer. The components of a cluster are commonly, but not always, connected to each other through fast local area networks. Clusters are usually deployed to improve performance and/or availability over that provided by a single computer, while typically being much more cost-effective than single computers of comparable speed or availability.
clearly your cluster nodes are out of sync...!!!!
It is possible that your ftp server went down for a while . And in the profile of FTP machine the entry of XI server is not made permanent .
1. Try to ping the FTP site from XI server.
BTW are u getting any error msg at RWB ?
Regards, -
Duplicate File Handling Issues - Sender File Adapter - SAP PO 7.31 - Single Stack
Hi All,
We have a requirement to avoid processing of duplicate files. Our system is PI 7.31 Enh. Pack 1 SP 23. I tried using the 'Duplicate File Handling' feature in Sender File Adapter but things are not working out as expected. I processed same file again and again and PO is creating successful messages everytime rather than generating alerts/warnings or deactivating the channel.
I went through the link Michal's PI tips: Duplicate handling in file adapter - 7.31 . I have maintained similar setting but unable to get the functionality achieved. Is there anything I am missing or any setting that is required apart from the Duplicate file handling check box and a threshold count??
Any help will be highly appreciated.
Thanks,
AbhishekHello Sarvjeet,
I'd to write a UDF in message mapping to identify duplicate files and throw an exception. In my case, I had to compare with the file load directory (source directory) with the archive directory to identify whether the new file is a duplicate or not. I'm not sure if this is the same case with you. See if below helps: (I used parameterized mapping to input the file locations in integration directory rather than hard-coding it in the mapping)
AbstractTrace trace;
trace = container.getTrace();
double archiveFileSize = 0;
double newFileSizeDouble = Double.parseDouble(newFileSize);
String archiveFile = "";
String archiveFileTrimmed = "";
int var2 = 0;
File directory = new File(directoryName);
File[] fList = directory.listFiles();
Arrays.sort(fList, Collections.reverseOrder());
// Traversing through all the files
for (File file : fList){
// If the directory element is a file
if (file.isFile()){
trace.addInfo("Filename: " + file.getName()+ ":: Archive File Time: "+ Long.toString(file.lastModified()));
archiveFile = file.getName();
archiveFileTrimmed = archiveFile.substring(20);
archiveFileSize = file.length();
if (archiveFileTrimmed.equals(newFile) && archiveFileSize == newFileSizeDouble ) {
var2 = var2 + 1;
trace.addInfo("Duplicate File Found."+newFile);
if (var2 == 2) {
break;
else {
continue;
if (var2 == 2) {
var2 = 0;
throw new StreamTransformationException("Duplicate File Found. Processing for the current file is stopped. File: "+newFile+", File Size: "+newFileSize);
return Integer.toString(var2);
Regards,
Abhishek -
Connection with external System using AS2/SFTP adapter.
Hi All,
I need to use SFTP/AS2 to connect to an external Server which is not in our landscape.
Can anybody could help whether i need to create a party on the Sender side as sender system is an external Server.
I have gone through many docs but i am not clear when to use party and when not..?
Regards,
RahulHi Rahul
Whether to use a party or not is both an architectural question as well as a development question.
Architecturally, if an external server is not in your landscape and belongs to a different company/entity, your scenario would be a B2B process. You can refer to the below link for more details about B2B, but I've included a short snippet below too.
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c7a475da5e31ebe10000000a42189b/content.htm
Using a communication party, you address a company that is involved in a B2B process.
The (technical) name of the communication party (for example Bosch) is the identifier for the company within an Integration Directory. To be able to identify the company during any external communication using a globally unique ID, you specify alternative identifiers for a communication party. For external communication, the name of the communication party that is known internally is mapped to the ID. A particular identifier is specified in the communication channel (see below).
In terms of development, not all adapters (FTP, SFTP, SOAP, etc) require the use of a party object when you develop a B2B integration scenario. There are companies which have implemented all B2B scenarios using those adapters in an A2A style (using just Business Systems.)
As Harish has mentioned, if you use the Seeburger AS2 adapter, you will need the party object (AS2ID is configured there), but if you use the SFTP adapter, it is optional.
For your case, I'd recommend going with Party to clear distinguish that it is a B2B process.
Rgds
Eng Swee -
Read date from an email using sender mail adapter.
Hi All,
I am working on a scenario, which reads emails from mail box using POP3 protocol and Mail adapter. How to get the mail attributes like received date? I have to take some decisions based on that field.
Also can we tell to move that mail to different folder in that mail box after successfully read? it is like archiving folder in that mail box.
Regards,
HariHi Hari,
You use IMAP4 (Internet Message Access Protocol) to retrieve e-mails from a folder of an e-mail server.
You use POP3 (Post Office Protocol Version 3) to retrieve e-mails from an e-mail server.
AFAIK, you have to use IMAP4 protocol for moving email to another folder are reading email successfully. And i don't think POP3 will allow this functionality.
Regarding email date , If you maintain Message protocol as XIPAYLOAD you will receive all header details(Subject , TO ,FROM ,CC,DATE ,etc ) in your payload.
Thanks
Hari. -
Hi!
I am working on File(source.csv)->Xi->File(Target.csv) Scenario.
In my Source File i have 4 fields which are mapped to the target file which contains 2 additional fields with constant values mapped. So, I should get 6 fields at receiver end.
<b>Source structure</b>
CharacterName
Lowerlimit
Upperlimit
Targetvalue
<b> Target Structure</b>
CharacterName
Lowerlimit
Upperlimit
Targetvalue
Plant (constant value -1000)
Status (Constant value - Released)
But, While using file adapter it showing only 4 fields of my Source file at the receiver end , not the ones which have been mapped with constant values(It is with out Using FCC) .
When i use FCC under File Adapter, XI is not picking the file. These are the parameters I am defining at Sender Adapter:
Document Name : file_rece( Not sure whether it should be similar as of my Msg Type name)
RecordSet Name :Record (not sure abt naming conventions)
Recordset Structure : main,1
In parameters:
main.fieldNames:CharacterName,Lowerlimit,Upperlimit ,Targetvalue
main.fieldSeparator: ,
main.endSeparator : 'nl'
Receiving Adapter:
Recordset Structure : main,1
main.fieldSeparator :,
main,endSeparator : 'nl'
---I gone through some previous posts but cant able to resolve it.
Regards
Parth
<b></b>Hi! Bhavesh
<b>This is the source Data type xml format generated in IR:</b>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http:
bSU1" targetNamespace="http:
bSU1">
<xsd:element name="bsu_source" type="Bbsu_target_dt" />
<xsd:complexType name="Bbsu_target_dt">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
853e43e0755211dba7bf001560a58e89
</xsd:appinfo>
</xsd:annotation>
<xsd:attribute name="CharacterName" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a9f9a8a073a911db9df8f654ac1116d8
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="LowerLimit" type="xsd:integer">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a9f9a8a173a911dbaaabf654ac1116d8
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="UpperLimit" type="xsd:integer">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a9fb2f4073a911db868ef654ac1116d8
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="TargetValue" type="xsd:integer">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a9fb2f4173a911db9ed2f654ac1116d8
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:schema> -
Special character u00A3 and u20AC sign issue in File adapter
Hi Experts,
Kindly help me out. I am using file adapter and File encoding as ISO-8859-1.It's converting the file data u20AC as " &#8364; " and £ as
" &#163; "
Whether ISO-8859-1 supports all the special characters.or I need to use some other encoding.
Regards,
NutanHi Ramesh,
Thanks for the reply. I have done the same. This is the code:
While testing in mapping euro sign is displayed as u20AC so as per the java mapping it is getting converted as &;#8364. So what changes I need to do.Whether I have to take care of # i the code or not.
public class HandleSpecial implements StreamTransformation
public void setParameter(Map param)
public void execute(InputStream in,OutputStream out)
try
//String read_data;
int read_data;
int read_nxt_data;
while((read_data = in.read()) != -1)
if (read_data != '&')
out.write(read_data);
else
in.mark(1);
read_nxt_data = in.read();
if (read_nxt_data != '#')
in.reset();
out.write(read_data);
else
out.write("&#".getBytes());
out.flush();
catch (Exception e)
Regards,
Nutan -
How to move iTunes lib from external HD (used to be internal HD)?
I hit an internal HD failure and didn't have iTunes or iPhoto backed up. Not fun, but no one to blame but me.
I've had Apple replace the HD (320GB for Intel iMac), but I'm back at square one. I put the old HD in an external USB enclosure and can see the file system. Glimmer of hope!! For starters, I've copied as much as possible to a NAS box, but I get errors with some files.
Here's the question(s).
What's the best way to migrate the iTunes content from the external HD to the new internal drive?
Here some details that may help:
- I can see the "Music" folder on the old HD (4.5G, 2000 items)
- I can also see "Library/iTunes" (450 MB, 19 items)
- all music/content was setup for 1 user account
- content is:
imported CD's
about a hundred or so songs purchased from iTunes store
misc podcasts (no need to recover)
playlists, etc.
I would think the best thing would be to:
1) fireup iTunes somehow to open the music on the external HD
2) save/export all the music
3) close iTunes, then re-open iTunes on the internal HD (currently with empty iTunes lib)
4) import the library from step #2
5) verify everything is ok
6) reformat external drive & recycle it
Even if it is possible, the steps above may fail if I hit a drive error. In that case, I'm guessing some sort of file based restoration may be needed.
Any clues on what to do and in what order are appreciated.
No need for extensive details on the instructions (but it is certainly appreciated). Once I know what to do (and in what order), I can search the support site for detailed instructions on the individual tasks.
I'll probably use better protection once I've got this back together. Time machine is a leading candidate.
Thank for any clues.
-Davehi dave and welcome to the discussion area !
click here and here for instructions/information.
however, in your situation, none of the above may work.
good luck in any case !
edited by the Jolly Green Giant (where Green stands for environmentally friendly)
Maybe you are looking for
-
X220: Blank, backlit screen on boot
Hey everyone. Recently had some fan errors, so I followed advice on here actually to replace it. Today I replaced the fan and took care in reassembling the rest of the laptop. However, now when I boot it up the screen stays as black and backlit as if
-
Larger Cursor on the Front Panel
Hello, I wanted to know if anyone knows how to make the mouse cursor on the front panel larger. I looked at the Cursor VIs built into LabVIEW, but it seems none of them actually change the size of the cursor, but just the cursor image. Thank you, R
-
Has anyone attempted to run 11i (11.5.9) in a RAC configuration?
-
Hi Can anyone explain me the steps involved, how to add image to product in webshop Br Ajay
-
Translating an existing page hierarchy
I have a hierarchy of pages and items, all in the default language (english). Now I need to make a Swedish translation of the pages. Are the manual steps documented anywhere? Can it be done in any automated way? I've experimented a bit and think this