‎2007 Jan 16 12:36 PM
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?
‎2007 Jan 16 1:43 PM
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
‎2007 Jan 16 1:07 PM
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
‎2007 Jan 16 1:08 PM
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
‎2007 Jan 16 1:43 PM
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
‎2007 Jan 16 1:54 PM
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
‎2007 Jan 16 3:35 PM
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!