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

Doubt in FM 'BAPI_SALESORDER_CREATEFROMDAT2'

Former Member
0 Likes
518

Hi,

when i'm passing condition type as PR00 to COND_TYPE

in table ORDER_CONDITIONS_IN

of FM 'BAPI_SALESORDER_CREATEFROMDAT2', it is saying "Condition PR00 is not allowed as header conditon".

can anyone plz tell me what parameters have to be passed to this table and how this error can be solved.

Thanks & Regards,

Prasad reddy.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
459

I have in mind it is written i the BAPI documentaion for that one...

Hi,

when i'm passing condition type as PR00 to COND_TYPE

in table ORDER_CONDITIONS_IN

of FM 'BAPI_SALESORDER_CREATEFROMDAT2', it is saying "Condition PR00 is not allowed as header conditon".

can anyone plz tell me what parameters have to be passed to this table and how this error can be solved.

Thanks & Regards,

Prasad reddy.

2 REPLIES 2
Read only

Former Member
0 Likes
460

I have in mind it is written i the BAPI documentaion for that one...

Read only

Former Member
0 Likes
459

Hi,I just happen to use the function and find the same problem, the solution is :

you input the ITM_NUMBER IN THE STRUCTURE ORDER_CONDITIONS_IN.

but I have another qustion:the order no is created ,but I use va03 to display the order ,

the message is :sd document ********** is not in the database or has been archived.

and I use se11 to find the table vbak,no such no.but when I use va01 to create another sales order ,the new number is after the number that function generated. so I don't where is the sales order that generated by the function 'BAPI_SALESORDER_CREATEFROMDAT2'.

if you has test the funciton successfully,pls help.

much appreciated.