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

Mandatory Fields in VA01

Former Member
0 Likes
1,034

Hi,

I got the following problem. I try do create a sales order from another programm via "call transaction VA01". It works fine and the Dynpro from VA01 is called. But some fields, which are mandatory when I call transaction VA01 itself, are not mandatory. I have to press enter and then these fields are mandatory, as they should be. Any idea what is going wrong here??

Thanks.

Hi,

I got the following problem. I try do create a sales order from another programm via "call transaction VA01". It works fine and the Dynpro from VA01 is called. But some fields, which are mandatory when I call transaction VA01 itself, are not mandatory. I have to press enter and then these fields are mandatory, as they should be. Any idea what is going wrong here??

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
957

Ru using the same order type?

Read only

0 Likes
957

Hi,

yes I am using the same ordertype

Read only

Former Member
0 Likes
957

Hi,

Use the following code.

Check the parameter id based on the value which you are passing.

Sales document type Parameter ID

Order AAT

Request for quotation AFT

Quotation AGT

Scheduling agreement LPA

Contract KTT

Use appropriate parameter id depending upon the above list

SET PARAMETER ID <parameter id> FIELD W_auart.

CALL TRANSACTION 'VA01'.

Read only

Former Member
0 Likes
957

Hi,

Even though there are mandatory fields on the screen, unless you press enter or some action without entering the data into the mandatory fields then only they will show some messages.

Read only

0 Likes
957

Hi,

thats the problem. If the user enters his data in the fields without pressing enter and save the order, it is possible. He can save the order although he did not fill the mandatory fields.But if he press "Enter" at first, the fields get mandatory.

Read only

0 Likes
957

Hello,

I found the problem. The CALL TRANSACTION runs with USING BDC and OPTIONS FROM. But in options was defined NOBINPT = ' '. I set NOBINPT = 'X' and it works fine. Thanks for your help.