Skip to Content
author's profile photo Former Member
Former Member

Urgent-Transformation Routine Sample code

Hi Experts,

I have a custom cube which is being fed by FI_GL(ODS),Material Movements Cube,and Purchasing Cube(OPUR_C01).

In my Custom Cube,

1) need some chars and all the KF's from ODS.

2) need only 0Batch and 0vendor from MM cube.No KF's from MM Cube

3) need only Req Tracking Number(BEDNR) and outline agreement(KONNR)

fields from Purchasing cube.No KF's from Puchasing Cube.

How should i go about it this req?I am pretty new to ABAP.Please help me with this solution or with some helpful code.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 11:06 PM

    Sample code from 2LIS_02_SCL -> 0PUR_O01 for a key figure (ODS):

    IF ( SOURCE_FIELDS-BWVORG = '001' or "Bestellu *ng

    SOURCE_FIELDS-BWVORG = '011' or

    SOURCE_FIELDS-BWVORG = '021' or

    SOURCE_FIELDS-BWVORG = '004' or "LP

    SOURCE_FIELDS-BWVORG = '014' or

    SOURCE_FIELDS-BWVORG = '024' )

    AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'.

    RESULT = SOURCE_FIELDS-J_3ANETW.

    endif.

    Use DIRECT assignment for KONNR -> 0CONTRACT

    If helpful, please assign points.

    Regards,

    Alex

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      In this example: BWVORG represents the process key (which you can read more on in SAP Note 684465). It is check to be sure the document type is a Purchase order (001), transport order (011), cross company order (021), or Scheduling agreement of some sort. Then it just posts the RESULT to the Key figure in the routine (in this case J_3ANETW represents a net value)...

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.