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: 
Read only

SRM System - PO Create

0 Likes
779

Dear all,

We have a scenario where, we are creating Purchase Order in XML format in SRM system and transferred to our PI system.  The message type is PurchaseOrderRequest_Out . If we have to manipulate certain values at the time of creation of the XML, do we have a user exit or enhancement spot that we can use in the SRM system ? In an IDOC scenario, there are user exits available where we can modify the contents, and even add additional segments.

Kindly help. Many thanks in advance.

Regards : Bobby

Dear all,

We have a scenario where, we are creating Purchase Order in XML format in SRM system and transferred to our PI system.  The message type is PurchaseOrderRequest_Out . If we have to manipulate certain values at the time of creation of the XML, do we have a user exit or enhancement spot that we can use in the SRM system ? In an IDOC scenario, there are user exits available where we can modify the contents, and even add additional segments.

Kindly help. Many thanks in advance.

Regards : Bobby

4 REPLIES 4
Read only

Former Member
0 Likes
722

Hi Bobby,

Can you put more light on your query that what exactly changes you are looking for while transferring.

Because some of the things you can modify using BADI BBP_DOC_DAVE_BADI.

Thanks

Siddarth

Read only

Former Member
0 Likes
722

Hi Bobby,

You can use BADI BBP_SAPXML1_OUT_BADI for Object Type Purchase Order for this requirement.

Regards,

Vasanth

Read only

0 Likes
722

Thanks a lot Vasanth and Siddharth.

I am exploring both the BADIs now. I will explain the scenario a little better here.

We have the PO being sent to PI system. In the XML message, if we want to do some manipulation, for eg :  The below snapshot is an example of the XML segment - Seller Party.

I need to manipulate the data in this segment, before passing it to PI. The reason is that, the business logic is something that I wanted to maintain in the source system itself rather than the middleware system.

<SellerParty>

<BuyerID>123456543</BuyerID>
- <Address>
<OrganisationFormattedName>RRRRRR SSSSSSS</OrganisationFormattedName>
<FunctionalTitleName>RSS</FunctionalTitleName>
- <PhysicalAddress>
  <CountryCode>FR</CountryCode>
  <StreetPostalCode>12345</StreetPostalCode>
<CityName>SENLIS CEDEX</CityName>
<StreetName>YYYYYYYY</StreetName>
  </PhysicalAddress>
  <Communication>
- <Telephone>
- <Number>
<SubscriberID>12345677</SubscriberID>
  </Number>
<NumberDefaultIndicator>true</NumberDefaultIndicator>
  <NumberUsageDenialIndicator>false</NumberUsageDenialIndicator>
  </Telephone>
- <Email>
<Address>XXXX@XXXX.COM</Address>
  <AddressDefaultIndicator>true</AddressDefaultIndicator>
  <AddressUsageDenialIndicator>false</AddressUsageDenialIndicator>
</Email>
  </Communication>
  </Address>
  </SellerParty>
Thanks a lot in advance : Bobby Bal

Read only

0 Likes
722

Hey Bobby,

In that case, you need to write logic in the methods of proxy which you are using to pass messages to PI system. There you need to find the right method and write the code which will change data before XML construction.

Thanks

Siddarth