sap validation

Upload: sapfico2k8

Post on 03-Jun-2018

242 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/11/2019 SAP Validation

    1/47

  • 8/11/2019 SAP Validation

    2/47

    www.sapficoconsultant.com Page 2 SAP Validation Configuration

    2014 sapficoconsultant.com. All rights reserved. No part of this material shouldbe reproduced or transmitted in any form, or by any means, electronic ormechanical including photocopying, recording or by any information storageretrieval system without permission in writing fromwww.sapficoconsultant.com

    SAP is a trademark of SAP AG, Neurottstrasse 16, 69190 Walldorf, Germany.SAP AG is not the publisher of this material and is not responsible for it underany aspect.

    http://www.sapficoconsultant.com/http://www.sapficoconsultant.com/http://www.sapficoconsultant.com/
  • 8/11/2019 SAP Validation

    3/47

    www.sapficoconsultant.com Page 3 SAP Validation Configuration

    Table of Contents

    1. Validation Configuration ........................................................................................................................... 4

    2. Transporting Validation .......................................................................................................................... 36

    3. User Exits in Validation ........................................................................................................................... 40

    4. Assign the custom validation program to application area .................................................................... 45

  • 8/11/2019 SAP Validation

    4/47

    www.sapficoconsultant.com Page 4 SAP Validation Configuration

    1. Validation Configuration

    Let us understand how Validation is set up in SAP FI component.

    Scenario:-

    You are an SAP FICO Consultant on a project. The project client requires you to configure a validation in

    transaction code FB60, so that the text field is mandatory on the basic screen.

    Let us check in detail below:-

    In transaction code FB60

    Your project client wants the text field as mandatory (Circled below):-

  • 8/11/2019 SAP Validation

    5/47

    www.sapficoconsultant.com Page 5 SAP Validation Configuration

    This field is not the same a header text.

    Let us check that.

    Position the cursor on the field text

    Click on function key F1

  • 8/11/2019 SAP Validation

    6/47

    www.sapficoconsultant.com Page 6 SAP Validation Configuration

    Click on

    The field name is SGTXT as can be seen below:-

  • 8/11/2019 SAP Validation

    7/47

    www.sapficoconsultant.com Page 7 SAP Validation Configuration

    This field is not the same as the header text.

    Let us verify the same

    The header text is in the Tab Details

    Click on Tab Details

  • 8/11/2019 SAP Validation

    8/47

    www.sapficoconsultant.com Page 8 SAP Validation Configuration

    Check the technical details of this field

  • 8/11/2019 SAP Validation

    9/47

    www.sapficoconsultant.com Page 9 SAP Validation Configuration

    The BXTXT field if to be mandatory can be controlled through FI customizing:-

    SAP Customizing Implementation GuideFinancial Accounting (New)Financial Accounting Global

    Settings (New)DocumentDocument TypesDefine Document Types for Entry View

    The header text can be made mandatory by clicking on the Document header text.

  • 8/11/2019 SAP Validation

    10/47

    www.sapficoconsultant.com Page 10 SAP Validation Configuration

    But the requirement given here is a different field. Interesting isnt it?

    How do we configure this? Will It require validation? Whether it will be at header level or line item level

    or complete document level ?

    Think.

    Think..

  • 8/11/2019 SAP Validation

    11/47

    www.sapficoconsultant.com Page 11 SAP Validation Configuration

    Solution :-

    Validation is definitely required.

    The SGTXT is a field available in line item, and to make vendor text mandatory we have to set it at the

    vendor line item.

    How do we determine which is the vendor line item?

    For vendor invoice posting, posting key 31 is called in the background, so let us use that.

    SAP Customizing Implementation GuideFinancial AccountingFinancial Accounting Global Settings

    DocumentDocument HeaderValidation in Accounting Documents

    Click on

    Update the following:-

  • 8/11/2019 SAP Validation

    12/47

    www.sapficoconsultant.com Page 12 SAP Validation Configuration

    Click EnvironmentValidation

  • 8/11/2019 SAP Validation

    13/47

    www.sapficoconsultant.com Page 13 SAP Validation Configuration

  • 8/11/2019 SAP Validation

    14/47

    www.sapficoconsultant.com Page 14 SAP Validation Configuration

    Click

    Update the following:-

    Double click

  • 8/11/2019 SAP Validation

    15/47

    www.sapficoconsultant.com Page 15 SAP Validation Configuration

    Double click

  • 8/11/2019 SAP Validation

    16/47

    www.sapficoconsultant.com Page 16 SAP Validation Configuration

    Double click

  • 8/11/2019 SAP Validation

    17/47

    www.sapficoconsultant.com Page 17 SAP Validation Configuration

    Click

  • 8/11/2019 SAP Validation

    18/47

    www.sapficoconsultant.com Page 18 SAP Validation Configuration

    Click

  • 8/11/2019 SAP Validation

    19/47

    www.sapficoconsultant.com Page 19 SAP Validation Configuration

    Update the following:-

  • 8/11/2019 SAP Validation

    20/47

    www.sapficoconsultant.com Page 20 SAP Validation Configuration

    Click

  • 8/11/2019 SAP Validation

    21/47

    www.sapficoconsultant.com Page 21 SAP Validation Configuration

    Click back as shown below:-

  • 8/11/2019 SAP Validation

    22/47

    www.sapficoconsultant.com Page 22 SAP Validation Configuration

    Double click

  • 8/11/2019 SAP Validation

    23/47

    www.sapficoconsultant.com Page 23 SAP Validation Configuration

    Click and update posting key

  • 8/11/2019 SAP Validation

    24/47

    www.sapficoconsultant.com Page 24 SAP Validation Configuration

  • 8/11/2019 SAP Validation

    25/47

    www.sapficoconsultant.com Page 25 SAP Validation Configuration

    Double click

  • 8/11/2019 SAP Validation

    26/47

    www.sapficoconsultant.com Page 26 SAP Validation Configuration

    Click

    Click

  • 8/11/2019 SAP Validation

    27/47

    www.sapficoconsultant.com Page 27 SAP Validation Configuration

    Update the following:-

  • 8/11/2019 SAP Validation

    28/47

    www.sapficoconsultant.com Page 28 SAP Validation Configuration

    Click

    Double click

    And search for the field SGTXT

  • 8/11/2019 SAP Validation

    29/47

    www.sapficoconsultant.com Page 29 SAP Validation Configuration

    Double click BSEG-SGTXT

    Click

    Click

    Update the following:-

  • 8/11/2019 SAP Validation

    30/47

    www.sapficoconsultant.com Page 30 SAP Validation Configuration

    Keep it blank

  • 8/11/2019 SAP Validation

    31/47

    www.sapficoconsultant.com Page 31 SAP Validation Configuration

    Click

  • 8/11/2019 SAP Validation

    32/47

    www.sapficoconsultant.com Page 32 SAP Validation Configuration

    Click on

  • 8/11/2019 SAP Validation

    33/47

    www.sapficoconsultant.com Page 33 SAP Validation Configuration

    Click on Save

    Update the message number 900 in the validation message step

  • 8/11/2019 SAP Validation

    34/47

    www.sapficoconsultant.com Page 34 SAP Validation Configuration

    Click on Save

    Come back to the main validation window

  • 8/11/2019 SAP Validation

    35/47

    www.sapficoconsultant.com Page 35 SAP Validation Configuration

    Update as active

    Click on Save

  • 8/11/2019 SAP Validation

    36/47

    www.sapficoconsultant.com Page 36 SAP Validation Configuration

    2. Transporting Validation

    Validation objects are workbench object and have to be included manually in transport request.

    Proceed as follows:-

    Position the cursor on

    Click

  • 8/11/2019 SAP Validation

    37/47

    www.sapficoconsultant.com Page 37 SAP Validation Configuration

    Click Execute to include validation objects in transport.

    So in effect there will be 2 transport requests:-

    1) For the customizing entry

  • 8/11/2019 SAP Validation

    38/47

    www.sapficoconsultant.com Page 38 SAP Validation Configuration

    2) For the validation objects

    You are now done with validation customizing.

  • 8/11/2019 SAP Validation

    39/47

  • 8/11/2019 SAP Validation

    40/47

    www.sapficoconsultant.com Page 40 SAP Validation Configuration

    3. User Exits in Validation

    Sometimes the validation requirements are quite complex and cannot be done using the standard

    validation configuration.

    Example: Your project had a requirement that in transaction F-28 (Incoming payment from customer)

    the reference field must be of length 7 characters and should be prefixed with the letterCor L.

    In this case we definitely need to use a user exit.

    User exit steps:-

    RGGBR000 is an example form pool provided by SAP for validation exits.

    RGGBS000 is an example form pool provided by SAP for substitution exits

  • 8/11/2019 SAP Validation

    41/47

    www.sapficoconsultant.com Page 41 SAP Validation Configuration

    Transaction code: SE38

    Click on

  • 8/11/2019 SAP Validation

    42/47

    www.sapficoconsultant.com Page 42 SAP Validation Configuration

    Copy the standard RGGBR000into your custom program ZRGGB

    Define the user exit in the FORM GET_EXIT_TITLES

    This form GET_EXIT_TITLES contains name and titles of all available standard exits. Every new exit need

    to be added to this form.

  • 8/11/2019 SAP Validation

    43/47

    www.sapficoconsultant.com Page 43 SAP Validation Configuration

    We show below an example coding

    Exit name = UZ001

    Cr eat e a f orm

    &---------------------------------------------------------------------*

    *& Form UZ001

    *&---------------------------------------------------------------------*

    * text

    *----------------------------------------------------------------------*

    *

  • 8/11/2019 SAP Validation

    44/47

    www.sapficoconsultant.com Page 44 SAP Validation Configuration

    IF bkpf-xblnr IS INITIAL .

    b_result = b_false.

    EXIT .

    ELSEIF len > 7.

    b_result = b_false.

    EXIT .

    ELSEIF bkpf-xblnr(1) 'C' AND bkpf-xblnr(1) 'L'.

    b_result = b_false.

    EXIT .

    ELSE .

    b_result = b_true.

    EXIT .

    ENDIF .

    ELSE.

    b_result = b_true.

    ENDIF.

    ENDFORM. " UZ001

  • 8/11/2019 SAP Validation

    45/47

    www.sapficoconsultant.com Page 45 SAP Validation Configuration

    4. Assign the custom validation program to application area

    Transaction code:GGX2

    Or

    Path:

    SAP Customizing Implementation Guide Financial Accounting Special Purpose LedgerBasic

    SettingsUser ExitsMaintain Client-Specific User Exits

  • 8/11/2019 SAP Validation

    46/47

    www.sapficoconsultant.com Page 46 SAP Validation Configuration

    Remove the existing assignment from GBLR and update your new program ZRGGB

    Update the user exit UZ001 in the validation transaction in check

  • 8/11/2019 SAP Validation

    47/47

    If you have liked this document, please share it with your friends, colleagues, class mates.

    For many more such documents, visit our websitewww.sapficoconsultant.com

    http://www.sapficoconsultant.com/http://www.sapficoconsultant.com/http://www.sapficoconsultant.com/http://www.sapficoconsultant.com/