cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion in SFTP adapter

06-05-2012 8:48 PM
2737 views 8 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi All,

My requirement is Proxy to File(File Content Conversion)... as i dont hv the access to view the files in SFTP specified path so for testing I used File adapter for receiver and used "File" as message protocol not file content.  I followed the MessageTransformBean ie., xml2plain concept here are the screen shots which i followed in Integration Directory,

and the Message Transform Bean is as follows (Fixed length file),

and the message mapping is,

My issue is,

Original Output file should be like this,


0000100197676523420120605 5000.000.                                  

0000100197676523420120605 6000.000.                                  

0000100197676523420120605 7000.000.                                  

but I am getting the output file like this,

<?xml version="1.0" encoding="UTF-8"?>

<ns1:EmployeeData xmlns:ns1="urn:xyz.com"><EmployeeData><IDENTIFIER></IDENTIFIER><SEQNO>00</SEQNO><PLNNUM>001001</PLNNUM><SSN>976765234</SSN><TRADE_DATE>20120605</TRADE_DATE><PASRC></PASRC><AMOUNT>5000.00</AMOUNT><LOANNUM>0.</LOANNUM><FILLER>                                      </FILLER></EmployeeData><EmployeeData><IDENTIFIER></IDENTIFIER><SEQNO>00</SEQNO><PLNNUM>001001</PLNNUM><SSN>976765234</SSN><TRADE_DATE>20120605</TRADE_DATE><PASRC></PASRC><AMOUNT>6000.00</AMOUNT><LOANNUM>0.</LOANNUM><FILLER>                                      </FILLER></EmployeeData><EmployeeData><IDENTIFIER></IDENTIFIER><SEQNO>00</SEQNO><PLNNUM>001001</PLNNUM><SSN>976765234</SSN><TRADE_DATE>20120605</TRADE_DATE><PASRC></PASRC><AMOUNT>7000.00</AMOUNT><LOANNUM>0.</LOANNUM><FILLER>                                      </FILLER></EmployeeData>

I am not getting any error in message mapping i hv tested...

This is my issue can you pls guide me how to achieve the solution.

Thanks in advance,

Vichu

Issue 2:- And I am there are many files are getting generated if i execute my proxy report once , why it is happening ??????? Message was edited by: Vichu 636

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi,

Try changing the sequence of the modules used: MessageTransformBean first, and only then CallSapAdapter. This should solve your problem. The way you have it now, the content is first written to the file, and later converted to flat data.

Regards,

Greg

Former Member
0 Likes

I followed the way which u said but im getting this error

"Message processing failed. Cause: com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Object not found in lookup of MessageTransformBean."

zameerf
Contributor
0 Likes

Hi,

I could see that you have simply mentioned module name as MessageTransformBean.

Instead your module name should have this localejbs/AF_Modules/MessageTransformBean

Please refer this below link.

http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm

Former Member
0 Likes

HI Vichu,

have to refer bellow screen and provide parameters below format whatever you need , module key is ur wish dont change just have to change module name and call AF_Modules/MessageTransformBean before caal adapter...

zameerf
Contributor
0 Likes

Hi Sankar,

Your screenshot refers to Plain2XML conversion and its parameters.

But here the file receiver adapter is used and hence it should be XML2Plain conversion.

Former Member
0 Likes

hi zameer , you are calling module configuration is correct just you have to change module name(like AF_Modules/MessageTransformBean)  then you  call adapter remain every thing is fine whatever u called key parameters from Module configuration .

for ex:

Answers (1)

Answers (1)

Former Member
0 Likes

File content conversion not working ,chech message transfier bean configuration once again.

Former Member
0 Likes

Can you pls elaborate your answer as i am very new to Message Transfer Bean