Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with BAPI_BILLINGDOC_CREATEMULTIPLE

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

Hello Keerthi,

Can you please paste the code snippet of ONLY the BAPI call? Just the call and not the whole code.

Thanks,

Neeraj

0 Kudos

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

0 Kudos

Are you getting any records in the structure "RETURN"?

Regards

Vinod

0 Kudos

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