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

Question on abap background job

former_member831019
Discoverer
0 Kudos
691

Hi Experts,

Could you please let me know if we can schedule a background job which basically creates a log or spool or display ALV O/P for 2 lakh records and download that in excel sheet for about 2lakh + records in excel. I am running on S4 HANA OP system.

Thanks,

Veera G

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
622

Excel allows max 1 million records per sheet, so 2 lakhs (200.000) is fine.

Look in the forum for cl_salv_table=>to_xml for explanations about generating an Excel file (works even in background).

(or use abap2xlsx if you want to customize the format in the Excel file).

4 REPLIES 4
Read only

Former Member
0 Kudos
622

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.

For example, you can:

- outline what steps you took to find answers (and why they weren't helpful)

- share screenshots of what you've seen/done

- make sure you've applied the appropriate tags

- use a more descriptive subject line

The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html

Questions on how to draw responses from members? Check out this discussion on how to improve questions. https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-a...

Read only

Sandra_Rossi
Active Contributor
623

Excel allows max 1 million records per sheet, so 2 lakhs (200.000) is fine.

Look in the forum for cl_salv_table=>to_xml for explanations about generating an Excel file (works even in background).

(or use abap2xlsx if you want to customize the format in the Excel file).

Read only

former_member831019
Discoverer
0 Kudos
622

Hi Sandra,

Thanks for your reply. I would like to execute a program in background as background job which has an output of 50 fields and around 2 lakh records. I want to display the ALV output as spool so that it can be downloaded later in excel format . Kindly let me know if this is possible.

Thanks,

Veera

Read only

0 Kudos
622

She just said it is.