SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

SQ01 Query download on Appl Server using enhancment SQUE0001



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1639

PostPosted: Wed Jan 13, 2010 10:17 am    Post subject: SQ01 Query download on Appl Server using enhancment SQUE0001 Reply with quote

From private message

Quote:
Dear Admin,

Thanks for create this post regards SQUE0001 SAP Query: Private.

It really useful and i able to create 3 query report and schedule as background job to FTP server.

However, appreciate your help give an example how to insert LISTDESC-FCOL header line into ldata as i new to ABAP.

Thank and regards,
felice.kiew
Back to top
View user's profile Send private message
mosquitto
Участник
Участник



Joined: 11 Jan 2010
Posts: 1

PostPosted: Wed Feb 03, 2010 7:12 am    Post subject: Sample code with header Reply with quote

I inserted the code myself just before loop datatab and It works fine.

Rgds,
felicekiew

----------------------------------------------------------
LOOP AT listdesc WHERE lid = list_id.
fpos = listdesc-flpos.
fcnt = fcnt + 1.
IF fcnt <> 1.
l_pos = maxpos + 1.

ENDIF.

SHIFT feld LEFT DELETING LEADING space.
l_length = strlen( feld ).
l_number = l_length.

l_pos_f = maxpos + l_length + 1.
if l_pos > bufferlength.
append ldata.
clear ldata.
maxpos = 0.
endif.

if fcnt <> 1.
write listdesc-fcol to feld.
concatenate ldata feld into ldata SEPARATED BY ','.

else.
write listdesc-fcol to feld.
concatenate ldata feld into ldata.
endif.
*maxpos = maxpos + strlen( l_number ) + 1 + l_length.
maxpos = maxpos + 1 + l_length.
Endloop.

append ldata.
clear ldata.

LOOP AT datatab.
..................
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.