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

interfaces

Former Member
0 Likes
521

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
Read only

Former Member
0 Likes
501

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
Read only

Former Member
0 Likes
502

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.

Read only

Former Member
0 Likes
501

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

Then write the file to the app server

Read only

Former Member
0 Likes
501

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.