sap

Home / Posts tagged "sap" (Page 5)

Web Dynpro – Select-Options – Overview of the process

Finally, I get around to my first post about Web Dynpro.  I’m starting simple and replicating the selection screen for Broadsword, my service dashboard.  So any good selection screen usually has some select options.  So I wanted to pass along my lessons learned and a little bit of code too.  For starters, how do you create the select-options.  There isn’t an object that you can drop onto the screen for SELECT-OPTIONS.  You need to put a little more effort into adding it.

1. Create a create a component on the Used Component Tab of the Web Dynpro Component.  component use:  usage_so (for example) Component: WDR_SELECT_OPTIONS
2. Add the component to the view (properties tab).  Be sure to add both options (one with the controller, one without the controller).
3.  On the layout of the View, add a ViewContainerUIElement to the screen where you want to place it.
4.  Create a method for the View, INIT_SELECT_OPTIONS.  this method is where you will define the actual fields and layout.  We’ll discuss this in more detail tomorrow.  You can use the following methods:  add_selection_field or add_selection_fields.
5.  Update the WDDOINIT method, add the line:    wd_this->init_select_options( ).
6.  Attach the component to the ViewContainerUIelement in the window.  You will embed the WND_SELECTION_SCREEN to the ViewContainer in order to make the connection.

Alright, that’s enough for this post.  Tomorrow I’ll talk about the code for INIT_SELECT_OPTIONS.  Hope this information on SELECT-OPTIONS is useful.

 

Service Availability

It’s been a while since I talked service, so I thought I’d start posting some simple tips and tricks again.  In case you forgot, and if you read my blog often you might have, I’m actually a functional consultant, not a basis guy =)  Service and VC are favorite areas to work in.  I think they provide an interesting set of challenges and are often areas where it is hard to find good people (which is awesome for me).  Anyway, I’m working on a 5 – 10 part course talking about the basics of service management.  I haven’t decided how long it will end up being, so stay tuned.  I have so much in the hopper, but I want to actually show you guys I do know something about SM, service availability.

Today, I want to talk about Service Availability.  I’ve seen it used sporadically in places, but never very well.  So I want to talk about the how and why.  Now, before I get into the meat of the topic, let me explain why this part is important.  Just as in sales, knowing if all of the components are available is extremely important to managing your workload.  SAP provides the same availability functionality in the service order as it does in the production (except of course, running it in mass…  but for that, check Armory by JaveLLin Solutions. couldn’t help the shameless plug).  Transaction IWBK is actually a good transaction to show you all of the availability associated with a service order, and it even gives you fancy traffic lights to let you know at a glimpse if everything is available.  In addition, the status of the service order itself lets you know if all components are available.

Now, you may be asking, why do I care?  Often you have a decent workload of service orders and you require components in order to begin work on them.  Wouldn’t it be nice to see at a glance if all the components are available to know if you should start working on the order?  Perhaps you released the order to get some MRP requirements out there for parts.  Well, if you don’t know when the parts are available, how do you know when you can start working on the order?  Meanwhile, the clock is ticking for getting this part back to the customer.  Your metrics look worse and worse, all because you don’t know if you have parts to start working on a repair.

Alright, you understand the problem, so what can you do about it?  First thing you need to do is make sure the availability check is configured the way you need it.  Just like the availability for sales and production orders, you can have a unique one for service (or more often you’ll use the same one that production uses).  The screen shot below shows you were to find the configuration to see what in the system.

If you look at the Define Checking Rules, you’ll see the following.  Please note, SM is the default.

Next go the Define Scope of Check…  this is where the real work is done.

Remember, that the scope of check can be different depending on the material availability check.

This example shows 02 – SM

Every one of these options determines things that either availability includes or excludes.  Every organization is different, so I can’t tell you there are default settings to use.  I can tell you that you should experiment with whatever you do select.  Have a service order with some components and make sure your settings do what you expect.  ATP is touchy…  powerful, but touchy…  in my e-class, I’ll go into more details about the exact settings.

finally, you need to assign the availability check to the plant/order.  And you also can change the check for creation vs. release.

Here’s the settings you can control:

Alright, now that you’ve seen where to configure the availability check, you should understand how to run it…

Well, it’s pretty simple.  SAP only offers one place to execute availability.  IW32.

Press this button to availability.  There are several important system status that relate to availability:

MANC – Availability not checked
MSPT – Missing parts
MACM – All parts Available

If you use IW38/IW39 or Iw72/Iw73 and you look at system status, this will give you the quick look to determine if you have components available or not.  Please note, this doesn’t do a hard allocation of the components.  it simply says, based on the availability check (see above) that it is in stock.

I hope this little overview gives you an understanding why availability could be an important piece of service that you’ve overlooked.

Thanks for reading,

Mike

Mail Chimp – Newsletters made easy

I just had my first experience with Mail Chimp, and what I can, I’m hooked. I signed up for the free version, uploaded a list of contacts from an excel sheet, put together a slick post card, and have been tracking my results. Previously, I’ve been using a hokey macro that I found online (and of course tweaked) to send emails to my contact list. Using Outlook, there was no tracking, I could only send txt or html (both of which I had to completely design).
I can’t begin to express how much easier Mail Chimp made my life. It handles the subscriptions, I can upload a list, or build a list using a form I added on the website. this was another really cool piece. Mail Chimp lets you design a subscribe form, and then gives you the HTML to put onto your website, or gives you a link to use their form. I haven’t scratched the surface yet, but now I can do newsletters/emails to my list. i didn’t even mention the many templates they have out there to make professional looking emails, newsletters, or whatever you need to send to a group.
I’ll be posting again in the new future when I start to figure out how to do the auto-responder piece. This part you have to pay for, but I do like the idea that you can do a pay as you go format, and then switch over to a monthly fee. When I figure out how it works, I’ll share it with you.
Thanks for reading… I’ll keep learning the hard way, so you don’t have to…
Mike

Basis – Changing the Instance Number of an Installed SAP system

I’m back in basis land yet again. What I discovered is that in order to connect to multiple systems existing on the same server, they must have a unique instance number. After all these years, I finally understand what the instance number does =) Since several of my SAP systems exist in the same server name, I had to make a change. I installed everything in 00, not know any better.
Well after some internet research, I discovered how to do this (at least for the ERP systems).
1. Go to the profiles directory. For me it was: C:\usr\sap\<SID>\sys\profile\
2. There are 3 files in this directory that you need to visit. (keep in mind, depending on the parameters, you may or may not have things to update).
a.<SID>_DVEBMGS<NR>_<Server name>
b. START_DVEBMGS<NR>_<server name>
c. DEFAULT.PFL
For the 3 files, replace every instance of DVEBMGS<old NR> with DVEBMGS<new NR>, sapgw with sapgw, and SAPSYSTEM = <Old NR> with <new NR>.
3. Next rename the directory DVEBMGS<old NR> with DVEBMGS<new NR>
4. open up the command prompt cmd.exe
5. Execute the following command: C:\usr\sap\<SID>\sys\exe\uc\ntamd64\sapstartsrv.exe -r -s <system> -n <NR> -p C:\usr\sap\<SID>\SYS\profile\START_DVEBMGS<NR>_<server> -U .\SAPService<SID> -P <password> -q
6. Execute: C:\usr\sap\<SID>\sys\exe\uc\ntamd64\ntenv2reg Select the new service.
7. Now restart the server, and you should be able to start the system with the new instance number.
8. Don’t forget to update your logon pad to the new instance for the system.

Now, I tried these same steps on my 4.7 system, and I couldn’t get it to work. I’ll try it again later, and if I get it working, I’ll let you know.
Good luck,
Mike

OMWD – The key to material cost estimates

After lots of digging and some help from google, I finally found what I was missing to make material cost estimates.  The following transaction all needed some tweaking in order to make my materials finally cost properly.

KA01 – needed to create a bunch of cost elements.
FS00 – needed to create some G/L accounts

the list of things to create, came from:  OBYC & OKTZ.  I had to dig through and use the error message to get to the right area, but for me, it was GBB, and my valuation area was empty, this finally led me to OMWD.  the missing piece of my puzzle.

It’s a relief to finally have that working…  now, on to posting some service order costs.

 

SAP Data Loading… Still going

Wow… what can I say? I didn’t expect to still be loading data into my EHP4 system.  I’m working really hard to get a good baseline of data to cover the major areas.  last night, I spent my time trying to get materials to cost, so the cost will show properly on the service/production orders.  let me tell you, I’m not cut out to be a FICO consultant.  I’ve been digging for what feels like hours, and still can’t over come my error.  Tonight, I’ll take another pass.  I have to say, couldn’t have accomplished this much without GUI script, but I’ll be very glad to get the last of the data loaded into the system tonight (provided the material costing errors finally get resolved).
otherwise, getting geared up to start Web Dynpro is pretty excited.

Configuring the new SAP system – Enterprise Structure

Since I’ve spent so much time working getting my new EHP4 system up and running, I thought I’d talk a little about the configuration you need.  Now if you read my last post, Transports in SAP – reusing dev and config between non-connected systems, you’ll see you can do this once and then move it around.  But, you still have to do it once.
One of the biggest pieces is the enterprise structure.  SAP provides you with one, but in general, you want a more robust structure, so you typically copy the existing one and then make changes.  SAP has an entire menu in the SPRO configuration dedicated to this.  they also have a group of transaction codes:  EC01 – EC16 (I think).  This is the shortcut.
Now to make the bare minimum, here’s what you should consider copying:
Company Code
Plant(usually do at least 2)
Sales Org
Distribution Channel
Division (usually do several of these)
Purchasing Org
Warehouse (if you use WM)
Shipping point (typically 1 or 2 per plant)
Storage Locations

Now keep in mind, even when you copy this stuff, you’ll still need to go into the assignments and make some changes.  For example, when you create a new plant (I encourage you to copy), you’ll still need to go to the enterprise structure Assignment area, and connect the plant to the new company code (same goes for the sales org, purchasing org, etc.)  Pretty much everything you need to worry about is in the enterprise structure configuration folder, but there are some exceptions.

1.  If your company code is in a different country/currency than DE, you might need to maintain the tax classifications for the material and the customer.  (this is in the Sales and Distribution–>basic functions–>tax area).  You’ll also need to turn the company code on for materials management (otherwise you can’t extend a material to the plant if it’s in a new company code).  It’s lots of effort, but when you’re done, it’s worth the work.

happy configuring..

Mike

SAP Transports – reusing dev and config between non-connected systems

For small shops, like me, it’s a lot of infrastructure to to have a bunch of systems mapped to each other.  In addition, I have multiple active versions of SAP in order to allow me to test for different customers.  In that case, it’s even more complicated.  So, if you’ve read any of my earlier posts, you know that I use virtual-box to maintain my different systems.  Infrastructure – Setting up SAP on a budget  Now, that leaves me to either add all of my configuration over and over every time I create a new system.  I don’t like that idea 🙂  So I found out that you can grab two files and place them in a new system and import them, and magically you’re configuration has moved.   Here’s what you need to do to use SAP transports to handle this for you:

In the source system, as long as you properly configured STMS and do not use local objects, simple release the transport you want to move.  You will find the files you need in 2 directories:
C:\usr\sap\trans\cofiles

C:\usr\sap\trans\data

the files are the transport #.  So grab those 2 files.  I use dropbox to move these files from virtual systems.  But you can use any method you choose to get the files where you need them.
next is to put the files back into the same directories in the target system.

Now, go to STMS, drill into the main system (not the virtual system)
go to the Import Overview, and double click into the main system
Use the menu:  extras–>other requests–>add

now type in the transport name from the source system.  <SID>k<num>.

if everything is configured properly, if will import it just like any other transport.

Hope you find this useful,

Mike

Applying SAP Support Packs

I have had my basis hat on a lot lately, so I might as well cover another piece of the basis puzzle.  For anyone like me, you don’t have a lot of time to figure out exactly how to upgrade the system, but you want the stability (at least usually) that comes with an updated system.  For me, I was trying to upgrade my system to a point that my BSP application would be supported on the Mozilla Firefox browser.  I’ll talk more about this at a later time (I’m still collecting details on that portion).  Needless to say, I read an OSS message that said, get to support 19, and I was at 12.  So today I thought I’d talk about applying SAP support packs.
Step 1. Figure out the components you’ll need to update, and what your current version is.  If you go to system->status, and look at the detailed levels, you’ll see things like BASIS, ABAP, etc…  based on the OSS message, you’ll what you need to update.  Find the component, and then find the SAP naming convention.  For example the BASIS stuff is KB700<XX>.  This is important because it’s an easy shortcut to download exactly what you need.
Step 2.  go to service.sap.com and head to the software area: and select the Search for Software Downloads.  Take the naming convention from above and one by one, find the pieces you need.  If you need a lot, it’s probably faster to go to the support section.  Me, was only doing 6 files.
Step 3.  Once everything is downloaded, log into SAP (your dev system/client) and go to transaction SPAM.  Select the import and one by one, import each of the files you downloaded.  Don’t apply the packs one by one…  it’s a long enough process, so do the whole group at once.
Step 4.  Once all the pieces have been imported, press the truck to start a new “installation”.  you’ll have the options to select the area you want to update, for example BASIS.  It will show you all the new imports and will lump them into a package.  From here, just keep hitting OK.  Give yourself plenty of time to be without the system.  This could easily take several hours based on the power of your system.
***  Note:  you might have to upgrade your SAINT as well.  If this happens, you’ll get a message that support pack XXX must have SAINT version YY.  Simply repeat step 2 & 3 for the SAINT update.  There is another menu option to update the SAINT.  run this, and wait for it to finish.  It typically takes a while, and sometimes even shortdumps.  If this happens, you can generally jsut log back in and restart the process.  It will pick up where you left off and finish up the install.  Then you can go back to step 4.
Step 5.  Run SGEN.  I’ll typically pick the software component to update, but feel free to select what works best for you.  Short story, this will help compile the thousands of program that need it, and hopefully save you quite a bit of time for every transaction you visit for the first time.
If all goes well, your system is running better than ever after the update…
Good luck,

Mike

SAP Webgui – Turning it on

Well, now that I have someone else working with me, I needed to be able to get the system up and running so he can help with testing and data stuff.  Since logging into SAP doesn’t always work behind a firewall, I figured I should get the SAP webgui turned on.  Well, I stumbled upon a blog: (I just subscribed to his RSS, since I can always use extra basis help).

https://sapbasis.wordpress.com/

Anyway, here are the simple steps to turning on the SAP webgui (provided your server is available to the outside world.  See my previous post: http://paperstreetenterprises.com/networking-sap…l-server-world/

Check if you have activated:
1) With transaction SICF and locate the services by path
/sap/public/bc/its/mimes
/sap/bc/gui/sap/its/webgui

2)With Transaction SE80 locate from the menu, Utilities –> Settings–>Internet Transaction Server (Tab)–>Publish (Tab) and set “On Selected
Site” = INTERNAL.
This restricts the publication in the next step to the integrated (internal) ITS.  Please note, on my ERP 6.0 SR3 system I didn’t need to do this.  My system was already set to INTERNAL.

3)In SE80 only, Locate the Internet Services: SYSTEM and WEBGUI.
Publish these services with the Context Menu -> Publish -> Complete Service

4)Now Browse to http://<server>:<icmport>/sap/bc/gui/sap/its/webgui/! and login to the webgui.

Thanks for reading…