SAP Message R$045 - No main card number in incoming file

Diagnosis
There is no main card in the card file via which the collective invoicecan be posted.

Procedure
Create a payment card master record defined as a main card and with thefeature 'Main Card' set.
This main card must be in the card file. The number and position of thedata records are arbitrary.
A collective invoice cannot be posted without a main card, as theaccount assignment cannot be determined.
The amount of the collective invoice is determined as the total of allrecords which contain no main card number.