Application Development 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: 

Screens and ABAP Objects - R/3 4.6c

Former Member
0 Kudos

Greetings fellow SAP developers.

Looking for some input here. What's the best way to manage dialog screens with ABAP OO?

Do you encapsulate the screen in an object? So that there is just one method or two methods? As in:

Screen->Init

Or do you break it down into chunks? As in:

Screen->Set_Fields

Screen->Validate

Screen->Handle_Action

Or do you avoid using objects to encapsulate screens? That is, just use objects to encapsulate business processes? As in:

SCREEN_FIELD_1 = BusinessObject->Get_Value_1()

SCREEN_FIELD_2 = BusinessObject->Get_Value_2()

Thanks in advance for your input.

Brett

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure you can handle PBO and PAI of screen using objects, take a look at transaction MIGO, its full of it. The only thing is is that you can not use the "CALL SCREEN" statement inside your objects.

Regards,

Rich Heilman

1 REPLY 1

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure you can handle PBO and PAI of screen using objects, take a look at transaction MIGO, its full of it. The only thing is is that you can not use the "CALL SCREEN" statement inside your objects.

Regards,

Rich Heilman