2007 Jul 16 5:17 PM
hi,
i have to read fixed length file form my application server into internal table ,the following code i am using i am getting dump could u please give me some coding for that , thanks in advance
OPEN DATASET p_datset FOR INPUT IN BINARY MODE. "TEXT MODE ENCODING DEFAULT.
DO.
READ DATASET p_datset INTO gw_main.
IF sy-subrc NE 0.
EXIT.
ENDIF.
APPEND gw_main TO gt_main.
ENDDO. " Do.
CLOSE DATASET p_datset.
2007 Jul 16 5:20 PM
What dump are you getting when you use the TEXT mode encoding default?
Is the gw_main and gt_main have the same underlying structure?
what is that structure, It must be a flat data structure.
Regards,
Ravi
2007 Jul 16 5:20 PM
hi Siva,
May be you may not be having authorizations to open the file.
Regards,
Santosh
2007 Jul 16 5:20 PM
What dump are you getting when you use the TEXT mode encoding default?
Is the gw_main and gt_main have the same underlying structure?
what is that structure, It must be a flat data structure.
Regards,
Ravi