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

passing error message

Former Member
0 Likes
447

gt_messages like yfi_message_xml occurs 0 with header line.

itab03 type table of yfi_message_xml,

yfi_message_xml is nothing but a structure which has the components like msgid,msgno,msgtyp etc.

i should not use gt_messages.

i want to append data to this itab03.

if i use itab03-msgid or itab03-msgtyp and append data to it, it givs an error mesg. that itab03 does not have the components of yfi_message_xml sine itab03 is a table without header line.

without changing anything to itab03 is there anyother way to append data to itab03 .

can i append data to this itab03 workarea.

Please help.

3 REPLIES 3
Read only

Former Member
0 Likes
416

Hi Joesph,

You can make use of the Work Area of gt_messages instead.

like this:

<b>gt_messages-msgid = < value>.

gt_messages-msgtyp = <value ..

append gt_messages to itab03.

clear gt_messages.</b>

Regards,

Ravi

Read only

0 Likes
416

Two ways

1) create a work area

Data w_itab03 like line of itab03

2) use work area of gt_messages

santhosh

Read only

Former Member
0 Likes
416

Hi

Try like this

gt_messages like yfi_message_xml occurs 0 with header line.

itab03 <b>type or like</b> yfi_message_xml,

May be u will get the solution.

Regards

Haritha.