‎2008 Dec 02 9:35 AM
HI
i m having one file on application server the file has records which has 900 characters in one line .
there can be more than one line.
when i use
OPEN DATASET TO_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC <> 0.
WRITE: SY-SUBRC, ' LIKE ', TO_FILE.
ELSE.
WHILE SY-SUBRC = 0.
READ DATASET TO_FILE INTO WA_UPD.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
APPEND WA_UPD TO IT_UPD.
CLEAR WA_UPD.
ENDWHILE.
it read up to 255 characters only so i m getting the data in my internal table wrong.
pls help me on this...
Thanxs & Regards
Rajan
‎2008 Dec 02 9:40 AM
HI,
Check this code...
OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
CLEAR : it_upd_dt.
DO.
READ DATASET dsn INTO rec.
IF sy-subrc = 0.
wa_upd_dt-msg = rec.
APPEND wa_upd_dt TO it_upd_dt.
CLEAR wa_upd_dt.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET dsn.}
ELSE.
error message..
ENDIF.
Edited by: avinash kodarapu on Dec 2, 2008 3:11 PM
‎2008 Dec 02 9:37 AM
Hi.... rajan
wat abt that KKE1 Issue, Solved or wat.....
Thanks
Saurabh
‎2008 Dec 02 9:43 AM
no KKE1 is not solved i have given the dump which i m getting
‎2008 Dec 02 9:38 AM
‎2008 Dec 02 9:45 AM
‎2008 Dec 02 9:40 AM
HI,
Check this code...
OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
CLEAR : it_upd_dt.
DO.
READ DATASET dsn INTO rec.
IF sy-subrc = 0.
wa_upd_dt-msg = rec.
APPEND wa_upd_dt TO it_upd_dt.
CLEAR wa_upd_dt.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET dsn.}
ELSE.
error message..
ENDIF.
Edited by: avinash kodarapu on Dec 2, 2008 3:11 PM
‎2008 Dec 02 9:44 AM
i hv write the same code buddy...almost same but it read 255 char only
‎2008 Dec 02 9:41 AM
‎2008 Dec 02 9:46 AM
‎2008 Dec 02 9:42 AM
Hi There,
Can I see the declaration Part? May be you restricted to 255 characters.
Hope this helps.
‎2008 Dec 02 9:47 AM
‎2008 Dec 02 9:48 AM
Hi..
In the application server .. only 255 chars can be displayed.. the rest gets truncated....
Use CG3Y transaction..to download the exact data available in the application server.....
Cheers
‎2008 Dec 02 9:52 AM
thanxs
but i hv to run my program in background job
so in background job do u think this cg3y works ?
Regards
rajan
‎2008 Dec 22 6:56 AM
its been solved
if u want to pass more than 255 charc
u have to make a workarea as per yopu required
that is the same i did
and it works
thnxs to u all
rajan