Content conversion functionality inside Seeburger
Hello,
I am trying to find out what are the content conversion features, probably BIC, inside Seeburger adapter. As of this moment, the standard file adapter has one limited functionality: each record must have an end separator. I was wondering whether Seeburger is able to fix it
Yes, we use BIC to convert EDI Data to XML in our Adapters.
It can also process Fixed/Variable length fields and you dont need to have record separators (if there is a positional way to find the end of record). It can be called as a module right after the file adapter.
If you send me a mail I can get you in contact with our professional service, so they can do setup a demo for your data format.
Bernd - [email protected]
Chief Architect
Similar Messages
-
How do we do File content conversion using SFTP SEEBURGER Adapter
HI All,
Can we do FCC using SFTP SEEBURGER adapter. If yes how?
XIerDynamic attributes are part of the XI message. They provide options for dynamical configuration of SFTP receiver channels (Outbound direction) using parameters that have been dynamically added or set by modules and mappings before the SFTP adapter. These attributes can be set using the Attribute Mapper module for example. Besides, the SFTP adapter dynamically adds specific parameters to the XI message on Inbound case, which can be used by the modules and mappings after SFTP adapter.
Check also
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
Regards
Naycho -
JMS like content conversion in Seeburger
Hi,
Can you have JMS like content conversion in Seeburger?
In Seeburger adapter if username/password is used, instead of public private keys, can you use JMS like content conversion in Seeburger. (the one which you specify as module parameters)
Regards,
Anirudh.Depending on what solutions you have: you may use seeburger bic module to convert from csv to xml or other formats. best thing usually is to follow the 2 step mapping strategy of seeburger where bic is doing a non-xml<->xml conversion and the target (XML-) format is mapped to in the SAP Message Mapping.
-
File Content Conversion in EDI to File without Seeburger
<b>Hello Friends,
I am using just 2 fields Name and Address in 864 Transaction code.Can anybody help me how to do File Content Conversion from EDI to Xml.as i am using only 2 levels of hierarchy..Please explain me the step by step process </b>Dear Kayanth,
My advice to you is if your implementing organization has more then one EDI scenario today or plan to add more EDI scenario to the business is to use the Item Field Content master with the XI.
This tool is powered by NetWeaver and allows to translate all standard EDI messages from txt file to XML.
The tool is represented today by Informatica and is used as a java file deployed in the file adapter.
This will sit-well with the XI development methodology of getting the whole EDI message into the XI in an XML format because in the future you might need more then two fields in the message so modifying the interface will take less time.
Try to look to the future of the implementing organization when it comes to interfaces.
"Quick & Dirty" is not always the best way....usually in the long run - its the worst...
Good luck.
Nimrod.G -
Problems with content conversion in File Receiver Adapter
Hello, everybody.
I have a RFC-to-File scenario with file content conversion. Everything is working well except that my file is generated with 2 blank lines at the top of it.
The function module has 3 importing parameters (1 optional) and the file content comes from an internal table.
Is it caused by the function module parameters? If yes, how can I avoid this, once I really need them? If not, does anyone have any idea?
Thanks a lot,
Marcos.Hi, Raj.
Here they are the function module parameters:
Importing parameters:
ICARRIER TYPE CHAR1
FPATH TYPE IPATH
IFILE LIKE VBAK-BNAME
Tables
IYLASDS_RECPT LIKE YLASDS_RECPT
The structure YLASDS_RECPT has only one field with a single line of the file. I am using this field as the <i>Recordset Name</i> inside file adpater parameters.
There is no mapping between RFC and FTP messages.
Thanks a lot,
Marcos. -
Problem in message mapping due to file sender content conversion
Hi all
basically i m using file sender content conversion and couldn't make file in a proper nested structure where weight was the nested field of detail as there is a limitation of content conversion in file adapter:
My file came out like this:
<header>
</header>
<Detail>
</Detail>
<Weight>
</Weight>
<Weight>
</Weight>
<Detail>
</Detail>
<Weight>
</Weight>
<Weight>
</Weight>
<trailer>
</trailer>
and i wanted it like:
<header>
</header>
<Detail>
<Weight>
</Weight>
<Weight>
</Weight>
</Detail>
<Detail>
<Weight>
</Weight>
<Weight>
</Weight>
</Detail>
<trailer>
</trailer>
so now the problem is i want to generate an idoc from it....but theres no way out to determine which weight is related to what detail except that the weight related to detail 1 comes after start and end of detail 1 tag and then weights of second detail comes after start and end of detail 2 tag in my source xml file.
The structure of the target idoc is
<header>
</header>
<Detail>
<Weight>
<flag>D1</flag>
</Weight>
<Weight>
<flag>D1</flag>
</Weight>
</Detail>
<Detail>
<Weight>
<flag>D2</flag>
</Weight>
<Weight>
<flag>D2</flag>
</Weight>
</Detail>
<trailer>
</trailer>
so i was wondering if i can make a user defined function in which i feed detail and weight and result a flag d1/ d2 inside the tag field. My logic is smth like
while detail is 1 make all the tag weights coming after detail 1 inside <detail1> tag then resultlist.CC for context change then while detail is 2 make a loop to fill the weight coming after detail 2 inside the <detail2>
Is this possible by any means. I really need help
Thnks
NainaHi
My sender file content conversion have this setting:
HEADER,1,DETAIL,*,Weights,*,TRAILER,*
And plz give me more idea of the adapter module ....is there any blog available which is related to my problem.
Naina -
Impossible File content conversion?
Hi everyone,
I have a problem as I need convert a flat file in xml strcuture but I cant do that.
The flat file is like this:
PRxx1
CLxxx
ALxxx
PTxxx
PTxx
PTxx
TAxx
CLxx
ALxx
PTxx
PTxx
PTxx
TAxx
PRxx2
CLxx
I need to send an IDOC (ORDERS) for each CL, but I also need post the PR -root tag- in each CL. The PR is not always the same. I mean, I need something like that:
PR1
CL
AL
PT
PT
TA
CL
PR2
CL
AL
PT
PT
CL
First of all, I don`t know exactly where the problem could be located, if it is in File either Content Conversion or in Mapping program or in both.
I have tried everythig but I didn't get successful results.
Maybe there is no solution for this problem as I think the File content conversion can't convert in nested substructures?
Any idea?
Thanks for everythingWe will handle this inside mapping as follows
Crate an Intermediate structure Identical to your input structure. Just you need to add an sub element (Lets say "T" to your CL node.
This sub element will be used to remember CL node belongs to which PR node.
Map your Input structure to Intermediate structure.
While mapping PR Node of input to PR Node of Intermediate structure use a user defined function as follows
Integer ii;
GlobalContainer g;
g=container.getGlobalContainer();
Object o= g.getParameter("_&HLID");
if (o==null) ii=new Integer(0);
else
ii =(Integer)o;
ii =new Integer(ii.intValue()+1);
g.setParameter("_&HLID",ii);
Use another user defined function to retrieve the value of this _&HLID and put it to T as follows:
GlobalContainer g;
g=container.getGlobalContainer();
Object o= g.getParameter("_&HLID");return o.toString();
For all other fields just do a 1:1 mapping.
Then
Map your intermediate structure to destination structure (IDOC)
Here the only catch is:
For populating the value of PR for each CL
Pass both the element T and the element of PR from which you want to pick the value to a user-defined function (raise the context of both elements to the top node).
In array a we have the value of T
In array b we have the value of element of PR
int j=0;
for(int k=0;k<b.length;k++){
for (int i=0;i<a.length;i++)
if (a<i>.equals(new Integer(j+1).toString())){
System.out.println(b[j]);
j=j+1;
Hope this takes care of your problem.
If you don't get anything please get back to me.
Abinash -
Content Conversion in receiver channel
Hi all,
I have a proxy to FTP scenario with no mapping involved.Over proxy communication PI is receiving the data, I am creating the CSV file using content conversion in receiver channel and placing the file at FTP.
The file name is coming in one of the field of the input xml,I am using variable substitution and setting the file name from that particular field value.But as I don't want that node and file name element in my output file content, please guide me what parameters can I set in my content conversion to remove the FileNode from o/p csv file.
The sample input xml is
<MT>
<Record>
<Field1>1</Filed1>
<Field2>2</Filed2>
</Record>
<Record>
<Field1>3</Filed1>
<Field2>4</Filed2>
</Record>
<FileNode>
<FileName>InutFile</FileName>
</FileNode>
</MT>
I want output xml to be like
1,2
3,4
I have followed this blog /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12 to cut the FileNode, but it gives an error in cc parameters.
In my actual i/p payload,the Record is 0..unbounded and there are 50 sub elements inside Record element.
Please provide your inputs.
Thanks,
RuchiHi Ruchi,
Change your structure like this.
MT>
<Record>
<Field1>1</Filed1>
<Field2>2</Filed2>
</Record>
<Record>
<Field1>3</Filed1>
<Field2>4</Filed2>
</Record>
<FileNode>
<FileName>InutFile</FileName>
</FileNode>
</MT>
Dont put the filenode under Record.
Also Add the below parameters.
FileNode.fieldSeparator '0'
FileNode.endSeparator '0'
FileNode.fieldFixedLengths 0
FileNode.fixedLengthTooShortHandling Cut
FileNode.fieldNames FileName
Now use the same parameter mentioned in the blog .Your problem will be resolved. -
Content Conversion Parameter in File Receiver Adapter
Hi all,
I have created one File Receiver Adapter with Message Protocol 'File Content Conversion' and with the following configuration:
Recordset Structure: Message
Message.fieldFixedLengths: 1000
My Message Type is:
LogErro_MT
Message (Type: String) (Occurrence: 0..Unbounded) (Details: Min,Max Length: 1000)
But the file created by it has no data inside it. If I change the Message Protocol to 'File', the content of the file is the XML generated by the Outbound Proxy.
Would someone can help me?
Thanks in advance
LeoHi,
Please create a data type with
Records
Message ---0..unbounded
and hten MT for the same.
In the receiver file adapter:
Recordset Structure: Message
Message.fieldFixedLengths: 1000
Please check this weblog for the same:
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
IS this what you are trying to do.
Regards
Vijaya -
Receiver File Adapter - File Content Conversion
My XML is like this in XI:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Target xmlns:ns0="http://test.com">
- <Target>
- <Directory>
<Comment_1>#</Comment_1>
<Directory_Rec>testfile.csv</Directory_Rec>
</Directory>
- <File>
<Comment_2>#</Comment_2>
<File_Rec>testfile.csv</File_Rec>
</File>
<Target_Rec>Record 1</Target_Rec>
<Target_Rec>Record 2</Target_Rec>
<Target_Rec>Record 3</Target_Rec>
</Target>
</ns0:Target>
and my CSV file should looklike
#testfile.csv
#testfile.csv
Record 1
Record 2
Record 3
How can I do that. Would someone help he. If I put fieldseparator as 'nl' its writing as follows
Record 1
Record 2
Record 3Hi Ram,
with the structure you have given we can not achieve your target csv structure. at the max you can achieve the output as the following
#testfile.csv
#testfile.csv
Record 1Record 2Record 3
using the below specified config
Recordset Structure: Target,Directory,File
Target.fieldSeparator as 'nl'
Directory.fieldSeparator as '0'
Directory.endSeparator as 'nl'
File.fieldSeparator as '0'
File.endSeparator as 'nl'
in teh output the last line Record 1... comes like that because the File.fieldSeparator's value overrides the parents fieldSeparator i.e of Targets. '0' stands for no separator.
if you want to achieve your target output Target_Rec should be inside one more node say TargetRecords
and XML should be like this in XI:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Target xmlns:ns0="http://test.com">
- <Target>
- <Directory>
<Comment_1>#</Comment_1>
<Directory_Rec>testfile.csv</Directory_Rec>
</Directory>
- <File>
<Comment_2>#</Comment_2>
<File_Rec>testfile.csv</File_Rec>
</File>
<TargetRecords>
<Target_Rec>Record 1</Target_Rec>
<Target_Rec>Record 2</Target_Rec>
<Target_Rec>Record 3</Target_Rec>
</TargetRecords>
</Target>
</ns0:Target>
and the content conversion configuration should be
Recordset Structure: Target,Directory,File,TargetRecords
Target.fieldSeparator as 'nl'
Directory.fieldSeparator as '0'
Directory.endSeparator as 'nl'
File.fieldSeparator as '0'
File.endSeparator as 'nl'
TargetRecords.fieldSeparator as 'nl'
Regards,
Sundar -
Hi gurus
I sem to have a really silly problem
I'm only getting the FIRST field on file content conversion and no new line
here's a part of the XML file from the payload manifest
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
- <item>
<CUSTOMERID>100853</CUSTOMERID>
<COMPANY>Bram Van Tuyl Coldstore</COMPANY>
<SHORT_NAME>VAN TUYL</SHORT_NAME>
<SALES_REGION>EUROP</SALES_REGION>
</item>
</IP_CUSTOMER_HEADER>
</rfc:Z_XI_005_RFC>
I've defined the following parameters in the content conversion
Recordset sructure item
content conversion parameters
item.fieldSeparator ; (a semi colon)
item.endSeparator 'nl'
if I look in my file all i get is
100853
where's the rest of the data ????
When I don't use content conversion xml file is generated correctly.
Any ideas
I am at 100% loss to see what's wrong here as this should be an EASY automatic conversion.
(the input structure is all character)..
Max pts to anyone who solves this
Cheers
jimbothe file is identical
payload from inbound message
for example
<rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
- <item>
<CUSTOMERID>1000001</CUSTOMERID>
<COMPANY>One-time ship-to</COMPANY>
<SHORT_NAME>ONE-TIME</SHORT_NAME>
<STREET />
<STREET2 /> .......
Paylioad under Receiver Grouping
<rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
- <item>
<CUSTOMERID>1000001</CUSTOMERID>
<COMPANY>One-time ship-to</COMPANY>
<SHORT_NAME>ONE-TIME</SHORT_NAME>
<STREET />
<STREET2 />
etc
text file 100001;1000001........ etc
There's no Payload that I can see under the response (checkered flag) where it says processed successfully.
cheers
jimbo -
Sender File Adapter - Content Conversion
HI Friends,
I got a scenario where I need to convert the File to XML document through Sender file adapter..
My file looks like below.
BATCH1234........
12DASER123142JMM
237DSAFDLKC839890
45SDFLASJ90011
BATCH3455...
132FGAR
SD21352525
BATCH998898...
123145DSRTW
12FSTS
So there is a Header and Body for each record set..
My XML Structure is as follows.
<TimeStructure>
<TimeRecord>
<ControlRec>
<Field1>BATCH </Field1>
<Field2> ...</Field2>
</ControlRec>
<DataRec>
<F1> ...... </F1>
<F2> ...... </F2>
</DataRec>
</TimeRecord>
<TimeRecord>
<ControlRec>
<Field1> BATCH </Field1>
<Field2> ADFAS </Field2>
</ControlRec>
<DataRec>
<F1> ...... </F1>
<F2> ...... </F2>
</DataRec>
</TimeRecord>
</TimeStructure>
The blog <a href="/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem:///people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
is somewhat relevant to my requirement.
But the problem is I have the keyfield "BATCH" for my header file but don't have any <b>key field in the data record</b> of the input file.
Please help me out how to mention the configuration parameters.
Regards,
KumarHi,
If you don't have constant key value for your detail records, then you can not directly get the required xml.
So in this case, you can read all the records in a common Row model, i.e each record will be considered as a one row with all the values, and then split this row with Substring or java functions in the mapping.
Even you can do this in the Adapter module .
If you have key value for each record to identify then you can try with content conversion.
Regards,
Moorthy -
Content conversion in sender adapter.
Hi,
I have a problem with the content conversion in sender adapter.
I need only process the csv file with the exact number of columns containing the structure, if the csv file contains more o less columns in the csv file, I want that this files are not relayed by the adapter and remain on the server.
Thank you very much for your help.@ Hareen
This can be achieved at mapping level. You need to check the number of columns that are comming in the file using Count function. If the number of count is equal to the value specified then will process the message else raises a mapping exception.
Are you talking about "count" function in the message mapping? that function won't count the number of fields / columns, but would count the number of occurrence of a particular field. -
How to force field to appear in input structure in content conversion
Hi all,
I am doing file content conversion in sender File adapter. Here is the structure
Header
Body
field1 - length 2
field2 - occurrence 1:1, length 3
field3 - length 2
field4 length 2
Trailer
Here is the fixed length file that is inputed into XI
<b>header22 2211trailer</b>
field2 occrence is 1:1 and as you se from the file example field2 from the body is empty(just space).But When I do the content conversion I don;t have this field showing up in my structure!??!!
I want to make sure that field2 appears even as empty field because that is screwing my mapping!?
Can you please have any idea how to make sure that field is in my input structure when I pass spaces?Can I force it somehow?
Thanks all.Hi Jon,
Yes you are right.
For Ex: ur XML is
<1>a</1>
<2>b</2>
and sometime is there is no value ur FCC will become
<1>a</1>
So what you have to do is in the message mapping take the source element
if <2> exists then <2>---->Target
else
<2>---->Constant(space)
and this "exists" is a standard function in NodeFunctions.
Regards, -
Regarding content conversion parameter
Hi
I am doing content conversion in sender file adapter.I want to remove " " in target file.
I used row.enclosureSignEsc ""
but its not working.
can any one tell me how to use enclosure sign parameter.
Source Flat file looks like:
"A00",417,"SC9",20050101,100617,3229
"B01","EA",20041231,39.4,"ACT","F","D"
"B01","EA",20041231,38.7,"ACT","F","W"
"B01","EA",20050101,39.4,"TOD","F","D"
"B01","EM",20041231,39.3,"ACT","F","D"
"B01","EM",20041231,38.7,"ACT","F","W"
"Z99",50
In the target i want like this:
A00,417,SC9,20050101,100617,3229
B01,EA,20041231,39.4,ACT,F,D
B01,EA,20041231,38.7,ACT,F,W
B01,EA,20050101,39.4,TOD,F,D
B01,EM,20041231,39.3,ACT,F,D
B01,EM,20041231,38.7,ACT,F,W
Z99,50
Thanks&Regards
venkat.>
venky adireddy wrote:
> Hi
> I am doing content conversion in sender file adapter.I want to remove " " in target file.
> I used row.enclosureSignEsc ""
> but its not working.
> can any one tell me how to use enclosure sign parameter.
>
> Source Flat file looks like:
>
> "A00",417,"SC9",20050101,100617,3229
> "B01","EA",20041231,39.4,"ACT","F","D"
> "B01","EA",20041231,38.7,"ACT","F","W"
> "B01","EA",20050101,39.4,"TOD","F","D"
> "B01","EM",20041231,39.3,"ACT","F","D"
> "B01","EM",20041231,38.7,"ACT","F","W"
> "Z99",50
>
> In the target i want like this:
>
> A00,417,SC9,20050101,100617,3229
> B01,EA,20041231,39.4,ACT,F,D
> B01,EA,20041231,38.7,ACT,F,W
> B01,EA,20050101,39.4,TOD,F,D
> B01,EM,20041231,39.3,ACT,F,D
> B01,EM,20041231,38.7,ACT,F,W
> Z99,50
>
>
>
> Thanks&Regards
> venkat.
THERE
there is no parameter to achieve what you want in FCC.
as mentioned earlier you will have to use a function to remove the "
you dont have to create a UDF you can use the standard text function available in XI - replaceString
Maybe you are looking for
-
I am trying to use the socket gateway to watch a port 1010 for all incoming data. When data comes in I want to log it. Well to get started I just used a simple example from the docs to see if I could get it to work. But when I try to start the gatewa
-
Stock Take posting with negative inventory
Hi All, I have the following problem. I did a stock take on the 31/07/2008 and updated the counted quantities. The stock take has not yet been posted. If I now want to post the stock take I go into the "Stock Posting" screen and enter my date at the
-
Hi All, I have a nice little PowerShell function that is scrubbing the eventlog for a 'positive' hit under a certain error code for each user in a defined window. basically we are looking to see if they are still logging into OCS... Since it takes
-
Error In The Installaion SAP NW PI 7.1
Hi All, We are installing SAP NW PI7.1 with EHP1 on RHEL5 and MAXDB. It's getting error at the last but one phse (installation of software units). I am pasting the java.log : [1106630976] 13:30:14 ***ERROR (os_linux.cpp:2916): os::create_event: sem
-
I have an apple tv box. It has been sest up, but now it says it is not connected. The light on the apple tv box is blinking, the apple logo is on the tv, but nothing is happening.