Hi, I provide training in SAP UI5. Also feel free to checkout my new web page https://saptechblog.com
Webdynpro ABAP

Business Graphics

 

 

Scenario :  Let us create a table with some records in it. Based on the selected record, The datas in the selected row should be displayed in a Graphical format. The graphical format by default will be Column type which we can change later.

 

 

Step 1: Create a webdynpro component as shown below.

 

clip_image002

 

 

Step 2:  Create a Context node EKPO with some attributes.

clip_image004

 

 

 

 

Step 3: Insert a table UI element and bind the context node to the table.

 

clip_image006

 

Step 4 : Populate the context node in the WDDOINIT method.

 

clip_image008

 

 

Step 5: Save and activate the whole component and test the application.

 

Output:

clip_image010

 

 

 

 

 

Step 6: Create a context node similar to that of the node EKPO to bind the values to the Graphics UI element.

 

clip_image012

 

 

Copy the context node from the view.

 

clip_image014

 

 

 

 

 

 

Select the node which you want to copy.

clip_image016

Rename the context node and save it.

 

clip_image018

 

clip_image020

 

 

 

clip_image022

 

  

Step 7 : In the layout tab of the view controller insert the Business graphics UI element.

 

clip_image024

 

 

 

clip_image026

 

 

clip_image028

 

For the X axis, Insert the category UI element in the Business graphics.

 

clip_image030

 

For Y axis, Insert Simple series UI element.

 

clip_image032

 

clip_image034

 

Similiarly create series for all the Context attributes.

 

clip_image036

 

 

clip_image038

 

clip_image040

 

 

Similarly bind the series1 and series2.

 

clip_image042

 

 

clip_image044

 

Map the properties of the Business UI element to the series source property.

clip_image046 

 

 

 

 

Select the UI element table and create an action for onlead.

 

clip_image048

 

In the action onlead, read the row which is selected and set it back to the context node business which is mapped to the business graphics UI element.

 

method ONACTIONONLEAD .
   
DATA LO_ND_EKPO TYPE REF TO
IF_WD_CONTEXT_NODE.

   
DATA LO_EL_EKPO TYPE REF TO
IF_WD_CONTEXT_ELEMENT.
   
DATA LS_EKPO TYPE
WD_THIS->ELEMENT_EKPO.

*   navigate from <CONTEXT> to <EKPO> via lead selection

    LO_ND_EKPO = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_EKPO ).

*   get element via lead selection
    LO_EL_EKPO = LO_ND_EKPO->GET_ELEMENT( ).

*   get all declared attributes
    LO_EL_EKPO->GET_STATIC_ATTRIBUTES(
     
IMPORTING
        STATIC_ATTRIBUTES = LS_EKPO ).


 
DATA LO_ND_BUSINESS TYPE REF TO IF_WD_CONTEXT_NODE.

 
DATA LT_BUSINESS TYPE
WD_THIS->ELEMENTS_BUSINESS.

* navigate from <CONTEXT> to <BUSINESS> via lead selection

  LO_ND_BUSINESS = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_BUSINESS ).

 
append ls_ekpo to lt_business.
*

  LO_ND_BUSINESS->BIND_TABLE( NEW_ITEMS = LT_BUSINESS SET_INITIAL_ELEMENTS = ABAP_TRUE ).

endmethod.

 

 

 

 

 

 

 

 

 

 

Step 8: Save and activate the whole application. Test the output.

 

clip_image050

 

clip_image052

 

 

 

 

About Arun

61 Comments:

  1. What is ZCSK_BUSINESS_GRAPH component. I think we need to create it manually. But I am not able to find information about that

    ReplyDelete
  2. Jordanian specialists became serious competitors against other Arab countries which had previously monopolised the fields of design and printing. https://medijo.lt/vizitines-korteles/

    ReplyDelete
  3. Some portion of beginning another bookkeeping business is choosing for logo bookkeeping that would make you particular among other bookkeeping firms. By having a viable logo structure, you are really making a focused on spotlight on the promoting endeavors and this will empower you to achieve accomplishment in your line of business. logo design service

    ReplyDelete
  4. Thanks for your insight for your fantastic posting. I’m exhilarated I have taken the time to see this. It is not enough; I will visit your site every day. Image background removal service

    ReplyDelete
  5. Your article provide me huge knowledge related to Cliping path services.
    Thanks for sharing this post.nettoyage résidentiel

    ReplyDelete
  6. In the event that your advanced camera bolsters a more slow shade speed, it is as yet workable for you to shoot some brilliant activity shots. Background removal service

    ReplyDelete
  7. Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it..! Corporate Headshots

    ReplyDelete
  8. The exceptional business and enterprising aptitudes exhibited by Ghanaian business ladies should be hailed and recognized even as the world praises moms this week. payroll singapore

    ReplyDelete
  9. one thing that i like about the blog could be that the information is very helpful and keeps one informed on issues related to politics.  affiliate marketing

    ReplyDelete
  10. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Bitcoin Trader App

    ReplyDelete
  11. I have been impressed after read this because of some quality work and informative thoughts. I just want to say thanks for the writer and wish you all the best for coming! Your exuberance is refreshing. Unlimited websites

    ReplyDelete
  12. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading. Worldwide free classifieds site

    ReplyDelete
  13. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. Paul Heule

    ReplyDelete
  14. It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. Online payday loans Arizona

    ReplyDelete
  15. It is included in my habit that I often visit blogs in my free time, so after landing on your blog. I have thoroughly impressed with it and decided to take out some precious time to visit it again and again. Thanks. business coach

    ReplyDelete
  16. I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content. Microsoft Dynamics 365 Business Central Credit Card Processing

    ReplyDelete
  17. É essencial que você faça uma boa pesquisa, e solicite o maior número de cotações possível, para escolher de maneira correta a melhor opção para seus funcionários e para sua empresa. plano de saude empresarial preços

    ReplyDelete
  18. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Blogging the boys

    ReplyDelete
  19. Is business name avaiable Hey, i enjoy your work and devotion.  I was in fact just chatting with a business owner the other day, and shared with him how to carry out what you are describing in a comparable way for business naming. In your question, is business name available in US? Well, that question can be simply replied with the tool i linked.

    ReplyDelete
  20. Every healthcare facility, whether big or small, has to maintain proper and consistent medical transcription. task list templates

    ReplyDelete
  21. I feel like I’m often looking for interesting things to read about a variety of niches, but I manage to include your blog among my reads every day because you have compelling entries that I look forward to. Here’s hoping there’s a lot more amazing material coming! web development company

    ReplyDelete
  22. Glad to be one of many visitors on this awing site : D. website development company

    ReplyDelete
  23. This will assist you with developing an award application whose trade information bodes well and can really work. By enrolling the guide of a bookkeeper that knows about your industry you will be sparing yourself time and pointless effort. New USA Grants

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!! 雅思代考

    ReplyDelete
  26. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Organic ghee

    ReplyDelete
  27. Hey, you?re the goto expert. Thanks for haingng out here. ui/ux design

    ReplyDelete
  28. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. UI UX design companies in Bangalore

    ReplyDelete
  29. In any case, protection is commonly favored as it is the best arrangement and the most affordable one contrasted with different choices. learn from home

    ReplyDelete
  30. Timing guarantees that an energized picture wakes up appropriately thus should be kept up all through.anime merchandise

    ReplyDelete
  31. I have been impressed after read this because of some quality work and informative thoughts. I just want to say thanks for the writer and wish you all the best for coming! Your exuberance is refreshing. internal audit tracking software

    ReplyDelete
  32. You have to bear in mind that investors are not investing only in your business, they are also investing in you. It is very important for them to like your personality to invest in your project. gather email addresses from website

    ReplyDelete
  33. UX agencies
    This article is actually remarkable one it helps many new users that desire to read always the best stuff.

    ReplyDelete
  34. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. centra health

    ReplyDelete
  35. People will pick up on that and it can break the business relationships you worked so hard to make. So Navigieren Sie zu dieser Website please do yourself a favor and do not get wrapped up in an industry that you do not have an utmost passion about.

    ReplyDelete
  36. Its an incredible joy perusing your post.Its brimming with data I am searching for and I want to post a remark that "The substance of your post is magnificent" Great work.  خرید فالوور ایرانی

    ReplyDelete
  37. The figures kept me attempting to discover the answer for my SEO issue. Lead generation

    ReplyDelete
  38. I like this blog so much, saved to my bookmarks . ブラック融資

    ReplyDelete
  39. Very informative post. Thank you so much. Below you can get service from fotomasking.
    Clipping path service

    ReplyDelete
  40. There are plenty of planning and executing involved in a brand new business and if you are passionate about it, they would not feel like work at all compared to a kind of business you do not care for. https://europa-road.eu/hu/transportation.php

    ReplyDelete
  41. Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post. website redesign services

    ReplyDelete
  42. Excellent and very exciting site. Love to watch. Keep Rocking. solutions

    ReplyDelete
  43. Nice to read your article! I am looking forward to sharing your adventures and experiences. Domain Name Registration Australia

    ReplyDelete
  44. This is a brilliant blog! I'm very happy with the comments!.. mynursinglab

    ReplyDelete
  45. Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.. 123movies2022

    ReplyDelete
  46. This blog is so nice to me. I will keep on coming here again and again. Visit my link as well.. Work from home

    ReplyDelete
  47. Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. Small business ideas

    ReplyDelete
  48. Really impressive post. I read it whole and going to share it with my social circules. I enjoyed your article and planning to rewrite it on my own blog. Voiceofigeria

    ReplyDelete
  49. Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done. small business marketing agency

    ReplyDelete
  50. When writing your description make sure to let people know about the benefits of you and your business. Add a link to your channel or advertising campaign to direct the people on your page buy automatic Instagram story views

    ReplyDelete
  51. Hi there! Nice stuff, do keep me posted when you post again something like this! mid tier csgo prime accounts

    ReplyDelete
  52. Listed here you'll learn it is important, them offers the link in an helpful webpage: Software

    ReplyDelete
  53. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. Getmuzz

    ReplyDelete
  54. You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. 借貸

    ReplyDelete
  55. nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! valorant account for sale

    ReplyDelete
  56. I genuine happy to reveal this web webpage on bing, exactly what I was scanning for. Ancillary Health Insurance

    ReplyDelete
  57. I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers apex legend account for sale

    ReplyDelete
  58. Really impressed with your post. I have read it whole and going to share it with my social circules. We are experts in clipping path services

    ReplyDelete

Powered by Blogger.