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

Problem with abap Object Oriented Transaction

Former Member
0 Likes
555

Hi I have created a OO transaction for my report , and i want to print some output using "Write " statement .

Even if i copy standard program give by sap DEMO_OO_TRANSACTION to Z program and try to change statement

" message 'Instance method in local class' type 'I'.

to

Write " message 'Instance method in local class' type 'I'. "

Output is not shown.

If its not possible then how to do this, in work around.

I want to print one line message for user saying "Table successfuly updated" or "Updation Failed! "

Can anyone help.

Thanks in advance.

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
528

Hi,

se80> click on transaction code> check on the local program what it has been mentioned?

aRs

Read only

0 Likes
528

Hi,

I have mentioned my Program name there. Do you mean as its module pool program so write statement is not working. But leave-to-list processing statement is also not working. Can you tell me any work around or where am going wrong.

thanks,

Read only

0 Likes
528

Hi Sharad, Check your other thread. I have replied there. and close the duplicate.

Regards,

Ravi

Read only

former_member194669
Active Contributor
0 Likes
528

Hi,

program Z_31.

*

class DEMO_CLASS definition.

public section.

methods INSTANCE_METHOD.

endclass.

*

class DEMO_CLASS implementation.

method INSTANCE_METHOD.

leave to list-processing.

write: 'Table successfuly updated' .

endmethod.

endclass.

Please add leave to list-processing in the class implementation

aRs