ECATT CALLMETHOD - Parameter
any idea how to give a parameter to a method of a remote used class?
the remote class gets initiated correct, but in the interface of the method I call is only a importing parameter that can not be changed...
thanks in advance,
Sapna Modi replied
The destination is optional parameters. So when the command of CREATEOBJ is inserted into the command editor of SECATT, remove the destination part. Destination you can give at execution time also in the SYSTEM DATA & TARGET SYSTEM.
Find the following link of SAP HELP for creating object using pattern button -
Now the method that you are calling needs to be ONLY PUBLIC. Find the following link of SAP HELP for calling method using pattern button -
Again if you are calling a static method then there is a separate method CALLSTATIC that you can use. Find the following link of SAPHELP for the details -
IMPORTING in eCATT denotes the input parameter.
Kindly check once again the methodology to be followed for the creation of object & calling of methods from the above SAP HELP links. Also check the visibility of the methods you are calling.
Hope this helps you!
PS Plz do reward points to everyone responding if the answer helps you.