0% found this document useful (0 votes)
9 views2 pages

Includes N Performs

Uploaded by

hema9.abap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Includes N Performs

Uploaded by

hema9.abap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

****************************************************************************

*&---------------------------------------------------------------------*
*& Report ZINCLU_REP
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zinclu_rep.

INCLUDE zinclude_01.

PERFORM t001 USING '1000' 'HYD'.


PERFORM t001 USING '2000' 'BLR'.
PERFORM t001 USING '3000' 'A.P'.
PERFORM t001 USING '3000' 'A.P'.

LOOP AT lt_t001 INTO ls_t001.


WRITE:/ ls_t001-bukrs,
ls_t001-ort01.

ENDLOOP.
*&---------------------------------------------------------------------*
*& Form t001
*&---------------------------------------------------------------------*
*& text
*&---------------------------------------------------------------------*
*& --> P_
*& --> P_
*&---------------------------------------------------------------------*
FORM t001 USING VALUE(p_0009)
VALUE(p_0010).

ls_t001-bukrs = p_0009.
ls_t001-ort01 = p_0010.

CLEAR ls_t001.
APPEND ls_t001 TO lt_t001.

ENDFORM.

*****************************************************************************
*&---------------------------------------------------------------------*
*& Include ZINCLUDE_01
*&---------------------------------------------------------------------*

TYPES: BEGIN OF ty_t001,


bukrs TYPE t001-bukrs,
ort01 TYPE t001-ort01,

END OF ty_t001.

DATA: lt_t001 TYPE TABLE OF ty_t001,


ls_t001 TYPE ty_t001.

SELECT
bukrs
ORT01
FROM t001 INTO TABLE lt_t001.

LOOP AT lt_t001 INTO ls_t001.

WRITE:/ ls_t001-bukrs,
ls_t001-ort01.

ENDLOOP.

You might also like