欢迎来到天天文库
浏览记录
ID:31707596
大小:55.78 KB
页数:8页
时间:2019-01-17
《abapquery的概念以及基本用途》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、ABAPQUERY的概念以及基本用途SummaryThisarticlewillintroduceABAPQUERY,firstwewillintroducetheconceptofQUERYABAPaswe11asthebasicpurpose,thenwewillintroducehowtocreateaBasicList,andthebasicstepstocreateitandhowtouseittogenerateABAPcode・briefintroductionFordevelopersandfunctionalconsuitants,i
2、t'snotABAPQUERYthatwantstoimplementreportsinlesstimethandevelopingcode.Sometimes,weneedtofindsomedatatotestourprogram.Inthiscase,wemightneedtofindthedataweneedfromseveraldifferenttables・Forexample,lookforinvoiceswithaninvoicevaluegreaterthan1000.TherearethreemainstepsincreatingS
3、APQUERY:1)createausergroup2)creatinganinformationset3)createSAPQUERYThetransactioncodescorrespondingtothesethreestepsare:SQ01-SAPQUERYSQ02-InfoSetSQ03-UserGroupNextwewilldescribethestepsinvolvedCreateusergroupThetransactioncodethatcreatestheusergroupisSQ03ClicktheCreatebuttontow
4、ritethedescriptioninformationandclicksave・CreateinformationsetThetransactioncodethatcreatestheinformationsetisSQ02ClickingtheCreatebuttonpopsupaform,describesthedescriptionoftheinputset,specifiestheunderlyingtableVBRKfortheconnection,andthenclicksOKInthenextscreen,youcaninsertan
5、otherconnectiontablebyclickingontheapplicationtoolbarInsertTable・EnterVBRPthroughthepop-upinserttableform・Thedefaultconnectioninformationwillbedisplayed,andyoucansettheconnectionyourselfbyclickingonJoinCondition.Clickbackwardtoappearinthedialogboxforthemaintenanceinformationset:
6、selecttheoptionbuttonforCreateemptyfieldgroups,andclickOKTwoemptyfieldgroupsarecreated・Ontheleftpanel,weseefieldsfromtwotablesofVBRKandVBRP・Wecandragthesefieldsintotwoemptyfieldgroups.ClickthedeleteFieldGroupbuttontodeletetheFieldGroup2thatdoesnotcontainthefield・Clickgeneratetog
7、eneratetheinformationset・ClickbackonthestandardtoolbartoreturntothehomescreenofSQ02.Assigntheinformationsettotheappropriatefunctionbyclickingontheassignedrole/usergroupHouseholds・CreateSAPQUERYThetransactioncodeforcreatingSAPQUERYisSQO1Bydefault,thegroupofusersrecentlyopenedinSQ
8、03willshowup.EnterZXXB_QUERYasthequerynameandcl
此文档下载收益归作者所有