Dynamic path in the communication channel
Hi,
Is it possible to provide the path into the receiver file communication channel via the mapping program or any other means?
In short, we want the path in the channel to be dynamic.
Is it possible?, if so, how?
Thanks,
John
Hi,
Yes it is possible by using Variable Substitution. The path must be into the target payload and then you can use "Variable substitution" in your communication channel definition, to extract the path and use it into path name.
var1 = payload:MT_XXXX,1,path_field_name,1
Abid!
Similar Messages
-
Dynamic file name in communication channel
hello
is it possible to give in the communication channel, under the 'File Access Parameters', a dynamic file name?
to get it out of a table or something?
Thanks
KfirHi,
Yes its bit possible to use the dynamic file name at File access paramters
The dynamic filename generation concept is as follows.
In your filename field. just give a variable with % symbols. (eg: %file% ).
Now, under the option Variable Name Substitution, you can give how the value has to be created.
It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
For the former, your give
message:interface_name ,etc
and for the payload part you give,
Payload: "your element root which u wanna acecss"
Just check this link out,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
And read the contents under variable substitution and it will help you understand the concepts better.
If you have any clarifications, do get back,
Refer below links for more in depth details about it
Re: Dynamic file name in Receiver File Adapter
http://help.sap.com/saphelp_nw2004s/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/frameset.htm
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Check out this URL
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Check these weblogs as well...
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
Thanks
Swarup -
How to set up the communication channel for third party idoc
Hello,
I am trying to send an idoc from an sap 4.6c system to an third party system. The third party system is supporting idcos with trfc.
My problem is to set up the communication channel in the integration builder (configuration) for the third party system. The idoc is waitung in XI to transport.
My settings are:
adapter type: idoc
transport protocol: idoc
message protocol: idoc
adapter engine: integration engine
rfc destination: xyz (is working fine)
interface version: sap release 4.0 or higher
port: ??
sap release 46c
My problem is the port. should i set up a port in idx1? But the third party is not an sap system and so i dont have a client.
On the xi i have defined a port in transaction we21 (transactional rfc) for the third party with my rfc destination xyz. But if i enter that port in communication channel i got error messages.
Thanks for any help.Hi Christian,
yes, you have to mainztain that port in idx1.
First ypi load the rfc-metadata from an SAP referenzsystem and afterwards copy this metadata to the third party port.
For further details check the onlinedocumentation "IDoc Processing with the IDoc Adapter" XI -> runtime -> adapter
Good luck,
Holger -
Error in generating the communication channel
Hi All,
I am getting the following error while trying to configure the business scenario using the Integration Directory.
Attempt to create object failed
Unable to generate the communication channel (XI_Test_Sender_BS, XI_Sender_BS): com.sap.aii.utilxi.misc.api.ClientServerException
Here I am trying send a message from a third party system to an SAP R/3.I had selected the adapter type as File adapter on the sender side and Idoc adapter on the receiver side.While configuring using the Configuration Wizard, the error mentioned above is generated.
Please help me.
Thanks and Regards,
Soumya.HI Rajesh,
Thanks for quick reply...
My requirement was to idetify the order number in table which i have generated a sequence to be unique in DB.
Do we have any option to process a single file at a time from the sender location instead of multiple files...i can see processing sequence <bydate> option in nfs but not in FTP.
Please suggest....
Thanks in advance,
naveen -
Calling specific put/get commands from the communication channel
Hello,
I need to execute a specific command to place or read the file from the bank file server.
The command for placing the file is something like this -
put localfilename %localfilename%SECUPGPENA%GPEXRIP%%B
I am trying to use the following command in the "Run Operating System Command Before Message Processing" section of the communication channel
"put %F %%F%SECUPGPENA%GPEXRIP%%B"
But the files are not being transferred.
I believe that I need to replace the actual message processing command by the given command by writing a script and calling it.
Please give me any pointers for solving the issue.
Regards,
MayankHello,
Thanks for your response.
I have already gone through the above blogs.
The issue is that I need to replace the actual command used in the file transfer with the given put command.
Please let me know if there is a workaround for it.
Regards,
Mayank -
Channels not monitorable in the Communication Channel Monitor / RWB
Hi,
Back on XI after a long break ☺
I am facing an issue with our in-house JCA adapter used in XI scenarios. When trying to monitor the channels using our adapter from the Communication Channel Monitor in RWB, I have the following:
Status: NA
Short Log: No adapter registered for this channel
The adapter is deployed and the integration scenarios using it work perfectly:
- sda package deployed through the SDM
- the metadata defined in the Design
- a valid and working configuration involving the scenario is defined
The messages are going through and are monitorable in both SXMB_MONI and RWB...
All other channels using system adapters (File, RFC, SOAP ) do display a status (as a color icon) and a Short Log and they can be administered (start/stop) using the enabled buttons when selected
From the Adapter Monitor page, our adapter has a green status, and all the channels configured to use it display the status, Name and Text information...
I have no idea what could be the issue should the adapter implement a special interface to be monitored from the RWB, is it a configuration issue, permissions issue???
I saw 2 posts with this error message but they did not help me to figure out where the issue is
Thanks for your help,
Adalbert
Edited by: Adalbert Wysocki on Apr 29, 2008 6:52 AMHi Gouri,
Thanks for your response, I will try would suggestion for testing... but
I am wondering why the namespace has to be http://sap.com/xi/XI/sample ???
It sounds weird that this namespace has to be fixed... as the purpose of a namespace is to create a isolation/container for names... so it needs to be customizable...
I did not see anything in the Adapter Development guides related to this kind of constraints...
Thanks,
Adalbert -
Start and stop the Communication channel from Java Mapping
How to start and stop the Communication channel from Java Mapping in XI 3.0
Scenario PI - > MQ -> Third Party web application
Web application is down and then Communication channels are stop manually .
We need to automate this process,
MQ Solution - Trigger will be set in MQ which will be called when web application is stopped
Trigger will send u201CSTOP u201C message to PI
How to configure PI scenario to stop different com channels when this message received ?check this link: http://help.sap.com/saphelp_nw04/helpdata/EN/45/0c86aab4d14dece10000000a11466f/frameset.htm
make sure that MQ send http request to PI. i dont think a configuration scenario is required in PI. Only roles should be enabled with proper user provided to MQ team.
However, for security reasons, you can configure a scenario if you dont want to expose PI infrastructure directly to 3rd parties. -
Shut down the communication channel query
Hi Experts,
I wanted to know answers to the following
1) Is there any limit on the number of messages that can pile up in the adapter engine if we shut down (Deactivate the communication channels)?
2) When we reopen the communication channels later, will the messages be processed in the same order they have arrived?
Regards,
Ravi Kanth Talagana>
Ravi Kanth Talagana wrote:
> Hi Experts,
> I wanted to know answers to the following
>
> 1) Is there any limit on the number of messages that can pile up in the adapter engine if we shut down (Deactivate the communication channels)?
completely depends on your server configuration (h/w)
> 2) When we reopen the communication channels later, will the messages be processed in the same order they have arrived?
>
> Regards,
> Ravi Kanth Talagana
once they are reopen you will have to manually resend them and again if they are EOIO configured then the sequence will be maintained. -
Regarding the Communication channel options
Hi guys,
In the Communication channel We have an option in the File processing parametrs that is File construction mode Here i gave Append, every time the output is appended to the current file, but my requirement is i want to append the data on the date wise, means today(29/08/08) i want only one file, tomorrow(30/08/08) ill get only one file,...
How to achieve this, how we will give the date in the CC ?Hi,
Rather than using the variable substution use this.
1. Create a UDF with two input a,b with the following code.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String fname = "file" + a + ".xml";
conf.put(key, fname);
return "b";
2. Map the CurrentDate function with transformDate and with the UDF as input a and any other mandatory field as another input b map the out put of the UDF to the required filed.
3. In the TransformDate function use the Source date format as yyyy/MM/dd and target date format as yyyyMMdd.
note: mapping any source field with b input via UDF to the target field ensures that the UDF is always executed and sets the file name with the current date.
Thanks
SaNv... -
Identifiers tab of the Communication Channel
Can any one explain me about,
<b>Identifiers tab of the Communication Channel</b> in the context of both A2A and B2B scenarios.
Thanks,
-Naveen.Hi Naveen,
Mostly this will be useful when u r doing B2B scenario.
To explain this let us take an example.
Vendors/Suppliers are represented by some code in our business. But outside our business it might be represented by some other code. But both the codes representing the same Vendor/Supplier. It is just like a same person holds different roles at different time. Mr X can be a father of a child, husband of a lady, etc...So, how to handle this situation in XI. Here comes this identifiers.
Mostly this concept will be useful in Value mapping. In value mapping table we need to specify the idetifier and schemes that how a value shoud be represented. Either it can be DUNS (a code that represents the vendors) and other two options in XI (I forgot it). This value mapping table is maintaied in ID. During the mapping, these values will be mapped only at runtime, (so u wont get any result durign testing).
U can also refer help.sap.com (Value mapping) for more help on this...
Regards,
Prasad U -
BD Lookup Error _ Not using the COmmunication channel!
Dear all,
I Tried to do DB Lookup as told in this blog by siva
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
I used the below code.
I am not Getting any error, the mapping is successfully ACTIVATED. But in the Receiver field i am Getting Null as output , the DB lookup which i have mentioned is not connecting to the Database and executing and fetching the query. Just inthe receiver field its througing the Null valuse. The Required Value is not fetched by using the communication channel.
I am getting the above error when i try to TEST THE MAPPING in IR.
Below is the code i used.
SERVER:XI 3.0
SP:18
RECEIVER DATABSE: MSQL SERVER 2000
CODE----
//write your code here
String Query = "";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
Query = "Select cir_id from circle where cir_sap = 'IDBL'";
try{
channel = LookupService.getChannel("<Business Service/System Name>","JDBC_channel_receiver Communication channel");
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(Query);
for(Iterator rows = resultSet.getRows();rows.hasNext();){
Map rowMap = (Map)rows.next();
result.addValue((String)rowMap.get("cir_id"));
catch(Exception ex){
result.addValue(ex.getMessage());
finally{
try{
if (accessor!= null) accessor.close();
catch(Exception ex){
result.addValue(ex.getMessage());
END CODE----
Please help me out.
I am getting output as null. But in database value is there for cir_id where cir_sap='IDBL'.
Regards,
PrakashAs i told before i have tested the interface, its not showing any error, its Activated and throwing Null as output.
Its not fetching the value from database. In CC Monitoring also the adapter is in Green Status. No error over there. Its throwing the output as Null (Default value in the code.)
Below is the connection parameter i have used:
DRIVER:com.microsoft.jdbc.sqlserver.SQLServerDriver
CONNECTION : jdbc:microsoft:sqlserver://<IP>:1433;DatabaseName=test_db
But in the blog
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
If u can see properly, he has mentioed some extra parameters in the JDBC Connection Parameters.
But the screenshot is not proper so i am not able to see the querry he has used in Connection parameters.
Please help
Could anyone tell how to write the Select statement in Connection Parameter for Adapter as given (Partialy in screenshot in BLOG)?
Regards,
Prakash
Edited by: senthilprakash selvaraj on Jul 1, 2008 7:33 AM -
Error when trying to change the communication channel
Hi SapAll.
under the Integration Directory ,when i try to change the Descryption of communication channel and save it ,it is raising the unknown error which i cont uderstand at all as it is complaining about the other operation mapping which is using this comm channel in its process Integration scenario.
one thing i cont understand is y it is complaining about the other operation mappings which the communication channel is not at all related to ot.
the following below is the error that iam getting while changing the descryption of communication channel and saving it
Attempt to access the 1 requested objects on 1 failed. Detailed information: com.sap.aii.ib.core.roa.RoaObjectAccessException: Attempt to read object Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead | urn:sap.shoprite.co.za:ecc:pa, type MAPPING from application REPOSITORY on system REPOSITORY failed. Object does not exist. Detailed informatio n: Object Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead | urn:sap.shoprite.co.za:ecc:pa not found
Attempt to access the 1 requested objects on 1 failed.
Detailed information:
com.sap.aii.ib.core.roa.RoaObjectAccessException:
Attempt to read object Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead
| urn:sap.shoprite.co.za:ecc:pa, type MAPPING from
application REPOSITORY on system REPOSITORY failed.
Object does not exist. Detailed informatio n: Object
Operation Mapping ECC_ApprovedOrdersQuery_ApprovedOrdersRead_to_TRADESTONE_ServiceHandlerService_ApprovedOrdersRead
| urn:sap.shoprite.co.za:ecc:pa not found (ROA_MOA_NOTCOMPLETED)
will be waiting for your response.
regards.
Varmathe problem is sorted.
my colleague has got incorrect objects in the scenario which is using the same communication channel,so she just deleted all the objects in that scenario under configuration .
now i can change and save,activate the communication channel after my colleague deleted the objects of the scenario.
regards.
Varma -
Unable to Find out Adapter Engine in the Communication Channel
Hi Experts,
I am Unable to select the Adapter Engine As Integration Server in the File Sender Communication Channel.
Please Let Me Know
Regards
KhannaHI Khanna
Check the SLD that Adapter Engine is insatlled and all the adapter has the metadata there.
Go to Transaction Code SXI_CACHE in the Inetgration Server(XI- ABAP stack) Then you can see the list of components.
Just have a look into Menu Bar - in there goto : GoTo->Adapter Engine Cache ( if the status is green - then it is correct-otherwise you need to refreshit.)
You just go thru mentioned document from service.sap.com/nw04
You will get the full info about that.
/people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/28e1c20a9d374cbb71875c5f89093b/frameset.htm
Just try with Visual Administrator to check the services for the adapter engine are running or not
All services starts with SAP XI..
SAP XI AF Core
SAP XI AF CPA Cache
SAP XI AF Messaging
SAP XI Adapter XI
SAP XI AF Security
Check SAP note on CPACache- 741214 and also 824236.
Let me know if any errors..
Cheers..
Vasu
<i>** Reward Points if found useful **</i> -
Naming Convention in the Communication Channel
Hi All.
I have done a FILE->PI->RFC Sync scenerio .
Here I created 2 File Communication Channels and 1 RFC Communication Channel.
Actually, 1 File Communication channel is sender while the other one is receiver.
My question is that can I mention the same file name in both the File , that is, Sender as well as Receiver Communication Channel or do I need to change theri names?
If so, then what will happen if I mention the same File names?
Please help me.
Thanks in advance>
Shweta Kullkarni wrote:
> Hi Shabarish,
>
> Thanks for the reply.
>
>
>
yes to avoid timestamp option its better to have these files in different folders
>
> in your case you can do the scenario with a BPM or without a BPM
>
> I am doing it without BPM.Also, if I mention the different File names ,I can avoid Timestamping , is it?
true
>
https://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29 - without bpm, for this you sud be on SP>=SP19(XI3.0) & SP>=SPs10(PI7.0)
>
> I am working PI 7.1. So do I need to mention the modules in the Sender File Communication Channel or can I skip it?
>
> If I need to skip it then what else can be used instead?
>
> Thanks in advance.
you can use the modules in 7.1 since it is available in 7.1 by default -
Process not visible in the Communication Channel Monitor
Hi there
I have a scenario where I create multiple text files with my message mapping. First I created the scenario with a single file and tested it. It worked so then I changed the Interface Determination to Enhanced and the necessary occurrences to unbounded in my IM and MM. Now if I execute the scenario it shows a successful status in the SXMB_MONI but does not create the flat file. If I go to my Communication Channel Monitor it does not show it there so it did not reach it. Is there some other ting I needed to change for this multiple file scenario?
Thanks,
JanHi again
I sorted out the issue but now I'm getting something weird. In my source Message Mapping I have:
Destination
--Name (0-Unbounded)
Payload
--Details (0-Unbounded)
And my Target mapping I have
Main_Structure (0-Unbounded)
--FileDetails (0-1)
So the Destination determines the number of files and the payload goes to the File Details.
This does not work for some reason but if I change my mapping to a fixed number of files it works. For example: If I create a UDF that creates 2 arrays and map it to my Main_Structure it creates 2 files but it I map my Destination node with X amount of lines to my Main_Structure It shows fine in SXMB but does not show at all in the component monitor for the receiver CC and in my message monitor it shows "On Hold"
Maybe you are looking for
-
Sometimes iMac will not boot up
hey guys i have been having this on going problem for about a week now. Ok so here's what's happening, this usually happens at night. It seems that my iMac will not boot up, I have my computer put to sleep when I go to sleep and I can wake it up agai
-
24" iMac positioning conundrum
Hello all... I ordered the 24' iMac yesterday which should be with me by October 31st ( too long!!!! lol ) I have quite a large desk but above it is a shelf which, going by the dimensions of the iMac, will be just above the top of the computer. Do yo
-
MacBook pro 17" will not wake from sleep mode
Ok so my MacBook Pro 17" with osx 10.6.8 will not awaken from sleep mode. when attempting to wake it up the screen dosent come on and the mouse and keyboard do not receve any power. to get back on the computer i have to force a hard restart by holdin
-
About BADI MD_PIR_FLEX_CONS
Hi Guys I have impelemented the badi BADI MD_PIR_FLEX CONS, I sat a break point in the function CHECKPIR_CONS_REDUC, but to be honest I forgot which Tcode to use in order to call the function CHECK_PIR_CONS_REDUC of the BADI , and stop there. any hel
-
Hi all, I am a first time poster, long time Flash user, who is trying to wrap his head around AS3. When writing functions, I am unclear on on the part that goes inside the parentheses. For instance, I have see some functions that say: function XXXXX