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 ranges

Former Member
0 Likes
1,142

This is a peice of running fine in non-unicode machine but when i put the unicode checks it is giving error

code:

DO 4 TIMES

VARYING V_FILE FROM V_FILEA NEXT V_FILEB

VARYING V_PFIL FROM P_DSN1 NEXT P_DSN2.

V_FILE LIKE V_FILEA, " for physical file

V_PFIL LIKE RFPDO-RFBIFILE,

V_FILEA(20) TYPE C VALUE 'HEADER',

V_FILEB(20) TYPE C VALUE 'SEQUENCE'

error:

u need arange addition

9 REPLIES 9
Read only

matt
Active Contributor
0 Likes
1,054

Use the addition RANGE.

There's an example of how to use it in the ABAP help for DO... VARYING.

matt

Read only

Former Member
0 Likes
1,054

hi have seen the examples in sdn but my problem is like to find a range for the data object v_filea, v_file b and others like p_dsn1.Please look at the paste pasted and everywhere finding a result for table but not for file .If u can find just send me the example for the ranges for the file just send it to me .Waiting for a response .regards,

prasant kar

Message was edited by:

Prasant kar

Read only

former_member194152
Contributor
0 Likes
1,054

Hi,

In data declaration part use TYPE instead of Like.

Regards

Gagan

Read only

0 Likes
1,054

V_FILEA(20) TYPE C VALUE 'HEADER', " for Header Physical file

V_FILEB(20) TYPE C VALUE 'SEQUENCE', " for Sequence Physical file

V_FILEC(20) TYPE C VALUE 'OPERATION', " for Operation Physical fil

V_FILED(20) TYPE C VALUE 'COMPONENT', " for allocation physical fi

V_FILE LIKE V_FILEA, " for physical file

V_PFIL LIKE RFPDO-RFBIFILE, " for file

IF P_LOFI <> SPACE.

DO 4 TIMES

VARYING V_FILE FROM V_FILEA NEXT V_FILEB

VARYING V_PFIL FROM P_DSN1 NEXT P_DSN2

I have written the code .I dont have a structure or a table i need to do the operation on the data objects.check out please my codes

Read only

Former Member
0 Likes
1,054

hi ,

I tried alot and got the idea to declare a structure and put all the fields in that and declare that structure as range

Read only

Former Member
0 Likes
1,054

i answered it so i will mark as unanswered

Read only

Former Member
0 Likes
1,054

this is answred

Read only

Former Member
0 Likes
1,054

this is answred

Read only

Former Member
0 Likes
1,054

this is answred