Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create method with generated code without pass by value

Former Member
0 Likes
804

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

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
744

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

4 REPLIES 4
Read only

Kiran_Valluru
Active Contributor
0 Likes
744

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.

Read only

0 Likes
744

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

Read only

0 Likes
744

hi joy ,

Please check the sample program in SE38 - SBMIG_CREATE_CLASS_AND_TTYPES

I think it will solve your issue.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
745

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