Additional Blogs by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
craigcmehil
Community Administrator
Community Administrator
0 Kudos
** [Part 1 | BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20] - Introduction and beginning elements, sample data.  ** [Part 2 | BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20 Part 2] - Building the CLASSES and ITERATORS.  ** Part 3 - Putting your pages in place. 0.1.   0.2.   {code:html}BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20 Part 3a{code}  0.1.  {code:html}BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20 Part 3b{code}  0.1. Part 4 - Extended Features  0.1.   0.2.  {code:html}BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20 Part 4a{code} 0.1.  {code:html}BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20 Part 4b{code}  0.1. [Part 5 | BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20 Part 5] - Conclusions     As you've seen Part 1  (BSP / HowTo: Exploring BSP Development and the MiniWAS 6.20) gave us the foundation for holding all of our data and even a very simple entry into our category list. Now as we move into Part 2 we will discuss how to handle and display that data.      So not to delay the process too much longer here let's get right down to making our Class.    0.1.   0.2. Step 1: create a new class under ZCSC_FAQ called ZCSC_CL_FAQ  0.3. Step 2: create the inital 4 methods. 0.1.   0.2. GET_CAT_NAME  0.3. GET_FAQ_DATA  0.4. GET_NEXT_DATA_ID  0.5. GET_SDN_WEBLOG_BY_URL       0.1.   0.2. Step 3: Set the parameters for our methods.   GET_CAT_NAME    GET_FAQ_DATA    GET_NEXT_DATA_ID    GET_SDN_WEBLOG_BY_URL    By the way that default value for the URL is http://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0 which is the RSS feed for the Recent Weblogs from SDN. It is also the only default value set. For those of you who are wondering - the parameter types in the graphics don't show completely but they are +Importing+ and +Returning+.    Now you have your Class, methods and parameters. Let's get the coding in place.    method GET_CAT_NAME .  SELECT NAME FROM ZFAQ_CAT  INTO value  WHERE ID = id.  ENDSELECT.endmethod.   method GET_FAQ_DATA .  select * from ZFAQ_DATA  into table DATA.endmethod.   method GET_NEXT_DATA_ID .  select max( ID ) into value from ZFAQ_DATA.  value = value + 1.endmethod.   Now some may look at this DATA_ID code and think why did he do it this way not using intervals or something like that. Well no real good reason other than pure choice. Who knows maybe I'll change this method after we get to the advanced features??
14 Comments