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

Offset declaration too big for structure (unicode checks)

former_member192125
Participant
0 Likes
703

Has anyone worked with this user exit to Derive values for co/pa?

Enhancement COPA0001

Comp ZXKKEU11

I set up WA_CE1AWG1 as data: WA_CE1AWG1 like CE1AWG1.

and tried to copy I_COPA_ITEM to this variable

WA_CE1AWG1 = I_COPA_ITEM.

I get a runtime error Offset declaration too big for structure.

will I have to change program SAPLXKKE to remove unicode checks. Is there any other way to read in the fields from input structure I_COPA_ITEM?

1 ACCEPTED SOLUTION
Read only

former_member192125
Participant
0 Likes
640

I_COPA_ITEM is table type generated at run time. The co/pa structure can change. How can I read in the values stored here?

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
640

Hi,

are the work areas having components..(fields) if yes why dont you assign them individually, check the type(stru) of the two work areas

santhosh

Read only

Former Member
0 Likes
640

hi

1.r u sure I_COPA_ITEM is structure or table.

2. if it is a struccture make sure the WA_CE1AWG1 and I_COPA_ITEM are with same structures and types..

i think I_COPA_ITEM is table type --> to find it open in debugging mode then try to resolve.

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Read only

former_member192125
Participant
0 Likes
641

I_COPA_ITEM is table type generated at run time. The co/pa structure can change. How can I read in the values stored here?

Thanks

Read only

0 Likes
640

do as follows

<b>loop at I_COPA_ITEM into work_area(declare this as type I_COPA_ITEM )

assign field by field to the WA_CE1AWG1.. then do ur code as u reuqired.

endloop.</b>

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Read only

0 Likes
640

Thanks Naresh,

it seems that the problem was in the config. CE1AWG1 is not generating correctly and so does not correspond to I_COPA_ITEM.

it should just be possible to declare the structure WA_CE1AWG1 type CE1AWG1.

and then put WA_CE1AWG1 = I_COPA_ITEM

Thanks again for for help!