Skip to Content
Author's profile photo Former Member

How to Retract BPS data back to R/3 when there is no standard retractor

http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/webcontent/uuid/925b02f9-0b01-0010-bbbf-c68268bb3c41″ width=”235″/>

In this final  (Retraction Series) weblog I would like to give an idea on how to retract BPS data back to R/3 when there is no standard retractor available

Necessity: What if

  • there’s no standard retractor
  • you cannot make retractor work due to design complexities

So, whats the answer?…..its simple.

  • find the relavant BAPI thats responsible for posting the values in R/3
  • Read the records from cube
  • call the BAPI and pass reqd values to BAPI from BW system

BAPI’s for COSTCENTER Accounting

  • BAPI_COSTACTPLN_POSTPRIMCOST – For posting Primary Cost & Quantity
  • BAPI_COSTACTPLN_POSTACTOUTPUT – For posting Activities & Prices

How to Read data from Cube

  1. Call function module ‘RSDRI_INFOPROV_READ’ to read the data from cube
  2. For more help and info on how to read the cube then see the program ‘RSDRI_INFOPROV_READ_DEMO

Sample Code

Assigned Tags

      9 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      This is helpful as we are trying to write the HR retraction.

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Im glad that its helpful for you.
      Author's profile photo Former Member
      Former Member
      Hello PRaveen,

      We are planning to implement PCA retraction. I am trying to find the BAPI that posts the profit center values in R/3? Could you give any suggestion?

      Regards

      Author's profile photo Former Member
      Former Member
      Thanks a Lot for this useful information.
      Author's profile photo Former Member
      Former Member
      Hi. I need to retract planning data from BPS to a LIS, but I don't have CO-PA activated in R/3.
      How can I find a BAPI that helps me to get this data into a LIS in R/3?

      Thanks for your help.

      Karim Reyes

      Author's profile photo Former Member
      Former Member
      Praveen,
      Firstly thank you for creating a wonderful blog.
      We are planning to PCA retraction . In this process I am trying to read a custom cube by using SAP demo program and I am having difficluties in reading.
      Could you please give me your email-id or any type of contact?

      Rgds
      Praveen

      Author's profile photo Former Member
      Former Member
      Great weblog.

      Question is this still applicable to version 7 for custom built real-time info providers

      Thanks

      Author's profile photo Former Member
      Former Member
      Hi Praveen,

      We are planning to extract same data like for costcenter planning. but i have a BPC infocube, I should not use BPS method of retracting data. but have to build a FM or do something to retrct.

      could you please help me on this

      Author's profile photo Former Member
      Former Member

      Hi Praveen...nice code..I have a question Why did you called subroutine PERFORM retract_to_r3 within loop and calling bapi again an again..Just curious to know is there any specific reason...???