2010 May 07 7:15 AM
Hello All,
I want to create a function module where I call transaction 'VA02', select the items line by line and click on the button "availablity check". I can goto the transaction using call transaction and skip first screen. But I am unable to figure out how do I set the user command to click the required button.
Thanks,
Anju
Hi anju,
If you dont want to use recording, then the only option is to use BAPI for changing sales order. Use BAPI_SALESORDER_CHANGE for changing sales order, BAPI_SALESORDER_SIMULATE to determine determine availability and pricing.
Regards
Vinod
2010 May 07 7:27 AM
You have to do the BDC recording to click on Availability check button.
Regards
Vinod
2010 May 07 7:32 AM
The client does not want a recording. They want to create a function module.
2010 May 07 7:36 AM
Hi anju,
If you dont want to use recording, then the only option is to use BAPI for changing sales order. Use BAPI_SALESORDER_CHANGE for changing sales order, BAPI_SALESORDER_SIMULATE to determine determine availability and pricing.
Regards
Vinod
2010 May 07 7:41 AM
>
> I want to create a function module where I call transaction 'VA02', select the items line by line and click on the button "availablity check". I can goto the transaction using call transaction and skip first screen.
So you want to simulate the "availability check" via this custom FM ?
But I am unable to figure out how do I set the user command to click the required button.
I don't understand why you want to create a custom FM for this. You can use 'BAPI_SALESORDER_SIMULATE' to check the availability. (Read the FM documentation for details)
BR,
Suhas
2010 Jun 16 9:58 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |