您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 官方教材-ABAP用户指南(中文)
BCABAP/4®3.0SAPABAP/4ABAP/4ABAP/4ABAP/4SAPABAP/4F2ENTER.......123R/3R/3ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4SE38-ABAP/4ABAP/4ABAP/4F1ABAP/4ABAP/4ABAP/4ABAP/4SE38-ABAP/4-ABENTITLABAP/4ABAP/4SE30-ABAP/4SAPABAP/4ABAP/4SAPSAPABAP/4R/3ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4----ABAP/4ABAP/4ABAP/4ABAP/4OpenSQLSQLOpenSQLABAP/4ABAP/4ABAP/4ABAP/4bc01e:0bc01e.rtf001ABAP/4,;ABAP/4,;,;overviewABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4[]|(),f1f2.......WRITEWritewriteScreenoutput.ABAP/4ABAP/4................................................................1-1ABAP/4.............................................................2-1.............................................................................3-1..........................................................................4-1..............................................................................5-1..............................................................................6-1ABAP/4....................................................................7-1...........................................................................8-1ABAP/4..................................................................9-1..........................................................................10-1............................................................11-1...............................................................12-1.............................................................................13-11ABAP/47..............................................................88............................................................910101111ABAP/4ABAP/4ABAP/41.2.3.4.ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4(Error!Notavalidlink.)ABAP/41.SAPR/3-ABAP/4ABAP/42.ABAP/4ABAP/43.(454)4.ABAP/4(456)ABAP/41.ABAP/42.3.4.ABAP/4(Error!Notavalidlink.)_18_-.-(,)--'('')'-(')-()-(=)-(*)-(_,_,_,_,_,_)'_'-(%)(_)SQLSAP_YaxxxxxxZaxxxxxxaxSAPRaxxxxxx_ABAP/4SAPMYxxxSAPMZxxxxSAPABAP/4SAPMaxxxa(458)ABAP/4ABAP/4:1.-ABAP/4-2.-1M-F3.=14.(458)5.6.7.$TMP8.ABAP/49.ABAP/4-68ABAP/41MIF$TMPABAP/4-...1000F4DBxxxSEL/ABAP/4ABAP/4(Error!Notavalidlink.)PP(34).ABAP/4ABAP/4ABAP/4ABAP/41.ABAP/4-ABAP/4ABAP/4ABAP/4REPORTreportnameorPROGRAMprogramname.report/programnameABAP/4REPORTPROGRAMABAP/4REPORTPROGRAMLINE-SIZELINE-COUNTNOSTANDARDPAGEHEADINGREPORTPROGRAM2.3.4.ABAP/4-ABAP/4ABAP/41.ABAP/42.3ABAP/4-3.Usernameforbadeallchanges.154.5.6.$TMP$TMP7.(10)1ABAP/41.2.ABAP/4--3.4.5.6.ABAP/412......................................................................12....................................................................13......................................................................1314..................................................................14..................................................................15.............................................................15ABAP/416................................................................16...........................................................16.........................................................16.............................................................1617.......................................................17...........................................................18ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4ABAP/4PROGRAMSAPMTEST.WRITE'FirstProgram'.PROGRAMWRITETYPES,DATA,TABLES()ABAP/4ATSELECTIONSCREEN,START-OF-SELECTION,ATUSER-COMMANDABAP/4ABAP/4IF,WHILE,CASEABAP/4()WRITE,MOVE,ADD()ABAP/4*************************************************PROGRAMSAPMTZST**CREATEDBYCARLBYTE,06/27/1995**LASTCHANGEBYRITADIGIT,10/01/1995**PURPOSE:DEMONSTRATION*************************************************PROGRAMSAPMTEST.*************************************************DECLARATIONPART*************************************************DATA............*************************************************OPERATIONPART*************************************************......*(396)ABAP/4ABAP/4ABAP/4PROGRAMSAPMZTST.WRITE'Thisisastatement'.PROGRAMSAPMTEST.WRITE'Thisisastatement'.PROGRAMSAPMTEST.WRITE'Thisisastatement'.*PROGRAMSAPMTEST.*ThefollowinglinecontainsaWRITEstatementWRITE'FirstProgram'.OutputonList*PROGRAMWRITEABAP/4:,WRITESPFLI-CITYFROM.WRITESPFLI-CITYTO.WRITESPFLI-AIRPTO.WRITE:SPFLI-CITYFROM,SPFLI-CITYTO,SPFLI-AIRPTO.WRITE:SPFLI-CITYFROM,SPFLI-CITYTO,SPFLI-AIRPTO.SUM=SUM+1.SUM=SUM+2.SUM=SUM+3.SUM=SUM+4.SUM=SUM+:1,2,3,4.ABAP/4()ABAP/4ABAP/4ABAP/4()ABAP/4ABAP/4ABAP/4(9)ABAP/4(Error!Notavalidlink.)ABAP/4ABAP/4ABAP/4ABAP/4(Error!Notavalidlink.)ABAP/4ABAP/4-PROGRAMSAPMTEST.DATA:SUM1TYPEI,SUM2TYPEI,SUM3TYPEI.IFSUM1=SUM2.WRITE'Case1'.ELSEIFSUM1=SUM3.WRITE'Case2'.ENDIF.PROGRAMSAPMTEST.DATA:SUM1TYPEI,SUM2TYPEI,SUM3TYPEI.IFSUM1=SUM2.WRITE'Case1'.ELSEIFSUM1=SUM3.WRITE'Case2'.ENDIF.ABAP/4ABAP/4ABAP/4ABAP/4(Error!Notavalidlink.)ABAP/41.2.-3.*(10)CASECASEf.WHENw1.......WHENw2.......WHENOTHERS.......ENDCASE.1.(17)122.*3.**3************************************************************************************************************************
本文标题:官方教材-ABAP用户指南(中文)
链接地址:https://www.777doc.com/doc-4219758 .html