cancel
Showing results for 
Search instead for 
Did you mean: 

Trading contract creation: transfer of percent condition type (discounts/surcharges) from xml (inbound interface TradingOrderRequest_In)

Former Member
0 Kudos

There is an example of xml-file which is the source of trading contract (GTM-contract) creation.

It contains cases of condition types transfer both absolute and percent value.

Differences between absolute and percent value transfer are the following:

- value of  <BaseCode> tag (/ns0:Messages/ns0:Message1/ns1:TradingOrderRequest/TradingOrder/Item/Sales/PricingTerms/PriceComponent/CalculationBasis) for absolute value is 3

for percent value it is 1

- for percent value <MeasuerUnitCode> and <CurrencyCode> tags (/ns0:Messages/ns0:Message1/ns1:TradingOrderRequest/TradingOrder/Item/Sales/PricingTerms/PriceComponent/Rate) should be pass empty

For example:

Condition type ZDC1 have a percent calculation type (A)

Condition type ZDC1 have a fix sum calculation type (B)

TradingOrderRequest message:

<?xml version="1.0" encoding="UTF-8"?><ns1:TradingOrderRequest xmlns:ns1="http://sap.com/xi/SAPGlobal/Global"><MessageHeader>

        <ID>1-ZB8AM</ID>

        <CreationDateTime>2016-02-05</CreationDateTime>

      </MessageHeader><TradingOrder actionCode="01" expenseListCompleteTransmissionIndicator="false" itemListCompleteTransmissionIndicator="false">

        <ID></ID>

        <TypeCode>ZDD1</TypeCode>

        <TradingProcessVariantTypeCode>ZDV1</TradingProcessVariantTypeCode>

        <ExchangeRateTypeCode>M</ExchangeRateTypeCode>

        <ExchangeRate>

          <UnitCurrency>RUB</UnitCurrency>

          <QuotedCurrency>RUB</QuotedCurrency>

          <Rate>1</Rate>

        </ExchangeRate>

        <BuyerParty>

          <InternalID>15154</InternalID>

        </BuyerParty>

        <ResponsibleEmployeeParty>

          <InternalID>14007618</InternalID>

        </ResponsibleEmployeeParty>

        <SalesOrganizationParty>

          <InternalID>9004</InternalID>

        </SalesOrganizationParty>

        <TradingChannel>

          <DistributionChannelCode>10</DistributionChannelCode>

          <DivisionCode>10</DivisionCode>

        </TradingChannel>

        <Sales pricingTermsListCompleteTransmissionIndicator="false">

          <BuyerPurchaseOrderID>1-59310880</BuyerPurchaseOrderID>

          <ExchangeRateTypeCode>M</ExchangeRateTypeCode>

          <ExchangeRate>

            <UnitCurrency>RUB</UnitCurrency>

            <QuotedCurrency>RUB</QuotedCurrency>

            <Rate>1</Rate>

          </ExchangeRate>

          <DeliveryTerms>

            <Incoterms>

              <ClassificationCode>CPT</ClassificationCode>

              <TransferLocationName>REG81</TransferLocationName>

            </Incoterms>

          </DeliveryTerms>

          <CashDiscountTerms>

            <Code>A100</Code>

          </CashDiscountTerms>

          <ValidityStartDate>2016-02-02</ValidityStartDate>

          <ValidityEndDate>2016-02-29</ValidityEndDate>

        </Sales>

        <Item actionCode="01" itemListCompleteTransmissionIndicator="false">

          <ID></ID>

          <PlantID>9231</PlantID>

          <ProductRecipientParty>

            <InternalID>15154</InternalID>

          </ProductRecipientParty>

          <Product>

            <InternalID>15801</InternalID>

          </Product>

          <InventoryManagedLocation>

            <InternalID></InternalID>

          </InventoryManagedLocation>

          <Sales commodityFutureItemCompleteTransmissionIndicator="false" scheduleLineListCompleteTransmissionIndicator="false" pricingAndPaymentEventCompleteTransmissionIndicator="false" transportationEventListCompleteTransmissionIndicator="false" pricingTermsListCompleteTransmissionIndicator="false" transportModeListCompleteTransmissionIndicator="false" configurationPropertyValuationListCompleteTransmissionIndicator="false">

            <BuyerOrderingDate>2016-02-29</BuyerOrderingDate>

            <DeliveryDate>2016-02-02</DeliveryDate>

            <DeliveryTerms>

              <Incoterms>

                <ClassificationCode>CPT</ClassificationCode>

                <TransferLocationName>REG81</TransferLocationName>

              </Incoterms>

            </DeliveryTerms>

            <PricingTerms actionCode="01">

              <PriceComponent>

                <TypeCode>ZPBL</TypeCode>

                <MajorLevelOrdinalNumberValue>90</MajorLevelOrdinalNumberValue>

                <MinorLevelOrdinalNumberValue>1</MinorLevelOrdinalNumberValue>

                <Rate>

                  <DecimalValue>90000</DecimalValue>

                  <MeasuerUnitCode>TNE</MeasuerUnitCode>

                  <CurrencyCode>RUB</CurrencyCode>

                </Rate>

                <CalculationBasis>

                  <BaseCode>3</BaseCode>

                </CalculationBasis>

                <EffectiveIndicator>true</EffectiveIndicator>

                <ManuallyChangedIndicator>false</ManuallyChangedIndicator>

                <GroupedIndicator>true</GroupedIndicator>

                <OriginCode>2</OriginCode>

              </PriceComponent>

            </PricingTerms>

            <PricingTerms actionCode="01">

              <PriceComponent>

                <TypeCode>ZPB1</TypeCode>

                <MajorLevelOrdinalNumberValue>90</MajorLevelOrdinalNumberValue>

                <MinorLevelOrdinalNumberValue>1</MinorLevelOrdinalNumberValue>

                <Rate>

                  <DecimalValue>0</DecimalValue>

                  <MeasuerUnitCode>TNE</MeasuerUnitCode>

                  <CurrencyCode>RUB</CurrencyCode>

                </Rate>

                <CalculationBasis>

                  <BaseCode>3</BaseCode>

                </CalculationBasis>

                <EffectiveIndicator>true</EffectiveIndicator>

                <ManuallyChangedIndicator>false</ManuallyChangedIndicator>

                <GroupedIndicator>true</GroupedIndicator>

                <OriginCode>2</OriginCode>

              </PriceComponent>

            </PricingTerms>

            <PricingTerms actionCode="01">

              <PriceComponent>

             
  <TypeCode>ZDC1</TypeCode>

                <MajorLevelOrdinalNumberValue>90</MajorLevelOrdinalNumberValue>

                <MinorLevelOrdinalNumberValue>1</MinorLevelOrdinalNumberValue>

                <Rate>

                  <DecimalValue>5</DecimalValue>

                  <MeasuerUnitCode></MeasuerUnitCode>

                  <CurrencyCode></CurrencyCode>

                </Rate>

                <CalculationBasis>

                  <BaseCode>1</BaseCode>

                </CalculationBasis>

                <EffectiveIndicator>true</EffectiveIndicator>

                <ManuallyChangedIndicator>false</ManuallyChangedIndicator>

                <GroupedIndicator>true</GroupedIndicator>

                <OriginCode>2</OriginCode>

              </PriceComponent>

            </PricingTerms>

            <PricingTerms actionCode="01">

              <PriceComponent>

               <TypeCode>ZDQ2</TypeCode>

                <MajorLevelOrdinalNumberValue>90</MajorLevelOrdinalNumberValue>

                <MinorLevelOrdinalNumberValue>1</MinorLevelOrdinalNumberValue>

               <Rate>

                  <DecimalValue>1000</DecimalValue>

                  <MeasuerUnitCode>TNE</MeasuerUnitCode>

                  <CurrencyCode>RUB</CurrencyCode>

                </Rate>

                <CalculationBasis>

                  <BaseCode>3</BaseCode>

                </CalculationBasis>

                <EffectiveIndicator>true</EffectiveIndicator>

                <ManuallyChangedIndicator>false</ManuallyChangedIndicator>

                <GroupedIndicator>true</GroupedIndicator>

                <OriginCode>2</OriginCode>

              </PriceComponent>

            </PricingTerms>

            <PricingTerms actionCode="01">

              <PriceComponent>

                <TypeCode>ZDO1</TypeCode>

                <MajorLevelOrdinalNumberValue>90</MajorLevelOrdinalNumberValue>

                <MinorLevelOrdinalNumberValue>1</MinorLevelOrdinalNumberValue>

                <Rate>

                  <DecimalValue>3</DecimalValue>

                  <MeasuerUnitCode></MeasuerUnitCode>

                  <CurrencyCode></CurrencyCode>

                </Rate>

                <CalculationBasis>

                  <BaseCode>1</BaseCode>

                </CalculationBasis>

                <EffectiveIndicator>true</EffectiveIndicator>

                <ManuallyChangedIndicator>false</ManuallyChangedIndicator>

                <GroupedIndicator>true</GroupedIndicator>

                <OriginCode>2</OriginCode>

              </PriceComponent>

            </PricingTerms>

            <PricingTerms actionCode="01">

              <PriceComponent>

                <TypeCode>ZDP1</TypeCode>

                <MajorLevelOrdinalNumberValue>90</MajorLevelOrdinalNumberValue>

                <MinorLevelOrdinalNumberValue>1</MinorLevelOrdinalNumberValue>

                <Rate>

                  <DecimalValue>200</DecimalValue>

                  <MeasuerUnitCode>TNE</MeasuerUnitCode>

                  <CurrencyCode>RUB</CurrencyCode>

                </Rate>

                <CalculationBasis>

                  <BaseCode>3</BaseCode>

                </CalculationBasis>

                <EffectiveIndicator>true</EffectiveIndicator>

                <ManuallyChangedIndicator>false</ManuallyChangedIndicator>

                <GroupedIndicator>true</GroupedIndicator>

                <OriginCode>2</OriginCode>

              </PriceComponent>

            </PricingTerms>

            <TotalValues>

              <Quantity unitCode="TNE">20</Quantity>

            </TotalValues>

          </Sales>

          <TextCollection actionCode="01">

            <Text actionCode="01">

              <TypeCode>Z001</TypeCode>

              <ContentText languageCode="RU">text1</ContentText>

            </Text>

            <Text actionCode="01">

              <TypeCode>Z002</TypeCode>

              <ContentText languageCode="RU">text2</ContentText>

            </Text>

            <Text actionCode="01">

              <TypeCode>Z010</TypeCode>

              <ContentText languageCode="RU">text3</ContentText>

            </Text>

          </TextCollection>

          <AddtionalParty actionCode="01">

            <InternalID>9251</InternalID>

            <PartyRoleCategoryCode>ZP</PartyRoleCategoryCode>

            <PartyBusinessCharacterCode>BBP000</PartyBusinessCharacterCode>

          </AddtionalParty>

        </Item>

        <AdditionalParty actionCode="01">

          <InternalID>14007618</InternalID>

          <PartyRoleCategoryCode>ZF</PartyRoleCategoryCode>

          <PartyBusinessCharacterCode>BUS003</PartyBusinessCharacterCode>

        </AdditionalParty>

Accepted Solutions (0)

Answers (2)

Answers (2)

nitindeshpande
Active Contributor
0 Kudos

Hi Natalia,

Your query is not clear. Can you please let us know what is your requirement? If you want to provide any XML file example, request you to attach them to the query and not paste it directly in the query box.

Regards,

Nitin

Former Member
0 Kudos

Dear Nitin, thank you,

I accept your comment about query, I'll take it into account further.

My post is only for information, it's not a question.

I had a problem with transfer of condition types of discounts/surcharges with % calculation type (A) from external system to SAP through interface TradingOrderRequest_In.

I didn't know how to fill price container <PriceComponent> in this case and there is no information about this interface in Internet.

Then I managed to solve it by changing <BaseCode>.

former_member186851
Active Contributor
0 Kudos

Hello Natalia,

Can you explain a bit more to assist you further.

Former Member
0 Kudos

Raghuraman, thank you.

My post is only for information, it's not a question.

I had a problem with transfer of condition types of discounts/surcharges with % calculation type (A) from external system to SAP through interface TradingOrderRequest_In.

I didn't know how to fill price container <PriceComponent> in this case and there is no information about this interface in Internet.

Then I managed to solve it by changing <BaseCode>.

former_member186851
Active Contributor
0 Kudos

Hello Natalia,

You can blog it if its a information.will be useful for others.