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: 

structure value population

Former Member
0 Kudos
78

Hi all,

my structure field data1 contains the following value : S1USSALARY 0100000000 USD 00000000###/S/######Pb # 1002#####p##### ########### #####

data1(250) type c .

l_p type p.

I want move this values into another structure . but the data is not getting populated into another field .

l_p = data1 + 53(10) .

after this step there is no value in l_p .

Can you give some inputs in this ?

Thank you.

3 REPLIES 3

Former Member
0 Kudos
50

first change the type of l_p, then it will work

u try change that as n or i.

Former Member
0 Kudos
50

Hi,

the problem is u want to move the character value to a number field.

declare like l_p(10) TYPE C

and then assign l_p = data1+53(10)

it will get populated

0 Kudos
50

here i tried to conver the data1(char ) and l_p is in packed type .

I used the FM char_pack_conversion . that is giving error that character input is not identified.

I want to move the char value to packed value .

That is my problem.