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

Multiple Documents in VF01 ( Billing )

rameshkumar_ramasamy2
Participant
0 Likes
818

Hi all,

My requirment is to create single Billing Docu for Multiple Sales orders in VF01. I started by trying with BDC, but after 16th sales orders i have to scroll the vertical bar for entering next Sales Order number. But the scrolling OKCODE is '/00' which is ENTER's OKCODE. While processing, Scrolling is not triggered. I tried even with Page Down

Plz help me if u have solution.

Even i searched BAPI's for it, i couldnt get it..

Thanks in advance

Ramesh

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
646

Have you checked the BAPI: "BAPI_BILLINGDOC_CREATEMULTIPLE" ?

All you need to fill out the following

billingdatain-ref_doc = p_vbeln.

billingdatain-ref_doc_ca = 'J'. " if it is Delivery related billing or use 'C' for order related billing.

append billingdatain to it_billingdatain.

clear: billingdatain.

Pass other required internal tables to the BAPI...

billingdatain = it_billingdatain

errors = lt_errors

return = it_billreturn

success = it_success.

try it..

If you want to do it with BDC then search BDC recording or BDC coding for table control.

2 REPLIES 2
Read only

former_member191735
Active Contributor
0 Likes
647

Have you checked the BAPI: "BAPI_BILLINGDOC_CREATEMULTIPLE" ?

All you need to fill out the following

billingdatain-ref_doc = p_vbeln.

billingdatain-ref_doc_ca = 'J'. " if it is Delivery related billing or use 'C' for order related billing.

append billingdatain to it_billingdatain.

clear: billingdatain.

Pass other required internal tables to the BAPI...

billingdatain = it_billingdatain

errors = lt_errors

return = it_billreturn

success = it_success.

try it..

If you want to do it with BDC then search BDC recording or BDC coding for table control.

Read only

0 Likes
646

Hi Sampath,

Thanks a lot. Sterday i tried with that BAPI, but i didnt pass REF_DOC_CA.. Now its working in BAPI..