I have input file coming from web system with number of records. Input structure is flat and to map to an idoc. Input flat structure has AgreementID, stone, intime, valMoney, ProfitCenter and 10 more fields.
Requirement is to create an idoc using the below logic. Group similar AgreementID records and check if any of profit center PF1, PF2 and PF3 then create idoc. Please note that one idoc for each agreement and if more records exists then should go idoc items.