‎2008 Aug 15 2:17 PM
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
‎2008 Aug 15 2:21 PM
‎2008 Aug 15 3:02 PM
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.
‎2008 Aug 15 3:17 PM
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.
‎2008 Aug 15 3:25 PM
Try this:
TRANSFER l_h_tbl_file TO fu_wk_get_file LENGTH [line_size].
‎2008 Aug 15 3:45 PM
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.
‎2008 Aug 15 4:08 PM
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.
‎2008 Aug 15 4:18 PM
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#