on 07-12-2011 10:36 AM
Hi Experts
CALL METHOD ME->CREATE
EXPORTING
CUSTGENERAL = STRU_GENRAL
CUSTCOMPCOD =
CUSTSLGORG = STRU_SALES
CUSTBANK =
IMPORTING
TRANSID = LV_TRANS .
KUNNR =
I want to CALL METHOD ( create) which i had already created in class builder there i declared the method create under public section then i am getting those above mentioned error please help me .
The ME is referring to which class. please check this reference..
Create an object reference for your class and use that reference variable..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraj,
ME-> is like this reference, which always refers to the class in which you are calling this method...
Say, class in which you are using CALL_METHOD ME->CREATE in class XYZ, ME always refers to the instance of +XYZ +and not the class in which you have deined CREATE method.
And, if the create method is in class XYZ, try calling it using CALL_METHOD CREATE instead of * CALL_METHOD ME-CREATE *
Edited by: Chinnu on Jul 12, 2011 12:13 PM
Edited by: Chinnu on Jul 12, 2011 12:13 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI NEERAJ,
Use the below code
data obj1 type ref to zclassname.
create obj1.
CALL METHOD obj1->CREATE
EXPORTING
CUSTGENERAL = STRU_GENRAL
CUSTCOMPCOD =
CUSTSLGORG = STRU_SALES
CUSTBANK =
IMPORTING
TRANSID = LV_TRANS .
KUNNR =
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.