cancel
Showing results for 
Search instead for 
Did you mean: 

XML File Input for "Nodes" possible?

0 Kudos

Hi Guys,

I've created a small BusinessObject with some elements and a List (node) with a string value:

businessobject PBO_UserNameObject {

  [AlternativeKey] element customerID : BusinessPartnerInternalID;

  element numberOfUsers : NumberValue;

        node UserNames {

            element userNameTest : LANGUAGEINDEPENDENT_LONG_Name;

        }

}

Now I've created an Integration Scenario (pid: UserNameFileImportInputRequest) for XML File Input.

Actually this works very well, but I wasn't able to create a XML file to upload more UserNames. This is my current try:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<ns1:UserNameFileImportInputRequest xmlns:ns1="http://00000000-one-off.sap.com/XYZ12345_">

       <MessageHeader>

            <CreationDateTime>2015-06-24T18:00:00Z</CreationDateTime>

       </MessageHeader>

     <List>

            <PBO_LicenseObject>

                 <customerID>CP100993</customerID>

                 <numberOfUsers>20</numberOfUsers>

               

                 <UserNames>

                      <userNameTest>test1</userNameTest>

                      <userNameTest>test2</userNameTest>

                      <userNameTest>test3</userNameTest>

                      <userNameTest>test4</userNameTest>

                      <userNameTest>test5</userNameTest>

                 </UserNames>

            </PBO_LicenseObject>

     </List>

</ns1:LicenseFileImportInputRequest>

The upload works fine, but in the "UserNames List" on the UI is only "test1" available. All other entries are ignored.

Anyone knows how to fix this?

Thanks and best regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

former_member200567
Active Contributor
0 Kudos

Hi Michael,

         The answer is no. You cannot use XML File Inpur for  "Nodes".

         But there is a workround.

         Please refer to this doc.

       

Best Regards

Fred

0 Kudos

Hi Fred,

thanks for sharing this guide! This solves my problem.

Best regards,

Michael

Answers (0)