Recently I've been sitting and trying to figure out how in the world I'm gonna maintain all the little tidbits of information I've been collecting and reusing from SDN and the forums. Then I thought, hey I'll just use a FAQ program and that'll be that.
Well wait a second, I'm also trying to understand all these little tidbits of information I've been collecting as well. Since I've got my MiniWAS up and Mini me of WebAS 6.20 why not try to kill two birds with one stone so to speak?
With that I had my solution, I'll build a easy to use F.A.Q. program with BSP and incorporate some of the various things I've learned, figured out, discovered, and read about here. I'll make it simple and straight forward using just standard BSP and pages, no model view or anything that way I can share the code with everyone here as well.
So do I have you interested just yet? I've decided to break the weblogs into these parts in order to not cram your brains with too much at once. The complete code in a Transport request I hope from my MiniWAS will be submitted to SDN as a code sample as well. Teasers...
As you can see from the screen shots most of the program is done and I hope to supply each of these parts within a day or so of each other in order to keep the development momentum flowing.
Comments and suggestions are always welcome! You will need to start by creating a new package: ZCSC_FAQ. Now you will need to create your Dictionary Objects.
Tables
ZFAQ_CAT - Categories for your F.A.Q. ID INT4 NAME CHAR32 Name of the Category SRC CHAR10 Image source of the category e.g. @IY@@ CAT_DESC CHAR255 Description for the category
ZFAQ_DATA - Your F.A.Q.'s ID INT4 CAT_ID INT4 SUBJECT CHAR255 TITLE CHAR255 SHORT_DESC CHAR255 LONG_DESC TEXT URL CHAR255 RATING INT4 AUTHOR CHAR50 CDATE CHAR10
ZFAQ_SDNRSS - For accessing SDN RSS Feeds TITLE CHAR120 LINK CHAR255 DESCRIPTION CHAR255 CREATOR CHAR50 PDATE CHAR10 SUBJECT CHAR255
Now make the following Table Types.
ZFAQCATTAB, ZFAQFAQTAB, ZFAQSDNRSSTAB
Each should of course correspond to the three tables you just created.
Next make a ABAP report somewhere with the following code. This will populate the Category list with an inital category.