cancel
Showing results for 
Search instead for 
Did you mean: 

FCC not working properly failing with generating empty file - SAP PO

nidhi_srivastava22
Active Contributor
0 Kudos
123

Hi Experts,

There is a scenario where I have structure as below and FCC configured in sender channel mentioned -

<MT_XXX>

<Header> -- Few fields in the header section(details mentioned in sample file)

<Item> -- Few fields in the Item section(details mentioned in sample file)

<MT_XXX>

nidhi_srivastava22_1-1737148998802.png

Error in the channel and even when I tried adding Key field in the structure following the blog mentioned below it is still failing by generating empty file (0 KB). and failing further in mapping stating premature end of file. 

End to End File Content Conversion (FCC) Using IFl... - SAP Community

nidhi_srivastava22_0-1737148767217.png

PFA the csv file which is sample file.

Please suggest where this is going wrong and how can I try to resolve the same.

Thanks,

Nidhi Srivastava

View Entire Topic
Ryan-Crosby
Active Contributor
0 Kudos

You must follow the guidelines in the help on sender FCC when you have a file with variable substructures as noted here and common values would be H for header, I for item and T for trailer (if necessary) -

Key Field Name

If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.

 

Regards,

Ryan Crosby

nidhi_srivastava22
Active Contributor
0 Kudos

Hi Ryan,

I already followed the guidelines for variable and tried the Key field in the structure. PFB the screenshot for your reference.

I have added the key field in the data type structure as well, but still no luck. It is ending into error - failing in mapping as empty file while the actual file picked is attached in the sample format.

CC_1.png

 

 

 

 

nidhi_srivastava22_1-1737317825335.png

Please suggest, where I am wrong and if I need to include any other field.

Thanks,

Nidhi Srivastava

Ryan-Crosby
Active Contributor
0 Kudos
@nidhi_srivastava22 what error are you seeing? Please note the payload you have attached would not work with those settings because the key field does not exist.
nidhi_srivastava22
Active Contributor
0 Kudos
The source file structure changes worked fine.