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_QUOTATION_CREATEFROMDATA2

Former Member
0 Likes
658

Hi all,

I use fm BAPI_QUOTATION_CREATEFROMDATA2 to create a quotation from a program. I have problems with schedules line: if i pass to bapi a value for quantity greater then material availibility in va22 (for quotation just created) I see 0 in bmeng under tab of schedulations. When I try with a value less then availability in va22 bmeng has the same value of wmeng.

For Schedule lines these are the structures that I use to call BAPI:

QUOTATION_SCHEDULES_IN- ITM_NUMBER = '000010'

QUOTATION_SCHEDULES_IN-SCHED_LINE = '0001'

QUOTATION_SCHEDULES_IN-REQ_QTY= same qty of QUOTATION_ITEMS_IN-TARGET_QTY

QUOTATION_SCHEDULES_INX-ITM_NUMBER = '000010'

QUOTATION_SCHEDULES_INX-SCHED_LINE = '0001'

QUOTATION_SCHEDULES_INX-UPDATEFLAG = 'X'

QUOTATION_SCHEDULES_INX-REQ_QTY = 'X'

Have you got any idea???

Thanks in advance!!!

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
521

Have you used commit fm for the BAPI - 'BAPI_TRANSACTION_COMMIT'?

Also Check the reply from Brian in this thread:

Regards,

Naimesh Patel

Read only

0 Likes
521

Hi Naimesh,

The quotation is created, I access va22 with the seles document number craated by my program. All work fine, the problem is only when I pass the value quantity greater then availibility.

Are missing others parameters in input to do control availibility also in this case???

Thanks for your reply!!!