SAP系統(tǒng)變量用法----ABAP程序系統(tǒng)字段中英文詳解_第1頁(yè)
SAP系統(tǒng)變量用法----ABAP程序系統(tǒng)字段中英文詳解_第2頁(yè)
SAP系統(tǒng)變量用法----ABAP程序系統(tǒng)字段中英文詳解_第3頁(yè)
SAP系統(tǒng)變量用法----ABAP程序系統(tǒng)字段中英文詳解_第4頁(yè)
SAP系統(tǒng)變量用法----ABAP程序系統(tǒng)字段中英文詳解_第5頁(yè)
已閱讀5頁(yè),還剩5頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、SAP系統(tǒng)變量用法ABAP程序系統(tǒng)字段中英文詳解更新時(shí)間:2015-04-05 09:40:39編輯:SAP中文學(xué)習(xí)網(wǎng)點(diǎn)擊:55 發(fā)表評(píng)論 本文標(biāo)簽:系統(tǒng)字段變量SY-SUBRC: 系統(tǒng)執(zhí)行某指令后,表示執(zhí)行成功與否的變量,0 表示成功SY-DBLNT: 被處理過(guò)的記錄的筆數(shù) SY-UNAME: 當(dāng)前使用者登入SAP的USERNAME;SY-DATUM: 當(dāng)前系統(tǒng)日期;SY-UZEIT: 當(dāng)前系統(tǒng)時(shí)間;SY-TCODE: 當(dāng)前執(zhí)行程序的Transaction codeSY-INDEX : 當(dāng)前LOOP循環(huán)過(guò)的次數(shù)SY-TABIX: 當(dāng)前處理的是internal table 的第幾筆SY-TMA

2、XL: Internal table的總筆數(shù)SY-SROWS: 屏幕總行數(shù);SY-SCOLS: 屏幕總列數(shù);SY-MANDT: 當(dāng)前系統(tǒng)編號(hào)(CLIENT NUMBER)SY-VLINE: 畫(huà)豎線SY-ULINE: 畫(huà)橫線SY-PAGNO: 當(dāng)前頁(yè)號(hào)SY-LINSZ: 當(dāng)前報(bào)表寬度SY-LINCT: 當(dāng)前報(bào)表長(zhǎng)度SPACE: 空字符串SY-LSIND: 列表索引頁(yè)SY-LISTI: 上一個(gè)列表的索引SY-LILLI: 絕對(duì)列表中選定行的行號(hào)SY-CUROW: 屏幕上的行SY-CUCOL: 光標(biāo)列SY-CPAGE: 列表的當(dāng)前顯示頁(yè)SY-STARO:真實(shí)行號(hào)SY-LISEL: 選擇行的內(nèi)容,長(zhǎng)度

3、為255SY-LINNO: 當(dāng)前行系統(tǒng)內(nèi)部有一個(gè)專門(mén)存放系統(tǒng)變量的結(jié)構(gòu)SYST,其中最常用的系統(tǒng)變量有:SY-SUBRC: 系統(tǒng)執(zhí)行某指令后,表示執(zhí)行成功與否的變量,0 表示成功SY-UNAME: 當(dāng)前使用者登入SAP的USERNAME;SY-DATUM: 當(dāng)前系統(tǒng)日期;SY-UZEIT: 當(dāng)前系統(tǒng)時(shí)間;SY-TCODE: 當(dāng)前執(zhí)行程序的Transaction codeSY-REPID: ABAP 程式名,目前的主程式SY-CPROG: ABAP 程式名SY-SYSID: R/3 系統(tǒng),R/3 系統(tǒng)名稱SY-UCOMM:  畫(huà)面,PAI 驅(qū)動(dòng)的功能代碼,一般用來(lái)參照定義變量SY-IN

4、DEX : 當(dāng)前LOOP循環(huán)過(guò)的次數(shù)   READ TABLE it_po INDEX 1  此時(shí)變量值1SY-TABIX: 當(dāng)前處理的是internal table 的第幾筆下面說(shuō)下sy-index 和 sy-tabix的區(qū)別sy-index和sy-tabix都是系統(tǒng)字段,用來(lái)記錄循環(huán)的次數(shù)。sy-index 在DO.ENDDO循環(huán)里有效,而sy-tabix在loop at .endloop里有效。運(yùn)行下面的例子能更好的理解:DATA: BEGIN OF line,   col1 TYPE i,   col2 TYPE i,

5、0;  END OF line.DATA itab LIKE TABLE OF line WITH HEADER LINE.DO 30 TIMES. line-col1 = sy-index. line-col2 = sy-index * sy-index. APPEND line TO itab.ENDDO.LOOP AT itab . DO 2 TIMES.   WRITE: / 'sy-tabix:',sy-tabix,itab-col1,    'sy-index:'

6、;,sy-index,itab-col2. ENDDO.ENDLOOP.sy-dbcnt:Sy-dbcnt代表有多少條記錄被處理了例如:當(dāng)我們查詢記錄放入內(nèi)表,判斷內(nèi)表中是否有數(shù)據(jù)就可以用if sy-dbcnt = 0  MESSAGE s000.     STOP. ENDIF.sy-tfill:返回當(dāng)前內(nèi)表(Internal Table)內(nèi)的記錄數(shù)。但是要小心,那些字段隨各自的內(nèi)表(Internal Table)改變。例:如果你循環(huán)(Loop at)(讀?。﹊tab,sy-tfill返回itab的記錄數(shù)。如 果你在循環(huán)(Loop at)(讀

7、取)內(nèi)表(Internal Table)itab的內(nèi)部嵌套循環(huán)(Loop at)(讀?。﹥?nèi)表(Internal Table)jtab,sy-tfill返回的不再是itab的記錄數(shù),而是jtab的!所以如果你需要使用itab的記錄數(shù),請(qǐng)先把sy-tfill的 值傳遞給其它變量。無(wú)論如何,sy-tfill永遠(yuǎn)保存當(dāng)前的記錄數(shù)。例如記錄內(nèi)表記錄條數(shù):DESCRIBE TABLE itab LINES sy-tfill.SY-TMAXL: Internal table的總筆數(shù)SY-SROWS: 屏幕總行數(shù);SY-SCOLS: 屏幕總列數(shù);SY-MANDT: 當(dāng)前系統(tǒng)編號(hào)(CLIENT NUMBER)S

8、Y-VLINE: 畫(huà)豎線SY-ULINE: 畫(huà)橫線sy-pagno   當(dāng)前頁(yè)號(hào)sy-lsind      列表索引頁(yè)sy-listi        上一個(gè)列表的索引sy-linsz      當(dāng)前報(bào)表寬度sy-lilli          絕對(duì)列表中選定的行號(hào)sy-linct       當(dāng)前報(bào)表長(zhǎng)度sy-curow    屏幕上的行space      

9、   空字符sy-cucol     光標(biāo)列sy-cpage    列表的當(dāng)前顯示頁(yè)sy-staro     真實(shí)行號(hào)sy-lisel       選擇行的內(nèi)容,長(zhǎng)度為255sy-linno      當(dāng)前行SY-MANDT: 當(dāng)前系統(tǒng)編號(hào)(CLIENT NUMBER)SY-SLSET:  SY-SUBRC 的含義= FUNCTION MODULE (或RFC中) SY-SUBRC 的含義 = 使用SELECT語(yǔ)句選擇查詢: SY-SUBRC = 0: 至

10、少有一行數(shù)據(jù),當(dāng)ENDSELECT語(yǔ)句執(zhí)行完,SY-DBCNT中保存著記錄的個(gè)數(shù)。 SY-SUBRC = 4: 沒(méi)有數(shù)據(jù)。 SY-SUBRC = 8: 只有使用“SELECT SINGLE FOR UPDATE”時(shí)才會(huì)有,              表示: WHERE條件指定的記錄不止一行,結(jié)果是沒(méi)有記錄被選中。  使用INSERT語(yǔ)句,向表中插入一行,必須注意INSERT的順序與表中字段的順序一致: SY-SUBRC = 0: 插入成功,SY-DBCNT包含了插入的行數(shù),0或1。 SY-SUBRC = 4: 由于

11、有相同的KEY存在,所以插入失敗。  使用LOOP語(yǔ)句來(lái)遍歷一個(gè)內(nèi)表: SY-SUBRC = 0: 循環(huán)至少被執(zhí)行一次。 SY-SUBRC = 4: 循環(huán)沒(méi)有被執(zhí)行,可能是沒(méi)有數(shù)據(jù),也可能是沒(méi)有符合條件的記錄。  使用DELETE語(yǔ)句來(lái)刪除一條記錄: SY-SUBRC = 0: 找到一行并刪除之,如果該表有不唯一主鍵,也就是有多條重復(fù)的記錄,則只刪除第一條記錄。 SY-SUBRC = 4: 沒(méi)有找到符合條件的記錄,也沒(méi)有刪除。  使用UPDATE語(yǔ)句來(lái)更新一條記錄: SY-SUBRC = 0: 找到記錄并更新,(如果有多條記錄呢?) SY-SUBRC = 4: 沒(méi)

12、有找到符合條件的記錄,也沒(méi)有更新。 ABAP程序系統(tǒng)字段中英文詳解注_華亭慧劍譯系統(tǒng)字段由ABAP運(yùn)行時(shí)環(huán)境填寫(xiě),并且可以用來(lái)在ABAP程序中查詢系統(tǒng)狀態(tài)。除了一個(gè)例外(sy-repid),系統(tǒng)字段都是變量,但是它們都是只讀的。此外,更多程序執(zhí)行的重要信息通常都被丟棄。ABAP程序中的系統(tǒng)字段只在極少需要控制系統(tǒng)行為的時(shí)候才能被重寫(xiě)。System fields are filled by the ABAP runtime environment and can be used in an ABAP program to query system statuses. With one excep

13、tion (sy-repid), system fields are variables, but they should only be accessed on a read-only basis. Otherwise, important information for further program execution often gets lost. System fields in ABAP programs can only be overwritten in a few cases to control system behavior.對(duì)于例外的sy-repid,這個(gè)系統(tǒng)字段的數(shù)

14、據(jù)類型在ABAP字典的SYST結(jié)構(gòu)(6.10版以后)中定義,作為sy結(jié)構(gòu)(也可以用SYST來(lái)定位)的組件在ABAP程序中有示例。sy結(jié)構(gòu)在一個(gè)內(nèi)部會(huì)話期間內(nèi)只存在一次,并且在這個(gè)內(nèi)部會(huì)話期間內(nèi)被所有程序使用。下表列出了在ABAP程序中可以使用的系統(tǒng)字段。所有sy結(jié)構(gòu)的其他組件則或者在ABAP運(yùn)行時(shí)環(huán)境內(nèi)部使用或者已經(jīng)廢棄。With the exception of sy-repid, the data types of the system fields are defined in the ABAP Dictionary in the structure SYST (as of releas

15、e 6.10), and are instantiated in ABAP programs as components of the predefined structure sy, which can also be addressed using SYST. The structure sy exists only once in an internal session and is used by all programs of an internal session at the same time. The following table shows the system fiel

16、ds that can be used in ABAP programs. All other components of the structure sy are either intended for internal use by the ABAP runtime environment or are obsolete.名稱Name類型Type說(shuō)明Contentsy-abcdec(26)包含了字母表??梢杂脕?lái)通過(guò)指定偏移/長(zhǎng)度直接訪問(wèn)獨(dú)立的字母,而無(wú)需考慮代碼頁(yè)。Contains the alphabet. Can be used to access individual letters

17、 directly by specifying the offset/length, regardless of the code page.sy-batchc(1)在一個(gè)后臺(tái)運(yùn)行的ABAP程序中設(shè)置為“X”,否則就是初始值。Set to "X" in an ABAP program that runs in the background, otherwise initial.sy-binptc(1)在批處理輸入會(huì)話中設(shè)置為“X”,在ABAP程序中調(diào)用using CALL TRANSACTION USING。否則就是初始值。Set to "X" duri

18、ng processing of batch input sessions, and in ABAP programs called using CALL TRANSACTION USING. Otherwise initial.sy-calldc(1)在一個(gè)調(diào)用序列中的第一個(gè)程序里為空字符串,否則為值“X”。在調(diào)用using CALL TRANSACTION,CALL DIALOG或者SUBMIT . AND RETURN后變?yōu)椤癤”。如果程序以LEAVE TO TRANSACTION或者從一個(gè)屏幕事務(wù)開(kāi)始的話,則為空。使用SUBMIT(沒(méi)有AND RETURN)時(shí)設(shè)定為調(diào)用它的程序的值。C

19、ontains a blank character in the first program in a call sequence , otherwise contains the value "X". Is set to "X" after calls using CALL TRANSACTION , CALL DIALOG, or SUBMIT . AND RETURN. Empty if the program was started using LEAVE TO TRANSACTION or a transaction from the scre

20、en. A call using SUBMIT (without AND RETURN) assumes the value of the calling program.sy-callrc(8)當(dāng)打印清單時(shí),顯示打印從何處開(kāi)始的值,例如NEW-PAGE為程序控制的打印,或者RSDBRUNT為從一個(gè)選擇屏幕打印。When printing lists, contains a value that displays where the printing was started, for example, NEW-PAGE for program-controlled printing, or R

21、SDBRUNT for printing from the selection screen.sy-colnoi在清單緩沖區(qū)中創(chuàng)建清單過(guò)程中的當(dāng)前位置。從1開(kāi)始計(jì)算。在非Unicode系統(tǒng)中,這個(gè)位置也符合顯示清單中的列。在Unicode系統(tǒng)中,由于清單緩沖區(qū)中的一個(gè)字符可能占多列,這只保證每個(gè)輸出的最低和最高的輸出能力。Current position during creation of a list in the list buffer. Counting begins at 1. In non-Unicode systems, this position also correspond

22、s to the column in the displayed list. In Unicode systems, this is only guaranteed for the lower and upper output limits applicable to each output, as one character may take up more columns in the list than positions in the list buffer.sy-cpagei當(dāng)清單事件被觸發(fā)時(shí),顯示在清單頂端的頁(yè)碼。從1開(kāi)始。Page number of the page displ

23、ayed at the top of the list for which a list event was triggered. Counting begins at 1.sy-cprogc(40)在外部程序調(diào)用中,調(diào)用程序的名字,否則就是當(dāng)前程序的名字。如果一個(gè)程序包含多級(jí)程序調(diào)用,sy-cprog包含框架程序的名字,而不是設(shè)置為程序調(diào)用序列中的框架程序名字。In procedures called externally, the name of the calling program, Otherwise the name of the current program. If a pro

24、cedure called externally calls another external procedure, sy-cprog contains the name of the framework program, and is not set to the name of the framework program of the subsequent calling program.sy-cucoli在屏幕上顯示的橫向指針的位置。從第2列開(kāi)始。Horizontal cursor position in the display on a screen. Counting begins

25、at column 2.sy-curowi在屏幕上顯示的縱向指針的位置。從第1行開(kāi)始。Vertical cursor position on the screen display of a screen. Counting begins at line 1.sy-datarc(1)在PAI中,如果屏幕上至少有一個(gè)輸入字段的值被用戶或其他數(shù)據(jù)傳輸所更改,則為“X”,否則為初始值。At PAI, contains "X" if at least one input field of a screen has been changed by a user or by furthe

26、r data transfer, otherwise initial.sy-datlod用戶的當(dāng)前日期,例如:19990723,20000422??梢杂肎ET TIME來(lái)設(shè)置。Local date of the user, for example 19990723, 20000422. Can be set using GET TIME.sy-datumdSAP系統(tǒng)的本地日期??梢杂肎ET TIME來(lái)設(shè)置。Local date of the SAP system. Can be set using GET TIME.sy-daystc(1)在夏令時(shí)中設(shè)置為“X”,否則為初始值。"X&

27、quot; during summertime, otherwise initial.sy-dbcntiSQL語(yǔ)句把sy-dbcnt的內(nèi)容設(shè)置為處理過(guò)的表行數(shù)。SQL statements set the content of sy-dbcnt to the number of processed table lines.sy-dbnamc(20)在執(zhí)行程序中,表示連接的邏輯數(shù)據(jù)庫(kù)。In executable programs, the linked logical database.sy-dbsysc(10)使用的數(shù)據(jù)庫(kù)系統(tǒng),例如ORACEL, INFORMIX。Central databa

28、se system, for example, ORACLE, INFORMIX.sy-dyngrc(4)當(dāng)前屏幕的屏幕組。在屏幕畫(huà)筆中,幾個(gè)屏幕可以指定給一個(gè)公共屏幕組,例如,可以用來(lái)一次修改同一個(gè)屏幕組中的全部屏幕。Screen group of the current screen. In the Screen Painter, several screens can be assigned to a common screen group, which can be used, for example, for making modifications to all screens i

29、n the group at once.sy-dynnrc(4)當(dāng)前的屏幕號(hào)。在選擇屏幕處理過(guò)程中,這指定了當(dāng)前被選中的屏幕。在列表處理過(guò)程中,說(shuō)明了子屏幕容器的數(shù)量。在子屏幕屏幕過(guò)程中(包括選項(xiàng)卡),說(shuō)明了屏幕數(shù)量。Number of the current screen. During selection screen processing, this is the current selection screen. During list processing, the number of the subscreen container. During processing of a s

30、ubscreen screen (including in tabstrips), this screen number.sy-fdaywb工廠日歷的周日,Monday為1,F(xiàn)riday為5。Factory calendar weekday, Monday = 1, ., Friday = 5.sy-fdposi在字符類型數(shù)據(jù)對(duì)象操作時(shí)查找定位。Found location in operations with character-type data objects.sy-hostc(8)應(yīng)用服務(wù)器的名字,例如,KSAP0001,HS01234。Name of the application

31、server, for example, KSAP0001, HS01234.sy-indexi循環(huán)索引。在DO和WHILE循環(huán)中,指包含了本次循環(huán)的循環(huán)次數(shù)。Loop index. In DO and WHILE loops, contains the number of the loop passes including the current pass.sy-languc(1)單字符的語(yǔ)言鍵,例如,D,E,F(xiàn),給當(dāng)前的文本環(huán)境使用。通過(guò)依照當(dāng)前用戶的登錄語(yǔ)言,或使用SET LOCALE語(yǔ)句設(shè)定。Single-character language key, for example, D,

32、E, F, for the current text environment. Set according to the logon language of the user or by using the statement SET LOCALE.sy-ldbpgc(40)在可執(zhí)行程序中,指定了連接的邏輯數(shù)據(jù)庫(kù)的數(shù)據(jù)庫(kù)程序。In executable programs, the database program of the linked logical database.sy-lillii當(dāng)清單事件被觸發(fā)時(shí)的清單行數(shù),從1開(kāi)始計(jì)算并包含頁(yè)抬頭。List line for which a l

33、ist event was triggered. Counting begins at 1 and includes the page header.sy-lincti在當(dāng)前清單創(chuàng)建時(shí)的頁(yè)長(zhǎng)。sy-linct在一個(gè)任意長(zhǎng)度的標(biāo)準(zhǔn)清單中的值為0,而在定義了頁(yè)長(zhǎng)的清單中不為0。Page length of the current list during list creation. sy-linct is 0 for a standard list of any length, and has a value that is not 0 for lists with a defined page

34、length.sy-linnoi當(dāng)清單建立時(shí)的當(dāng)前清單行。從1開(kāi)始并包含了頁(yè)抬頭。Current list line during list creation. Counting begins at 1 and includes the page header.sy-linszi當(dāng)清單建立時(shí),在清單緩沖區(qū)中的行長(zhǎng)度。Line width of the current list in the list buffer during list creation.sy-liselc(255)當(dāng)一個(gè)清單事件被觸發(fā)時(shí),光標(biāo)所在行在清單緩沖區(qū)中的行內(nèi)容。(限制為最前面的255行(疑誤,應(yīng)為字符)。Conte

35、nt of the list line in the list buffer, on which the cursor was positioned while a list event was triggered (restricted to the first 255 lines).sy-listii當(dāng)清單事件被觸發(fā)時(shí),清單等級(jí)。List level of the list for which a list event was triggered.sy-loopci在一個(gè)表控制中當(dāng)前顯示的行號(hào)。Number of lines currently displayed in a table c

36、ontrol.sy-lsindi正在被創(chuàng)建清單的清單級(jí)別(基本清單:0,明細(xì)清單:大于0)。對(duì)每個(gè)交互式清單事件,sy-lsind自動(dòng)以1遞增。sy-lsind只能在ABAP程序中在清單列表的導(dǎo)航中更改。List level of the list that is currently being created (basic list: 0, details lists: greater than 0). For every interactive list event, sy-lsind is automatically increased by an increment of 1. sy-

37、lsind can only be changed in ABAP programs for navigating between details lists.sy-macoli當(dāng)打印清單時(shí),包含了左邊距的列數(shù)。When printing lists, contains the number of columns on the left edge.sy-mandtc(3)當(dāng)前用戶登錄的客戶端號(hào),例如:401,800。client identifier with which the user has logged on, for example, 401, 800.sy-marowi在打印清單時(shí)

38、,包含了頂端空白的行數(shù)。When printing lists, contains the number of lines on the top margin.sy-modnoc(1)外部會(huì)話的索引。在第一個(gè)會(huì)話中設(shè)置為0。在使用Create Session函數(shù)創(chuàng)建或由在工具欄輸入字段中帶/o參數(shù)的事務(wù)調(diào)用新事務(wù)時(shí),這個(gè)值以1遞增。Indexing of external sessions. Contains the value 0 in the first session. In new sessions that are opened using the Create Session fu

39、nction or by calling a transaction with /o in the input field of the toolbar, this value is increased by 1.sy-msgidc(20)在MESSAGE語(yǔ)句后,包含了消息類。After the statement MESSAGE, contains the message class.sy-msgnon(3)在MESSAGE語(yǔ)句后,包含了消息號(hào)。After the statement MESSAGE, contains the message number.sy-msgtyc(1)在MESS

40、AGE語(yǔ)句后,包含了消息類型。After the statement MESSAGE, contains the message type.sy-msgv1 .sy-msgv4c(50)在MESSAGE語(yǔ)句后,包含了要替換掉消息中參數(shù)字段的內(nèi)容。After the statement MESSAGE, contain the contents of the fields that are used as placeholders in the message.sy-opsysc(10)應(yīng)用服務(wù)器的操作系統(tǒng),例如,SOLARIS,HP-UX。Operating system of the app

41、lication server, for example, SOLARIS, HP-UX.sy-pagnoi在清單創(chuàng)建時(shí)的當(dāng)前頁(yè)。Current page in list creation.sy-pfkeyc(20)當(dāng)前屏幕的GUI狀態(tài)。GUI status of the current screen.sy-prdsnc(6)當(dāng)打印清單時(shí),包含了脫機(jī)文件的名字。When printing lists, contains the name of the spool file.sy-repidc(40)當(dāng)前ABAP程序的名字。對(duì)外部調(diào)用的程序,是指程序的框架程序的名字。在6.10版以前,當(dāng)sy-r

42、epid向一個(gè)外部程序傳遞實(shí)際參數(shù)時(shí),形式參數(shù)沒(méi)有被設(shè)置為調(diào)用者的名字,而是程序的名字。在6.10版之后,sy-repid可以被傳遞給程序而無(wú)需參考字段。Name of the current ABAP program. For procedures called externally, name of the framework program of theprocedure. sy-repid when transferring actual parameters to an external procedure, before release 6.10, the formal param

43、eter was not set to the name of the caller, but to the name of the procedure instead. As of release 6.10, sy-repid can be transferred to procedures without help fields.sy-saprlc(4)SAP系統(tǒng)的發(fā)行版本,例如46D,610。Release status of the SAP system, for example, 46D, 610.sy-scolsi當(dāng)前屏幕的列數(shù)。Number of columns of the c

44、urrent screen.sy-slsetc(14)用來(lái)填充一個(gè)選擇屏幕的變量。Variant that was used for filling a selection screen.sy-sponon(10)當(dāng)打印清單時(shí),包含了緩沖池的數(shù)量。When printing lists, contains the name of the spool number.sy-srowsi當(dāng)前屏幕的行數(shù)。Number of lines of the current screen.sy-stacoi當(dāng)清單事件被觸發(fā)時(shí),清單顯示的第一列的數(shù)量,從1開(kāi)始。Number of the first column

45、 displayed in the list for which a list event has been triggered. Counting begins at 1.sy-staroi當(dāng)清單事件被觸發(fā)時(shí),在清單頁(yè)頂端顯示的頁(yè)頂端的列表行數(shù)。從1開(kāi)始計(jì)數(shù)并且不包括在頁(yè)抬頭中。Number of the list line displayed at the top of the page at the top of the list, for which a list event was triggered. Counting begins at 1 and does not includ

46、e the page header.sy-stepli在表控制中當(dāng)前行的索引。在每個(gè)循環(huán)過(guò)程中設(shè)置。Index of the current line in a table control. This is set for every loop pass.sy-subrci返回被ABAP語(yǔ)句設(shè)置的值。通常,0表示程序執(zhí)行沒(méi)有錯(cuò)誤。當(dāng)發(fā)生錯(cuò)誤時(shí),根據(jù)語(yǔ)句的使用方法來(lái)設(shè)置sy-subrc,可以從不同的值來(lái)判斷發(fā)生的錯(cuò)誤。Return value that is set by many ABAP statements. In general, the value 0 means that the s

47、tatement was executed with no problems. Depending on which statement was used to set sy-subrc, if errors occur, the cause of the error can be derived from the corresponding value.sy-sysidc(8)SAP系統(tǒng)的名字,例如,S01,K99。Name of the SAP system, for example, S01, K99.sy-tabixi表索引。標(biāo)準(zhǔn)表或者排序表的最后被定位的行(表循環(huán)中當(dāng)前所在行)。如果

48、訪問(wèn)哈希表,則設(shè)置為0。Table index. Last addressed line of a standard table or sorted table. Is set to 0 if hashed table is accessed.sy-tcodec(20)當(dāng)前事務(wù)碼的名稱。Name of the current transaction code.sy-tfilli在DESCRIBE TABLE,LOOP AT和READ TABLE語(yǔ)句中,sy-tfill設(shè)置為被定位的那表的行數(shù)。In the statements DESCRIBE TABLE, LOOP AT, and READ

49、 TABLE, sy-tfill is filled with the number of lines in the internal table that has been addressed.sy-timlot用戶的本地時(shí)間,例如152557??梢杂肎ET TIME來(lái)設(shè)置。Local time of the user, for example 152557. Can be set by GET TIME.sy-titlec(70)當(dāng)前屏幕標(biāo)題欄顯示的文字。Text that appears in the title bar of the screen.sy-tlengi在DESCRIBE

50、TABLE,LOOP AT和READ TABLE語(yǔ)句中,sy-tleng設(shè)置為被定位的那表的行大小。In the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, sy-tleng is filled with the line size of the internal table that is being addressed.sy-tvar0.sy-tvar9c(20)程序中可以指定值的系統(tǒng)字段。在事件TOP-OF-PAGE中,sy-tvar0到sy-tvar9替換程序里清單和列標(biāo)題中占位符的文本。These system fields

51、 can be assigned values in the program. At the event TOP-OF-PAGE, the content of sy-tvar0 tosy-tvar0 replaces the placeholders in the list and column headers of the text elements of the program.sy-tzonei與UTC參考事件的事件差異,以秒為單位,例如,3600,10800。Time difference to the UTC reference time in seconds, for example, 3600, 10800.sy-ucommc(70)觸發(fā)事件PAI的功能碼。Function code that triggered the event PAI.sy-ulinec(255)在清單中顯示的包含最多255個(gè)字符的橫線。Contains a horizontal line of

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論