2022 May 25 12:13 AM
Hi there,
I am trying to use the FDT_XML_EXPORT program to export multiple GUID files.
I go onto the multiple selection screen, enter some GUIDs and then copy them over. After hitting execute, I enter a filename and then the export says that it is successful.
However, when opening the XML file, only the first GUID in the list is copied over.
When looking at the code using the debugger, it can be seen where the program hits the IF/ELSE but for some reason it doesn't recognise that there are multiple files and goes ahead with the single export.
I used "Go to statement" to force the ELSE at line 319 and it executes AND it exports all the GUID files because I searched for the GUID numbers in the XML and they're there.
My Question: Is this a bug in the code or is there something that I am not selecting for it to copy over all the GUID numbers? What am I doing wrong?
Thanks in advance
Matt
2022 May 25 7:11 AM
Search in SAP Support to know if it's a bug.
Otherwise, please show the selection screen how you export. I guess the "bug" is due to the options you have chosen.
2022 May 25 11:16 PM
HI sandra.rossi,
FYI, I choose to check the "Export entire application" checkbox and tried "Subordinate objects." I tried all combinations of all the options with the same reproducible outcome. Only one file is exported and not the multiple selections.
We think we can see possibly where an issue may be.
If we force the ELSE statement to execute in line 319, all the applications are there but not the components. That's due to the initial IF condition on line 301 where if the file is an app and subordinate objects OR entire application checkboxes are checked and won't export the entire application so that works fine as expected, but not what we want. We want all the objects contained within the application ergo, we check "export entire application" to satisfy the IF statement so that the entire application and it's components.
Where we believe the issue could be is on line 303 where it is only reading the first line of the table at INDEX 1 and passing in a single variable whereas the ELSE block passes the entire table.
I'm pretty new to ABAP so I am only trying to find my feet
Cheers
Matt
2022 May 25 11:17 PM
But I will look at SAP support to find out if anything has been submitted there
Thanks for your help
2022 May 26 5:17 PM
As far as I can see by reading the program FDT_XML_EXPORT, the intent is as follows:
If we now look at how it's implemented, it's clear it's not done very well.
But you can simply copy the program and adapt it to fit your needs.
If you contact SAP support, maybe they can assist you. I'm not sure whether this program is supported as part of standard.