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 SALES ORDER

Former Member
0 Likes
903

Hi Experts,

1 ) Sample code for Sales order chage , sales order Delete

please ?

2) I want to test BAPI_SALESORDER_CHANGE in se37...what is schedule line in that case.

or step to test it in se37 only.

<removed by moderator>

Edited by: Mike Pokraka on Aug 4, 2008 2:45 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
858

Monica,

just refer:

Amit.

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
859

Monica,

just refer:

Amit.

Read only

Former Member
0 Likes
858

<removed_by_moderator>

Edited by: Julius Bussche on Aug 26, 2008 11:46 AM

Read only

GauthamV
Active Contributor
0 Likes
858

hi,

see this documentation,it will help u test from se37.

BAPI_SALESORDER_CHANGE

Text

Sales order: Change Sales Order

Functionality

You can use this method to change or delete sales orders.

You can change header, item, schedule line and configuration data.

In general, note that you should:

Only specify fields that should be changed

Select these fields by entering an X in the checkboxes

Enter a U in the UPDATEFLAG field

Always specify key fields when changing the data, including in the checkboxes

The configuration is an exception here. If this needs to be changed, you need to complete it again fully.

Maintain quantities and dates in the schedule line data

Possible UPDATEFLAGS:

U = change

D = delete

I = add

Example

1. Delete the whole order

2. Delete order items

3. Change the order

4. Change the configuration

Notes

1. Minimum entry:

You must enter the order number in the SALESDOCUMENT structure.

You must always enter key fields for changes.

You must always specify the update indicator in the ORDER_HEADER_INX.

2. Commit control:

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

Parameters

SALESDOCUMENT

ORDER_HEADER_IN

ORDER_HEADER_INX

SIMULATION

BEHAVE_WHEN_ERROR

INT_NUMBER_ASSIGNMENT

LOGIC_SWITCH

NO_STATUS_BUF_INIT

RETURN

ORDER_ITEM_IN

ORDER_ITEM_INX

PARTNERS

PARTNERCHANGES

PARTNERADDRESSES

ORDER_CFGS_REF

ORDER_CFGS_INST

ORDER_CFGS_PART_OF

ORDER_CFGS_VALUE

ORDER_CFGS_BLOB

ORDER_CFGS_VK

ORDER_CFGS_REFINST

SCHEDULE_LINES

SCHEDULE_LINESX

ORDER_TEXT

ORDER_KEYS

CONDITIONS_IN

CONDITIONS_INX

EXTENSIONIN

Read only

Former Member
0 Likes
858

Thanks to all,

Amit & kiran.