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

Problem with headerline in OO

gerd_hotz
Contributor
0 Likes
486

Hello,

I've the problem that I cannot give values from an inertnal table to

an variable because the itab has no headerline, because in oo it is not possible.

Here the coding:

structure in se11 ZACTIVITYIF with components:

DESCRIPT

CATEGORY

PRIORITY

OBJECT

DATE_FRO

DATE_TO

TIME_FRO

TIME_TO

CONT_NO

LANGTEXT

STATUS

OO-Coding:

DATA: lt_itab TYPE TABLE OF zactivityif.

DATA: itab TYPE zactivityif.

Loop at dbtab

:

itab-status = '005'.

APPEND itab TO lt_itab

endloop.

    • set variable for bapi

lss_text-tdline = lt_itab-langtext. <= here I get error: no tablerwith headerline

How can I fill an internal table in OO or how can I fill this variable lss_text-tdline ?

Any ideas ?

Thanks G

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
449

This is a very basci question.

Please use work areas for internal table without header lines.

2 REPLIES 2
Read only

gastn_jareo
Active Participant
0 Likes
449

Which BAPI are you calling? And what's the data type of LANGTEXT field?

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
450

This is a very basci question.

Please use work areas for internal table without header lines.