2009 May 14 11:45 AM
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.
2009 May 14 12:02 PM
2009 May 14 1:16 PM
2009 May 14 12:28 PM
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'.
2009 May 14 12:31 PM
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.
2009 May 14 1:35 PM
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.
2009 May 14 2:43 PM
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.