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: 

FM/BAPI to create Invoice for Shipment with particular type

Former Member
0 Kudos

Hi All,

I have a requirement to create Proforma invoice for a shipment with a particular invoice type. Are there any FM's/BAPI's available for this. I checked the FM SD_SHIPMENT_CREATE_INVOICE but this takes the invoice type from config.

Regards,

Nilesh.

8 REPLIES 8

Former Member
0 Kudos

check BAPI, BAPI_BILLINGDOC_CREATEMULTIPLE

0 Kudos

Hi,

I see that this BAPi is creating billing documents for sale orders and not for deliveries. Can you please suggest any other BAPI's/FM's to create proforma invoice for shipment/deliveries.

Regards,

Nilesh.

0 Kudos

Solved this. Thanks for the inputs.

0 Kudos

Hi Nilesh,

I have got a similar process.

When I create a shipment with one or more deliveries, I have generate an invoice "proforma" in background. I think to do it with a worflow.

I want a module function or method which allows the grouping of invoice for several deliveries as my customazing for the type invoice standard (financial).

In final, I want two type invoices for one delivery (type standard (financial) and type "proforma"). In standard customazong SAP allow one type only.

If you have got an idea... thanks a lot in advance for your feedback.

Regards.

Lionel

rthoodi
Active Participant
0 Kudos

Nilesh,

Correct BAPI is BAPI_BILLINGDOC_CREATEMULTIPLE, get all delivery and customer information and pass it to parameter BILLINGDATAIN

CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'

TABLES

billingdatain = t_billing

return = t_return

success = t_success.

Thanks

RK

0 Kudos

Hi RK,

I made a test. You are wrong. You can't user this BAPI to create an invoice from deliveries !!! It's work from sales order document only.

Another idea ??

Regards.

Former Member
0 Kudos

Hi,

Please check again. There is one importing parameter that needs to be filled in with the delivery type. It works without any issues.

Regards,

Nilesh.

vladimir_hristozov
Discoverer
0 Kudos

Hello everybody,

Sorry for commenting on already "closed" thread but I think the answer of the problem is not clearly provided.

As Nilesh said an additional parameter of table BILLINGDATAIN should be populated in order to create Invoice from Delivery with BAPI_BILLINGDOC_CREATEMULTIPLE. The name of the parameter is REF_DOC_CA and it is part of the include structure BAPIVBRK_APPEND (I wouldn't confirm that it is available before ECC6.0). In this paramter the category of the reference document should be entered (in this case "J" for deliveries).

I think the thread is far more "complete" now : )

Edited by: Vladimir Hristozov on Oct 14, 2010 3:28 PM