Get additional file attachements with file adapter
Hello,
Has anyone ever had the following situation:
A Sender interface sends a little bit of data to XI.
This data contains the filenames of some files on a FTP server.
Based on these filename the file needs to be retreived from a FTP server and further handled as an attachement of the XI message?
Is it possible to trigger a sender file adapter with a variable directory and filename from XI, in a BPM or Mapping?
Warm Regards,
Leon Boeijen
hi,
>>>>Is it possible to trigger a sender file adapter with a variable directory and filename from XI, in a BPM or Mapping?
no it's not possible to start a file adapter from BPM
you can use a java proxy that will do the trick
we've used a solution like this many times with no big issues
remember that it's better to use an async java proxy
(with correlation) then a sync one...
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Similar Messages
-
Our company recently purchased Adobe Acrobat Pro XI for the purpose of using it for shared electronic reviews. We are using Send for Shared Review created in Adobe Acrobat Pro XI, and all the Comment tools work as expectedexcept the paperclip in Annotations.
When a Word or Excel or Image(png,jpeg) file is attached using the Annotations paperclip, the initiator can initially see and open it. But after Publish Comments is selected and the review file is closed, the file "Name" changes to "Unknown" (although the Description has the correct file name and extension). The Modified information is Unknown, as is the Size and Compressed Size.
When the review file is then re-opened, even the initiator cannot open the file, although:
The file location is marked with the paperclip within the document.
The file name is shown in the Comments List with the initiator's name.
In the Attachments list (the paperclip beneath the Thumbnails and Bookmarks) the Name appears as Unknown, Description shows the file name, Modified is Unknown, Size is Unknown, and Compressed Size is Unknown.
The file Name cannot be edited, although the file Description can be.
We have followed the procedure described in the tutorials but cannot figure out how to troubleshoot this situation. Since this feature was the reason for the purchase of Adobe Acrobat Pro IX, we would any help. Please don't leave out any basics since we are all new users.
We have several people with Adobe Acrobat Pro XI and the rest have Adobe Reader XI and it is a Windows platform. Can someone please give us some advice how to get this feature to work as described?FYI Rave,
There are some other forum entries with this exact same issue...:
Cannot Open Attachments in PDF
Why does the file Name for file attached with Annotations "Attach File" (paperclip) become Unknown when Comments are Published?
Can someone help us get the COMMENTS ATTACHMENT TOOL to work as described in Acrobat Pro XI? -
Sign on problems within Elements 10; plus cannot backup, writing files error with file catalog.pse10db. No indication what the problem is. How do I get adobe help with these problems?
Sign on problems within Elements 10; plus cannot backup, writing files error with file catalog.pse10db. No indication what the problem is. How do I get adobe help with these problems?
-
FILE NAME WITH FILE EXTENTIONS
HI EXPERTS!!
I WANT TO GET THE FULL FILE NAME STRORED IN THE SERVER FOLDER. I USED FM RZL_READ_DIR_LOCAL BUT I AM GETTING ONLY 32 DIGITS OF NAME NOT FULL NAME AND ALSO SIZE PARAMETER IS CONCATENATING WITH NAME.
I WANT THE FILE NAME WITH FILE EXTENTIONS(TXT. .PDF ETC)..
PLZ SUGGEST ME HOW TO GET THE SAME..
PLZ REPLYE ME..
MAHESHHi Mahesh,
Try the below FM in the below code.
DATA:
LV_PERMISSION(10), " Permission
LV_H2, " H2
LV_FLNM(13), " File name
LV_USER(10), " User
LV_GROUP(10), " Group
LV_SIZE(15), " Size
LV_MONTH(3), " Month
LV_DAY_C(2), " Day
LV_YEAR(5), " Year
LV_FILE_NAME TYPE FILE_NAME, " Filename
LV_JUNK, " Junk
RETURN_CODE TYPE I. " Return code
DATA:
CMD_PARAMS LIKE SXPGCOLIST-PARAMETERS,
" External prg.parameters
CMD_OUTPUT TYPE BTCXPM OCCURS 0, " Log message
STATUS TYPE EXTCMDEXEX-STATUS. " Status
CONSTANTS:
LC_DIR TYPE C VALUE 'd'. " Directory
FIELD-SYMBOLS: <CMD_OUTPUT_LINE> LIKE LINE OF CMD_OUTPUT.
CMD_PARAMS = PV_DIRECTORY.
CLEAR CMD_OUTPUT.
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING
COMMANDNAME = 'Y_LS_LN'
ADDITIONAL_PARAMETERS = CMD_PARAMS
IMPORTING
STATUS = STATUS
EXITCODE = RETURN_CODE
TABLES
EXEC_PROTOCOL = CMD_OUTPUT
EXCEPTIONS
NO_PERMISSION = 1
COMMAND_NOT_FOUND = 2
PARAMETERS_TOO_LONG = 3
SECURITY_RISK = 4
WRONG_CHECK_CALL_INTERFACE = 5
PROGRAM_START_ERROR = 6
PROGRAM_TERMINATION_ERROR = 7
X_ERROR = 8
PARAMETER_EXPECTED = 9
TOO_MANY_PARAMETERS = 10
ILLEGAL_COMMAND = 11
OTHERS = 12.
Check Status first then check sy-subrc
CASE SY-SUBRC.
WHEN 0.
CASE STATUS.
WHEN 'F'.
MESSAGE I057(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 'E'.
MESSAGE I058(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 'S'.
MESSAGE I059(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 'C'.
MESSAGE I061(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
ENDCASE. " CASE STATUS.
WHEN 1.
MESSAGE I048(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 2.
MESSAGE I049(YS) WITH 'Y_LS_LN'(003).
GF_EXIT = GC_TRUE.
WHEN 3.
MESSAGE I050(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 9.
MESSAGE I054(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 10.
MESSAGE I055(YS) WITH 'SXPG_CALL_SYSTEM'.
GF_EXIT = GC_TRUE.
WHEN 11.
MESSAGE I056(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN OTHERS.
MESSAGE I022(YS) WITH SY-SUBRC.
GF_EXIT = GC_TRUE.
ENDCASE. " CASE SY-SUBRC.
IF GF_EXIT = ' '.
READ TABLE CMD_OUTPUT ASSIGNING <CMD_OUTPUT_LINE> INDEX 1.
IF SY-SUBRC = 0.
CONDENSE <CMD_OUTPUT_LINE>-MESSAGE.
IF <CMD_OUTPUT_LINE>-MESSAGE CS 'total' OR
<CMD_OUTPUT_LINE>-MESSAGE CS 'TOTAL'.
DELETE CMD_OUTPUT INDEX 1.
ENDIF.
ENDIF.
LOOP AT CMD_OUTPUT ASSIGNING <CMD_OUTPUT_LINE>.
CONDENSE <CMD_OUTPUT_LINE>-MESSAGE.
SPLIT <CMD_OUTPUT_LINE>-MESSAGE AT SPACE INTO
LV_PERMISSION
LV_H2
LV_USER
LV_GROUP
LV_SIZE
LV_MONTH
LV_DAY_C
LV_YEAR
LV_FILE_NAME
LV_JUNK.
IF LV_PERMISSION(1) = LC_DIR.
CONTINUE.
ELSE.
LV_FLNM = LV_FILE_NAME(13).
TRANSLATE LV_FLNM TO UPPER CASE.
IF LV_FLNM = '1W_FIARFUNNEL'.
PT_FILE-FILE_NAME = LV_FILE_NAME.
APPEND PT_FILE.
ENDIF. " IF LV_FLNM = '1D_FIARFUNNEL'.
ENDIF. " IF lv_permission(1) = ...
ENDLOOP. " LOOP AT CMD_OUTPUT
ENDIF. " IF GF_EXIT = ' '. -
Will the current plugins for Sigma DP1/2 RAW files work with files from the DP1/2 Merrill cameras? And if not, is Adobe developing plugins for these cameras?
Not sure what plugins you mean, Hornet - Lr doesn't rely on plugins to read new cameras.
If you mean the Adobe Camera Raw (ACR) plugin - that's for Photoshop, not Lightroom. Lr has the same functionality as ACR, but it's hard-coded into the program, so if you're looking for support for a new camera, you need to wait for a new version of Lr.
And nobody here can say when Lr support for a given camera will happen.
Hopefully someone with a Merrill will be able to chime in about whether its files work with the current Lr. -
File Matching with FTP Adapter
Guys,
I have particular requirement where FTP Adapter needs to read set of files
FILENAME.PCL
FILENAME.I01
the file name would be matching but extensions are different.
the adapter needs to read the file match if they are SET of files ( based on file name) and move into target directory if not move into Error Directory .The Data needs some manipulation before it's written into target location so we are using ESB ( also for error notification) is it possible with FTP Adapter within ESB?
ThanksMay be difficult with ESB, may require BPEL. Can you give a specific example as that would make it easier to see what you mean.
Antony -
File attachement in mail adapter
Hi ,
I need to send users an error report which I have captured in the form of a file. Is it possible to attach this file as an attachement via mail adapter. I have been reading that the payload can be sent as attachment by specifying the interface namespace and interface name. But my requirement is to trigger the mail once the file has been completely written and not for every message. The reason being I could have 3000 records in the file and I dont want to send 3000 MAILS out but just 1 mail for the entire 3000 records...
Thanks,
TeresaHi Teresa,
I hope, I understand you right.
When you use the file-adapter for sending the file, you can without mapping send this file out to a mail receiver as attachment, there is nothing special to do.
Regards
Stefan -
Changing file content with file adapter in 11g
Hi,
This question may not be very clever but I am new here so please bear with me for a second
My question is - can I change the content of the file with FTP adapter, this is 11.1.1.5.
If yes what is involved in doing it, any link to a sample or any guidance is greatly appreciated.
Thank youHi,
I don't think FTP adapter was designed to change content of files... But it depends what you mean by change...
There is an append feature...
http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/adptr_file.htm#BABJEFCJ
And you can always read the whole file, do the change in memory and rewrite the file again...
Cheers,
Vlad -
Pdf files download with .file extension thus wont open as a pdf
Hi , when I try to download a pdf document with Firefox, the file downloads but add a .file extension thus wont open as a pdf.
I do not know if this is relevant but if you try to get the file to open with adobe viewer by telling the pc to open this type of file always with adobe viewer, nothing happens the tick box is greyed out, however if I double click the adobe viewer icon it will quite happily open the downloaded file as a pdfThe next time you download, STOP, and double check the full name of the file.
Firefox would not change the file name. But an add-on could. -
Received File send with file name to destination side
Hi All,
Here I have used FILE adapter in Receive location and WCF-BasicHttp adapter in send ports.
Requirment is should be able to send the file name also along
with the file to destination from BizTalk.
No orchestrations in this project. DynamicSendPassThru sendport. Please find the below screenshot for send port properties.
How can i fix this please assist me on this.
Thanks & Regards,
VasuHi Osman,
below code is custom pipeline code. and what code and where can i add the code.
regarding send the file with file name from BizTalk to OutBound transport location.
Please assist me on this.I'm not aware coding part.
publicMicrosoft.BizTalk.Message.Interop.IBaseMessageExecute(Microsoft.BizTalk.Component.Interop.IPipelineContextpc,
Microsoft.BizTalk.Message.Interop.IBaseMessageinmsg)
System.Diagnostics.
Debug.WriteLine("Inside
SendFileRenameWithDate Pipeline",
"SLNG.BizTalk");
IBaseMessageContextmessageContext = inmsg.Context;
// if the transport type is file for outbound, then change the add in the date in the file name.
stringadapterType = (string)inmsg.Context.Read("OutboundTransportType",
"http://schemas.microsoft.com/BizTalk/2003/system-properties");
// The file name in the file adapter must contain '%SourceFileName%', e.g. CB_%SourceFileName%.xml
if(adapterType ==
"FILE")
// Retreive the file name from the message context
//object obj = messageContext.Read("FileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
//string customSendFileName = obj.ToString();
//System.Diagnostics.Debug.WriteLine("FileName:" + customSendFileName, "SLNG.BizTalk");
// Append with date in ddMMyyyy_HHmmss format
stringcustomSendFileName =
if(string.IsNullOrEmpty(DateFormat))
customSendFileName =
DateTime.Now.ToString("yyyyMMdd_HHmmss");
else
customSendFileName =
DateTime.Now.ToString(DateFormat);
System.Diagnostics.
Debug.WriteLine("FileName:"+
customSendFileName, "SLNG.BizTalk");
// Write back with new file name to the message context
messageContext.Write(
"ReceivedFileName",
"http://schemas.microsoft.com/BizTalk/2003/file-properties",
customSendFileName);
//if (messageContext.IsPromoted("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties")
== false)
// messageContext.Promote("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties",
customSendFileName);
//messageContext.Write("FileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties", customSendFileName);
System.Diagnostics.
Debug.WriteLine("Going
off SendFileRenameWithDate Pipeline",
"SLNG.BizTalk");
returninmsg;
#endregion
Thanks & Regards,
Vasu -
Flat file extraction with FILE
Hi BWers,
I want to extract a flat file to BW with an infopackage.
This flat file is located in a physical path changing according to the system :
- in the developpment server, path is :
...\dev\file.csv
- in the quality server, path is :
...\qual\file.csv
- in the production server, path is :
...\prod\file.csv
In the Name of the File into the infopackage extraction tab, i have to put the physical path or the logical file or routine.
I don't want to put directly the physical path, because i would have to change this path in qual and prod servers.
I don't want too to use a routine.
So I created a logical file with FILE T-code. But in physical path i put :
...\dev\<FILENAME>
How to put a directory variable like that : $(director)<filename> which says : if we are in Dev, so $directory =
...\dev\file, else qual...
Thanks for help.
Cheers,Hi,
Here is the answer i found:
Use in FILE\Assignment of Physical Paths to Logical Path the variable like that:
<V=Z_INT_SRV>
Declare this variables in Definition of Variables.
Z_INT_SRV -
When I add social widget to my site I get other banner attach with it please help
I was add some code to my site to help my site get found in search. When I finished I saw banner very big and not in position I want I decide to delete the banner. But now I got problem every social widget I will get that big banner the one I was deleted back and attach with social widget I add in please help. Please see the capture I have add all I want is only the bottom past. Some one help me please.
Hi
Please check if the code that you have used for banner still exists , as there is no other reason the banner should still show up on page.
You can check with a new page , if its same then verify the code that you have integrated.
Thanks,
Sanjit -
Anyone know if the long standing duplicate files problem with File History has been fixed yet?
There are loads of public threads about the duplicate files problem
with Windows 8/8.1 File History backup system.
From all the threads I've looked at, there seems to be no solution,
and no acknowledgement from MS that they can even repro the problem
(which surprises me considerably as there are so many people who
notice the problem).
Is anyone aware of whether MS (may) have fixed this for Win10?
Are MS aware of the problem and if they're able to fix it?
Dave - with many GB of duplicated files in File History :)Hmm, is that the attitude MS would recommend? :)
Why would I care what Microsoft would recommend?
Clearly you don't, and you appear to have missed my smiley. Calm down
Noel, many of us are as annoyed by aspects of modern Windows as you
are. :)
I'm all about making Windows actually WORK/./
Aren't we all? Windows is software I use too many hours every day, I
along with many millions of others need it to work really well. You
are not alone.
When they implement something that doesn't work, and even if it did work doesn't do what's needed - and/beyond that/ they remove features people DO need (such as the GUI for Windows Backup), I see no wrong in advising people of the way things
really are.
File History essentially does work - it's saved me a couple of times
in the past couple of weeks. It just has a highly annoying habit of
creating 100% duplicates of some files for no apparent reason. If MS
have fixed that I won't have any known complaints about it.
If you don't like it, you don't have to use it. I generally like it, I
just want to see that its fixed.
Dave -
CS4 apps are VERY slow to open Windows file browser with File Open or File Save As commands
We are running CS4 on Windows 7 with all available updates installed. Photoshop and the other CS4 applications are VERY slow to open a Windows file browsing window to select files when File Open or File Save As menu options are run -- it can take as long as a minute or two for the window to open. Once the window opens and a file is selected, then opening or saving the file is very quick. The location of the default directory, whether it is on a local drive or a network drive, makes no difference. Any suggestions as to what the problem might be?
Raphman02
The link that I posted earlier is off. Read this one
http://support.microsoft.com/kb/2501584. I discovered in my network that the MS Office File Validation Patch made excel crawl when opening over the network though nothing else changed. At the time I was opening Excel on Office 2003.
You can manually turn this off by editing the registry and tunring it off. Going forward I skipped the patch to keep my sanity. Not sure if this is the same as your issue, but the support article will go into detail how to either have Fix it
clear the issue or change the proper registry keys.
Hope this helps -
Can XI Message be mapped to a flat file attachment in Mail adapter
Hi guys,
I have a requirement, where I have ECC system seding a XI message to XI.
Now XI has to convert this to a flat file may be tab delimited and send this as an attachment in email using receiver mail adapter.
I want to avoid BPM and make it simple.
Appreciate any help on this topic.
Regards
SujanHi,
Here are some mapping examples.
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
/people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
/people/venkataramanan.parameswaran/blog/2006/12/12/java-mapping-to-handle-flat-files-in-sap-xi
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi
Vishal
Maybe you are looking for
-
How to find out number of connections to database?
Hi, How can I find number of connections connected to the database 4 hours ago. For examply, if current time is 5PM and I want to see total number of connections connected to database (and from what user?) in between 1 and 2 PM, is there a way to fin
-
MessageCreationException: ... Unable to create StAX reader or writer
Hi all, Using weblogic 10.3.5 cluster. While reading domain log I noticed exception that occures many times but not everytime service is called: ####<Oct 5, 2012 4:21:38 PM CEST> <Error> <com.sun.xml.ws.transport.http.HttpAdapter> <o11gwlapcls1.it.pu
-
How to convert mp4 to mp3 in itunes?
Hi Can anyone help to convert mp4 audio files to mp3 for my car stereo? i have the latest itunes on windows. i only have a option to create new version to AAC.
-
Authorization question - Need Answers - Please help
Hi, I have collected the following questions. Can you please answer? Thanks. 1) What is Authorization object a. Collection of Authorization fields b. Authorization fields fill with Values c. Group of Authorization Key. d. Authoriz
-
Dear All, Can any one give me the difference between ESS->Administration->Inbox and UWL? I need the SAP Inbox items to get displayed on the portal as per role with the approve or reject functionality... Guidance will be highly appreciated. Regards, S