2007 Mar 21 1:49 PM
if i use subroutines and want to pass an internal table.
if there is a transparent table in the abap-dictionary of that type how will i define the subroutine of that type.
2007 Mar 21 1:51 PM
2007 Mar 21 1:52 PM
2007 Mar 21 2:33 PM
Hi,
See this code for your reference.
REPORT zps_test.
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: lit_vbak LIKE STANDARD TABLE OF vbak WITH HEADER LINE.
SELECT
* FROM vbak
INTO TABLE lit_vbak
WHERE vbeln = p_vbeln.
IF sy-subrc = 0.
PERFORM get_data TABLES lit_vbak.
ENDIF.
*&---------------------------------------------------------------------*
*& Form get_data
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->P_LIT_VBAK text
*----------------------------------------------------------------------*
FORM get_data TABLES p_lit_vbak STRUCTURE vbak.
*-- Write your logic here
ENDFORM. " get_data
Let me know if you need any other information.
Regards,
RS