Skip to Content
avatar image
Former Member

Routines in SAP BW

Hi, Everyone ,

I am new in SAP BW and having Problem to understand Routines in Transformation.

I am loading Data from one DSO in Infocube but Infocube has one extra filed from DSO2.whereas DSO2 and DSO1 only one common Field say ZPNP. which Routine type is useful .. I tried with Field Routine but its is time expensive . Is it possible to combine it with Start Routine , when ja then how ?????

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 23, 2017 at 11:03 AM

    Prepare the data you need in the start routine and then read it in the field routine. If you don't know how to do that, find an ABAPper. Or go on an ABAP course.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Matthew

      thnx your reply and suggestion. I am not getting this also how can i prepare Data in Start routine... do i need to populate data temporary
      in internal table and then reading again through Field routine . in this case must i access DB table of DSO2 to fill internal table am i right ??

      thnx in advance

  • avatar image
    Former Member
    Feb 24, 2017 at 01:14 PM

    There is a 'Read from Datastore' option in field rule type details, which although elegant, I guess is not usable in your case. Read about this option to see if it fits your case.

    You can use end routine in this case. Buffer only necessary data and necessary fields from DSO2 in an internal table. Update the field value in the result pack afterwards.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thnx Arunan , It is the right way first data buffring in start Routine than later on read in Field Routine . can u plz tell me how can i read in field Routine because i don't know too much about routines and in learning Phase. it would be appreciable when u write a example Code for me . thnx again.