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_CREATEFROMDAT2: error

Former Member
0 Likes
1,887

Hi Gurus,

i am using this bapi to create sales order with reference to two other sales order with thier item data.

For eg:

order1 0010 ....

order2 0010 .....

But when i am giving the quantity in the bapi , it is givin me the following error:

Error in item 000010 1.000 is greater than open-available qty in fill-up 0.000.

Best Regards,

Navin fernandes..

1 ACCEPTED SOLUTION
Read only

BH2408
Active Contributor
0 Likes
1,620

Hi,

Try like this ... req quantity is 1.

BAPI_SCHEDULES_IN-REQ_QTY = 1.

for better understand please paste the some peice of code here.

( Check weather the order quantity is available for that material too)....

Regards,

Bharani

Edited by: SeethaRamaiah Bharani on Jan 20, 2010 8:28 PM

10 REPLIES 10
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,620

Hi,

Did you try to create the order through VA01 for the same data and see if this error is coming there also?

Thanks,

Vinod.

Read only

0 Likes
1,620

Hi Vinod,

we created the same through va01 ..it is working fine..

Any clues..?

Best Regards,

Navin Fernandes.

Read only

0 Likes
1,620

HI Vinod,

The earlier error is resolved..

Just want to know.. when i create a sales order with ref to another sales order thru copy reference the automatic condition type

is getting copied in the new sales order..

but when i create it thru bapi the condition type is not getting copied..

Any idea on this..?

Best Regards,

navin fernandes.

Read only

0 Likes
1,620

Hi,

Just place the break points in copy control routines and execute your BAPI. See where it is failing. You can see the copy routines from T-code VOFM

Thanks,

Vinod.

Read only

0 Likes
1,620

Hi vinod,

Have managed for the time being by pushng condition manually..

Will check out ur option too..

Thanks a ton..!

Best Regards,

Navin fernandes.

Read only

0 Likes
1,620

Hi vinod,

Have managed for the time being by pushng condition manually..

Will check out ur option too..

Thanks a ton..!

Best Regards,

Navin fernandes.

Read only

0 Likes
1,620

Hi vinod,

Have managed for the time being by pushng condition manually..

Will check out ur option too..

Thanks a ton..!

Best Regards,

Navin fernandes.

Read only

0 Likes
1,620

Hi vinod,

Have managed for the time being by pushng condition manually..

Will check out ur option too..

Thanks a ton..!

Best Regards,

Navin fernandes.

Read only

BH2408
Active Contributor
0 Likes
1,621

Hi,

Try like this ... req quantity is 1.

BAPI_SCHEDULES_IN-REQ_QTY = 1.

for better understand please paste the some peice of code here.

( Check weather the order quantity is available for that material too)....

Regards,

Bharani

Edited by: SeethaRamaiah Bharani on Jan 20, 2010 8:28 PM

Read only

Former Member
0 Likes
1,620

Hi bharani,

I came to know that when i create sales order with reference to other sales order the copy controls dont work.

I have found an sap note number:370988

details as follows:

I just wanted to know if this takes care of automatic pricing from the reference sales order and allows me to enter manual

pricing as well..

As an alternative to 'Create with reference' in Transaction VA01, two

variants are provided for solving the 'Create with reference' problem in

the BAPI.

1. Create a '1:1 ' - that is, a document copy of a sales document

(customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this

point, you cannot create the 1:1 copy of either a billing document or

a delivery.

2. Create a sales document that refers to an existing document with

'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.

Please need your inputs ..!

Best Regards,

Navin Fernandes