cancel
Showing results for 
Search instead for 
Did you mean: 

problem in smartform

Former Member
0 Kudos

Hi Experts,

i am now working in smartform.i am getting following error

@8O@ Global Definitions The internal table "T_ZPS_ORDEM_SERV" has no header line - explicit specification of an output area with "INTO wa" or "ASSIGNING

but i already define in GLOBAL DEFINITIONS

GLOBAL DEFINITIONS --> GLOBAL DATA

T_ZPS_ORDEM_SERV TYPE TABLE_ZPS_SERV (FOR INTERNAL TABLE)

WA_ZPS_ORDEM_SERV TYPE ZPS_ORDEM_SERV (FOR WORK AREA)

I_ORDEM TYPE ZORDEM

GLOBAL DEFINITIONS --> TYPES

TYPES: TABLE_ZPS_SERV TYPE STANDARD TABLE OF ZPS_ORDEM_SERV.

GLOBAL DEFINITIONS --> INITIALIZATION

INPUT PARAMETERS:

T_ZPS_ORDEM_SERV

WA_ZPS_ORDEM_SERV

I_ORDEM

CODING:

READ TABLE T_ZPS_ORDEM_SERV INTO WA_ZPS_ORDEM_SERV WITH KEY ORDEM = I_ORDEM.

SELECT ORDEM DATA_ABERTURA DATA_ABERTURA_P REDE OPERACAO FAZENDA DATA_FENCHA DATA_FENCHA_P FROM ZPS_ORDEM_SERV

INTO CORRESPONDING FIELDS OF TABLE T_ZPS_ORDEM_SERV

WHERE ORDEM = I_ORDEM.

READ TABLE T_ZPS_ORDEM_SERV WITH KEY ORDEM = I_ORDEM.

SELECT ZPS_TALHOESORDEM ZPS_TALHOESTALHAO ZPS_TALHOESAREA ZPS_INSUMOS_OSINSUMO_TXT ZPS_INSUMOS_OSDOSAGEM ZPS_INSUMOS_OSRESE

INNER JOIN ZPS_INSUMOS_OS ON ZPS_INSUMOS_OSORDEM = ZPS_TALHOESORDEM

INTO CORRESPONDING FIELDS OF TABLE T_ZPS_TALHOES

WHERE ZPS_TALHOESORDEM = I_ORDEM AND ZPS_INSUMOS_OSTALHAO = ZPS_TALHOES~TALHAO.

SELECT ORDEM EQUI_TXT TIPO DATA_INICIO HORA_INICIO DATA_FIM HORA_FIM DURACAO FROM ZPS_EQUIP_ORDEM

INTO CORRESPONDING FIELDS OF TABLE T_ZPS_EQUIP_ORDEM

WHERE ORDEM = I_ORDEM.

when i activate i am getting following errors:

Global Definitions The internal table "T_ZPS_ORDEM_SERV" has no header line - explicit specification of an output area with "INTO wa" or "ASSIGNING

anyone help me to fix this problem.thanks for advance and i will give good points.

thanks and regards,

bbm.

Accepted Solutions (1)

Accepted Solutions (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

The problem is with the second READ of the internal table T_ZPS_ORDEM_SERV where the <b>INTO WA_ZPS_ORDEM_SERV</b> is missing.

You probably don't even need that second READ since it was already done two commands earlier.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

in Table declarations, in data tab check whether you have mentioned itab and its work in the area

itab into wa

if not use the wa then it will solve ur problem

Regards

Shiva