SAP/ABAP

Check if Function call is RFC or Not.

Denise 2015. 7. 9. 08:58
case SY-SUBRC = 0. 
 1. local function call 
 2. Remote call with destination 'NONE'
   
*--- Check if Function is called via RFC : SY-SUBRC <> 0 
  CALL 'RFCControl' ID 'CODE' FIELD '?'.                  "#EC CI_CCALL

  IF sy-subrc IS INITIAL.
*--- Local
  ELSE.
*--- RFC
  ENDIF.



'SAP > ABAP' 카테고리의 다른 글

sending SAP Office Mail ( SO01 )  (0) 2015.09.01
Long Text 처리  (0) 2015.08.11
Set initial Screen Variant for Report  (0) 2014.12.03
how to call BAPI_ALM_ORDER_MAINTAIN  (0) 2014.11.27
Save Smartform Output in PDF format without code  (0) 2014.11.19