MVC Architecture for Webdynpro for ABAP

MVC Architecture for Webdynpro for ABAP

Check out this article to know about model view control Architecture and basic of webdynpro for abap.

Author : Raj

Author's Website | Articles from Raj

Raj is an Application Developer focusing on Custom Development - particularly in the areas of ABAP ,WD4A , JAVA , APO , Enterprise services and PI Developer/consultant . He is also certified in ABAP and PI. Facebook

To understand the Webdynpro for ABAP let us use the same methodology which we used during our school days, splitting the word “Webdynpro for ABAP”.

Web + dynpro + ABAP.

Webdynproexplain

“ A Web application which can be accessed via internet which has a capability of dynamic UI  and build using ABAP is we called Webdynpro for ABAP Application.”

Now you will look puzzled if you already know about ITS.

Why we need it if we already have ITS?

ITS-> internet transaction server.

What ITS does is, it converts all the sap gui screen into HTML pages. This can be viewed from the browser. So it was SAP’s baby steps towards the web application. But if you Google it you will find many disadvantages.

You can refer the —————————-Article to know about how it works and can be used.

After ITS it was time for BSP (Business Server Pages)

If you are a JAVA Guy you will be surprised by name as we already have something called JSP (Java server pages).

BSP is also used to develop the web application it has its own tags which makes the UI element on the browser. You can code in Object oriented programming at technology end to implement the business logic.

If you compare BSP and Webdynpro for abap.

Of course winner will be Webdynpro for abap.

Webdynpro for ABAP is based on the MVC architecture. To explain it in simple way let’s start with

Traditional application

Browser directly accesses the required page.

Let’s say if user types www.sapignite.com

And the server will return the page to the user as response.


red_res

MVC application

Browser directly accesses Controller

mvc

So now Mr. Controller comes in between which help us to segregate the business logic and View part.

What is MVC

  • MVC is an architectural Design pattern
  • MVC separates the web application into three different modules

To better understand MVC architecture let take a simple example

Let’s say tomorrow is Your brother or sister’s birthday. So you decided to buy a cake and visit a Bakery Shop.

You request the baker to make a wonderful cake and the Baker collects all the ingredients to make the cake.

After collecting all the ingredients the baker decides on how the cake should look like and selects the

appropriate pan(it may be square, circle etc.).When the cake is ready the Baker responds i.e.

gives you back the cake to celebrate your sisters or brothers birthday. I hope this example makes you clear view on how MVC architecture works.

final

MVC is a collection of Model/View/Controller

Benefits of MVC

  • It keeps your business logic separate from your (HTML-based) views
  • Keeps your code clean and neat in one place

Model

  • Represents the information and the data from the database
  • Validation of the data

View

  • Data presentation and user data
  • Rendering  models into one or more formats, such as HTML,XHTML, XML, or even Javascript

Controller

  • Dispatches requests and control flows
  • connects the model with the view
  • Process the data that comes from the model.

I think you would have got a clear idea about MVC which is the base of the WebDynpro For ABAP.

Related Posts



Like this post? Share it!

  • Tweet
  • Facebook
  • Diggit
  • Delicious
  • Diggit
  • Diggit
  • Diggit
  • Diggit
  • Diggit

ADVERTISE HERE


User Comments


  1. rambabu
    January 12, 2012

    hi,
    this is rambabu i want to try on webdynpro abap as exp ,so plz could u send me some importent questions and related answears for me.

    Reply


    • Raj
      January 12, 2012

      Hello Ram,

      Please try out in SDN i hope you get it from there.As such we dont have any articles which specifically
      describe the question and answers for Webdynrpo

      thanks
      Raj
      SAP IGnite

      Reply


  2. manoj
    January 23, 2012

    web dynpro in what case is very helpfull can i know that thing…

    manoj….

    Reply


    • Raj
      January 23, 2012

      Hi Manoj ,
      Webdynpro for abap is used to develop the web application.
      So incase you want to develop an application which needs a web connection
      Like use should be allowed to fill the details using internet explorer without login to SAP GUI etc..

      Webdynpro for abap is used to develop web application.

      Thanks & Regards,
      SAP IGnite
      ~Raj

      Reply


  3. sunitha
    April 18, 2012

    Hi Raj,
    I saw Your ABAP interview questions its really very good. I want some interview questions on webdynpro abap.
    Thanks&Regards,
    Sunitha.

    Reply


  4. Nagi Reddy
    May 25, 2012

    Hi Raj,
     
    I want some interview questions on Web dynpro Abap,Please send me
     
     
     
     
     
     
    Thanks&Regards.
    Nagi.G
     

    Reply


  5. Nagi Reddy
    May 25, 2012

    Hi,
    I want some clarification about applications.
    Q. How many applications create for one wd component?
    please send me some questions on Web dynpro abap.
     
     
     
    Thanks&Regards.
    Nagi

    Reply


    • Raj
      May 25, 2012

      Hello Nagi ,

      You can create as many application as you want for the webdynpro for abap component.

      Thanks
      ~Raj

      Reply


  6. abhishek
    October 8, 2012

    hi
    i am trying to upload an delimit excel file to internal table using webdynpro. i am able to upload but i am not been able to split that file can you help me in that ???

    Reply


  7. Dhanalaxmi
    October 15, 2012

    Hi Raj,
    can you please tell me the difference between Master & Communication idocs.
    And which one is user specific
     
     
     
     
     
     
    Thanks&regards

    Reply


  8. Maria
    November 19, 2012

    Hi Raj,
    Thank you very much for such excellent explanation!!! Only your article gave me a real clue of concept MCV :wink: .

    Reply


  9. christi parks
    December 2, 2012

    Hello, sir i would like to ask that what is the scope of  SAP webdynpro ABAP training what all topics should be covered and has anyone studies from this course http://www.wiziq.com/course/8153-sap-web-dynpro-pro-abap-training of SAP webdynpro ABAP training ?? or tell me any other guidance…
    would really appreciate help… and Also i would like to thank for all the information you are providing on SAP Webdynpro ABAP training.

    Reply


    • admin
      December 2, 2012

      Hi Christi,
      The link very much covers most of the topics in ABAP Web Dynpro. Few things to check would be number of people in a class. We would not recommend more than 3-4 students per class.
      Please let us also know if you liked the session.

      Thanks
      Team SAP Ignite

      Reply


  10. sreenivas purety
    December 5, 2012

    hello raj bro,
    i’m a java developer  but from few months i’m working as an abap programmer but i’m not satisfied with this type of programming so i wanna go for dynpro can you plz suggest me
    How can i start it i like to do web apps a lot :?:

    Reply


    • Raj
      December 9, 2012

      Hi Sreenivas ,

      Well As a java developer when you need to work in abap defiantly you might not enjoy it
      As abap is business coding language with less scope for developers to free their arms.

      Well webdynpro for abap is also same as abap nothing new , but if you are missing java u can try webdynpro for abap
      and also portal application development , with html5 .

      Thanks & Regards,
      ~Raj
      SAP IGnite

      Reply

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:
  Twitter Followers Email Updates