In Web Dynpro ABAP you can use Service calls, Service call is the services provided by the model layer of the WDA Application this is kind of custom controller or component.

We will explain how to use service call in Web Dynpro ABAP to call ALV Grid for displaying data.

1.Go to transaction SE80 and create Web Dynpro Intf/Comp

display-alv-web-dynpro-abap-service-call-1

2.In the second step you need to create context first, this sample we want to display Sales Header data from table VBAK.

display-alv-web-dynpro-abap-service-call-5

Create Function module with parameter is same with context attributes. this function module we will use in the service call.

display-alv-web-dynpro-abap-service-call-14

3.Right clicking on your web dynpro component, and select Create->Service Call.

display-alv-web-dynpro-abap-service-call-2

3.After you click on menu Create->Service call, the Wizard screen will open up. on the second wizard screen, select Use Existent Controller because in this example we dont want create new controller.

display-alv-web-dynpro-abap-service-call-3

4. On the next wizard screen, SAP System provide us with 4 option : Function module, Assistance Class Method, Class Method and Web Service Proxy. In this example we choose Function Module.

display-alv-web-dynpro-abap-service-call-4

5.Enter your function module which you’ve created. In this wizard screen, you need to change Obj Type in your function module parameter from Controller Attribute into Context Node/Attribute.

Click button Continue, the next screen SAP System will generate method automatically. just click Next and complete

display-alv-web-dynpro-abap-service-call-6

6.After finish process, you will see new context node with Importing and Changing as picture below.

display-alv-web-dynpro-abap-service-call-7

7.Now go to MAIN View and drag importing context node to context view.

display-alv-web-dynpro-abap-service-call-8

8. Go to Layout tab in MAIN View and create UI Element Input Field, This layout consist of Label Element, Input Field, Horizontal Gutter for Separation, and ViewContainer ( ALV Table ).

Next create Action GETDATA for Button Get Data.

display-alv-web-dynpro-abap-service-call-9

9. Go to Action tab, double click on GETDATA Action and write ABAP Code. This ABAP Code will call function module in Service Call.

10. Back to Layout tab and click on INP_VKORG ( Input Field ), you need to bind this UI Element to Context View.

display-alv-web-dynpro-abap-service-call-10

11. Add Component SALV_WD_TABLE and enter ALV_TABLE ( UI ViewContainer name ) into Component Use field.

display-alv-web-dynpro-abap-service-call-11

12. Drag and Drop IT_SALES_DATA from Context Node to INTERFACECONTROLLER_USAGE in COMPONENT USAGE->ALV_TABLE.
display-alv-web-dynpro-abap-service-call-12

display-alv-web-dynpro-abap-service-call-13

Incoming search terms:

Comments

  1. Pingback: successful social media campaigns

  2. Pingback: parent coach professionals

  3. Pingback: outdoor clocks for business

  4. Pingback: best parenting coach

  5. Pingback: clock dial face fit ups

  6. Pingback: synchronazation communication systems

  7. Pingback: synchronized wireless clocks for sale

  8. Pingback: clock mechanisms

  9. Pingback: how to stand out

  10. Pingback: sync system clock

  11. Pingback: facebook ads company

  12. Pingback: how to use social media for small business marketing

  13. Pingback: clock accessories

  14. Pingback: how to use social media for small business marketing

  15. Pingback: parenting programs

  16. Pingback: how to build your own clock

  17. Pingback: parents coaching

  18. Pingback: wireless clocks sync

  19. Pingback: parent coaching curriculum

  20. Pingback: learn more

  21. Pingback: USA Made clock movements

  22. Pingback: auto sync clocks

  23. Pingback: time movement hands

  24. Pingback: life coaching for kids

  25. Pingback: hospital clock system

  26. Pingback: gas fire pits outdoor

  27. Pingback: parts for clocks

  28. Pingback: plastic dial hand

  29. Pingback: time synchronazation clocks

  30. Pingback: parenting class

  31. Pingback: fire glass vs lava rock

  32. Pingback: outdoor clocks for business

  33. Pingback: parents coach

  34. Pingback: FCC wireless license

  35. Pingback: metal clock dials

  36. Pingback: clock motor suppliers

  37. Pingback: parent coaches

  38. Pingback: outdoor clocks for hospitals

  39. Pingback: Learn More

  40. Pingback: metal hands

  41. Pingback: fire pit ignition systems

  42. Pingback: build your own fire pit

  43. Pingback: how to build a propane fire pit in your backyard

  44. Pingback: parenting classes free

  45. Pingback: warming trends crossfire burner reviews

  46. Pingback: clocks for businesses

  47. Pingback: parent classes online

  48. Pingback: clock inserts suppliers

  49. Pingback: read more

  50. Pingback: Building management services

  51. Pingback: parent classes online

  52. Pingback: metal clock dials

  53. Pingback: parenting programs

  54. Pingback: wireless time clocks

  55. Pingback: Clock kits and dials

  56. Pingback: crossfire fire pit

  57. Pingback: Montana Fire Pit

  58. Pingback: patio fire pit

  59. Pingback: fire pit burner pan

  60. Pingback: click Here

  61. Pingback: online parenting programs

Leave a Reply

Your email address will not be published. Required fields are marked *