‎2008 Jul 16 9:42 AM
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.
‎2008 Jul 16 9:45 AM
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.
‎2008 Jul 16 9:45 AM
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.
‎2008 Jul 16 9:53 AM
Put the 0's into constants and then concatenate and add the separates '|'
Then write the file to the app server
‎2008 Jul 16 9:56 AM
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.