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: 

CO19 bdc saves confirmation even if material is missing

0 Kudos

Hi All,

I am using a BDC for co19 to save confirmations, like so

        CALL TRANSACTION 'CO19' USING it_bdcdata
                         MODE   'N'                  "Do not display screens
                         UPDATE 'S'                  "Synchronous update
                         MESSAGES INTO it_messtab.

with the order having missing material. If I do this in CO19 it will throw an error saying material is missing and will not save the confirmation.

This is not the case though with the BDC. I am getting the the warning in it_messtab but the confirmation is saved.

How can I makes it so that the confirmation is not saved if there are material missing.

2 REPLIES 2

VenkatRamesh_V
Active Contributor
0 Kudos

Hi,

before passing to bdc write validation logic.

Regards,

Venkat.

0 Kudos

Can you provide more information please?