Skip to Content
0
Former Member
Jul 31, 2007 at 07:40 AM

Step Loop

11 Views

Hi,

Iam using Step Loop. Ihad taken 2 tables VBAK and VBAP and designed the screen layout. But when iam executing the t.code i could able to see only the VBAK table, But iam not getting the deatils of VBAP table when iam executing the T.Code

This is the program and flow logics.

Flow Logic.

PROCESS BEFORE OUTPUT.

*MODULE STATUS_9001.

LOOP AT IT_VBAP INTO VBAP CURSOR C1.

ENDLOOP.

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9001.

LOOP AT IT_VBAP.

ENDLOOP.

Module pool Program.

PROGRAM ZMP_TAB3.

TABLES:

VBAK,

VBAP.

DATA:

IT_VBAP TYPE TABLE OF VBAP WITH HEADER LINE,

c1 TYPE I.

&----


*& Module USER_COMMAND_9001 INPUT

&----


  • text

----


MODULE USER_COMMAND_9001 INPUT.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE PROGRAM.

WHEN SPACE.

SELECT * FROM VBAP INTO CORRESPONDING FIELDS OF IT_VBAP WHERE VBELN EQ VBAK-VBELN.

ENDSELECT.

ENDCASE.

ENDMODULE. " USER_COMMAND_9001 INPUT

Ram