Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ECATT CALLMETHOD - Parameter

Hi,

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,

Sebastian

replied

Hello Sebastian,

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 -

http://help.sap.com/saphelp_erp2004/helpdata/en/9f/50423fd9575003e10000000a114084/content.htm

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 -

http://help.sap.com/saphelp_erp2004/helpdata/en/12/ef383fe58d5900e10000000a114084/content.htm

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 -

http://help.sap.com/saphelp_erp2004/helpdata/en/55/ef383fe58d5900e10000000a114084/content.htm

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.

Regards

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question