‎2006 Jun 06 12:49 PM
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
‎2006 Jun 06 12:54 PM
Give it as
SET PARAMETER ID : 'BES' FIELD ztemp-ebeln+72(10).It will work..
Cheers,
Thomas.
‎2006 Jun 06 12:54 PM
Give it as
SET PARAMETER ID : 'BES' FIELD ztemp-ebeln+72(10).It will work..
Cheers,
Thomas.
‎2006 Jun 06 1:02 PM
Its giving error as
Offset specification "+72" is greater than or equal to field length ("10").
‎2006 Jun 06 1:07 PM
i think ztemp-ebeln
fiels is not have lenght > 72.
can u specify the reason of using this.....
‎2006 Jun 06 1:08 PM
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.
‎2006 Jun 06 1:11 PM
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
‎2006 Jun 06 1:11 PM
‎2006 Jun 06 1:16 PM
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
‎2006 Jun 06 1:21 PM
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
‎2006 Jun 06 1:23 PM
‎2006 Jun 06 1:09 PM