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

ERROR WHILE ACTIVATING MP PROGRAM

Former Member
0 Likes
609

HI ALL,

I HAVE CREATED A MP PROGRAM FOR DATA ENTRY IN TABLE J_2IRG1BAL.

I HAVE TO CREATE ENTRY FOR ONLY EIGHT FIELDS. I HAVE CREATED A INTERNAL TABLE J_ITAB

AND USING CODE

INSERT INTO J_2IRG1BAL VALUES J_ITAB.

ON SAVE BUTTON.

WHEN I TRIED TO ACTIVATE THIS PROGRAM IT'S SHOWING AN ERROR MESSAGE

'THE TYPE OF DATABASE TABLE ANDWORK AREA(OR INTERNAL TABLE )

J_ITAB ARE NOT UNICODE CONVERTIBLE.

WHY I AM GETTING THIS ERROR AND HOW I CAN REMOVE IT?

THANX IN ADVANCE

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
571

Hi,

For inserting records from internal table/work area/header line, you need to have the same structure as of the Z databse table.

So, declare like:-


DATA : j_itab TYPE STANDARD TABLE OF j_2irg1bal WITH HEADER LINE.
"or
DATA : j_itab TYPE STANDARD TABLE OF j_2irg1bal,
            wa_itab LIKE LINE OF j_itab.

Now try inserting values.

Hope this helps you.

Regards,

Tarun

3 REPLIES 3
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
572

Hi,

For inserting records from internal table/work area/header line, you need to have the same structure as of the Z databse table.

So, declare like:-


DATA : j_itab TYPE STANDARD TABLE OF j_2irg1bal WITH HEADER LINE.
"or
DATA : j_itab TYPE STANDARD TABLE OF j_2irg1bal,
            wa_itab LIKE LINE OF j_itab.

Now try inserting values.

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
571

Dont post in ALL CAPS. Please read the forum rules before posting

Read only

0 Likes
571

Sorry...From next time I wil take care that my posting should not be in Caps.

Thanx My problem is solved..