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: 

Saels Quotation,Contract, Order, Return, Debit/Credit Memo Request

Former Member
0 Kudos
82

Hi,

I have Saels Quotation,Contract, Order, Return, Debit/Credit Memo Request. Now I want to change the Sales office, Sales Group and sales District in the existing Quotation,Contract, Order, Return, Debit/Credit. But in all the these requests these 3 fields are not in editable mode. Plese suggest me what is the best way I can change these 3 fields in the existing Quotation,Contract, Order, Return, Debit/Credit.

Thanks & Regards

Venkat

2 REPLIES 2

Former Member
0 Kudos
41

Use the BAPI BAPI_SALESDOCUMENT_CHANGE.

-Kiran

former_member181966
Active Contributor
0 Kudos
41

You can also use :

SD_SALESDOCUMENT_CHANGE

FYI

call function 'SD_SALESDOCUMENT_CHANGE'

exporting

salesdocument = salesdocument

order_header_in = da_order_header_in

order_header_inx = da_order_header_inx

simulation = simulation

behave_when_error = behave_when_error

int_number_assignment = int_number_assignment

logic_switch = logic_switch

business_object = 'BUS2032'

call_from_bapi = 'X'

tables

return = return

item_in = da_order_item_in

item_inx = da_order_item_inx

schedule_in = schedule_lines

schedule_inx = schedule_linesx

partners = partners

partnerchanges = partnerchanges

partneraddresses = partneraddresses

conditions_in = conditions_in

conditions_inx = conditions_inx

sales_cfgs_ref = order_cfgs_ref

sales_cfgs_inst = order_cfgs_inst

sales_cfgs_part_of = order_cfgs_part_of

sales_cfgs_value = order_cfgs_value

sales_cfgs_blob = order_cfgs_blob

sales_cfgs_vk = order_cfgs_vk

sales_cfgs_refinst = order_cfgs_refinst

sales_text = order_text

sales_keys = order_keys

extensionin = extensionin.

Note:you can go SE80 and choose Function group = 'VBAK". you`ll find Fms.

Hope this’ll give you idea!!

<b>Pl... award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"