cancel
Showing results for 
Search instead for 
Did you mean: 

need FCC parameters

Former Member
0 Kudos

Flat file structure.

I need FCC parameters for this.....receiver fat file...

orders

recordset

Head

field1

field2

field3

Body

field1

field2

field3

Tail

field1

field2

field3

IDOCNUM (ADDED JUST BECAUSE RECEIVER FILE WANTED WITH THE IDCO NUMBER AS THE FILE NAME)

The last field IDOCUM is not in the structure. we just added to get the name of the file at the receiver.

Edited by: Harsha reddy on Aug 26, 2008 3:51 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have a look at the this blog by Arpit Seth ... its all about FCC at receiver side...

Also have a look at this thread.. might be helps you....

Thanks

swarup

Answers (5)

Answers (5)

GabrielSagaya
Active Contributor
0 Kudos

Record structure : Head,Body,Tail

processing parameters :

Head.fieldNames=field1,field2,field3

Body.fieldNames=field1,field2,field3

Tail.fieldNames=field1,field2,field3

Head.fieldseparator : ,

Body.fieldseparator : ,

Tail.fieldseparator : ,

For IDOCNUM field Use UDF to have DynamicConfiguration as mentioned in michal blog.

idocnum>myUDF>field1(Head).

former_member192295
Active Contributor
0 Kudos

Hi,

Through variable substitution technique we can get idoc no as file name. Follow below configuration at receiver channel.

filename %var%

Under variable subsstitution option

var = payload:idocname,1,segmentname,1,IDOCNUM,1

for file structure choose keyfield mechanism we can get structure

Former Member
0 Kudos

For content conversion you can refer to blog that Swarup has suggested

for getting IDOCNUM as filename write this UDF in mapping

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

conf.put(key,a); // a is IDOCNUM from source structure - input to UDF

String ourSourceFileName = conf.get(key);

return ourSourceFileName;

IDOCNUM -> UDF-> Root of target

As you dont have element at target to map this UDF to, map o/p of this UDF to root node of target.

Also select Adapter Specific Message Attributes in receiver File adapter...select File name

Former Member
0 Kudos

any ideas please

former_member537867
Active Contributor
0 Kudos

Hi Harsha,

For content conversion refer:

FCC:

Sender -

Key value:

-

TAB delimited

NAB the TAB (File Adapter)

Receiver FCC no need of Endseparator

Receiver-

Regarding getting ur file name as IDOC number u can use variable substitution technique for this,use IDOC number field as variable.

For procedure refer the following links:

Variable substitution :

Basically when you specify the target directory and file name schema, you now have the option of setting variables and defining them in a table. The variables are replaced by elements from the XML structure at runtime.

Contrary to the description in the documentation, you cannot yet replace with attributes from the XI message header. Do not use the prefix during variable substitution.

PLz do refer the following links:

http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/464442c1a1c253e10000000a1550b0/content.htm

Also see the below links to use the dynamic variable substitution

- Dynamic File Name Part 1

- Dynamic File Name Part 2

For dynamic configuration:

We can update Runtime parameters of adapters (like filename in case of File adapter) using DynamicConfiguration.

Check these links:

Regards,

Vinod.

Former Member
0 Kudos

HI ,

Have a look at these links...

FCC @ receiver

FCC @ sender

regards.

Prashant