You are on page 1of 131

BAPIs @ EMAX Technologies We Never Compromise in Quality. Would You ?

&

4ri

Subtype

-~~...""-<'

Categaty

-"
""

+%',
.. . .

Object type

C..:x I n t e r f a c e t y p e
....

3. In the next dialog box, enter the required de


In the field Supertype, enter the name of t create a subtype. In the field Object type, enter the name e for wi5ich you want to
z;&"3;3

% !

8:~

a'8t to create.

information in the remaining fields.


C % ? a a - a g r ; a C?fi2e~t p e Z.iBUSi01@2432? Ty

a n
Object
E3

O%.

67

[e

Program

Parameters

Exceptions

type

ZBUS0002

Company Codes

m InterTaces
Key T i e l d s CompanycocieIci
O

LCompanyCodes

company code

~~e~m~"FznYxaaw~~:c.OR-~% ~ "2?TL, . % ,, . "


CompanyCodes G e t L ~ s t CompanyCodes GetDeta71 C o m p a n y C ~ d eE x i s t e n c e c h e c k ~ Companytodes G a t P e r i o d Companycodes. G e t R e l a t e d o b j e c t s COmpanyCodeS. Un7 7 nkFrOrnOb~ c t e CompanyCodes L i nkToOb3 e c t CompanyCode~G e t O b J e c t s CompanyCodes E d i t CornpanyCodes D e l e t e ComwanyCodes.Create Com~anycoaes D i s p l a y

CompanyCodes s n o w o b j e c t s Companycodes S h o w R e l a t i o n s CompanyCodes Admi n i s t e y . y

Org
COPY

oaject ob3 e c t

admi n i s t r a t i on

,.

O L 2 s t OP Company Codes

O
O
Q

v w v

v
w

.. ,
v

v w

r'"_-----

Company Code Deta, 1 s ctieck 7 T ornpany code e x i s t s Determine p e r i o d Tor g o s t i n g datelcomoany L i nked o n j e c t s D e l e t e 1,nk ~,i,k iu,th o a ~ e c t RI1 ObJec-s L75t Of Change ObJ e c t Del e t e O , e c t b create obi e t a i s ~ l obj e c t ay - -v7 ds< * w

code

---

__

- ._

-"

Observe that al1 the Attributes and Methods are Copied from Super type to Subtype.

Page 99 of 112

Compiled By : Ganapati Adimulam eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Ce11 No: 99484 44808,98490 34399, www.emaxtech.com

BAPIs @ EMAX Technologies We Never Compromise in Quality. Would You ?


2. Change the definition of the inherited BAPl for the subtvpe.
O

You can add additional parameters, for example, or modify the implementation of the BAPI.

The following implementation options are available for modifications: Creating a new function module Compatible modifications to the superior functiori module Creating the implementing function module as a copy of the superior function module

3. If modifications have been made, you must red the subtype in the BOR. 'The steps required to redefine aiBAPl aFe described in Redefining BAPls
To redefine a BAPl of a subty &' perform the following steps.

.&

jd&$\

1. Choose Tools - ~ u s i n e s s ~ ~ r ~ q e y o r k l Development -2Business -> BAP Object Builder or enter transacqon code SWOl . 2. Display the subtype just created inktbe:change mode. 3. Position the cursor on the B A ~ ~ ~ aO to-modify and choose Edit -2Redefine. ~ nU ' t
3

X# 7

?a

0b3ect t y p e

Rename
Delete c h a n g e I e I e a s e status

m nttri

Metho

Cncei

CompanyCodes CompenyCodes CompanyCodes Companycodes ComoanuCades

L i nkToObj e c t GetObj e c t s Edit Del e t e Create

./ .,
w

Display A l 1 Objects Di Spl a y R e 1 a t i o n s h i p s erg. *ri> ~ c adrrii n i s t r a t i o n t COO71 O h l SC* ~1 of- cnmoan Codes Checn l i c o m o a ~ y code e x i s t s D e t e r m i ne p e r i od f o r p o s t i n g d a t e L i nned Ubl e c t s Delete i i i n Link with object L i s t o f ~ l bl e c t s o 3 Change O b ) e c t Del e t e 00) e c t C r e a t e ob3 e c t D s p l ay o b e c t , ~ Company Code D e t a i 1 s

Li

Code

4. Double-click on the BAPl and select the ABAP/4 register. 5. In the Name field of the modified function module enter and Save your information.

Page 100 of 112

Compiled By : Ganapati Adimulam

eMax Technologies,Ameerpet,Hyderabad Ph No: +9140 -65976727, Ce11 No: 99484 44808,98490 34399, www.emaxtech.com

You might also like