Whenever I have tried to attach XLS document to email or download XLS document from any ABAP report to presentation server. I have faced a warning message while opening the XLS file, mentioned below.
[ We can run SAP Program 'BCS_EXAMPLE_7' to simulate the scenario ]
My Client was pretty uncomfortable with the pop-up message and asked me to change some code in ABAP such that he doesn't want to see this pop-up message in Excel. Initially, I thought to myself that "How can I possible remove a pop-up message in Excel from ABAP ?"
**--After getting all Parts/Folders available in Folder 'XL' into LO_PART2
**--Loop on no of folders and check the relationship type
DO lv_count1 TIMES. "No of Sub folders in Folder 'Xl'
DATA(lo_part2) = lo_parts1->get_part( sy-index - 1 ). "Get the each and every folder
IF lo_part2 IS BOUND.
DATA(lv_rel_type) = lo_part2->get_relationship_type( ). "Check relationship type
IF lv_rel_type = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet'. "Worksheet XML
lv_index_sheet = sy-index - 1.
ELSEIF lv_rel_type = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings'. "Shared XML
lv_index_shared = sy-index - 1.
ENDIF.
ENDIF.
ENDDO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |