SAP Validation and substitution

  • View
    896

  • Download
    13

  • Category

    Software

Preview:

Citation preview

Validation & Substitutions ......GGB4

GGB4

Prepared By Guntupalli Hari Krishna Page 2

Validation(GGB0): Validation, which validates the values entered by the user.

Substitution(GGB1) : Substitution, which substitutes the correct values by removing the wrong

values entered by the user.

Activation of Validation -> OB28 Activation of Substitution -> OBBH

================================================================= Validation : Validation we can apply at Document header , line item, Complete document , Master data level.

GGB4

Prepared By Guntupalli Hari Krishna Page 3

Validation Example : company code : 1111 &TAMO for Business area 1111 or 111A only . ================================================================== Apply in IDES server in Prerequisite place change only company code '1111' and 'TAMO , Apply in IDES server Check step Business area : 1111, 111A. Perquisite step: BKPF-BUKRS = '1111' OR BKPF-BUKRS = 'TAMO'

Check step: BSEG-GSBER = '1111' OR BSEG-GSBER = '111A'

Message step: In this assign Message type , Message number ,Message text and Message variables .

GGB4

Prepared By Guntupalli Hari Krishna Page 4

GGB4

Prepared By Guntupalli Hari Krishna Page 5

GGB4

Prepared By Guntupalli Hari Krishna Page 6

T.CODE: SE91 Message Class Creation

GGB4

Prepared By Guntupalli Hari Krishna Page 7

GGB4

Prepared By Guntupalli Hari Krishna Page 8

Double click on Accounting Document Header

Click on find button search technical field name

Back Button or Previous level

GGB4

Prepared By Guntupalli Hari Krishna Page 9

Double click on Accounting Documet Segment

GGB4

Prepared By Guntupalli Hari Krishna Page 10

Double click on ABAP System Fields :

GGB4

Prepared By Guntupalli Hari Krishna Page 11

Test : T.code: FB50

GGB4

Prepared By Guntupalli Hari Krishna Page 12

For validations Breakpoint :

================================================================

GGB4

Prepared By Guntupalli Hari Krishna Page 13

Substitution : Substitution we can apply at Document header , line item, Complete

document , Master data, Order level. Apply in IDES server in Prerequisite place change only company code 'ABCD' BKPF-BLART = 'SA' AND BSEG-KOART = 'S' AND

BSEG-BUKRS = '1111'

We can apply at each sub module level like asset accounting , cost accounting , financial accounting and

profit center accounting .

GGB4

Prepared By Guntupalli Hari Krishna Page 14

GGB4

Prepared By Guntupalli Hari Krishna Page 15

GGB4

Prepared By Guntupalli Hari Krishna Page 16

GGB4

Prepared By Guntupalli Hari Krishna Page 17

GGB4

Prepared By Guntupalli Hari Krishna Page 18

Click on Insert subst.entry button

GGB4

Prepared By Guntupalli Hari Krishna Page 19

1) Constant value = Like any Profit center , Business area ,Functional Area .

2) Exit = Exit to apply

3) Field- Field Assignment

GGB4

Prepared By Guntupalli Hari Krishna Page 20

GGB4

Prepared By Guntupalli Hari Krishna Page 21

GGB4

Prepared By Guntupalli Hari Krishna Page 22

GGB4

Prepared By Guntupalli Hari Krishna Page 23

Activation of Substitution -> OBBH

Testing Part:

T.code: FB50

GGB4

Prepared By Guntupalli Hari Krishna Page 24

Transporting Validation :

Validation objects are workbench object

GGB4

Prepared By Guntupalli Hari Krishna Page 25

GGB4

Prepared By Guntupalli Hari Krishna Page 26

GGB4

Prepared By Guntupalli Hari Krishna Page 27

Substitution Transport Process :

GGB4

Prepared By Guntupalli Hari Krishna Page 28

GGB4

Prepared By Guntupalli Hari Krishna Page 29

GGB4

Prepared By Guntupalli Hari Krishna Page 30

Validation & Substitution Logics :

The user exits are available for Substitutions:-

1. GCX2 is the tcode for Assignment. 2. FIFB is the code for BTE assignment. 3. GB01 is the table for boolean data information

Validation requirements are quite complex and cannot be done using the standard validation config.

RGGBR000 Validation exits

RGGBS000 Substitution exits

GGB4

Prepared By Guntupalli Hari Krishna Page 31

T.CODE : GCX2

GGB4

Prepared By Guntupalli Hari Krishna Page 32

http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-

+FB60+for+Partner+Bank+Type

( The above link example of substitution user exit )

More Example of validation and Substitution :

=================================================================================

Prerequisite: BKPF-BLART='KR' OR BKPF-BLART='RE'

Validation : Not (BSEG-MWSKZ='V1' OR BSEG-MWSKZ='V2'

Message : " Please do not use old tax codes"

=================================================================================

Validation and substitution Tables :

validation & substitution - transaction variant

Restricting/Unrestricting Fields for Substitutions and Validations

Thank You

for Your Time !

Recommended