Skip to Content
avatar image
Former Member

B1if General Service UDO update issue

Hi,

I am building an scenario for update some UDO Document type in SBO. I am using the B1 Service Call Atom for that. But it is giving me an error when the atom call i s executed.

My UDO name and Code in SBO is "NominationClients". I am using the service call atom with the Payload options.

I am getting the following error:

SapBobsCom.GeneralService.90.0 Description: Invalid XML. Expected collection name 'NominationClientssParams' but 'NominationClientsParams' provided

In the Service call atom I have the following options:

And in my previous atom transform I have this:

<Envelope>
            <Header>
                <Action DIServiceName="GeneralService" update="update" get="getByParams" throwException="true">update</Action>
            </Header>
            <Body>
                <BS ServiceCode="NominationClients">
                    <GetOrDelete>
                        <xsl:element name="NominationClientsParams">
                           
                                <xsl:element name="DocEntry">
                                    <xsl:value-of select="$docEntry"></xsl:value-of>
                                </xsl:element>
                          
                        </xsl:element>
                    </GetOrDelete>
                    <InsertOrUpdate>
                        <xsl:element name="NominationClients">
                            <DocEntry>
                                <xsl:value-of select="$docEntry"></xsl:value-of>
                            </DocEntry>
                            <U_B1C_NomNumber>
                                <xsl:value-of select="$nomClients/NomNumber"></xsl:value-of>
                            </U_B1C_NomNumber>
                            <B1CDR001Collection></B1CDR001Collection>
                        </xsl:element>
                    </InsertOrUpdate>
                </BS>
            </Body>
        </Envelope>
generalservice.jpg (121.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 26, 2017 at 02:49 PM

    Hi all,

    Sorry about the delay. I solved the issue. When you register your UDO you have to make sure that the Object Name doesn't end with 's'. In my case I changed it from NominationClients to ClientsNomination, and in my xml replace NominationClientsParams for ClientsNominationParams. That made the trick.

    Best regards,

    Add comment
    10|10000 characters needed characters exceeded