Application Development 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: 

HR-Unicodes for APPEND Statement

Former Member
0 Kudos

Hi all,

Am new to HR-Unicodes

Could any body tel me How to use Append Statement in Unicode compatible format.

like for ex am appending structure to Table as follows:

APPEND p_innnn TO p_del_tab.

Am getting follwing error:

A line of "P_DEL_TAB" and "P_INNNN" are not mutually convertible. In a Unicode

program "P_DEL_TAB" must have the same structure layout as "P_INNNN"

independent of the length of a Unicode character.

could u please tel me the solution for this.?/

How should i use APPEND here.

Points will be rewarded.

Thanks in Advance.

Regards,

Kalam A.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try looking at the methods in class CL_HR_PNNNN_TYPE_CAST. This class provides various methods for moving internal table, structures etc that have a standard infotype structure to the generic innnn table and structure.

If you do a where used on the class, you will find many examples of how to use this.

Best Regards,

Chris H.

2 REPLIES 2

Former Member
0 Kudos

Hi

It appears that some of the field lengths in the structures are not of same length "P_DEL_TAB" and "P_INNNN"

check the field strcutures of both the "P_DEL_TAB" and "P_INNNN".

if it is not compatable declare the variable of equal length and move the fiedld into that and append the table with that varaible

Regards

Anji

Former Member
0 Kudos

Try looking at the methods in class CL_HR_PNNNN_TYPE_CAST. This class provides various methods for moving internal table, structures etc that have a standard infotype structure to the generic innnn table and structure.

If you do a where used on the class, you will find many examples of how to use this.

Best Regards,

Chris H.