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_salesorder

Former Member
0 Likes
659

Hi,

I'm getting following messages while testing the bapi in SE37

"

SALES_HEADER_IN has been processed successfully

SALES_ITEM_IN has been processed successfully

The sales document is not yet complete: Edit data

Standard Order 264 has been saved

"

The order is not saved!

-


I filled the following fields:

ORDER_HEADER_IN : Doc_type, Sales_Org, Division, D.Channel

Sender: log. system

ORDER_ITEMS_IN: ITM_NU: 000010, MAT: 2 (SAP cuts the leading "000000000000") I testet with and without target_qty...

ORDER_Partners: Role, Partn_numb

-


Any Advise?

Thx

Martin

5 REPLIES 5
Read only

abdul_hakim
Active Contributor
0 Likes
569

Hi

welcome to sdn.

Ensure that you are passing values for all of the mandatory fields of sales transaction.othewise you may end up with error.

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

0 Likes
569

my problem is: WHICH ARE THE MANDANTORY FIELDS?

I filled all in txn BAPI specified fields but it won't work.

I also tried to enter plant, sales group, purchase and bill date etc. but there is still the same error message....

Read only

0 Likes
569

hi martin,

you should go to the correponding transaction to find out the mandatory fields.there is no other way to go...

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

0 Likes
569

Following are the mandatory fields for sales order create :

ORDER_HEADER_IN : DOC_TYPE Sales document type

SALES_ORG Sales organization

DISTR_CHAN Distribution channel

DIVISION Division

ORDER_PARTNERS..: PARTN_ROLE Partner functions,SP sold-to party

PARTN_NUMB Customer number

ORDER_ITEMS_IN..: MATERIAL Material number

REQ_QTY Order quantity in sales unit

2. Ship-to party

If a ship-to party hasn't been entered, the ship-to party = sold-to

party

3. COMMIT control:Parameter WITHOUT_COMMIT

If this switch is activated, the system does not process any Commit Work and the application that has called it up must trigger the Commit itself. To do this, useBAPI_TRANSACTION_COMMIT.

4. German keywords:

The following keywords must be entered in German, regardless of the

logon language:

DOC_TYPE Sales document type, for example TA for standard order

PARTN_ROLE Partner function, for example, WE for ship-to party

Read only

Former Member
0 Likes
569

Hi ,

why are you testing it in SE37. write a sample program and see. or else if you want to test it in SE37 then Run the BAPI using Test Sequence.

if it is from SE37, then you should run test sequence.

frist from menu function module-> test->test sequence

one popup comes there enter your BAPI first, then enter BAPI_TRANSACTION_COMMIT then say ok, and then Run the FM .and see now

Regards

vijay