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

Former Member
0 Likes
323

Hi Guru's

We use BAPI_SALESORDER_CREATEFROMDAT2 to create Sales Orders via some VB code created by a colleague. We collect the messages populated in the table BAPIRET2. However, it would appear that not all messages are captured in here. If I create an SO manually via VA21 for particular Material and Customer I get several extra messages that are not recorded when I use the same Material/Customer combination via the Bapi method. An example is Message no V1028. This message relate to the Central Status messages setup in Material Master.

Does anyone know why some messages are recorded and some are missing, looking at all the helpfiles they seem to indicate that any message setup in SE91 should be OK. Any advice/Help would be appreciated.

1 REPLY 1
Read only

Former Member
0 Likes
278

Hi,

We cannot expect the same messages from both manual creation of SO and creation using BAPI, as both uses different validation techniques , ie,. in BAPI data is directly updated in database using Function Modules which takes care of validations.

Regards ,

Sachin