Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

subroutines by passing tables

Nik2
Explorer
0 Kudos
115

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.

3 REPLIES 3

Former Member
0 Kudos
94

FORM ABC TABLES ITAB STRUCTURE DDTABLE

former_member181962
Active Contributor
0 Kudos
94

See the demo program:

demo_mod_tech_example_5

Regards,

Ravi

Former Member
0 Kudos
94

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