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 Function modules for sales

Former Member
0 Likes
627

Hi All,

Pls give the BAPI FM for following purposes.

1. Sales Order Change- Release Billing block

2. Billing creation- with ref. order.

Regards,

Ashwin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
592

Hi,

Use the FM 'BAPI_SALESORDER_CHANGE' for sales order change.

and use the FM 'BAPI_BILLINGDOC_CREATEFROMDATA' for creating billing document.

Rewards points if helpful.

Regards,

Srinivas Ch

4 REPLIES 4
Read only

Former Member
0 Likes
592

BAPI_SALESORDER_CHANGE - Sales order: Change Sales Order

Check these threads for related information.

You can crete Sales order with Multiple billing doc reference using this BAPI. BAPI_SALESORDER_CREATEFROMDAT2

Reward points if useful.

Read only

Former Member
0 Likes
592

hi,

to find function module available or not for bapi is to goto bapi explorer i.e tcode: bapi then see the flow where is the sales order or invoice or billing is available then click on that then on right side of the screen u will see bus object with some no. then double click on the number it will take u to the screen of all 5 things like interface,attributes,events,methods,keyfields then in that open methods there u will see different methods based on the description u see which is applicable for u and click on that it will take u to a screen where click on abap tab there u will find one function module what required.(this is standard way of finding any FM in bapi). so ur problem can solve by this flow.

Read only

Former Member
0 Likes
592

Hi,

Use FM 'BAPI_SALESORDER_CHANGE'.

declare w_bapisdh & w_bapisdhx as same type as order_header_in & order_header_inx.

and pass the values as like this w_bapisdh-bill_block = 'X'

order_header_in = w_bapisdh

order_header_inx = w_bapisdhx

Regards,

Satish

Read only

Former Member
0 Likes
593

Hi,

Use the FM 'BAPI_SALESORDER_CHANGE' for sales order change.

and use the FM 'BAPI_BILLINGDOC_CREATEFROMDATA' for creating billing document.

Rewards points if helpful.

Regards,

Srinivas Ch