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: 

Doubt regarding BAPI SALES ORDER CHANGE

former_member217722
Participant
0 Kudos

I am developing a bapi for sale order change, and I want to change quantity of an item. But when I execute in return messege am getting as
"

Date 00.02.  0 is not valid

The sales document is not yet complete: Edit data

Sales document 0000000026 was not changed".

So i debugged and found that

VBAKKOM-BNDDT from this field..and it is related to quotation. I am not at all entering this value but i am getting it.

Please need help.



Info: Manually myself created material,po,customer master for creating Sales order. because i dont have any test data because..




Thanks & Regards,


Mithuunn GP


Message was edited by: Suhas Saha

1 ACCEPTED SOLUTION

JL23
Active Contributor
0 Kudos

How is the date in the quotation? have you checked in VA23 or in table VBAK?

If it is stored incorrect, then at least you know that it is not an error in the BAPI.

11 REPLIES 11

JL23
Active Contributor
0 Kudos

How is the date in the quotation? have you checked in VA23 or in table VBAK?

If it is stored incorrect, then at least you know that it is not an error in the BAPI.

0 Kudos

Hi Jurgen,

I am not creating any quotation and am not taking any reference. Just am creating sales order through

VA01 and data gets stored in VBAK. but the field BNDDT gets filled automatically as

00.02.  0. Here is the snapshot

JL23
Active Contributor
0 Kudos

As you see, you have garbage in your table.

Hence you should analyze how you actually get this garbage when you maintain quotations.

Whether it is caused by own coding or SAP standard. In any case you may need to cleanse these wrong entries.

How have those quotations been created? they are from yesterday.

What does the system do if you create a sales order manually?

What does the system do if you change the sales order manually?

What does the system do if you open such quotation with VA22?

JL23
Active Contributor
0 Kudos

Lets rephrase one question as I see that these are no quotations, these are all sales orders.

Did you create them manually with VA01 or via the BAPI?

In my system the field is blank for sales orders .

0 Kudos

I created through BAPI. and using VA01.

creation time iam not gettng any errorr. But updating only problem

0 Kudos

And when I create sales through VA01 it says the data s incomplete .still u wanna save. Then i saved.

And I  dont have any functional help. so manually I did all these.

JL23
Active Contributor
0 Kudos

In this case I suggest to check your user exits, as this field should not get any data in case of normal sales orders.

you could as well start from SE11 table VBAK and execute  the where-used list for field BNDDT.

0 Kudos

Thank you.

I will try and let me know.

0 Kudos

THANK YOU    Jürgen L .  AFTER MANY STEPS OF DEBUG I GOT THE SOLUTION,

DUE TO USER EXIT IT IS RETURNING THAT TYPE..

Lakshmipathi
Active Contributor
0 Kudos
 I want to change quantity of an item

When there is a provision to change via standard functionality (MASS), why you have gone with BAPI?  May be if you can explain the business process, an alternate solution can be given.

G. Lakshmipathi

Former Member
0 Kudos

Are you using BAPI_SALESORDER_CHANGE for this purpose, or writing your own BAPI?