I'm creating a sales order add bod - what's the minimum amount of data needed to put into it?

I'm creating a Sales Order bod  Add bod for a brand new sales order.  I've put the customer party id and left the document id blank.  There isn't anything useful in the bod documentation to explain what should be put here.   I've made sure that the business partner has a default sales office and numbering but I get an error - see below

            <ResponseCriteria>
                <ResponseExpression actionCode="Rejected"/>
                <ChangeStatus>
                    <ReasonCode>-12</ReasonCode>
                    <Reason languageID="en-US">Identifiers: SalesOrderHeader_DocumentID_ID=</Reason>
                </ChangeStatus>
            </ResponseCriteria>
            <ResponseCriteria>
                <ResponseExpression actionCode="Rejected"/>
                <ChangeStatus>
                    <ReasonCode>tdsls12014</ReasonCode>
                    <Reason languageID="en-US">Order series not allowed</Reason>
                </ChangeStatus>
            </ResponseCriteria>
            <ResponseCriteria>
                <ResponseExpression actionCode="Rejected"/>
                <ChangeStatus>
                    <ReasonCode>tlbctstgen</ReasonCode>
                    <Reason languageID="en-US">Error occurred in Method &apos;Create&apos; on component &apos;SalesOrderInBOD&apos; of Object &apos;bosls047 SalesOrderInBOD&apos;.</Reason>
                </ChangeStatus>
            </ResponseCriteria>

 

What I am sending (snippet) is below:
<DataArea>
        <Process>
            <TenantID>infor</TenantID> />
            <AccountingEntityID>970</AccountingEntityID>
            <LocationID>D_SSLS01</LocationID>
            <ActionCriteria>
                <ActionExpression actionCode="Add" />
            </ActionCriteria>
        </Process>
        <SalesOrder>
            <SalesOrderHeader>
                <DocumentID>
                    <ID accountingEntity="970" location="D_SSLS01"></ID>
                </DocumentID>
                <CustomerParty>
                    <PartyIDs>
                        <ID>100000002</ID>
                    </PartyIDs>
                </CustomerParty>
                <SupplierParty>
                    <Location type="Office">
                        <ID accountingEntity="915">D_SSLS01</ID>
                        <Name>Structural Sales Office</Name>
                    </Location>
                </SupplierParty>
            </SalesOrderHeader>
            <SalesOrderLine>
                <LineNumber>1</LineNumber>
                <Item>
                    <ItemID>
                        <ID>U0000000</ID>
                    </ItemID>
                </Item>
                <Quantity unitCode="M">1</Quantity>
            </SalesOrderLine>
        </SalesOrder>
    </DataArea>

  • Hi Dom,

    Add the user which you have used in the connection point in the sales user profiles(tdsls0139m000) session to allow the order series.
  • In reply to 1315224:

    Hi

    Thanks for the quick reply unfortunately this hasn't worked. I get exactly the same errors.

    Cheers
    Dom
  • In reply to Dom:

    I found that I had to put in the Order Type AND the Order Series explicitly contrary to the information in the Bod documentation. The user I put in had default order type and series assigned to them but without the explicit Order Type and Series it wouldn't work.

  • In reply to Dom:

    I neither use order type nor series in the BOD and it works:

    <ProcessSalesOrder xmlns="schema.infor.com/.../2" xmlns:xs="www.w3.org/.../XMLSchema" releaseID="9.2">
    <ApplicationArea>
    <Sender>
    <LogicalID>lid://infor.crm.ms_test</LogicalID>
    <ComponentID>External</ComponentID>
    <ConfirmationCode>OnError</ConfirmationCode>
    </Sender>
    <CreationDateTime>2019-06-03T14:54:04.2266667Z</CreationDateTime>
    <BODID>461307AA-FE85-E911-80E5-005056960A0E</BODID>
    </ApplicationArea>
    <DataArea>
    <Process>
    <TenantID>infor</TenantID>
    <AccountingEntityID>5006</AccountingEntityID>
    <LocationID>S_5006</LocationID>
    <ActionCriteria>
    <ActionExpression actionCode="Add" />
    </ActionCriteria>
    </Process>
    <SalesOrder>
    <SalesOrderHeader>
    <CustomerParty>
    <PartyIDs>
    <ID>111000022</ID>
    </PartyIDs>
    </CustomerParty>
    </SalesOrderHeader>
    <SalesOrderLine>
    <Item>
    <ItemID>
    <ID>000111</ID>
    </ItemID>
    </Item>
    <Quantity>5.0000000000</Quantity>
    <UnitPrice>
    <Amount currencyID="CHF">140.39</Amount>
    <PerQuantity unitCode="PCS">1</PerQuantity>
    </UnitPrice>
    <TotalAmount currencyID="CHF">701.95</TotalAmount>
    </SalesOrderLine>
    </SalesOrder>
    </DataArea>
    </ProcessSalesOrder>

    Maybe you post your BOD also then somebody else can use the different parts for his/her solution ;-)
  • I think the error may be specific to the data setup of your LN environment, so we may not be able to conclude much from the fact it works in another env without Order type/ series. I think it's better to post this in the LN forum/ run this by an LN functional expert.