04-08-2010 2:11 PM
Hi All,
I am using the Function Module BAPI_BILLINGDOC_CREATEMULTIPLE for creating Invoices for deliveries.
In the current scenario, I am using the Function Module inside the Routine for an output type that has been configured for Auto-invoicing of deliveries.
On execution of the function module though, I see that even though an invoice gets created successfully for the particular delivery, the Table parameter "SUCCESS" does not get filled in the BAPI.
What could be the reason for this?
Kindly help me out with this.
Thanks in advance.
Regards,
Keerthi
04-08-2010 6:48 PM
Hello Keerthi,
Can you please paste the code snippet of ONLY the BAPI call? Just the call and not the whole code.
Thanks,
Neeraj
04-08-2010 7:19 PM
Hi Neeraj,
Below is the code snippet:
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE' IN BACKGROUND TASK
EXPORTING
CREATORDATAIN = CREATORDATAIN
TESTRUN = TESTRUN
TABLES
SUCCESS = SUCCESS
RETURN = RETURN
CCARDDATAIN = CCARDDATAIN
CONDITIONDATAIN = CONDITIONDATAIN
BILLINGDATAIN = ZKOMFK.
At the end of execution, SY-SUBRC is still '0' and even my Invoice gets created.
But the structure SUCCESS is INITIAL.
Please share your suggestions, if any.
Thanks & Regards,
Keerthi
04-09-2010 6:09 AM
Are you getting any records in the structure "RETURN"?
Regards
Vinod
04-09-2010 1:56 PM
Hi Vinod,
No, I am not getting any data in the RETURN table.
I also tried passing the ERRORS structure. Even that is returned empty.
Regards,
Keerthi