AC202_EN_Col92_FV_Part_A4 (第7页)

第 235 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

Createavariantforthewriteprogram. NamethevariantWrite_##(##=

yourgroupnumber). Maintainthesequentialcontrolofthevariantinsucha

mannerthatArchivingwithDeletionisexecuted. Thenschedulethewrite

program(withstartdateImmediate)andthepredefinedspoolparameters.

Note: Ifpostingperiodsarestillopenfortheyeartobearchived,

archiving is not possible. SAP Easy Access → Accounting →

Financial Accounting → General Ledger → Environment →

Current Settings → Open and Close Posting Periods. Close the

fiscalyearto bearchivedfor variant9000.

a) IntheinitialscreenoftransactionSARA,enterthevalueFI_TF_GLF

(G/Ltransactionfigures)intheArchivingObjectfieldandchooseWrite.

In the following screen, enter the value Write_## in the Variant

field(##isyourgroupnumber)andchoosetheMaintainpushbutton.

ConfirmthefollowingscreenwithContinue. Onthesubsequentscreen

MaintainVariant: ReportFI_TF_GLF_WRI,VariantWrite_##,enter

thefollowingvaluesintheArchivingquantityselectionarea:

Ledger 0L

Company Code AC##

Account Number 113101

Record Type Actual data + plan

data

To Fiscal Year Current fiscal year

minus 2

MarkthefollowingareasintheProgramcontrolarea:

Test Mode X

Detail Log Complete

Then choose the Attributes pushbutton. Enter a meaningful short

descriptioninthe MeaningfieldandchooseSave(diskettesymbol).

Youthengobacktotheoverviewscreenforvariantmaintenance.

ChooseBack(greenarrow). OntheArchiveAdministration: Create

ArchiveFilesinitialscreen,choosetheStartDatepushbutton.Onthe

followingscreen,chooseImmediateandthenSave.

NowconfirmthespoolparametersbychoosingtheSpoolparameters

pushbutton,enteringLP01astheoutputdeviceonthefollowingscreen

and then choosing Continue.

Continued on next page

221

2009 © 2009 SAP AG. All rights reserved.

Ledger 0L
Company Code AC##
Account Number 113101
Record Type Actual data + plan data
To Fiscal Year Current fiscal year minus 2
Test Mode X
Detail Log Complete

第 236 页 / 共 273 页

Unit4: ArchivingFI AC202

Finally,selectExecute(F8)intheSARAtransaction;thesystemissues

the following feedbackviathestatusbar:

Thefollowingmessageappears: Newarchivejobscheduled.

Display the spool list.

Intheinitial screen of ArchiveAdministration(transaction SARA),

enterthevalueFI_TF_GLFintheArchivingObjectfieldandchoose

Job Overview (Job symbol in the application toolbar). The system

displaysan overviewof thearchivingjobsthat youhavescheduled.

SelectthelinewiththejobARV_FI_TF_GLC_WRI<timestamp>and

chooseDisplaySpoolList. Inthenextscreen,selectthelinewiththe

spoollistandchooseDisplayContent(glassessymbol).

(Ifnecessary, youcanincreasethenumberofpagesshownusingthe

Settings pushbutton.)

Usethebinocularstosearchforaccount113101.

4. Nowusethewriteprogramtoexecuteaproductiverunforthearchiving

of transactionfiguresforthefiscal yearsuptoandincludingthecurrent

yearminus2yearsfortheG/Laccountsofyourcompanycode. Alsodisplay

a detail log in this case.

To do this, create anew variant Write_##_P.

Continued on next page

222

©2009SAPAG.Allrightsreserved. 2009

第 237 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

Thenusethespoollistto checktheprocedure.

a) IntheinitialscreenoftransactionSARA,enterthevalueFI_TF_GLF

(G/Ltransactionfigures)intheArchivingObjectfieldandchooseWrite.

In the following screen, enter the value Write_##_P (## is your

groupnumber)intheVariantfieldandchoosetheMaintainpushbutton.

Confirm the following screen with Continue. In the subsequent

MaintainVariant: FI_MONTHLY_WRI,VariantWrite_##screen,enter

thefollowingvaluesintheArchivingquantityselectionarea:

Company Code AC##

Account Number 113101

Record Type Actual data + plan

data

To Fiscal Year Current fiscal year

minus 2

SelectthefollowingareasintheProgramcontrolarea:

Test Mode Do not select

Production Mode Set indicator

Detail Log Complete

Then select Attributes. Enter a meaningful short description in the

Meaning field and choose Save. You then go back to the overview

screen for variant maintenance.

ChooseBack(greenarrow). OntheArchiveAdministration: Create

ArchiveFilesinitialscreen,choosetheStartDatepushbutton. Onthe

followingscreen,chooseImmediateandthenSave.

NowconfirmthespoolparametersbychoosingtheSpoolparameters

pushbutton,enteringLP01astheoutputdeviceonthefollowingscreen

and then choosing Continue.

Displaythespoollistforthisjobandusethebinocularstosearchfor

account 113101.

Then return to the job overview, leave the job selected and choose

Display job log. Among other things, you see which file has been

created inwhichpath at operating systemlevel. Notethenameand

path of the file.

Continued on next page

223

2009 © 2009 SAP AG. All rights reserved.

Company Code AC##
Account Number 113101
Record Type Actual data + plan data
To Fiscal Year Current fiscal year minus 2
Test Mode Do not select
Production Mode Set indicator
Detail Log Complete

第 238 页 / 共 273 页

Unit4: ArchivingFI AC202

5. DisplaythetransactioncodesforG/Laccount113101ofyourcompanycode

forthefollowingfiscalyears: currentFYminus2andcurrentFYminus1.

a) ChooseSAPEasyAccess→Accounting→FinancialAccounting→

GeneralLedger→Account→DisplayBalances(New).

Account Number 113101

Company Code AC##

Fiscal Year Currentfiscalyearminus2

Business Area Leave blank

Execute the transaction (F8).

224

©2009SAPAG.Allrightsreserved. 2009

Account Number 113101
Company Code AC##
Fiscal Year Currentfiscalyearminus2
Business Area Leave blank

第 239 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

Exercise 15: Archiving G/L Account

Master Data

Exercise Objectives

After completingthisexercise, youwillbeableto:

• Archive G/L account master data

Business Example

YouwanttodeleteG/Laccountsfromthesystemthatarenolongerrequiredfor

postingbyadepartmentandforwhichnodocumentsortransactionfigures(still)

exist. ThisisaccomplishedbyarchivinginconsultationwithBasisSupport, FI

System Support and the department.

Task 1:

In preparation for archiving a G/L account master record, create a new G/L

account (1111##) for your company code AC##. Then set a deletion flag for

the new account.

1. CreateG/Laccount1111##foryourcompanycodeAC##.

2. Setadeletionflagforaccount1111##inthechartofaccountsandforyour

company code.

Task 2:

First execute the preparatory steps to archive G/L accounts (archiving

object-specific Customizing).

Fortestingpurposes,thenexecuteatestruntoarchiveyourG/Laccount.

Note: Note: Instep1,thecompanycodesegmentisarchived,thechartof

accounts segment is archived in step 2.

Evaluatethespool list and examinethejob log.

ArchivethegivenG/Laccountusingthewriteprogram(productionmode).

CheckwhetheryoucandisplayG/Laccount1111##usingtheapplication.

1. Perform archiving object-specific Customizingfor the FI_ACCOUNT

archiving object.

Inarchivingobject-specificCustomizingfortheFI_ACCOUNTarchiving

object, define one variant each for the deletion program (test mode /

productionmode,withthenameTEST_##orPROD_##,where##isyour

Continued on next page

225

2009 © 2009 SAP AG. All rights reserved.

第 240 页 / 共 273 页

Unit4: ArchivingFI AC202

groupnumber)andmaintaintheprocessingoptionsforthesevariants. Then

maintaintheattributesofthevariantsandsavethevariants. Makesurethat

the delete job has been scheduled. Also ensure that thelogical filename

ARCHIVE_DATA_FILEisassignedtoobjectnameFI_ACCOUNT.

2. Fortestingpurposes,thenexecuteatestruntoarchiveyourG/Laccount.

The write program (in the test run) must be scheduled, executed and

monitored.

Createavariantforthewriteprogram. NamethevariantWrite_S_TB##

(##=yourgroupnumber). Maintainthesequentialcontrolofthevariantin

such a manner that Archiving with Deletion is executed. Then schedule

the write program (with start date Immediate) and the predefined spool

parameters.

3. Displaythespoollistandthejoblogofthearchivingsession.

4. Nowexecutethewritingprogramagain,thistimeinaproductionrunand

withthegenerationofadetaillog. Checkthespoollistandthejoblog.

Todothis, createanewvariantWrite_S_P##.

5. Optional: Instep2,youcanarchivethechartofaccountssegment.

6. Check whether you can display account 1111## for your company code

from the application.

226

©2009SAPAG.Allrightsreserved. 2009

第 241 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

Solution 15: Archiving G/L Account

Master Data

Task 1:

In preparation for archiving a G/L account master record, create a new G/L

account (1111##) for your company code AC##. Then set a deletion flag for

the new account.

1. CreateG/Laccount1111##foryourcompanycodeAC##.

a) Create the G/L account as follows:

SAPEasyAccess→Accounting→FinancialAccounting→General

Ledger→MasterRecords→G/LAccounts→IndividualProcessing

→ Centrally

G/L Account 1111##

Company Code AC##

Clickthe“CreatewithTemplate”pushbutton.

Enter the following values:

ReferenceAccount 113100

Company Code AC##

Continue (Enter)

EnterthefollowingvaluesintheType/Descriptiontab:

Short text Test Archiving

G/L accountlongtext Test Archiving

On the Control Data tab page, delete the entry in the Alternative

account no. field.

Save (diskette pushbutton) the account and confirm the following

message with Continue.

Continued on next page

227

2009 © 2009 SAP AG. All rights reserved.

G/L Account 1111##
Company Code AC##
ReferenceAccount 113100
Company Code AC##
Short text Test Archiving
G/L accountlongtext Test Archiving

第 242 页 / 共 273 页

Unit4: ArchivingFI AC202

2. Setadeletionflagforaccount1111##inthechartofaccountsandforyour

company code.

a) Click the "Mark for deletion" pushbutton (barrel symbol) or,

alternatively,usethemenupathG/Laccount→Setdeleteflag.

Set the following switches:

Deletionflagin C/A: Deletionflag X

Deletionflagincompanycode: Deletionflag X

Saveyourentriesusingthediskettepushbuttonor,alternatively,using

menu path G/L account → Save.

Task 2:

First execute the preparatory steps to archive G/L accounts (archiving

object-specific Customizing).

Fortestingpurposes,thenexecuteatestruntoarchiveyourG/Laccount.

Note: Note: Instep1,thecompanycodesegmentisarchived,thechartof

accounts segment is archived in step 2.

Evaluatethespool list and examine thejob log.

ArchivethegivenG/Laccountusingthewriteprogram(productionmode).

CheckwhetheryoucandisplayG/Laccount1111##usingtheapplication.

1. Perform archiving object-specific Customizingfor the FI_ACCOUNT

archiving object.

Inarchivingobject-specificCustomizingfortheFI_ACCOUNTarchiving

object, define one variant each for the deletion program (test mode /

productionmode,withthenameTEST_##orPROD_##,where##isyour

groupnumber)andmaintaintheprocessingoptionsforthesevariants. Then

Continued on next page

228

©2009SAPAG.Allrightsreserved. 2009

Deletionflagin C/A: Deletionflag X
Deletionflagincompanycode: Deletionflag X

第 243 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

maintaintheattributesofthevariantsandsavethevariants. Makesurethat

the delete jobhasbeenscheduled. Also ensure that thelogical filename

ARCHIVE_DATA_FILEisassignedtoobjectnameFI_ACCOUNT.

a) ChooseSAPEasyAccess→Accounting→FinancialAccounting→

GeneralLedger→PeriodicProcessing→Archiving→G/LAccounts.

ThedefaultobjectnameisFI_ACCOUNT.Alternatively,youcanuse

theSARAtransaction(FI_ACCOUNTentry).

ChoosetheCustomizingpushbutton. Onthenextscreen, choosethe

TechnicalSettingslineintheArchivingObject-SpecificCustomizing:

area and choose Execute to the left of the line. Ensure that value

ARCHIVE_DATA_FILEisintheLogicalFileNameentryfield. Also

ensurethattheStartAutomaticallyradiobuttonisselectedintheDelete

Jobs area.

In the Test Mode Variant field, enter TEST_## (## = your group

number). ChoosetheVariantpushbuttonforthisentrylineandconfirm

thefollowingscreenwithContinueaftersettingthe“ForAllSelection

Screens” indicator. In the following screen, select the Test Mode

indicatorandDetailLogandchoosetheAttributespushbutton. Inthe

followingscreen,enterameaningfulshortdescriptionofyourvariant

in the Meaning field and chooseSave.

Press Back (F3) to jump back to theChange View "Customizing

ViewforArchiving": Details overview.

Enter PROD_## in the Live Mode Variant field (## is your group

number) and choose the Variant pushbutton for this entry line. On

the following screen (see the title bar) Maintain Variant: Report

FI_Account_DEL,VariantPRODUCTIVEchoosetheDetailLogbutton

(testrunshouldnotbeselectedsinceitisproductionmode)andchoose

theAttributespushbutton.Inthefollowingscreen,enterameaningful

shortdescriptionofyourvariantintheMeaningfieldandchooseSave.

Then press Back (green arrow) to jump back to theDataArchiving

Customizing pop-up menu.

ChooseEnter. TheArchiveAdministration: InitialScreenappears.

Youhavenowmaintainedthearchivingobject-specificCustomizing

settings.

2. Fortestingpurposes,thenexecuteatestruntoarchiveyourG/Laccount.

The write program (in the test run) must be scheduled, executed and

monitored.

Continued on next page

229

2009 © 2009 SAP AG. All rights reserved.

第 244 页 / 共 273 页

Unit4: ArchivingFI AC202

Createavariantforthewriteprogram. NamethevariantWrite_S_TB##

(##=yourgroupnumber). Maintainthesequentialcontrolofthevariantin

such a manner that Archiving with Deletion is executed. Then schedule

the write program (with start date Immediate) and the predefined spool

parameters.

a) The FI_ACCOUNT object name is preassigned in the archive

administration initial screen.Choose the Write pushbutton. In the

followingscreen,enterthevalueWrite_S_T##intheVariantfield

(## is your group number) and choose the Maintain pushbutton.

Confirm the following screen with Continue. In the subsequent

MaintainVariant: ReportSAPF053,VariantWrite_S_T##screen,enter

the following values:

Data To Be Archived CompanyCodeData

Chart of Accounts INT

Company Code AC##

G/L Account 1111##

SelectthefollowingareasintheProcessingOptionsarea:

Test Mode X

Detail Log X

ThenchooseAttributes. Enter ameaningful short description inthe

Meaning field and chooseSave. You then go back to the overview

screen for variant maintenance.

ChooseBack(greenarrow). OntheArchiveAdministration: Create

ArchiveFilesinitialscreen,choosetheStartDatepushbutton. Onthe

followingscreen,chooseImmediateandthenSave(diskettesymbol).

Now confirm the spool parameters by choosing the Spool Params.

pushbutton,enteringLP01astheoutputdeviceonthefollowingscreen

and then choosing Continue.

Finally,chooseExecuteontheinitialscreen(ArchiveAdministration:

Create Archive Files); the system issues the following feedback in

the status bar:

New archive job scheduled.

Continued on next page

230

©2009SAPAG.Allrightsreserved. 2009

Data To Be Archived CompanyCodeData
Chart of Accounts INT
Company Code AC##
G/L Account 1111##
Test Mode X
Detail Log X

第 245 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

3. Displaythespoollistandthejoblogofthearchivingsession.

a) Intheinitial screen of ArchiveAdministration (SARAtransaction),

enterthevalueFI_ACCOUNTintheArchivingObjectfieldandselect

JobOverview(JOBsymbol in the applicationtoolbar). Thesystem

displaysanoverviewof thearchivingjobsthatyou havescheduled.

SelectthelinewithjobARV_FI_ACCOUNT_WRI<timestamp>and

chooseShowspoollist. Inthenextscreen,selectthelinewiththespool

listandchooseDisplaycontent(glassessymbol).

(Ifnecessary, youcanincreasethenumberofpagesshownusingthe

Settings pushbutton.)

4. Nowexecutethewritingprogramagain,thistimeinaproductionrunand

withthegenerationofadetaillog. Checkthespoollistandthejoblog.

Continued on next page

231

2009 © 2009 SAP AG. All rights reserved.

第 246 页 / 共 273 页

Unit4: ArchivingFI AC202

Todothis, createanewvariantWrite_S_P##.

a) ChoosetheWritepushbutton. Inthefollowingscreen,enterthevalue

Write_S_P## in theVariant field(## isyour group number) and

choosetheMaintainpushbutton. Confirmthefollowingscreenwith

Continue. On the subsequent Maintain Variant: Report SAPF053,

VariantWrite_##screen,enterthefollowingvalues:

Data To Be Archived CompanyCodeData

Chart of Accounts INT

Company Code AC##

G/L Account 1111##

SelectthefollowingareasintheProcessingOptionsarea:

Test Mode Do not select

Detail Log X

ThenchooseAttributes. Enter ameaningful short description inthe

Meaning field and chooseSave. You then go back to the overview

screen for variant maintenance.

ChooseBack(greenarrow). OntheArchiveAdministration: Create

ArchiveFilesinitialscreen,choosetheStartDatepushbutton. Onthe

followingscreen,chooseImmediateandthenSave(diskettesymbol).

Now confirm the spool parameters by choosing the Spool Params.

pushbutton,enteringLP01astheoutputdeviceonthefollowingscreen

and then choosing Continue.

Finally,chooseExecuteontheinitialscreen(ArchiveAdministration:

Create Archive Files); the system issues the following feedback in

the status bar:

New archiving job scheduled.

Displaythespoollistforthisjobandusethebinocularstosearchfor

account 1111##.

Then return to the job overview, leave the job selected and choose

Display job log. Among other things, you see which file has been

created inwhich pathat operating system level. Notethenameand

path of the file.

5. Optional: Instep2,youcanarchivethechartofaccountssegment.

Continued on next page

232

©2009SAPAG.Allrightsreserved. 2009

Data To Be Archived CompanyCodeData
Chart of Accounts INT
Company Code AC##
G/L Account 1111##
Test Mode Do not select
Detail Log X

第 247 页 / 共 273 页

AC202 Lesson: ExecutingArchivinginFinancialAccountingUsingExamples

6. Check whether you can display account 1111## for your company code

from the application.

a) Choose:

SAPEasyAccess→Accounting→FinancialAccounting→General

Ledger→MasterRecords→G/LAccounts→IndividualProcessing

→ Centrally

G/L Account 1111##

Company Code AC##

Use the menu to choose G/L Account –> Display. The following

messageappears: Account1111##CompanycodeAC##notavailable.

233

2009 © 2009 SAP AG. All rights reserved.

G/L Account 1111##
Company Code AC##

第 248 页 / 共 273 页

Unit4: ArchivingFI AC202

Lesson Summary

You should now be able to:

• CarryoutarchivingforcertainobjectsinFinancialAccounting

234

©2009SAPAG.Allrightsreserved. 2009

第 249 页 / 共 273 页

AC202 Unit Summary

Unit Summary

You should now be able to:

• Explain the concept of data archiving

• DescribethebasicconfigurationofFI archiving

• DescribethebasicconfigurationofFinancialAccountingarchivingfunctions

• Perform/CheckbasicCustomizingofFinancialAccountingarchiving.

• CarryoutarchivingforcertainobjectsinFinancialAccounting

235

2009 © 2009 SAP AG. All rights reserved.

第 250 页 / 共 273 页

UnitSummary AC202

236

©2009SAPAG.Allrightsreserved. 2009

第 251 页 / 共 273 页

AC202 Test Your Knowledge

Test Your Knowledge

1. Name reasons for archiving data.

Choosethecorrectanswer(s).

□ A Improve response times

□ B Keep data secret from auditors

□ C Reducesystemdowntimesduringsoftwareupgrades

□ D Lowertheeffortinvolvedindatabaseadministration

2. Whichprerequisitesarecheckedbythesystembeforedeletingmasterdata?

Choosethecorrectanswer(s).

□ A ForG/Laccounts: hasadeletionindicatorbeenset?

□ B Forcustomers: havetheybeencreatedbefore1995?

□ C Forvendors: aretherestilltransactionfigures?

□ D For G/L accounts, customers and vendors: are there still

documents?

□ E Forbanks: isabankbalancesheetoverdrawn?

□ F For banks: arethey still being used?

237

2009 © 2009 SAP AG. All rights reserved.

第 252 页 / 共 273 页

TestYourKnowledge AC202

Answers

1. Name reasons for archiving data.

Answer: A, C, D

Improving response times, reducing system downtimes during software

upgrades and loweringthe effort involved in databaseadministration are

reasons for archiving data.

2. Whichprerequisitesarecheckedbythesystembeforedeletingmasterdata?

Answer: A, C, D, F

Thecheckscanbefoundinatableinthislesson.

238

©2009SAPAG.Allrightsreserved. 2009

第 253 页 / 共 273 页

第 254 页 / 共 273 页

第 255 页 / 共 273 页

Unit 5

Appendix

Unit Overview

Additionalmaterialonthesubjectofvalidations/substitutionsisprovidedinthis

chapter. Thesesubjectsarenotofficialpartsofthecourse.

Unit Objectives

After completing thisunit, you will beableto:

• Useadditionalinformationonvalidationsandsubstitutions

Unit Contents

Lesson: Additional Information Concerning Substitutions/Validations...240

Procedure: Access to ABAP/4 Reporting ...............................248

239

2009 © 2009 SAP AG. All rights reserved.

第 256 页 / 共 273 页

Unit5: Appendix AC202

Lesson: Additional Information Concerning

Substitutions/Validations

Lesson Overview

Thischaptercontainsadditionalinformationaboutsubstitutionsandvalidations.

Lesson Objectives

After completingthislesson, you will beable to:

• Useadditionalinformationonvalidationsandsubstitutions

Business Example

You can portray special requirements for validation and substitution with user

exits.

User Exits

Figure 89: User Exits

Userexitsareprocessingstepsthatareprogrammedinthecustomernamespace.

Theycan be used iftheFormula Editor isnot sufficient or if additionaldatais

required. Auserexitisportrayedasasubroutineinacustomerprogram.

240

©2009SAPAG.Allrightsreserved. 2009

第 257 页 / 共 273 页

AC202 Lesson: AdditionalInformationConcerningSubstitutions/Validations

Exit types

• Return of the statement TRUE/FALSE

• Filling field contents

• Fillingseveralcontentsforthecalluppointoftheentiredocument.

TheaboveexampleshowshowthesystemusesUSEREXITU001tojumpfroma

validation routine to an ABAP report.

Thesystemchecksthecostcentermasterdataforthecostcenterenteredbythe

user.

IfaManagementcostcenterisused,constant'T'(='TRUE')isreturned;otherwise,

constant'F'(='FALSE')isreturnedviathe'B_RESULT'field.

User exits have the following format:

• U (for user exit)

• The user exit number (three digits)

For example, U001 is a user exit.

User Exits in Validations/Substitutions: 1

Figure 90: User Exits in Validations/Substitutions: 1

Youcanconfiguretheformpoolnameoftheuserexit;youmuststoreitinthetable

forclient-dependentuserexits(T80D)inSpecialPurposeLedgerCustomizing.

241

2009 © 2009 SAP AG. All rights reserved.

第 258 页 / 共 273 页

Unit5: Appendix AC202

ExampleformpoolsRGGBS000andRGGBR000forclient000areshippedwith

theSAPsystem. YoumustcopytheseformpoolsandconfiguretheminT80D.

Thenewformpoolnameshouldconformtothecustomer’snamingconvention

(beginning with the letter ‘Z’) so that is not overwritten when the next SAP

upgradeisinstalled (for example, ZGGBR000).

User Exits in Validations/Substitutions: 2

Figure 91: User Exits in Validations/Substitutions: 2

TableT80Dcontainstheformpoolnamesfortheuserexitsusedinvalidations,

substitutions,andrules. Eachvalidation/substitutionformpoolisclient-dependent.

ItisrecommendedthatyouedittableT80Dsothatthegenericformpoolname

ofyouruserexitscomplieswiththenamingconventionforcustomerfiles. You

can edit tableT80UinSpecial Purpose Ledger Customizing (IMG: Financial

Accounting→SpecialPurposeLedger)bychoosingBasicSettings→UserExits

→ Maintain Client-Specific User Exits.

Theformpoolnameyouentercanbeuptofivecharactersandmustbeginwith

theletterZ.Entertheformpoolnamenexttoeachapplicationareaforwhichyou

wanttohaveuserexits. Validapplicationareasinclude:

GBLR:Validation/substitution: Exitsforrules(userexittypes1and3)and

GBLS:Validation/substitution: Exitsforsubstitutions(userexittypes1,2,or3

for substitutions)

242

©2009SAPAG.Allrightsreserved. 2009

第 259 页 / 共 273 页

AC202 Lesson: AdditionalInformationConcerningSubstitutions/Validations

Figure 92: User Exits: Example Definition

User Exit Types

Figure 93: User Exit Types

Thefollowingtableshowsthetypesofuserexitsthatcanbeusedinvalidations,

substitutions and rules.

243

2009 © 2009 SAP AG. All rights reserved.

第 260 页 / 共 273 页

Unit5: Appendix AC202

User Exit Description Application Example

Types

1 Noparameters Rules, SeeformpoolRGGBR000,

aredefinedfor validations,

parameter type

theuserexit. and

C_EXIT_PARAM_NONE

substitutions

(prerequisite)

2 Same as user Substitution SeeformpoolRGGBS000,

exit type 1,

parameter type

except one

C_EXIT_PARAM_FIELD

parameter(the

field to be

substituted)

is defined in

the user exit.

For example,

youcancreate

a substitution

routine that

analyzes the

profit center

depending on

thefieldused.

3 All data is Rules, SeeformpoolRGGBR000,

handledasone validations,

parameter type

parameter; and

C_EXIT_PARAM_CLASS

this exit type substitutions

can only be (prerequisite)

usedinmatrix

validations

and

substitutions.

Validationsandrulesuseexitnumbers1and3fromtheabovetable.

Substitutionsusealloftheexitnumbersfromtheabovetable. Forsubstitutions,

youcanalsocreateuserexitsthatacceptafieldasoneparameterandthenreturn

thechangedvalueinthisparameter. Thisallowsyoutocreateauserexitthatcan

beuseddependingonthefieldandtablename. Thistypeofuserexitcannotbe

usedasanentryintheExitonlyfieldinthelistofvaluestobesubstituted; you

canonlyusethisexittypeinconjunctionwithafieldname. Anexampleofthis

user exit type is in form pool RGGBS000.

244

©2009SAPAG.Allrightsreserved. 2009

User Exit Types Description Application Example
1 Noparameters aredefinedfor theuserexit. Rules, validations, and substitutions (prerequisite) SeeformpoolRGGBR000, parameter type C_EXIT_PARAM_NONE
2 Same as user exit type 1, except one parameter(the field to be substituted) is defined in the user exit. For example, youcancreate a substitution routine that analyzes the profit center depending on thefieldused. Substitution SeeformpoolRGGBS000, parameter type C_EXIT_PARAM_FIELD
3 All data is handledasone parameter; this exit type can only be usedinmatrix validations and substitutions. Rules, validations, and substitutions (prerequisite) SeeformpoolRGGBR000, parameter type C_EXIT_PARAM_CLASS

第 261 页 / 共 273 页

AC202 Lesson: AdditionalInformationConcerningSubstitutions/Validations

If you want to define a parameter for your user exit that is different from the

result of avalidation(B_RESULT), you must makean entryfor your user exit

in the FORM routineGET_EXIT_TITLES in the form pool you defined. It is

recommendedthatyoucopytheSAPsampleformpoolRGGBR000forvalidation

exits or RGGBS000 for substitution exits. These sample form pools already

containentriesinFORMroutineGET_EXIT_TITLESfortheexamplesdelivered

by SAP.

Do's and Don’ts

• Transport

– Validations, substitutions and rules should be defined only in the

development/testing system.

– Transporttotheproductivesystemthenoccurs

• Performance

Caution: Validation/substitutionoccursduringEACHposting. Asa

result,databaseaccessesintheuserexitcandecreaseperformance.

• Clarity

– Usesetsifyouhavelargeamountsofvalues(e.g. accountchecks)

– Keepthenumberof stepsaslowaspossible

– Encapsulate logic if possible (rules)

• Test

– Simulation with test data

– Activate a trace that displays the results after executing

validation/substitution

245

2009 © 2009 SAP AG. All rights reserved.

第 262 页 / 共 273 页

Unit5: Appendix AC202

Transactions and Notes

Figure 94: Transactions and Notes

Most ofthetransactionsand applicationsthatthevalidation/substitution tool

uses are listed here.

Inaddition, there isa list of helpful SAP notes.

246

©2009SAPAG.Allrightsreserved. 2009

第 263 页 / 共 273 页

AC202 Lesson: AdditionalInformationConcerningSubstitutions/Validations

Rule Manager Programs

ThefollowingRuleManager programsaredeliveredwith thestandardversion

of thesystem. You can only accessthese reportsusingtheABAP/4 Reporting

function.

• RGUGBR00

If you suspect that information about the usage of validations/substitu-

tions/sets/rules is not current or consistent, you can use the RGUGBR00

programtoregeneratethisinformation. Theprogramprovidesalistofall

currentlyvaliddefinitionsforthevalidations/substitutions.

• RGUGBR19

Thisprogramchecksthesyntaxinallvalidations,substitutions,andrules.

• RGUGBR30, 31, 32

Ruledirectory,ValidationdirectoryandSubstitutiondirectory.

• RGUGBR33

This program is used to analyze and test (simulate) validations and

substitutions.

• RGUGBR40

Using system messages in validations.

247

2009 © 2009 SAP AG. All rights reserved.

第 264 页 / 共 273 页

Unit5: Appendix AC202

Access to ABAP/4 Reporting

1. Choose System →Services →Reporting.

TheABAP/4: ExecuteProgram screenappears.

2. IntheProgramfield,enterthenameofthereportyouwanttoexecuteand

choose Program → Execute.

A selection screen appears.

3. Enter the data as required.

Thedata youenter determinethe datathat areusedwhileprocessingand

executing the program.

4. Choose Program → Execute.

Theprogramisexecutedbasedontheselectiondatayouentered.

248

©2009SAPAG.Allrightsreserved. 2009

第 265 页 / 共 273 页

AC202 Lesson: AdditionalInformationConcerningSubstitutions/Validations

Lesson Summary

You should now be able to:

• Useadditionalinformationonvalidationsandsubstitutions

249

2009 © 2009 SAP AG. All rights reserved.

第 266 页 / 共 273 页

UnitSummary AC202

Unit Summary

You should now be able to:

• Useadditionalinformationonvalidationsandsubstitutions

250

©2009SAPAG.Allrightsreserved. 2009

第 267 页 / 共 273 页

第 268 页 / 共 273 页

第 269 页 / 共 273 页

AC202 Course Summary

Course Summary

You should now be able to:

• Display special G/L transactionsin thesystem

• Use the document parking function within the system and define it

appropriately

• Applysubstitutionsandvalidationstofinancialaccounting

• UsethearchivingfunctionsinSAPERPFinancials

251

2009 © 2009 SAP AG. All rights reserved.

第 270 页 / 共 273 页

CourseSummary AC202

252

©2009SAPAG.Allrightsreserved. 2009

第 271 页 / 共 273 页

Index

A deletion program, 182, 184

Account Control, 35 delivery document, 60

alternative reconciliation display program, 184

account, 4 disputed receivables, 13

application area, 123 down payment, 5–6

archive development kit, 204 down payment clearing,

archive file, 182 11–12

Archiving Customizing, 185 down payment made, 12

archiving logs, 202 down payment processing, 5

archiving object, 179 down payment received, 11

Archiving object, 184 down payment request, 6,

archiving objects, 179 11–12

archiving procedure, 200 F

archiving project, 178

formula editor, 126

automatic offsetting entries, 6

free offsetting entries, 6, 9

automatic offsetting entry, 39

G

B

goods receipt, 48

backup, 180

goods/invoice receipt clearing

bill of exchange, 5, 16

account, 48

Boolean classes, 123

GR/IR account, 48

Boolean statement, 160

guarantee of payment, 6, 15

business object, 179

guarantees made, 15

C guarantees of payment made,

callup points, 123 7

check, 131 guarantees received, 7

Commit., 37 I

comparison operators, 127

incoming down payment, 10

configuration of special G/L

individual value adjustments,

transactions, 36

13

consistency, 121

invoice receipt, 48

credit limit check, 37

L

D

line item display, 36

data archiving, 179

logical operators, 127

data volume, 178

database backup, 180 M

database table, 179 message, 131

degree of activation, 128

253

2009 © 2009 SAP AG. All rights reserved.

第 272 页 / 共 273 页

Index AC202

methods for accessing Special G/L indicator, 4, 6, 36

archived data, 204 special G/L transaction class,

37

N

special G/L transactions, 4–5

noted items, 6, 8, 37

special general ledger

Noted items, 39

transactions, 36

notes to financial statement, 6

special general ledger types, 6

O statistical posting, 7

operands, 127 statistical postings, 38

substitution, 146

P

substitution step, 148

poor performance, 178 substitution value, 148

posting key, 34, 36–37

T

prerequisite, 131

target special G/L indicator,

Purch. order, 48

37

R

three-way match, 48

reading program, 204 transaction code

reasons for archiving data, DB15, 185

181 SARA, 185

reorganization, 180

V

rule, 160

validation, 122, 131

S

validation function, 122

sales vendor Invoice, 48

delivery document, 60

W

transaction, 59

write program, 182, 184

set, 161

special G/L account, 4

254

©2009SAPAG.Allrightsreserved. 2009

第 273 页 / 共 273 页

Feedback

SAP AG has made every effort in the preparation of this course to ensure the

accuracy and completeness of the materials. If you have any corrections or

suggestionsforimprovement,pleaserecordthemintheappropriateplaceinthe

course evaluation.

255

2009 © 2009 SAP AG. All rights reserved.

返回FICO参考资料列表