cancel
Showing results for 
Search instead for 
Did you mean: 

receiver file schema

Former Member
0 Kudos

I f i use Adapter specific identifiers in receiver file adapter...

as pet this

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

but if i want the file schema format as abc_xxxx.dat wher xxxx is idoc number..

where should i write the code and how should i implement it...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>>wher xxxx is idoc number..

If you are getting the IDOC number in payload or SOAP header,then you can use Variable substitution.No coding required in this case.

Thanx

Aamir

Former Member
0 Kudos

I have got a problem where everything is showing fine in MONI....but variable substition is where i am facing some problem...please help me....I am not able to get the receiver file in the path specified.....

I am doing IDOC to fixed length file..

orders message type.

recordset

Head

field1

field2

.

field5

Body

field1

field2

field3

.

.

field10

Tail

field1

field2

.

field5

File

Name (ADDED JUST BECAUSE RECEIVER FILE WANTED WITH THE I NUMBER AS THE FILE NAME)

Receiver name schema: HL_XXX.dat where XXX is the idoc number...

now my file receiver CC looks like this.

TP : NFS

MP:FCC

AE: Integration server

Target directory:
path

File name schema: HL_%var1%.dat

File contrsution mode : create

File type binary : Binary

Variable substitution Parameters:

var1 : payload:MT_HL_file,1,FILE,1,Name,1

Content conversion parameters:

Head.fieldFixedLengths :20,14,8,10,4

Head.endSeparator: \n

Body.fieldFixedLengths: 20,14,8,10,4,4,2,14,12,1

Body.endSeparator: \n

Tail.fieldFixedLengths: 20,14,8,10,4,4,2,13

Tail.endSeparator: \n

FILE.endSeparator: \n

FILE.fieldFixedLengths: 0,0

FILE.fixedLengthTooShortHandling: Cut

any ideas please

Edited by: Harsha reddy on Aug 27, 2008 4:15 AM

Former Member
0 Kudos

check this blog it may help you

Former Member
0 Kudos

hay....i have checked all the blogs...but please let me know if the design is having any problem...

any more ....ideas...

Edited by: Harsha reddy on Aug 27, 2008 5:46 AM

Former Member
0 Kudos

Hi Harsha,

What is the error u r getting in MONI??

Check this if it helps u:

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Sender FCC looks fine.( M i right............ u hv Content Conversion at Sender Side)

Thanks,

Mahi

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

1. Check in the Communication Channel monitoring in the RWB.

2. Check if the idoc number is populated in the target payload to e referred by the varaiable subs.

Thanks

SaNv...

Former Member
0 Kudos

its says...

Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'FILE.fieldFixedLengths' or 'FILE.fieldSeparator' is missing

Edited by: Harsha reddy on Aug 27, 2008 6:37 AM

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Your FCC is wrong then..

you should have either FILE.fieldFixedLengths or FILE.fieldSeparator in the FCC.

However this would add the file name i,e the IDoc number in the target file.

If you decide not to have the file name in the target file use the FCC..

FILE.fieldFixedLengths = 0

FILE.fixedLengthTooShortHandling = Cut

FILE.endSeparator = '0'

Thanks

SaNv...

Former Member
0 Kudos

Now it is saying as.....

Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'Body.fieldFixedLengths' or 'Body.fieldSeparator' is missing

when i tested with XML file as output...i get the file.......can some one corrcet me ......

Former Member
0 Kudos

Hi Maheshwari...its receiver FCC...

i dont get nay error at SXMB_MONI....

i am just not getting the file at the recievr directory....

former_member192295
Active Contributor
0 Kudos

Hi,

Add below statement it will work

str.ignoreRecordsetname = 'true'

Former Member
0 Kudos

Body.endSeparator: \n

Specify endSeparator as 'nl' instead of \n

Former Member
0 Kudos

Hi harsha,

Oh.... I m sorry

Don't u think u r missing something in FCC then?

Recordset Structure: recordset,Head,Body,Tail,File

recordset.fieldSeparator: 'nl'

Head.fieldFixedLengths :20,14,8,10,4

Head.endSeparator: 'nl'

Body.fieldFixedLengths: 20,14,8,10,4,4,2,14,12,1

Body.endSeparator: 'nl'

Tail.fieldFixedLengths: 20,14,8,10,4,4,2,13

Tail.endSeparator: 'nl'

File.fieldFixedLengths: 0,0

File.fixedLengthTooShortHandling: Cut

File.endSeparator: 'nl'

Now i dont understand why u hv given:

FILE.fieldFixedLengths: 0,0

I think its File & not FILE (from the structure u hv given)

then u hv only 1 field i.e Name inside File.

Variable substitution Parameters:

var1 : payload:MT_HL_file,1,recordset,1,File,1,Name,1

Thanks,

Mahi

Answers (2)

Answers (2)

Former Member
0 Kudos

i got this answer...

I took of the end separator....and added the feildames parameter...

its working fine.....

Former Member
0 Kudos

Hi,

Use Body.fixedLengthTooShortHandling - Cut

and check what happens