Custom Develpment 107

Post on 22-Jul-2016

29 views 0 download

description

custom 107

Transcript of Custom Develpment 107

abap4fun@hotmail.com

Michelle Crapo

• SAP Mentor

• 1998 Technical Role / Functional Role / Technical Role

Teched

Objective

Requirements

Design

Build

Appendix – Other stuff

Design fast, accurate, performance tuned, reports that meet or exceed business expectations.

Critical

Paper Word Painter Screen

Shots

White

board

Napkin

Is there an SAP provided report with most of the data on it?

What do you want on the report?

How often does the information change?

Is there a special way the report should be displayed?

How are you doing this?

Pros Cons

Google Search http://wiki.sdn.sap.com/wiki/pages/recentlyupdated.action?key=Snippets

Look for something close

Change as much as you want

No Guarantees or warrantees

Usually only part of it will be coded in a snippet

Pros Cons

Already coded most of it

SAP upgrades are supported

Maintenance will be saved during notes or upgrades

Security may already be done

Takes time May not be the best

choice based on performance

How often will the new report be used?

SE93 – Short Text

If it looks like it can be used. One of the following have to be found: ◦ User Exit

◦ BADI

◦ Enhancement framework

Sustainability

Pros Cons

As good as the programmer is – can quickly crunch large amounts of data

Usually finding and using tables takes less time

Upgrades are a possible problem

Performance only as good as the programmer

Many different documentation for tables and links. Do a google search.

On of my favorite: ◦ http://www.recercat.cat/bitstream/handle/2072/54

19/PFCLopezRuizAnnex3.pdf?sequence=4

Always use F1 and then the tool to get the structure or table

Pros Cons

SAP Supplied

All logic already completed

Sustainability – upgrades and notes

Quick

May not handle large amount of data quickly

May not need all the data from the object

CHECK PERFORMANCE Could be hard to find

the SAP code

Easy to find BAPI via BAPI transaction

Function modules may be known or found via debug

Classes can be found using short description.

Again – google is your friend

Finally Code!!!!

EASY AND QUICK Excel ALV Structured ABAP SQL Many Others Webdynpro Dynpro VC JAVA

Pros Cons

Quicker – if it is a known way of programming

Don’t have to think about how it will be used in the future

Assume that it is only for one program

Quick and Dirty

Need to learn and be quick at programming using objects

Short term solutions can become long term

Can easily code with “old” format. That format would be found in objects.

Not Pretty

Hardest part will be the layout of the display – after all the design work has been completed.

Heading can be reused.

Pros Cons

Quick and easy layout

Used easily to design effective screens that work with users dynamically

Coding rules are enforced

QUICK

May not know how to use – learning curve

Many different examples on the internet.

One of my favorites that is in the example ◦ http://www.sdn.sap.com/irj/scn/go/portal/prtroot

/docs/library/uuid/eac1fa0b-0e01-0010-0990-8530de4908a6?QuickLink=index&overridelayout=true&5003637741929

Add as many fields as you can think of that make sense. Even if they are not requested, you can “hide” them via a layout and have them available later. (Weigh performance with how many fields you add.)

Program with layout as a parameter on the selection screen.

Allow for saving of layouts.

Pros Cons

A format that your business users know and love

Easy to do

Quick to code

Allows for business to change as they would like

Can create a very nice format

Learning curve Downloaded from

Code Exchange – like all custom code not supported by SAP.

Join Code Exchange on SCN

Become a member of the ABAP2XLS project ◦ Upgrades

◦ Improvements

◦ Forum for questions

ZDEMO_EXCEL* will give you access to a lot of demos. This is an easy way to create Excel Spreadsheets in a “pretty” format.

Pros Cons

Can be quick if using tables or pre-built Info-set

Not the best apperance

Performance can be REALLY poor

Probably the quickest method

Take a look at the performance

Be careful when using it a lot – There could be an underlying problem that is not being addressed.

Use a “cool”

tool Build Design

Requirement

Feedback Please complete a session evaluation for this session!

Odds and Ends

SE93

Check the fields

• System • Program Name

SMOD

Easy to use Enhancement Point At the beginning of the form and in the table POSTAB

Text, help documents, and a nice way to find them. The help document explains how to use them.

Use the wild cards to find the BAPI or function module. It can be limited further by the short text.

Use the wild cards to find the class. It can be limited further by the short text.

Examples ◦ BCALV* - check that it is an object example (

Method/Class)

BCALV_EDIT_01

BCALV_EDIT_02

BCALV_EDIT_03

BCALV_EDIT_04

BCALV_EDIT_05

BCALV_EDIT_06

BCALV_EDIT_07

BCALV_EDIT_08

• Transaction SE38 after the query is created will give you the program name.

• SE93 – Copy and paste the program name.

ABAPDOCU - Documentation

DWDM – Demos

OLE – Word and Excel demo

SE30 – Runtime analysis

ST05 – Trace

SAT – Newer runtime analysis

ABAP Editor - Set breakpoints for outside users now

Read text function module – READ_TEXT

Class

Structured

Function

Modules

Webdynpro

Dynpro

Workflow

BSP

BADI

SAP

Enhancement

Points