IF sy-subrceq0. <wa_data>-ctgry= g_it_data-ctgry. ENDIF. ENDIF. 自己写这段代码的目的是,先从同样level,同样cpmtr的记录里去找,找不到就往下一层去找。 当在同样的level找时,read table一但有记录,那么sy-subrc就为零,没读到才不会为零,才会继续在g_it_data里去找下一层。 注意这里,本意是...
better check the variable content and process it. SimoneMilesi Active Contributor 2015 Jan 2711:19 AM Former Member 2015 Jan 2711:22 AM 0Kudos 669 SAP Managed Tags: ABAP Development Try this. if sy-subrceq0or maxdatisINITIAL. endif....
SELECT * FROM ztcdata INTO irec WHERE procf EQ '2' AND abkrs EQ 'W1'. APPEND irec. ENDSELECT. The problem is if there is no weekly data the value of sy-subrc is set to "0" and all other processing (i.e. rest of the program) does not proceed. I can explicitly set the val...
if ( sy-subrc eq 0 ). move '-Plant existing in table ' to msg. else. move '- Plant not existing in table ' to msg. endif . Reply Former Member 2007 Apr 15 11:37 AM 0 Kudos 2,778 SAP Managed Tags: ABAP Development Hi, See if Sy-subrc = 0 success or ( you ...
*IF SY-SUBRC EQ 0. RAISE FATAL_ERROR. *ENDIF. May the subrc ur looking is coming from other FMs Exceptions which are called in the MS_SERVICE_PACKAGE FM. Rhea. Reply former_member404244 Active Contributor In response to Former Member 2008 Nov 28 10:56 AM 0 Kudos 701 SAP ...
IF sy-subrc eq 0. CALL FUNCTION 'HR_WFM_OPEN' EXPORTING rfc_destination = pdest awtyp = co_awtyp buffsize = pbuffsz sync = psync EXCEPTIONS own_logical_system_not_defined = 1 OTHERS = 2. ENDIF. Reply Former Member In response to kesavadas_thekkillath 2012 Jan 03 6:12 AM...
SY-SUBRC : 0 代表成功 其他值代表不成功 SY-TABIX:表索引 其他举例一: if sy-UNAME EQ ‘FI58’ . “只有个FI58这个用户报表显示时才能看到分数 gs_fieldcat-fieldname = ‘FS’. gs_fieldcat-coltext = ‘分数’. APPEND gs_fieldcat TO gt_fieldcat. ...
WHERE CARRID = CARRID AND CONNID = CONNID. IF SY-SUBRC EQ 0. EX_SPFLI = SPFLI_WORKAREA. ELSE. MESSAGE E007 RAISING INVALID_DATA. ENDIF. SYS = SY-SYSID. ENDFUNCTION. 相关连接:http://blog.csdn.net/CompassButton/archive/2006/11/15/1385387.aspx...
. loop at lt_return into ls_return where type = 'E' or type = 'A'. exit. endloop. if sy-subrc ne 0. call function 'BAPI_TRANSACTION_COMMIT' exporting wait = 'X'. " 回写内表 if sy-subrc eq 0 . loop at gt_9800_alv assigning field-symbol(<fs_9800_alv>) ...
WHERE CARRID = CARRID AND CONNID = CONNID. IF SY-SUBRC EQ 0. EX_SPFLI = SPFLI_WORKAREA. ELSE. MESSAGE E007 RAISING INVALID_DATA. ENDIF. SYS = SY-SYSID. ENDFUNCTION. 相关连接:http://blog.csdn.net/CompassButton/archive/2006/11/15/1385387.aspx...