Please change to PMW structure, you do not need to much.
Just use ACH CTX PMW structure in your payment method.
Maintain variant / file path in OBPM4.
It should give you requisite file without need of changing the output of the file.
PPD and CCD support one addendum record, whereas CTX can accommodate upto 9999 records.
Please refer: