2010 Sep 15 2:38 AM
Hi Guys,
I have this scenario where I have a private method inside a class which is having an error "Field SAPMF02K cannot be changed".
here is the code for the private method call.
call method create_bdc_dynpro
importing IM_PROGRAM = 'SAPMF02K'
IM_DYNPRO = '0100'.
code of the method
data: wa_bdcdata type bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-program = im_program.
wa_bdcdata-dynpro = im_dynpro.
wa_bdcdata-dynbegin = at_true.
APPEND wa_bdcdata to at_bdcdata.
Hope you can help
Thanks!
2010 Sep 15 3:06 AM
Howdy,
I think you have your importing/exporting the wrong way round.
The method call should be:
call method create_bdc_dynpro
exporting IM_PROGRAM = 'SAPMF02K'
IM_DYNPRO = '0100'.
And of course in the method definition they should be importing parameters.
Cheers
Alex
Thanks Alex. That solved the problem
Is this also the case for Public Methods?
2010 Sep 15 3:06 AM
Howdy,
I think you have your importing/exporting the wrong way round.
The method call should be:
call method create_bdc_dynpro
exporting IM_PROGRAM = 'SAPMF02K'
IM_DYNPRO = '0100'.
And of course in the method definition they should be importing parameters.
Cheers
Alex
2010 Sep 15 7:18 AM
Thanks Alex. That solved the problem
Is this also the case for Public Methods?
2010 Sep 15 7:24 AM
Howdy,
Yep that applies regardless of the visibility.
Cheers
Alex
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |