Scenario is IDOC to FILE(using File Content Conversion in receiver side)
Payment Id is the field from IDOC.
1st time data for the field length is 6 digit that always end with '0' that is 6th character or 6th position '0'(this for the 1st transaction in a Day)
2nd time data for the same field length is 5 digit(this is the 2nd transaction in the same day.this can be many times)
End of the day the last transaction always the same field length should be 6 digit and end of the digit always 1.when the last transaction is over then appended files should be merged and send to target folder.
All this transactions always same file and should append.
Could you please give some idea.
Note: with out BPM.
thanks and regards