Skip to Content
0
Jun 16, 2020 at 02:55 PM

BAPI_BILLINGDOC_CREATEMULTIPLE TEST RUN TESTRUN

442 Views Last edit Jun 18, 2020 at 04:07 AM 2 rev

Hi Guys.

I am using BAPI_BILLINGDOC_CREATEMULTIPLE to test the creation of an invoice.

CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
testrun = c_x
TABLES
billingdatain = t_l_bapivbrk
return = t_l_return
success = t_l_success.

My problem is that I do not get message number VF 311 in T_L_RETURN when the biling is successful. Instead I get 2 messages: 050 - "Document save (accounting doc not created) / 151 - Number range invalid.

Table T_L_SUCCESS is not reliable. You get the same data as long as the commercial invoice is successful (regardless of the accounting document)

Any idea what I am doing wrong?