cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Receiver Variable Substitution Error

sahana_ps
Participant
0 Kudos

Hi all,

I have a IDOC to FILE Scenario.My Receiver File Structure is as below

Record

     HEADER

          hdr_TYPE

          hdr_mth_end

          date(where date is mapped to pi system current date function)

          time(where time is mapped to pi system time function)

          seqnum(seqnum is mapped to constant 00000000 in pi)

     ITEM

     TRAILER

and I have to maintain filename at receiver side as below  O_SAPECC_date_time_seqnum

So i have configured Filename as O_SAPECC_%var1%_%var2%_%var3%

and variable substition as

var1     payload:MT_Postings,1,Record,1,HEADER,1,date,1

var2     payload:MT_Postings,1,Record,1,HEADER,1,time,1

var3     payload:MT_Postings,1,Record,1,HEADER,1,seqnum,1

I am getting Variable substitution error ; 'content not allowed in prolong'.

Is sftp variable substitution is not same as File adapter?

Can anyone help on this?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sahana

You can try the same with Dynamic Configuration. Below document will help you to do that

http://scn.sap.com/docs/DOC-49712

Former Member
0 Kudos

Hi Sahana,

Not sure if this works, Remove SWCV from your ICO and test it.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/08/15/reading-binary-file-using-ico

Change the encoding of receiver channel as mentioned in the below blog

http://scn.sap.com/thread/3207897

Regards,

Pranav

former_member184720
Active Contributor
0 Kudos

AFAIK, There is no spl implimentation.

Can you make sure you dont have any invalid binary characters in the message?