‎2007 Dec 08 10:19 AM
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
‎2007 Dec 08 10:35 AM
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.
‎2007 Dec 08 10:51 AM
‎2007 Dec 08 12:15 PM
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*