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

SE16 Execute in Background

Former Member
0 Likes
6,275

I would like to be able to execute SE16 in the background. Then, save the ouput to a shared network drive.

Is this something that it can be done in SAP ECC ?

1 ACCEPTED SOLUTION
Read only

Florian
SAP Champion
SAP Champion
0 Likes
4,067

Why not just use function

CBRC_LIB2_CONVERT_ITAB_TO_CSV or something similar. It's just a few lines and your absolutely free what you do with it.

6 REPLIES 6
Read only

loyd_enochs3
Participant
0 Likes
4,067

Not sure about SE16; it lives within a function group but SE16N calls program RK_SE16N. You should be able to direct the output when setting up the background job.

If the goal is to get the output product to a network drive, then you can do that manually from the results display of SE16 using the menu path:

System->List->Save->Local File

The system will display a dialog box and you can then select the target location from the dialog box.

Read only

0 Likes
4,067

Thank you Loyd.

I have found limiitations on SE16N; the same on SE16. SE16N does not output all the fields from a table. For example, table MARA that has 230 fields .. SE16N does not output all the 256 fields. I am not sure if this an user restriction or if it is a limitation on SE16N (RK_SE16N program).

Any idea on this restriction ?

Read only

4,067

jbarberena2, if you want to save all the fields, SE16 in background (or SE16N) is not your choice.

Better to write a custom report that writes a file on the server.

The max output lenght, if i remember well, it's 255 characters for the list generated by the background job (or you have to create a custom endless page) and you'll have the same problem.

Read only

Florian
SAP Champion
SAP Champion
0 Likes
4,068

Why not just use function

CBRC_LIB2_CONVERT_ITAB_TO_CSV or something similar. It's just a few lines and your absolutely free what you do with it.

Read only

Former Member
4,067

florian.henninger Thank you for the information.

I will look at this function as it appears that it will be provide me with what I am looking for.

From the code below from the funtion; if I understand it correctly, I can make the "i_field_seperator = ',' " char1" to be any character I want. For example I can change it to "i_field_seperator = '|' " char1" ... From this sample, I am making the field seperator to be a pipe delimited character .... is this correct ?

CALL FUNCTION 'CBRC_LIB2_CONVERT_ITAB_TO_CSV' "
  EXPORTING
    i_field_seperator = ','     " char1         Separator
Read only

0 Likes
4,067

Yes. I think you found out already:-)