Application Development 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: 

how to read fixed length file from application server

Former Member
0 Kudos
140

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.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos
87

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

2 REPLIES 2

Former Member
0 Kudos
87

hi Siva,

May be you may not be having authorizations to open the file.

Regards,

Santosh

former_member181962
Active Contributor
0 Kudos
88

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