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: 

FDT_XML_EXPORT won't export multiple objects

MattRook
Explorer
0 Kudos
561

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

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos
373

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.

MattRook
Explorer
0 Kudos
373

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

MattRook
Explorer
0 Kudos
373

But I will look at SAP support to find out if anything has been submitted there

Thanks for your help

Sandra_Rossi
Active Contributor
0 Kudos
373

As far as I can see by reading the program FDT_XML_EXPORT, the intent is as follows:

  • Either you indicate one ID which is of type Application, and you export either Export Subordinate Objects or Export XML for Entire Application (or both), which will export the application + all its subordinate objects
  • Otherwise it will export only the objects corresponding to the IDs.

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.