Hi
I am working on a BAPI to create invoice without any reference documents. i am using the bapi BAPI_BILLINGDOC_CREATEMULTIPLE
when the BAPI is run, it is creating the invoice number and it is stored in database.
however, the invoice does not have values related to money (i.e. tax, net value).
i am getting a status message: 'Pricing error: Mandatory Condition YDIF is Missing'
but i can create invoice if i do the process manually: VA01, VL01 and VF01.
so i created one inovice thro BAPI and another one manually and compared the values from VBRK and VBRP.
[the first is created through BAPI(only invoice without reference) and the second one was created maually (VA01, VL01, VF01)]
these are the list of fields mismatched.
BIll category = X, L
Posting status = F, BLANK
Net value = 0.000, 190.00
combination = blank, 0012345
tax = 0.00, 27.00
Pricecategoty = blank, X
item category = Blank, TAN
Sales office = 6000, 6001
( it s taking sales organization/plant as sales offic e. the BAPI does not have an input for Sales office)
storage location = blank, 6001
cost = 0.00, 40.00
subtotal = 0.00, 200.00
pricing = X, blank
material entered = blank, xxxxx(the number i gave as input)
credit price = 0.00, 109.00
credit active = blank, X
SD doc category = 2, C
shipping point, batch, refernce docs information available for the second invoice number
Can anyone help me to resove the error?
Thanks And Regards
Arkantos