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

unicode generation probleam

Former Member
0 Likes
458

hi experts

there is a code below now in this there is a problem that it say there is no unicode conversion b/w workarea and internal table

DATA: BEGIN OF wa_data,

       user_id type ztr_hrdetails-user_id,

       fname type ztr_hrdetails-fname ,

       lname type ztr_hrdetails-lname,

       dob type ztr_hrdetails-dob,

       age type ztr_hrdetails-age,

       sex type ztr_hrdetails-sex,

       qualification type ztr_hrdetails-qualification,

       department type  ztr_hrdetails-department,

       address type ztr_hrdetails-address,

       experience type ztr_hrdetails-experience,

       skills type ztr_hrdetails-skills ,

       country type ztr_hrdetails-country,

       lastcompany type ztr_hrdetails-lastcompany,

END OF wa_data.

DATA: BEGIN OF it_data,

       user_id like ztr_hrdetails-user_id,

       fname like ztr_hrdetails-fname ,

       lname like ztr_hrdetails-lname,

       dob like ztr_hrdetails-dob,

       age like ztr_hrdetails-age,

       sex like ztr_hrdetails-sex,

       qualification like ztr_hrdetails-qualification,

       department like  ztr_hrdetails-department,

       address like ztr_hrdetails-address,

       experience like ztr_hrdetails-experience,

       skills like ztr_hrdetails-skills ,

       country like ztr_hrdetails-country,

       lastcompany like ztr_hrdetails-lastcompany,

      END  OF it_data.

can any one help me.

3 REPLIES 3
Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
428

Hi Dharambir,

if you will use with occurs '0' in case of any of the structure,it will acts as both work area as well as internal table.otherwise use TYPES instead of DATA,then try to declare the work area and internal tables.

Regards,

Gurunath Kumar D

Read only

Former Member
0 Likes
428

Dharambir,

The error occurs when the target and source do not have same structure.

Are you trying to update a db table?

You have essentially declared to work areas.

As Gurunath has pointed out, declare work area and internal table (together or separately) and then pass values.

Please share rest of the code where you are passing values.

Read only

Former Member
0 Likes
428

Answer

data : wa_data type ztr_hrdetails.

data : it_data like wa_data OCCURS 10 WITH HEADER LINE.

i declare work area and internal table like this my problem is solved.

i write the code here for the user who are new to ABAP they find it helpful.