INCLUDE <OBJECT>. BEGIN_DATA OBJECT. " Do not change.. DATA is generated * only private members may be inserted into structure private DATA: " begin of private, " to declare private attributes remove comments and " insert private attributes here ... " end of private, KEY LIKE SWOTOBJID-OBJKEY. END_DATA OBJECT. " Do not change.. DATA is generated BEGIN_METHOD ZBAPIDEMO CHANGING CONTAINER. DATA: IVBELN TYPE ZBAPIDEMO-ZVBELN, RETURN LIKE BAPIRET2, ITVBAP LIKE VBAP OCCURS 0. SWC_GET_ELEMENT CONTAINER 'IVbeln' IVBELN. SWC_GET_TABLE CONTAINER 'ItVbap' ITVBAP. CALL FUNCTION 'ZBAPI_DEMO' EXPORTING I_VBELN = IVBELN IMPORTING RETURN = RETURN TABLES IT_VBAP = ITVBAP EXCEPTIONS OTHERS = 01. CASE SY-SUBRC. WHEN 0. " OK WHEN OTHERS. " to be implemented ENDCASE. SWC_SET_ELEMENT CONTAINER 'Return' RETURN. SWC_SET_TABLE CONTAINER 'ItVbap' ITVBAP. END_METHOD.