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: 

VA01 BDC does not return sales order number

Former Member
0 Kudos

Hi All,

I am using BDC to create sales orders using transaction VA01. Most of the time I have no problems using this method. However, for some orders no order number is returned.

I know that BDC is not the best way of doing things, but we have customized the sales order screens a lot and therefore can't use BAPI, so we need to use BDC.

I have used display mode 'A' when calling the transaction and I know that all the screens populate correctly. Then when the order saves, no order number is provided. The just created order can't be found by searching using the sold-to party, so the order appears to not have created. However, when I look in the table of messages returned from the transaction, there are no errors.

<b><REMOVED BY MODERATOR></b>

Thanks in advance,

Dan

Message was edited by:

Alvaro Tejada Galindo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Why don't use update mode called 'S'.

call transaction 'VA01' using BDCDATA

MODE 'N'

update 'S' -> use this one.

messages into bdcmsgcoll.

Thanks

Seshu

3 REPLIES 3

Former Member
0 Kudos

Why don't use update mode called 'S'.

call transaction 'VA01' using BDCDATA

MODE 'N'

update 'S' -> use this one.

messages into bdcmsgcoll.

Thanks

Seshu

MarcelloUrbani
Active Contributor
0 Kudos

Maybe you didn't provide data for a screen (some popup?).

I would expect sAP to report it though.

Former Member
0 Kudos

Hi all,

I discovered that my problem was in some code that a former employee put in the userexit_save_document_prepare. After fixing the problem code everything works fine.

Thanks for the responses,

Dan