Application Development and Automation 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: 
Read only

BAPI for VF01 with sales order reference

Former Member
0 Likes
6,717

Dear Guru,

Want to create third party invoice through transaction  VF01 with reference to sales order . So please tell me BAPI .

Thanks !!!

1 ACCEPTED SOLUTION
Read only

karthikeyan_p3
Contributor
0 Likes
2,980

Hi Manoj,

Try the below FM:


BAPI_BILLINGDOC_CREATEFROMDATA

BAPI_BILLINGDOC_CREATEMULTIPLE


In the BILLING_DATA_IN, insert a line and


pass REF_DOC_CA = any sales order doc type (eg: C/K/L), then you can pass REF_DOC = Sales order number

Check domain VBTYP for all possible values for REF_DOC_CA.


This was discussed lot of times in SCN. Search SCN with the above function modules.


Thanks,

Karthikeyan

Dear Guru,

Want to create third party invoice through transaction  VF01 with reference to sales order . So please tell me BAPI .

Thanks !!!

3 REPLIES 3
Read only

karthikeyan_p3
Contributor
0 Likes
2,981

Hi Manoj,

Try the below FM:


BAPI_BILLINGDOC_CREATEFROMDATA

BAPI_BILLINGDOC_CREATEMULTIPLE


In the BILLING_DATA_IN, insert a line and


pass REF_DOC_CA = any sales order doc type (eg: C/K/L), then you can pass REF_DOC = Sales order number

Check domain VBTYP for all possible values for REF_DOC_CA.


This was discussed lot of times in SCN. Search SCN with the above function modules.


Thanks,

Karthikeyan

Read only

0 Likes
2,979

Dear Karthikeyan,

Its correct answer , useful to create invoice with sales order number and sales order line item.

But my requirement is to create invoice ( VF01 ) with reference to MIGO document number and its line item.

Thanks !

Read only

former_member184158
Active Contributor
0 Likes
2,979

Hi

could you try this FM  BAPI_BILLINGDOC_CREATEMULTIPLE

I think you can create invoice with reference to sale order.

or try this RV_INVOICE_CREATE,

Regards

Ebrahim