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

Open data set Problem

Former Member
0 Likes
861

Hi All,

While transfering data into Application server if any blank field in between , remaining fields are not updating.

before update data:

10 200 bang 3000 4000

after update

10 200 bang

Kindly help me how to solve the issue.

Edited by: Vara Prasad Kunathi on Aug 15, 2008 9:18 AM

7 REPLIES 7
Read only

Former Member
0 Likes
832

pls answer

Read only

Former Member
0 Likes
832

Hi.

Could you please send the piece of code that is generating this problem with fields declaration?

In this case, I think that is easyer to help you if we can see the code!

Regards.

Read only

0 Likes
832

OPEN DATASET fu_wk_get_file FOR OUTPUT

IN TEXT MODE

ENCODING DEFAULT.

IF sy-subrc <> 0.

MESSAGE i022(yxf01).

MOVE cns_on TO fc_flg_eopen.

CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

ENDIF.

CHECK fc_flg_eopen IS INITIAL.

CLEAR l_h_tbl_file.

LOOP AT fu_tbl_output INTO l_h_tbl_file.

TRANSFER l_h_tbl_file TO fu_wk_get_file.

IF sy-subrc <> 0.

MOVE cns_on TO fc_flg_werr.

fc_ctr_erec = fc_ctr_erec + 1.

MESSAGE i130(yxf01) WITH fu_wk_get_file.

CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

EXIT.

ELSE.

fc_ctr_srec = fc_ctr_srec + 1.

ENDIF.

ENDLOOP.

CLOSE DATASET fu_wk_get_file.

Read only

Former Member
0 Likes
832

Try this:

TRANSFER l_h_tbl_file TO fu_wk_get_file LENGTH [line_size].

Read only

0 Likes
832

My problem is

I have Data in internal table:

f1 f2 f3 f4 f5

1 2 - 4 5

after update to application server:

f1 f2 f3 f4 f5

1 2

I am getting 2 fields only. if any blank filed exist between those fields remaining fields also getting blank.

Read only

Former Member
0 Likes
832

Hummm... OK!

There are just 2 things more that I can try to help you.

1st. Check if all the fields that are being transferred are not declared as I, F, P...

2nd. When you put OPEN DATASET, try to use IN BINARY MODE.

Regards and sorry if it's not useful.

Read only

0 Likes
832

if i use BINARY MODE . I m getting output like this.

J#1#1#8#J#1#0#1#0#0#0#0#0#1#2#8#0#0#0#0#1#0# # #1#A#B#C#1#0#1# # # # #1#8#9#0#5#0#2#0#0#8#0#8#1#3#2#0#0#8#0#8#1#3#0#0#0#0#0#0#0#1#8#8#2#