i am creating billing document (for sales return) without reference(no delivery) using BAPi "BAPI_BILLINGDOC_CREATEMULTIPLE" (i.e. for sales return only invoice should be created.
in the above mentioned BAPI i gave all the mandatory inputs (as mentioned in function module documentaion). other than that i give
reference num = invoice number which is supposed to be returned
ref doc category = 'M' (for invoice it is M)
Item - '10' (the line item which is to be returned)
when i execute i get the error "The item is not relevant for billing"
BUt if i give the following, the return invoice is created
reference num = delivery number (tried vao1 and vl01 to get delivery number)
ref doc category = 'J' (for delivery it is J)
Item - '10' (the line item which is to be returned)
can anyone help me with this error.