‎2008 Mar 31 11:40 AM
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.
‎2008 Oct 10 11:01 AM
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
‎2008 Oct 10 11:44 AM
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
‎2008 Oct 15 4:38 AM
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