‎2007 Dec 13 11:19 AM
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
‎2007 Dec 13 12:23 PM
Use the addition RANGE.
There's an example of how to use it in the ABAP help for DO... VARYING.
matt
‎2007 Dec 14 6:14 AM
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
‎2007 Dec 14 6:33 AM
Hi,
In data declaration part use TYPE instead of Like.
Regards
Gagan
‎2007 Dec 14 9:21 AM
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
‎2008 Jan 01 11:40 AM
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
‎2008 Jan 01 11:41 AM
‎2008 Jan 03 12:36 PM
‎2008 Jan 03 12:36 PM
‎2008 Jan 03 12:36 PM