‎2012 Mar 21 8:22 AM
Hello ,
I am working to generate method via SEO_CLASS_CREATE_COMPLETE and
in the method that was generated I have import and export parameters ,the problem is with the export
parameters it always generated with pass by value indicator and I don't want it,
here is my code ,what I'm missing here?
The structure that we need to fill is vseoparam
Best Regards,Joy
ls_params-clsname = iv_class_name.
ls_params-cmpname = ls_entities-mtd_name.
ls_params-sconame = 'ES_RESPONSE_CONT'.
ls_params-version = 1.
ls_params-langu = 'E'.
ls_params-cmptype = 2.
ls_params-mtdtype = 1.
ls_params-type = 'ZRESPONSE_CONTEXT'.
ls_params-typtype = 1.
ls_params-parpasstyp = 0.
ls_params-editorder = 9.
ls_params-author = sy-uname.
ls_params-createdon = sy-datum.
APPEND ls_params TO ct_params.
CLEAR ls_params.
Message was edited by: Suhas Saha
‎2012 Mar 22 11:55 AM
The problem seems to be with the parameters CMPTYPE, MTDTYPE which you have referred to EVENTS. Also I do not see value passed to field ls_params-PARDECLTYP(Importing,Exporting,Changing,Returning)
Check the fixed values of domain SEOCMPTYPE,SEOMTDTYPE & SEOPARDECL
‎2012 Mar 21 11:40 AM
Hi,
You have set that in your structure,
ls_params-parpasstyp = 0.
parpasstyp determines the parameter passing type. if you pass value 0 it will be pass by value, if you set it to 1, it is pass by reference.
Comment this line and chek.
Hope this helps u.,
Regards,
Kiran.
‎2012 Mar 21 12:41 PM
Hello Kiran,
I have try it now (Comment parpasstyp ) and the signature of the export parameters
doesn't change.
Any other idea?
Best Regards,
Joy
‎2012 Mar 22 9:37 AM
hi joy ,
Please check the sample program in SE38 - SBMIG_CREATE_CLASS_AND_TTYPES
I think it will solve your issue.
‎2012 Mar 22 11:55 AM
The problem seems to be with the parameters CMPTYPE, MTDTYPE which you have referred to EVENTS. Also I do not see value passed to field ls_params-PARDECLTYP(Importing,Exporting,Changing,Returning)
Check the fixed values of domain SEOCMPTYPE,SEOMTDTYPE & SEOPARDECL