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: 

interfaces

Former Member
0 Kudos

Hi friends,

I am working on interfaces.

If we write an empty file out in the application server we should write a 0u2019s line as follows to this file.

0000|00000000|0|0.What changes can be done.

please help me out.

Thanks,

satya.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Say U have ITAB and U want to transfer this to a file on application server

check as ..

if not ITAB[] is initial.

loop at itab into wa_itab.

transfer wa_itab to p_file.

endloop.

else.

*Populate wa_itab with 0's ..

transfer wa_itab to p_file.

endif.

3 REPLIES 3

Former Member
0 Kudos

Say U have ITAB and U want to transfer this to a file on application server

check as ..

if not ITAB[] is initial.

loop at itab into wa_itab.

transfer wa_itab to p_file.

endloop.

else.

*Populate wa_itab with 0's ..

transfer wa_itab to p_file.

endif.

Former Member
0 Kudos

Put the 0's into constants and then concatenate and add the separates '|'

Then write the file to the app server

Former Member
0 Kudos

IF NOT ITAB[] IS Initial.

loop at itab into wa_itab.

Transfer wa_itab to P_File.

endloop.

else.

wa_itab-a = '00'.

wa_itab-b = '00000000'.

Transfer wa_itab to P_File.

Endif.

Hope this hep U.