eCATT Step by Step Guide.docx

上传人:b****6 文档编号:8623310 上传时间:2023-02-01 格式:DOCX 页数:49 大小:3.20MB
下载 相关 举报
eCATT Step by Step Guide.docx_第1页
第1页 / 共49页
eCATT Step by Step Guide.docx_第2页
第2页 / 共49页
eCATT Step by Step Guide.docx_第3页
第3页 / 共49页
eCATT Step by Step Guide.docx_第4页
第4页 / 共49页
eCATT Step by Step Guide.docx_第5页
第5页 / 共49页
点击查看更多>>
下载资源
资源描述

eCATT Step by Step Guide.docx

《eCATT Step by Step Guide.docx》由会员分享,可在线阅读,更多相关《eCATT Step by Step Guide.docx(49页珍藏版)》请在冰豆网上搜索。

eCATT Step by Step Guide.docx

eCATTStepbyStepGuide

eCATT-StepbyStepGuide

BusinessProcess:

OrdertoCash(O2C)

 

TablesofContent

 

Systemenvironment:

SystemName:

QPT

Y55

AO5

Purpose:

MaintestsystemERP2005

ECC6.0-HotlineReferenceSystem

SAPSolutionManager

AppServer:

usai1qpt.wdf.sap.corp

iwdf2243.wdf.sap.corp

pwdf6341.wdf.sap.corp

SystemNr:

77

55

77

SystemID:

QPT

Y55

AO5

Client:

004

800

User:

WEFERSM

WEFERSM

Password:

Language:

EN

EN

 

1CreateRFCConnection

Foreverysystemthatwewanttorunthescripton,aspecificRFCconnectionmustbecreated.

TransactionSM59:

Hitbutton

tocreateabrandnewRFCconnection:

Input:

Fields

Input

Comments

Name:

QPT004_O2C

Recommendation:

BeginwithSystemID+Client

ConnectionType:

3

ConnectiontoABAPsystem

Description1-3:

QPT/004/O2C

Optional,searchitem

PressENTER:

 

TabTechnicalSettings:

Input:

(SystemInformation)

Fields

Input

Comments

LoadingBalance:

Yes

Thiscanimproveperformance

TargetSystem:

QPT

InformationAvailableinSapLogon

Msg.Server:

usciqpt

Group:

SPACE

Savetodatabaseas:

IPAddress

Acceptdefault

TabLogon&Security:

Input:

(LogonInformation)

Fields

Input

Comments

LogonScreenStatus:

Checked

Logonscreenwillpopupforeachconnectingtime

Language:

EN

Client:

004

Hitsave

 

Wecantesttheconnectivitybyhit

.

IfeverythingisOK,wemayseethefollowinglogonwindow:

 

2CreateSystemDataContainer

WeregisterRFCconnectionshereandassignTargetSystemnamesforthetest.

TransactionSECATT

HitRadioButtonNo.4-CreateSystemDataContainer:

ZO2C_SYS:

Hitbutton

.

 

Input:

Fields

Input

Comments

Title:

O2CTestSystemData

Description1-10:

O2C

Optional,searchitem

 

TabSystemData:

Hitbutton

toaddnewTargetSystem.

Input:

Fields

Input

Comments

TargetSystem:

QPT

Logicalname,canbeeverything

Description:

QPT

Optional

RFCConnection:

QPT004_O2C

ThemappedRFCconnection

 

Presssave

.

Wecansaveitaslocalobject,orassignittoaspecificpackageglobally:

 

3CreateTestScript

TransactionSECATT

HitRadioButtonNo.2-CreateTestScript:

ZO2C_CREATE_SO:

(Setversionto1forlatermaintenance)

Hitbutton

.

 

Input:

Fields

Input

Comments

Title:

O2C:

CreateSalesOrder

Component:

SD-SLS-SO

ApplicationComponent

SystemDataContainer:

ZO2C_SYS

TargetSystem:

QPT

Description1-10:

O2C/SalesOrder

Optional,searchitem

TabEditor:

RecordTransactionalScript:

HitButton

.

MakethefollowingchoiceintheInsertStatementdialog:

Fields

Input

Comments

Group:

UIControl

Herecontainsallscriptrecordcommands

Command:

SAPGUI(Record)

UseSAPGUIdriverfortransactionwithcontrols

Interface:

[Generated]

Specifycommandinterfacename,hereusedefault

TargetSystem:

QPT

Specifythesystemtorecordthescript

HitButton

.

 

MakethefollowingchoiceintheRecordSAPGUIcommanddialog:

Fields

Input

Comments

ManualGeneration:

Unchecked

Wedonotusemanualgeneration.

AfterEveryScreenChange:

Checked

Heresetstherecordinggranularity

StartRecordwithTransaction:

VA01

HitButton

.

Amomentlater,wecanseeonesessionopenedinthetargetsystemandalso,thefollowingdialogwillappear:

:

DonotchangeanythingandhitYes.

 

TheRecordingRunningdialogwillappear:

(Itservesasthecontrolpanelfortherecord)

Atanytimeduringtherecord,wecangobacktothisdialogboxandinsertcommandorstoprecordingtothescript.(Iwilldemonstratetheselater.)

Now,justnavigatetotheopenedtransactionsessionandstarttherecord.

DatausedinSystemQPTforTransactionVA01:

T-Code:

VA01

DocumentType:

OR

SalesOrganization:

1000

DistributionChannel:

10

Division:

00

Sold-to-Party:

T-L67A01

Ship-to-Party:

T-L67A01

Material:

T-AT101

OrderQuantity:

1

StorageLocation:

0003

Price:

400

Hereisthescreenflow:

Screen1:

PressEnter.

 

Screen2:

PressEnter.

 

Beforewegointonextscreen,weneedtocaptureonefieldvalue(namelytherequireddeliverydate)inthisscreen;

InsertGETGUIcommand

GobacktotheRecordingRunningdialogandhit

 

Thenwewillgobackautomaticallytotherecordingsession,wherewecanchoosethefieldthatweareinterestedin.

HerewewanttocapturetheReq.Deliv.Datefield,whichlaterwecanuseitasanexportparameterforourscript.Sojustclickonit:

(youcanseearedrectangleoutsideitindicatingselected)

 

Inthepopupdialog,navigatetothetextfieldthatwewanttocatch.

Get->GeneralState->Text

Checkitandhit

OK,it’sdone.Laterwecanseetheresultinthescript.

Nowwecancontinueourrecordingprocedure.

Double-clickmaterialname‘T-AT101’.TabShipping:

Screen3:

 

TabConditions:

Screen4:

 

Hitsave

.

GobacktotheRecordingRunningdialog,andhit

toendtherecording.

Nowwecanseesixstatementsaddedtothescript,oneGETGUIandfiveSAPGUI.

Also,inthecommandinterfacelist,wecanseetheseentiresixinterfaces.

Hitsave

.

 

4CreateImportandExportparameters

Wecreateimportandexportparameterstotransferdataintoandoutofthescript.

4.1ImportParameters

Step1:

Navigatetothelocationoftheinputtext:

ManualNavigation:

Double-clickonecommandinterfaceinthelist,andnavigateintoeverysub-node.Usually,inputtextsareunderProcessedScreen[#]->UserChangedState->GuiElememt[#].Ifwesee

itmeansthereisaninputtexthereandwecangenerateitintoanimportparameterasneeded:

 

UseTextSearchFunctionality:

(Thisisveryeffective,ifwearesearchingforsomeuncommonwordsliketheMaterialname,etc.)

Hit

onthetoolbar.

Enterthesearchitem(e.g.:

T-AT101)

Onlysearchinthestructureeditorforparameters:

Hit

tobeginthesearch.

 

Double-clickononeoftheresultitemsandyouwillbetargeteddirectlytothisiteminthestructureeditor:

Attention;

Ifwesearchforamoregenericitem(like1000assalesorganization),theremaybealotofitemsintheresult.Wehavetofixoutwhichoneistheoneweareexpecting.Itmaybethennotsoefficientatthosesituations.

 

Step2:

Replacetextwithparameters.

Double-clickon

.Ontherightside,wecanseeitsrealvalue.JustreplaceitintheValuecolumnwithaparameternameandpressEnter.Then,wecanseethepopupdialog:

ChooseimportandpressYes.

 

Now,navigatetotheparameterlist

wecanseethenewlycreatedimportparameterthere.Wecanalsoadddescriptionstothisparameterforclarificationsake.

(Alsowecanseebluetriangles

appearingonpathofthehierarchy,whichindicatingaparameterinjection.)

 

4.2ExportParameters

Step1:

Navigatetothelocationoftheoutputtext:

OutputtextcanonlybegeneratedbyGETGUIcommand.TheyareusuallyundertheGuiElememt[#]partofaGETGUIcommandinterface.A

indicatesasourceoftextexport.

 

Step2:

Replacetextwithparameters.

IntheValuecolumn,inputtheparameternameandchooseExportasitstype.

PressYes.

 

Likeimportparameters,wecanalsoseeitintheparameterlist.Pleaseadddescriptionsforclarification.

 

4.3ParameterList

Formermethodsareusedforchanginginput/outputtextintoimport/exportparameters.Actuallywehavedonetwothingsatthesametime:

oneiscreatingaparameterandtheotherisassigningittocertainpartofthescript.Butinsomesituations,weonlywanttodothefirst.Thisiseasytofinishintheparameterlist.

Switchtoparameterlist

.

Hit

toinsertanewitem.Wecanmanuallydecideitsname,description,parametertype(I/E/V),ABAPTypeandlength,etc.

HerewecreateanewexportparameterE_SONRforlatteruse.

(Forremovingitems,justhit

.)

OKnowwecancreateallimportandexportparametersforthisscript.

Hereisthelist:

 

5DealingwithMessages

Wecancontroltheexecutionofourscriptandcaptureusefulinformationfromsystemmessages.Thisoperationisoptional,butdoingthiswillmakethescriptmoreflexible.

ToaddMESSAGEcommandtothescript,hit

andinput:

Fields

Input

Comments

Group:

ScriptControl

Herecontainsallscriptcontrolcommands.

Command:

MESSAGE

InsertMessagecommand.

Interface:

MSG_1

Specifymessagefiltertablename,hereusedefault

HitButton

.

PuttheSAPGUIcommandsinsidetheMESSAGEblock:

Here,commandMESSAGEenablesustoaddmessage-controlrulesintableMSG_1.

CommandENDMESSAGEtransfersallmessageshappenedduringthescriptexecutiontotableE_MSG_1.

 

SetMessage-ControlRules:

Now,wewanttoregistermessage-controlrulesintheMSG_1table.

Forourscript,wewanttomakesurethatoursalesorderissuccessfullycreated.Sothemessage“Standardorder#####hasbeensaved”musthappen.

Firstly,wemustgetcertaininformationthatdescribesthemessage.

Findthemessageinthestructureeditor:

Keepinmindthemessagetype–‘S’,messageID–‘V1’andmessagenumber–311.

Alsowemaynoticethatparameter2containstheinformationofsalesordernumber.

 

Now,wehavegotalltheinformationweneed.Double-clickMSG_1inthescripteditor.

Intherighthand,press

toaddaruleandinput:

Fields

Input

Comments

Mode:

R

Theoccurrenceofthismessageisobligated.

MSGTYP:

‘S’

Theinformationwegotformabove.

MSGID:

V1

MSGNR:

311

 

TransferMessageParameterValue

AnotherthingwewanttofinishistostoretheSalesOrdernumberfromthemessagetoexportparameterE_SONR.

Todothis,pleaseaddthehereinaftercodestothescript:

E_SONR=E_MSG_1[&TFILL]-MSGV2.

LOG(E_S

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 工学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1