SAP Message /NFM/SD011 - NF metal data could not be assigned to any document item

Diagnosis
An attempt was made to create one or more billing documents using'BAPI_BILLINGDOC_CREATEMULTIPLE'. The NF item data could not beassigned to any document item.
Cause:
The field NFMETALLITMS-DATA_INDEX (pointer (index) to an entry in thetable 'BILLINGDATAIN') is not filled.

System Response
Processing of the NF item data is aborted.

Procedure
Pass an index to an entry in the table 'BILLINGDATAIN' in the fieldNFMETALLITMS-DATA_INDEX.