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 - Offset

Former Member
0 Likes
1,199

hi,

SET PARAMETER ID : 'BES' FIELD ztemp+72(10).

The above line gives Unicode error.

The structure of is'ZTEMP'

DATA: BEGIN OF i_receipts OCCURS 0,

belnr LIKE rbkp-belnr,

gjahr LIKE rbkp-gjahr,

buzei LIKE rseg-buzei,

ebeln LIKE rseg-ebeln,

ebelp LIKE rseg-ebelp,

wrbtr LIKE rseg-wrbtr,

bukrs LIKE rbkp-bukrs,

werks LIKE rseg-werks,

matnr LIKE rseg-matnr,

menge LIKE rseg-menge,

vbeln LIKE ekkn-vbeln,

vbelp LIKE ekkn-vbelp,

END OF i_receipts.

DATA: ztemp LIKE i_receipts.

kindly guide me on this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,123

Give it as

SET PARAMETER ID : 'BES' FIELD ztemp-ebeln+72(10).

It will work..

Cheers,

Thomas.

10 REPLIES 10
Read only

Former Member
0 Likes
1,124

Give it as

SET PARAMETER ID : 'BES' FIELD ztemp-ebeln+72(10).

It will work..

Cheers,

Thomas.

Read only

0 Likes
1,123

Its giving error as

Offset specification "+72" is greater than or equal to field length ("10").

Read only

0 Likes
1,123

i think ztemp-ebeln

fiels is not have lenght > 72.

can u specify the reason of using this.....

Read only

0 Likes
1,123

Rajesh,

Get the PO number to a variable

g_ebeln

.

then give as

SET PARAMETER ID : 'BES' FIELD g_ebeln.

Let me know still there is problem.

Cheers,

Thomas.

Read only

0 Likes
1,123

why not use SET PARAMETER ID : 'BES' FIELD ztemp-ebeln?

What is the need for OFFSET here? ebeln is of type C length 10 & the rror is not unicode related..

Regards,

Suresh Datti

Read only

0 Likes
1,123

Can u explain more.....

Read only

0 Likes
1,123

When you declare DATA: ztemp LIKE i_receipts, ZTEMP is a field string of the structure i_receipts. SO there is no need for offsets.. You can refer to ztemp-ebeln directly.hope this is clear.

Regards,

Suresh Datti

Read only

0 Likes
1,123

hi Suresh,

we are upgrading from 4.6c to ECC 5.0, here

SET PARAMETER ID : 'BES' FIELD ztemp+72(10).

The above line gives error in UCCHECK as

THE Offset declaration "72" exceeds the length of the character-type start (=35) of the structure. This is not allowed in Unicode programs.

Please guide me on this.

Regds,

Rajesh P

Read only

0 Likes
1,123

Thanks Suresh, just now I got your reply.

Regds,

Rajesh P

Read only

Peter_Inotai
Active Contributor
0 Likes
1,123

Try this:

SET PARAMETER ID 'BES' FIELD ztemp-ebeln.

Peter