Application Development and Automation 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: 
Read only

Regarding Table control

Former Member
0 Likes
497

Hi all,

I have got an issue regarding Module pool table control where i have done the below declaration :

<code>

Tables : VBAK.

DATA : OK_CODE LIKE SY-UCOMM.

TYPES : BEGIN OF ST_VBAK,

CHECKBOX TYPE C,

VBELN TYPE VBAK-VBELN,

ERDAT TYPE VBAK-ERDAT,

VBTYP TYPE VBAK-VBTYP,

AUART TYPE VBAK-AUART,

KUNNR TYPE VBAK-KUNNR,

END OF ST_VBAK.

DATA : IT_VBAK TYPE STANDARD TABLE OF ST_VBAK,

WA_VBAK LIKE LINE OF IT_VBAK.

</code>

As per the declaration i have tried to use the fields declared in the Internal table in the Table control using <Attributes : From program button> but i m getting error as

: The field IT_VBAK DOESNT EXIST IN PROGRAM SAPMZTABCTRL.

But the same when i doing with the below declarations i m getting things done.

data : BEGIN OF IT_VBAK OCCURS 0,

CHECKBOX TYPE C,

VBELN TYPE VBAK-VBELN,

ERDAT TYPE VBAK-ERDAT,

VBTYP TYPE VBAK-VBTYP,

AUART TYPE VBAK-AUART,

KUNNR TYPE VBAK-KUNNR,

END OF IT_VBAK.

so any suggestions for the above issue.

Thanks,

aruna

3 REPLIES 3
Read only

Former Member
0 Likes
471

Hi,

if you r creating the table control through table wizard in se51, for the first code

u have to give table work area, but in the second case u need not give thats y it is working.

plzz reward points if it helps.

Read only

Former Member
0 Likes
471

Thanks,

Aruna

Read only

Former Member
0 Likes
471

Hi aruna,

For the first declaration you have used work area so that it is creating error.If you are goin to declare with out internal table work area it doesn't show any error.

Just try to use it with out work area for internal table while developing Module pool program.Use occurs 0 for declaring internal table.

Thanks,

Sakthi.C

*Rewards if useful*