on 08-26-2008 10:50 PM
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...
>>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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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...
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 ......
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
i got this answer...
I took of the end separator....and added the feildames parameter...
its working fine.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use Body.fixedLengthTooShortHandling - Cut
and check what happens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.