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

code

Former Member
0 Likes
797

Hi Experts,

This follwing code is from a SAP Report.

When i do unicode changes to it,it is giving error like:

ENQUEUE and HEX0 are not mutually convertible.In Unicode programs ENQUEUE must have same structure like HEX0 independent of length of Unicode character.

So how can we solve this?

If i declare a structure HEX0 like ENQUEUE and pass in CALL statement as below.will it work?..Can i pass a structure in CALL statement?

DATA: BEGIN OF ENQUEUE,

MANDT LIKE A502-MANDT,

KAPPL LIKE A502-KAPPL,

KSCHL LIKE A502-KSCHL,

VKORG LIKE A502-VKORG,

VTWEG LIKE A502-VTWEG,

SPART LIKE A502-SPART,

ZTERM LIKE A502-ZTERM,

END OF ENQUEUE.

FIELD-SYMBOLS <ENQUEUE>.

DATA: BEGIN OF HEX0,

HEX0(120) TYPE C VALUE 'GHVHJFBFJGFJGFI',

END OF HEX0.

CALL 'C_ENQ_WILDCARD' ID 'HEX0' FIELD HEX0

ID 'DELAY_MAX' FIELD TIMES.

LFD_INDEX = 1.

ENQUEUE = HEX0.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
442

Hi

Yes I think because ENQUEUE has char fields only, but it's better to use MOVE statament:

MOVE HEX0 TO ENQUEUE.

'C_ENQ_WILDCARD' is a system function, so u should check the SAP program to know how to pass the parameters.

Max

1 REPLY 1
Read only

Former Member
0 Likes
443

Hi

Yes I think because ENQUEUE has char fields only, but it's better to use MOVE statament:

MOVE HEX0 TO ENQUEUE.

'C_ENQ_WILDCARD' is a system function, so u should check the SAP program to know how to pass the parameters.

Max