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

call transaction

Former Member
0 Likes
731

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

5 REPLIES 5
Read only

Former Member
0 Likes
694

You have to do the BDC recording to click on Availability check button.

Regards

Vinod

Read only

0 Likes
694

The client does not want a recording. They want to create a function module.

Read only

0 Likes
694

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
694

>

> 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

Read only

Former Member
0 Likes
694

ok