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

eCATT

Former Member
0 Likes
489

Hi Experts,

i have a question about eCatt Scripts.

In my script i want to perform a function using the FUN command.

This function invokes a transaction and returns a screen in which i want to enter data.

The only way i know to enter data is by using SAPGUI or TCD. So what can i do about this?

I hope u understand what i mean.

Thanks for your help.

3 REPLIES 3
Read only

sachin_b
Product and Topic Expert
Product and Topic Expert
0 Likes
462

Hi Andreas,

I think you could use the import / export parameters found in the interface part of the FUN command of the funtion module that you want to execute. Pass the data that you need to pass to the funciton module and also parameterize the export part of the interface if you need to get any data from the function module.

If you need to call a function module in eCATT use the FUN command, there is no need to use TCD nor SAPGUI for the same.

Hope i have answered your questions.

Best regards,

Sachin

Read only

Former Member
0 Likes
462

Hello ,

The drawback of automating Function modules is that you wont be able to analyse the flow of control inside the function module.

All you can see the input and the corresponding output.

There are cases wherein the Function modules works manually and fails when automated. So i would say test the function module manually and then automate the function module using the FUN command in Pattern of eCATT.

Thanks and Best regards,

Ajay

Read only

Vny12
Product and Topic Expert
Product and Topic Expert
0 Likes
462

Hello,

i see that you have a extra session opening from FUNCTION module.

ECATT can handle only one SAPGUI session, as it has only one engine per system.

Incase you want to automate ,you can pass values to function module,but extra screen opened from FUNCTION module can't be handled.

So please check if you have a flag in function module to suppress the screen( usually we should have this ) and enter the data in function module which screen was accepting.

or

Better way is find out the report behind transaction from SE93 transaction,try finding out the code which performs required thing and code in ecatt between ABAP...ENDABAP..

i hope this helped you

vinay