Month: August 2012

Home / 2012 / August (Page 3)

SAP Report: SELECT-OPTIONS in a layout screen.

Well, today I’ll get a little more technical for a change. I’m working on generating a new dashboard for service management, and one of the challenges that I needed to overcome was using Select-options in a layout screen and then feeding those options to a global class. Let’s start with the layout issue:
1. you need to define a subscreen. I usually put this in my _TOP with all my other data declarations. It would look something like this:
SELECTION-SCREEN BEGIN OF SCREEN 1301 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK slssel_1 WITH FRAME TITLE text-f10.
SELECT-OPTIONS:
vkorg FOR vbak-vkorg,
vtweg FOR vbak-vtweg,
spart FOR vbak-spart,
vkgrp FOR vbak-vkgrp,
vkbur FOR vbak-vkbur,
SELECTION-SCREEN END OF BLOCK slssel_1.

SELECTION-SCREEN: END OF SCREEN 1301.

This has a subscreen of 1301 (and it also has a box around this data to make it look nicer.

2. Once you have this subscreen declared, you need to go to SE51 and update your layout. You will need to go into the layout screen and place the subscreen in your desired location.
in my example, I’d call it SUB_1301. Be sure to make it large enough to hold all the fields (it’ll encompass your full width of the screen to hold all the fields).

3. Finally, you need to make a declaration for the new subscreen in your flow logic. Here’s a very simple example:

PROCESS BEFORE OUTPUT.
CALL SUBSCREEN SUB_1301 INCLUDING SY-REPID ‘1301’.

MODULE STATUS_0110.

PROCESS AFTER INPUT.
CALL SUBSCREEN SUB_1301.

Be sure to include a line for each PBO and PAI.
One of the big gotcha moments for me is that I can’t define my select-options as large as I’d like. I had to pare down my list so that i would fit int he screen. If you need everything, you would have to break it up into multiple screens. This may have to do with the fact that I’m using a tabbed layout.
Anyway, if you know of better ways to handle this, please let me know. I’m always interested in better ways code.
Happy coding,
Mike

Improving yourself with every car ride

Today’s post is going to move a little more toward bettering yourself. I’m gonna talk about self-improvement. I know it sounds like one of those weird things that new age people in California do, after doing yoga and meditation. At least, that’s what I thought at first. I got turned onto the stuff about 10 years ago, and I can honestly say it’s changed my life. It’s really easy to do. Get yourself an audio program, put it on your ipod/mp3 player and listen to that everyday in your car on the way to work, or on a morning jog. Now the great thing about the audio programs is that there are so many out there, I guarantee if you look, you’ll find something interesting. The best program I’ve found is by Brian Tracy, and it’s called the Psychology of Achievement. In short, it goes over some very simple ways to make yourself a happier, more productive and more fulfilled person. There are also programs that talk about running a business, marketing, sleeping better, learning faster, or learning a new language. The important lesson that I learned was that by listening to self help/self improvement stuff was that it made me a better person all around. I started making more money, I was having more and better ideas, I found the woman of my dreams and married her. All because I accidentally found these programs and started listening to them on the way to work. What do you have to lose? is your life getting better listening to the latest song on the radio? Mine sure wasn’t.
To get you started, here’s some of my favorite “authors”:
Brian Tracy (I”ve listened to a lot of his stuff, loved everything).
David DeAngelo – this program introduced to me Brian Tracy, along with a lot of other ideas.
John Cummuta, Zig Ziggler, and many others. If you’re interested in exact titles in my libary, just respond to this post. I’ll be happy to share.
Happy Listening,
Mike

Learning to Market – baby steps

Well, my continuing adventure of trying to sell my first product is certainly no cake-walk. I really thought the hard part was designing a good product. Turns out, it’s a lot tougher to find customers than to build something. Right now, I’m working on my “Consumer Awareness Guide”. I got this tip from an audio program called Piranha Marketing. I’ll talk more about audio programs a different day. Anyway, the Consumer Awareness guide is basically a couple page educational document to give to prospective customers. In essence, it’s a document to convince someone they need my services without actually selling. Not as easy as it sounds. You have to start by figuring out a lot of mistakes that people make and explain those mistakes. Short story, by educating your potential customers, you build rapport and credibility. I’m trying to finish mine now. If you want a copy, please let me know. I’d be happy to send you one… =)