‎2009 Jan 20 10:34 AM
Hi,
I try to use class in my program and i have error :
DATA: c_api TYPE REF TO cl_apl_ecatt_tdc_api.
(E) Paket "S_WR" darf das Objekt "cl_apl_ecatt_tdc_api "
aus Paket "SECATT_API" in keiner der folgenden Arten verwenden:
"Refer to data/object"
I think that the problem is with the package interface but i dont now how to avoid that .
S_WR is my package .
Regards
‎2009 Jan 20 10:42 AM
Hi Michael,
after translation it is shwing the below message
(E) parcel "S_WR" may the object "cl_apl_ecatt_tdc_api"
from parcel "SECATT_API" use in none of the following kinds:
"Refer to data/object"
so issue is with the object creation
i thnk with out creting the object you are using that class.
so create object before using the method inside that clas..
Thanks!
Edited by: M Prasanth on Jan 20, 2009 11:43 AM
‎2009 Jan 20 10:42 AM
Hi Michael,
after translation it is shwing the below message
(E) parcel "S_WR" may the object "cl_apl_ecatt_tdc_api"
from parcel "SECATT_API" use in none of the following kinds:
"Refer to data/object"
so issue is with the object creation
i thnk with out creting the object you are using that class.
so create object before using the method inside that clas..
Thanks!
Edited by: M Prasanth on Jan 20, 2009 11:43 AM
‎2009 Jan 20 11:27 AM
Hi Prasanth ,
Thanks,
How i can do something like this ,i have to declare data and after do creation of object?
Maybe u have example?
Regards
‎2009 Jan 20 11:56 AM
Hi Michael,
follow this code,
DATA: custom_container TYPE REF TO cl_gui_custom_container,
IF custom_container IS INITIAL. "Here I am creating the Object
* Create object for custom container
CREATE OBJECT custom_container
EXPORTING
container_name = 'CCONTROL'.
ENDIF.
CALL METHOD custom_container->free. "Based on that object I am using that method.
For more information you can check the sample codes of the OO-ABAP in below Wiki...
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/exampleofusingSAPObjects
may be it helps you.
Thanks!!
Edited by: M Prasanth on Jan 24, 2009 11:35 AM