友情链接1:21点 足球投注 投注网 明升体育 hg0088 葡京赌场 网上赌球 诈金花 澳门金沙网址 澳门银河网址 澳门银河 澳门银河官网 银河官网 威尼斯人 澳门威尼斯人 澳门威尼斯人官网 威尼斯人官网 金沙 澳门金沙 澳门金沙官网 金沙官网 现金网 赌球网 全讯网 明升国际 足球开户 ******官网 ******网址 现金赌博 澳门现金网 ******官方网站

鍏朵粬璇█ | Mingo's Blog
鏃ュ織鍒嗙被锛氬叾浠栬瑷

ABAPer甯哥敤Tcode

鏃堕棿锛2012骞11鏈09鏃浣滆咃細Mingo琚洿瑙備簡锛5,014 娆璇勮娆℃暟锛1

CMOD(SMOD) SAP澧炲己

OSS1 杩炴帴SAPOSS

S001 ABAP寮鍙戝伐浣滃彴鑿滃崟(鍚Tcode)

SA38 杩愯绋嬪簭(SE38寮鍙)

SCAT ComputerAidedTestTool

SE01 浼犻掍紶杈撹姹(鍚屼竴鏈嶅姟鍣ㄧ殑涓嶅悓client)

SE09 浼犺緭璇锋眰鎿嶄綔

SE10 鍚孲E09

SE11 缁存姢ABAP鏁版嵁瀛楀吀

SE12 鏄剧ず鏁版嵁瀛楀吀

SE13|SE14|SE15 鏁版嵁瀛楀吀鐩稿叧

SE16|SE17 鏌ョ湅琛ㄦ暟鎹

SE30 ABAP杩愯鍒嗘瀽

SE32 ABAP鏂囨湰鍏冪礌缁存姢

SE35 ABAP/4瀵硅瘽妗嗙紪绋嬬淮鎶

SE36 缁存姢閫昏緫鏁版嵁搴

SE37 缁存姢Functionmodule

SE38 ABAP缂栬緫鍣

SE39 绋嬪簭姣旇緝

SE41 鑿滃崟鍒朵綔鍣

SE43 搴旂敤鍖鸿彍鍗(鐩稿悓鍔熻兘tcode缁勬垚涓areamenu)

SE51 灞忓箷缁樺埗鍣

SE54 鐢熸垚琛ㄧ殑缁存姢瑙嗗浘,鐒跺悗SE16|SM30鍙洿鎺ョ淮鎶よ〃鏁版嵁

SE61 鏂囨。缁存姢

SE63 缈昏瘧

SE71->SE76 SAPscript鐩稿叧Tcode

SE80 ABAP搴

SE81 ABAP搴旂敤灞傛

SE84|SE85|SE86 ABAP/4RepositoryInformationSystem

SE91 寤虹珛娑堟伅绫诲拰娑堟伅

SE92 缁存姢绯荤粺Log娑堟伅

SE93 缁欑▼搴忕淮鎶code

SEU RepositoryObjectBrowser

SHD0 缁存姢Tcode杩愯鍙樺紡(Variant)

SM04 鏌ョ湅褰撳墠鐢ㄦ埛

SM12 鍒犻櫎鏄剧ずLockedobjects(涓嶅彲鍒犻櫎琚玪ock鐨勪紶杈撹姹)

SM21 Dumplog鏌ョ湅

SM30|SM31 缁存姢table|view鏁版嵁

SM32 缁存姢琛

SM35 鏌ョ湅Batchinput session(寤虹珛BDC浣跨敤SHDB)

SM36 瀹氫箟鍚庡彴job

SM37 鏌ョ湅鍚庡彴job

SM50 ProcessOverview

SM51 Displaysystemservers,processes,etc.

SM62 Display/Maintaineventsin SAP

ST05 SQL绛夎窡韪,浣跨敤瀹冨彲璺熻釜绋嬪簭浣跨敤鐨勮〃绛.

SU53 妫鏌ユ巿鏉冨璞,濡傚嚭鐜版潈闄愰棶棰樺彲浣跨敤

 

鍒嗙被锛鍏朵粬璇█

Mingo瀛︿範ABAP浜斾箣鍐呰〃鐨勪娇鐢

鏃堕棿锛2012骞11鏈01鏃浣滆咃細Mingo琚洿瑙備簡锛9,773 娆璇勮娆℃暟锛1

鏄ㄥぉ瀛︿範浜嗗浣曞垱寤哄唴琛ㄤ互鍙婄畝鍗曠殑浣跨敤锛屼粖澶╀富瑕佸涔犲唴琛ㄧ殑鍑犵涓昏浣跨敤鏂规硶锛氬唴琛ㄥ~鍏呫佽鍙栧唴琛ㄣ佹洿鏀瑰唴琛ㄨ銆佸垵濮嬪寲鍐呰〃銆

1銆佸唴琛ㄥ~鍏

濉厖鍐呰〃鐨勫嚑涓叧閿鍙ワ細APPENDCOLLECTINSERTMOVE

鍙互閫愯娣诲姞鏁版嵁锛屼篃鍙互澶嶅埗鍙︿竴涓〃鏍肩殑鍐呭銆

濡傛灉閫愯濉厖鍐呰〃锛屽彲浠ヤ娇鐢APPENDCOLLECTINSERT璇彞銆

濡傛灉瑕佸皢鍐呰〃浠呯敤浜庡瓨鍌ㄦ暟鎹紝鍑轰簬鎬ц兘鏂归潰鐨勮冭檻锛屽缓璁娇鐢APPEND銆傜敤APPEND涔熷彲浠ュ垱寤哄簭鍒楁竻鍗曘

濡傛灉瑕佽绠楁暟瀛楀瓧娈典箣鍜屾垨瑕佺‘淇濆唴琛ㄤ腑娌℃湁鍑虹幇閲嶅鏉$洰锛岃浣跨敤COLLECT璇彞锛屽畠鍙互鏍规嵁鏍囧噯鍏抽敭瀛楀鐞嗚銆

濡傛灉瑕佸湪鍐呰〃鐜版湁琛屼箣鍓嶆彃鍏ユ柊琛岋紝寤鸿浣跨敤INSERT璇彞銆

濡傛灉瑕佸皢鍐呰〃鏉$洰鍐呭澶嶅埗鍒板彟涓涓唴琛ㄤ腑锛屽苟涓旇鐩栬鐩爣琛ㄦ牸锛屼娇鐢MOVE璇彞銆

濡傛灉瑕佸皢鍐呰〃鍐呭澶嶅埗鍒板彟涓涓唴琛ㄤ腑锛岃浣跨敤APPENDINSERTMOVE璇彞鐨勫彉寮忋

濡傛灉瑕佸皢鍐呰〃琛岄檮鍔犲埌鍙︿竴涓唴琛ㄤ腑锛岃浣跨敤APPEND璇彞鐨勫彉寮忋

濡傛灉瑕佸皢鍐呰〃琛屾彃鍏ュ彟涓涓唴琛ㄤ腑锛岃浣跨敤INSERT璇彞鐨勫彉寮忋

1锛夈侀檮鍔犺銆

浣跨敤APPEND璇彞锛岃娉曞涓嬶細

APPEND [<wa> TO | ININIAL LINE TO] <itab>.

2锛夈佹彃鍏ヨ銆

浣跨敤INSERT璇彞锛岃娉曞涓嬶細

INSERT [<wa> INTO | ININIAL LINE INTO] <itab> [INDEX <idx>].

濡傛灉浣跨敤INDEX閫夐」锛屽垯灏嗘柊琛屾彃鍏ュ埌鏈夌储寮<idx>琛屼箣鍓嶏紝鎻掑叆涔嬪悗锛屽厛鏉$洰绱㈠紩涓<idx>锛屼笅琛岀储寮曞姞1锛涘鏋滆〃鏍煎寘鍚<idx>-1鏉$洰锛岀郴缁熷皢鏂版潯鐩檮鍔犲埌鏈鍚庣殑鐜版湁琛ㄦ牸琛屼箣鍚庯紱濡傛灉琛ㄦ牸鐨勬潯鐩皬浜<idx>-1锛岀郴缁熸棤娉曟彃鍏ユ潯鐩苟灏SY-SUBRC璁剧疆涓4.濡傛灉鎿嶄綔鎴愬姛锛屽皢SY-SUBRC璁剧疆涓0

濡傛灉涓嶄娇鐢INDEX閫夐」锛岀郴缁熷彧鑳藉湪LOOP-ENDLOOP寰幆鍐呴氳繃鍦ㄥ綋鍓嶈鍓嶆彃鍏ユ柊鏉$洰鏉ュ鐞嗐

3锛夈侀檮鍔犲唴琛ㄨ銆

濡傛灉瑕佸皢閮ㄥ垎鎴栧叏閮ㄥ唴琛ㄩ檮鍔犲埌鍙︿竴寮犲唴琛ㄤ腑锛屽垯浣跨敤APPEND璇彞锛岃娉曞涓嬶細

APPEND LINES OF <itab1> [FROM <n1>] [TO <n2>] TO <itab2>.

濡傛灉瑕佸皢閮ㄥ垎鎴栧叏閮ㄥ唴琛ㄦ彃鍏ュ埌鍙︿竴寮犲唴琛ㄤ腑锛屽垯浣跨敤INSERT璇彞锛岃娉曞涓嬶細

INSERT LINES OF <itab1> [FROM <n1>] [TO <n2>] INTO <itab2> [INDEX <idx>].

濡傛灉娌℃湁FROMTO閫夐」锛岃鍙ュ皢鏁翠釜ITAB1闄勫姞鎴栨彃鍏ュ埌ITAB2涓傚鏋滀娇鐢ㄨ繖浜涢夐」锛屽垯鍙互閫氳繃绱㈠紩<n1><n2>鎸囧畾ITAB1涓渶瑕侀檮浠剁殑绗竴琛屾垨鏈鍚庝竴琛屻

4锛夈佸鍒跺唴琛ㄣ

浣跨敤MOVE璇彞鎴栬祴鍊兼搷浣滅鈥=鈥濓紝璇硶濡備笅锛

MOVE <itab1> TO <itab2>. <itab2> = <itab1>.

鎴戝 APPENDCOLLECTINSERT浠ュ強MOVE鐨勭悊瑙f槸锛

APPEND 灏辨槸鎶婃潯鐩檮浠跺埌鍐呰〃鐨勬渶鍚庝竴琛岋紝涓嶈冭檻鏄惁瀛樺湪鏍囧噯鍏抽敭瀛楃浉鍚岀殑琛岋紝鍙噸澶嶇殑銆

COLLECT 璇硶鍜APPEND涓鏍凤紝鍙笉杩囧畠浼氳繃婊ゆ爣鍑嗗叧閿瓧鐩稿悓鐨勮锛屽苟涓斿鏁板瓧瀛楁杩涜姹囨汇

INSERT 鏄彲浠ラ氳繃INDEX閫夐」鎶婃潯鐩彃鍏ュ唴琛ㄤ换浣曡銆

MOVE 灏辨槸澶嶅埗锛岀被浼尖=鈥濄

鍙兘鐞嗚В涓嶅畬鏁存垨鑰呮湁閿欒锛屼絾鐩墠鎴戝彧鑳界悊瑙e埌姝ゃ

2銆佽鍙栧唴琛

璇诲彇鍐呰〃鍙互浣跨敤LOOPREAD璇彞锛屽叾涓LOOP鏄愯璇诲彇锛READ鏄夊畾鍗曡璇诲彇銆

1锛夈侀愯璇诲彇鍐呰〃銆

浣跨敤LOOP璇彞缂栦竴涓惊鐜紝璇硶濡備笅锛

LOOP AT <itab> [INTO <wa>] [FROM <n1>] [TO <n2>] [WHERE <condition>].

……

ENDLOOP.

浣跨敤FROM閫夐」锛屽彲浠ヤ娇鐢<n1>鎸囧畾瑕佽鍙栫殑绗竴琛屻

浣跨敤TO閫夐」锛屽彲浠ヤ娇鐢<n2>鎸囧畾瑕佽鍙栫殑鏈鍚庝竴琛屻

浣跨敤WHERE閫夐」锛屽彲浠ユ寚瀹<condition>鐨勪换浣曢昏緫琛ㄨ揪寮忋

2锛夈佽鍙栧崟琛屻

浣跨敤READ璇彞锛屽彲閫氳繃绱㈠紩璇诲彇鍗曡锛屼篃鍙互閫氳繃鑷畾涔夊叧閿瓧璇诲彇鍗曡锛岃娉曞垎鍒涓嬶細

READ TABLE <itab> [INTO <wa>] INDEX <idx>.

READ TABLE <itab> [INTO <wa>] WITH KEY <key> [BINARYSEARCH].

3銆佹洿鏀瑰唴琛ㄨ

鏇存敼鍐呰〃琛屼富瑕佹湁MODIFYWRITETO浠ュ強DELETE璇彞銆

1锛夈MODIFY鏇存敼琛屻傝娉曞涓嬶細

MODIFY <itab> [FROM <wa>] [INDEX <idx>].

FROM閫夐」涓寚瀹氬伐浣滃尯鍩<wa>浠f浛<itab>涓殑琛岋紝濡傛灉鏈夎〃澶磋锛屽垯鍙拷鐣FROM 閫夐」銆

濡傛灉浣跨敤INDEX閫夐」锛屾柊琛屼唬鏇跨储寮曚负<idx>鐨勭幇鏈夎銆

2锛夈WRITETO鏇存敼琛屻傝娉曞涓嬶細

WRITE <f> [+ <o1>] [(l1)] TO <itab> [+ <o2>] [(l2)] INDEX <idx>.

灏嗗瓧娈<f>涓亸绉婚噺涓<o1>銆侀暱搴︿负<l1>閮ㄥ垎鐨勫唴瀹瑰鍒跺埌<itab>涓储寮曚负<idx>琛屼腑锛岃鐩栧亸绉婚噺涓<o2>銆侀暱搴︿负<l2>鐨勯儴鍒嗐

3锛夈DELETE鍒犻櫎琛屻傝娉曞涓嬶細

DELETE <itab> INDEX <idx>.

<itab> 涓垹闄ょ储寮曚负<idx>鐨勮銆

4銆佸垵濮嬪寲鍐呰〃

鍒濆鍖栧唴琛ㄤ富瑕佽鍙ヤ负锛REFRESHCLEARFREE

璇硶鍒嗗埆濡備笅锛

CLEAR <itab>聽聽聽聽聽聽 鈥娓呯┖鍐呰〃琛屼互鍙婂伐浣滃尯锛屼絾淇濆瓨鍐呭瓨鍖恒

CLEAR <itab>[]聽聽聽聽 鈥娓呯┖鍐呰〃琛岋紝浣嗕笉娓呯┖宸ヤ綔鍖猴紝浣嗕繚瀛樺唴瀛樺尯銆

REFRESH <itab>聽聽聽聽 鈥CLEAR <itab>[]鐩镐技锛屽彧娓呯┖鍐呰〃琛岋紝浣嗕繚瀛樺唴瀛樺尯銆

FREE <itab>聽聽聽聽聽聽聽聽 鈥娓呯┖鍐呰〃琛岋紝浣嗕笉娓呯┖宸ヤ綔鍖猴紝涓旈噴鏀惧唴瀛樺尯鍩熴

Mingo瀛︿範ABAP鍥涗箣鍐呰〃鐨勫垱寤轰笌浣跨敤

鏃堕棿锛2012骞10鏈31鏃浣滆咃細Mingo琚洿瑙備簡锛15,629 娆璇勮娆℃暟锛1

棣栧厛鐪嬩竴涓婽YPES涓嶥ATA浠ュ強TYPE涓嶭IKE浠栦滑涔嬮棿鐨勫尯鍒

1銆乀YPES涓嶥ATA鐨勫尯鍒細TYPES鏄敤鏉ュ畾涔夋煇绉嶇被(鍨)鐨,瀹冩槸鎶借薄鐨勶紝涓嶈兘鐩存帴浣跨敤锛岄渶瑕侊紙鐢―ATA璇彞锛夊疄渚嬪寲浠ュ悗鎵嶅彲浠ヤ娇鐢,鑰孌ATA鏄敤鏉ュ畾涔夋暟鎹璞(瀹炰緥鍙橀噺)鐨,鍙互鐩存帴璧嬪间娇鐢ㄣ傚浜庣敤DATA鐩存帴瀹氫箟鐨勭粨鏋勪綋瀵硅薄(涓嶅弬鐓у叾瀹冪粨鏋勭被鍨),鍏跺悓鏃朵篃鏄竴涓粨鏋勭被鍨嬨

2銆乀YPE涓嶭IKE鐨勫尯鍒細TYPE鍚庨潰璺熼殢鐨勫彧鑳芥槸鏌愮绫(鍨),鑰孡IKE鍚庨潰鍙互璺熼殢绫诲瀷鎴栧疄渚嬪璞,鍙傜収缁撴瀯浣撳璞$敓鎴愬唴琛ㄦ椂鍙兘鐢↙IKE, 涓嶈兘鐢═YPE,鍥犱负缁撴瀯浣撳璞′笉鏄被鍨,鍙槸涓绉嶅疄渚嬪璞,鍙傜収缁撴瀯绫诲瀷鐢熸垚鍐呰〃鏃跺彲浠ョ敤LIKE涔熷彲浠ョ敤TYPE銆傚叾涓氳繃LIKE瀹氫箟鐨勫唴琛ㄧ洿鎺ユ嫢鏈夊弬鐓х粨鏋勭被鍨嬬殑鍏冪礌缁撴瀯,鑰岄氳繃TYPE瀹氫箟鐨勫唴琛ㄥ彧鑳介棿鎺ユ嫢鏈夎鍙傜収缁撴瀯绫诲瀷鐨勫厓绱犵粨鏋,缁撴瀯绫诲瀷涓嶈兘浣滀负鍐呰〃鐨勫伐浣滃尯,鍙湁缁撴瀯浣撳璞℃墠鍙互銆

鍐呰〃鐨鍒涘缓涓庝娇鐢

鏂瑰紡涓锛氬厛鐢═YPES璇彞鍒涘缓鍐呰〃鏁版嵁绫诲瀷锛岀劧鍚庡啀鍒涘缓鍏锋湁璇ョ被鍨嬬殑鏁版嵁瀵硅薄銆

TYPES: BEGIN OF line,
field1 TYPE i,
field2 TYPE i,
END OF line.

line 鏄竴涓暟鎹被鍨嬶紝鎴戠敤JAVA鐨勬蹇垫潵鐞嗚В杩欏氨鏄竴涓狢LASS锛屽鏋滈渶瑕佷娇鐢ㄥ繀椤籲ew 涓涓璞°傝岃繖閲屽氨蹇呴』閫氳繃DATA璇彞鏉ュ垱寤鸿绫诲瀷鐨勬暟鎹璞°

瀹氫箟涓涓唴琛ㄧ殑宸ヤ綔鍖猴細

DATA:聽itab-wa TYPE line.聽聽聽鈥濅篃鍙互浣跨敤LIKE閫夐」锛屽锛欴ATA: itab-wa聽LIKE line.

瀹氫箟涓涓棤宸ヤ綔鍖虹殑鍐呰〃锛

DATA: itab TYPE line OCCURS 0.
DATA: itab TYPE STANDARD TABLE OF line INITIAL SIZE 0.

浣跨敤锛氶渶瑕佷笌涓婇潰瀹氫箟鐨勫伐浣滃尯涓璧蜂娇鐢ㄣ

itab-wa-field1 = 1.
itab-wa-field2 = 2.
APPEND itab-wa TO itab.

瀹氫箟涓涓湁宸ヤ綔鍖虹殑鍐呰〃锛

DATA: itab TYPE line OCCURS 0 WITH HEADER LINE.
DATA: itab TYPE STANDARD TABLE OF line INITIAL SIZE 0 WITH HEADER LINE.

浣跨敤锛氬洜涓鸿繖閲屽唴琛ㄦ湰韬湁宸ヤ綔鍖猴紝鎵浠ュ彲浠ョ洿鎺ヤ娇鐢ㄣ

itab-field1 = 1.
itab-field2 = 2.
APPEND itab.

鍦ㄨ繖閲孫CCURS鎴戣繕鐞嗚В鐨勪笉鏄緢娓呮锛屾垜鏆備笖鎶婂畠鐞嗚В涓哄尯鍒伐浣滃尯鍜屽唴琛ㄧ殑鏍囧織锛屾湁OCCURS灏辨槸鍐呰〃锛屾病鏈夊氨鏄伐浣滃尯銆

鍦ㄥ唴琛ㄦ湁鏃 HEADER LINE 灏辩浉褰撲簬鏈夋棤宸ヤ綔鍖恒

鍏跺疄宸ヤ綔鍖烘垜涔犳儻鎶婂畠鐞嗚В涓哄疄渚嬪璞★紝涔熷氨鏄彲浠ョ洿鎺ユ搷浣滅殑瀵硅薄銆

鏂瑰紡浜岋細浣跨敤DATA鏉ュ畾涔夈

DATA: BEGIN OF line,
field1 TYPE i,
field2 TYPE i,
END OF line.

鐜板湪line鏈韩灏辨槸涓涓璞★紝鍙互鐩存帴褰撲綔宸ヤ綔鍖烘潵浣跨敤锛屽氨涓嶉渶瑕佸啀澹版槑宸ヤ綔鍖轰簡锛屽綋鐒朵篃鍙互澹版槑銆

瀹氫箟鍐呰〃锛

DATA: itab聽LIKE line OCCURS 0 .
DATA: itab聽LIKE STANDARD TABLE OF line INITIAL SIZE 0.

浣跨敤锛氬彲浠ョ洿鎺ョ敤line褰撲綔宸ヤ綔鍖

line-field1 = 1.
line-field2 = 2.
APPEND line TO itab.

瀹氫箟鏈夊伐浣滃尯鐨勫唴琛細

DATA: ITAB LIKE line OCCURS 0 WITH HEADER LINE.
DATA: ITAB LIKE STANDARD TABLE OF line INITIAL SIZE 0 WITH HEADER LINE.

浣跨敤鏂瑰紡鍚屾柟寮忎竴涓鏍枫

鏂瑰紡涓夛細鐩存帴瀹氫箟涓涓湁宸ヤ綔鍖虹殑鍐呰〃銆

DATA: BEGIN OF itab OCCURS 0,
field1 TYPE i,
field2 TYPE i,
END OF itab.

浣跨敤锛氬洜涓鸿繖閲屾湰韬湁宸ヤ綔鍖猴紝鎵浠ュ彲浠ョ洿鎺ヤ娇鐢

itab-field1 = 1.
itab-field2 = 2.
APPEND itab.

鐩墠鍙簡瑙h繖涓夌鏂规硶锛岀户缁涔犱腑銆

Mingo瀛︿範ABAP涓変箣鍒涘缓鏁版嵁绫诲瀷鍜屾暟鎹璞

鏃堕棿锛2012骞10鏈30鏃浣滆咃細Mingo琚洿瑙備簡锛3,005 娆璇勮娆℃暟锛0

涓鑸潵璇达紝鍦ㄥ0鏄庤鍙ヤ腑瀹氫箟鏁版嵁瀵硅薄鐨勬暟鎹被鍨嬮噰鐢ㄤ互涓嬩袱绉嶆柟寮忥細

A銆佺洿鎺ュ0鏄庢柟寮忋備緥濡傦細A TYPE C ,閫氳繃TYPE閫夐」鐩存帴灏嗘暟鎹被鍨婥鍒嗛厤缁欏凡澹版槑鐨勬暟鎹璞銆

B銆侀棿鎺ュ0鏄庢柟寮忋備緥濡傦細B LIKE A 锛岄氳繃LIKE 閫夐」鍙皢鍙︿竴涓暟鎹璞鐨勬暟鎹被鍨婥鍒嗛厤缁欏凡澹版槑鐨勬暟鎹璞銆

鐢ㄤ簬闈欐佸垱寤烘暟鎹璞″拰鏁版嵁绫诲瀷鐨勫叧閿瓧濡備笅琛ㄦ墍绀猴細

DATA 璇彞 鐢ㄤ簬鍒涘缓鍙橀噺
CONSTANTS 璇彞 鐢ㄤ簬鍒涘缓甯搁噺
STATICS 璇彞 鐢ㄤ簬鍒涘缓鍙橀噺锛岃繖浜涘彉閲忓湪绋嬪簭杩愯鏈熼棿涓鐩村瓨鍦紝浠呭湪杩囩▼涓彲瑙
TABLES 璇彞 鐢ㄤ簬鍒涘缓琛ㄥ伐浣滃尯
TYPES 璇彞 鐢ㄤ簬鍒涘缓鐢ㄦ埛鑷畾涔夌殑鏁版嵁绫诲瀷

1銆丏ATA 璇彞

璇硶1锛欴ATA <f> [(<length>)] <type> [<value>] [<decimals>]

鍏朵腑聽<f>鏄负鍙橀噺鍚嶇О锛屾渶闀垮彲杈30涓瓧绗︼紱<length>鏄彉閲忕殑闀垮害锛<type>鏄彉閲忕殑鏁版嵁绫诲瀷锛<value>涓哄彉閲忔寚瀹氬垵濮嬪硷紱<decimals>鏄綋鍙橀噺鏈夋渶灏忔暟浣嶇殑鏃跺欐寚瀹氬皬鏁版暟浣嶃

璇硶2锛欴ATA <f> LIKE <g>

鏍规嵁涓庢暟鎹璞<g>瀹屽叏鐩稿悓鐨勭被鍨嬪拰缁撴瀯鍒涘缓瀛楁<f>銆

璇硶3锛欴ATA <f> …. VALUE <val>

灏嗗瓧娈<f>鐨勫垵濮嬪艰涓<val>锛屽叾涓<val>鍙互鏄父閲忋

璇硶4锛 DATA:聽 BEGIN OF <abcd>锛

<component declaration>,

…………………………………….,

END OF <ABCD>.

杩欎簺璇彞瀹氫箟浜嗗瓧娈典覆<abcd>,鍦ㄨ娉暵<component declaration>涓紝鍙寚瀹氶暱搴︺佺被鍨嬨佸垵濮嬪兼垨灏忔暟浣嶆暟銆傚涓嬫墍绀猴細

DATA: BEGIN OF ABC,

NAME(20) TYPE C,

AGE TYPE I VALUE 20,

NUMBER TYPE P,

END OF ABC.

 

2銆丆ONSTANTS 璇彞

濡傛灉瑕侀绻佷娇鐢ㄦ煇涓父閲忥紝鍙埄鐢–ONSTANTS璇彞灏嗗叾澹版槑涓哄叿鏈夊浐瀹氬肩殑鍙橀噺銆

璇硶锛欳ONSTANTS <c>[<length>] <type> <value> [<decimals>].

娉ㄦ剰锛欳ONSTANTS璇彞蹇呴』浣跨敤<value>鍙傛暟锛岃孌ATA璇彞涓鍙傛暟鏄彲閫夌殑銆傚彟澶栵紝鍒╃敤<value>鍙傛暟鎸囧畾鐨勫垵濮嬪硷紝鍦ㄧ▼搴忔墽琛屾湡闂存槸涓嶈兘鏇存敼鐨勩

3銆丼TATICS 璇彞

鍦ㄨ繃绋嬬殑杩愯鏃堕棿涔嬪浠嶄繚鐣欐煇鍙橀噺鐨勬暟鍊硷紝鍙娇鐢⊿TATICS璇彞瀹氫箟璇ュ彉閲忋傜被浼间笌JAVA涓殑闈欐佸彉閲忋

璇硶锛歋TATICS <s>[<length>] <type> <value> [<decimals>].

4銆乀YPES璇彞

浣跨敤TYPES璇彞鍙互鍒涘缓鐢ㄦ埛瀹氫箟鐨勫熀鏈暟鎹被鍨嬪拰缁撴瀯鍖栨暟鎹被鍨嬨

璇硶锛歍YPES <a>[<length>] <type> [<decimals>].

瀹氫箟缁撴瀯鍖栫殑鏁版嵁绫诲瀷锛

TYPES: BEGIN OF<abc>锛

<component declaration>,

END OF <abc>.

娉ㄦ剰锛氱敱浜庢病鏈変笌鏁版嵁绫诲瀷鐩稿叧鑱旂殑鍐呭瓨锛屾墍浠ユ棤娉曞湪TYPES璇彞涓娇鐢<value>鍙傛暟銆傚洜姝YPES璇彞涓嶈兘缁欐暟鎹被鍨嬪垎閰嶅笺

 

鍒嗙被锛鍏朵粬璇█

Mingo瀛︿範ABAP浜屼箣寤虹珛Hello World绋嬪簭

鏃堕棿锛2012骞10鏈28鏃浣滆咃細Mingo琚洿瑙備簡锛4,248 娆璇勮娆℃暟锛0

澶у鏁扮▼搴忓憳鍐欑殑绗竴涓▼搴忓線寰閮芥槸鈥淗ello World鈥濓紝鎴戜篃涓嶇煡閬撲负浠涔堬紝褰撶劧鎴戜篃涓嶄緥澶栵紝涔熺敤鈥淗ello World鈥濅綔涓烘垜瀛︿範ABAP鐨勫紑濮嬪惂銆

棣栧厛鍦ㄧ櫥褰昐AP鍚庯紝杈撳叆浜嬪姟浠g爜锛圱CODE锛夛細SE38锛屽涓嬪浘锛

杈撳叆绋嬪簭鍚嶇О鍚庯紝鐐瑰嚮鈥滃垱寤衡濇寜閽傛敞鎰忥細鐢ㄦ埛鑷畾涔夌殑绋嬪簭鍚嶅瓧蹇呴』浠モ漎鈥濇垨鑰呪漐鈥濆紑澶达紝瀛楃鏈澶氫笉鑳借秴杩30涓傚涓嬪浘锛

杈撳叆鏍囬绛変俊鎭悗鐐瑰嚮鈥滀繚瀛樷濓紝濡備笅锛

鐐瑰嚮鈥滀繚瀛樻湰鍦扳濓紝琛ㄧず涓嶄紶杈撳埌鍏朵粬鏈嶅姟鍣紝濡備笅鍥撅細

杈撳叆WRITE璇彞琛屽悗鍗曞嚮聽 聽聽聽 鎸夐挳锛屾祴璇曡繍琛,濡備笅鍥撅細

绋嬪簭姝g‘杈撳嚭 鈥淗ELLO WORLD锛佲濓紝濡備笅鍥撅細

 

 

 

鍒嗙被锛鍏朵粬璇█

Mingo瀛︿範ABAP涓涔婣BAP璇█鐨勭畝鍗曚粙缁

鏃堕棿锛2012骞10鏈25鏃浣滆咃細Mingo琚洿瑙備簡锛3,041 娆璇勮娆℃暟锛1

ABAP鏄竴绉嶉珮绾т紒涓氬簲鐢ㄧ紪绋嬭瑷锛圓dvanced Business Application Programming锛夛紝璧锋簮浜20涓栫邯80骞翠唬銆傜粡杩囦笉鏂殑鍙戝睍锛岀幇鍦ㄧ殑鐗堟湰涓篈BAP/4锛孲AP R/3鐨勫簲鐢ㄧ▼搴忓氨鏄敤ABAP/4缂栧啓鐨勩

ABAP鐨勪富瑕佺殑绋嬪簭绫诲瀷锛

ABAP 缂栬緫宸ュ叿锛

浜嬪姟浠g爜锛圱CODE锛夛細SE38

ABAP鐨勫熀鏈暟鎹被鍨嬶細

 

鏁版嵁绫诲瀷 榛樿澶у皬 鏈夋晥澶у皬 鍒濆鍊
C锛欳haracter Text (鏂囨湰銆佸瓧绗) 1 1-65535 SPACE
D锛欴ate (鏃ユ湡,鏍煎紡:YYYYMMDD) 8 8 ’00000000′
F锛欶loating Point(娴偣鏁) 8 8 0
I锛欼nteger(鏁村瀷銆佹暣鏁) 4 4 0
N锛歂umeric Text(鏁板瓧鏂囨湰) 1 1-65535 ’00…0′
P锛歅acked(鍘嬬缉鍙) 8 1-16 0
T锛歍ime(鏃堕棿,鏍煎紡:HHMMSS) 6 6 ’000000′
X锛欻exadecimal(鍗佸叚杩涘埗) 1 1-65535 X’00′

聽聽聽 聽鍦ㄤ互涓婃暟鎹被鍨嬩腑锛DFIT閮芥槸棰勫畾涔夌殑锛CNPX鏄彲浠ユ湁闄勫姞璇存槑锛屽彲浠ュ湪绋嬪簭涓畾涔夊ぇ灏忋

聽聽聽 渚嬪锛DATA:NAME(20) TYPE C VALUE ‘寮犱笁’.

瀹氫箟鍙橀噺锛

聽聽聽 瀹氫箟涓浜涘彉閲.鐢ㄢ滵ATA:鈥濆紑澶 ,澶氫釜鍙橀噺鍙敤鈥橈紝鈥欓楀彿闅斿紑銆

聽聽聽 渚嬪锛 DATA:NAME(20) TYPE C VALUE ‘寮犱笁’, (鍙互鎸囧畾榛樿鍊)

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 AGE TYPE I.

鍒嗙被锛鍏朵粬璇█