migration procedrue

7
  

Upload: akhilrock007

Post on 08-Jul-2015

43 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 1/7

 

Page 2: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 2/7

 

Page 3: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 3/7

 

When I opened trasformation, and checked routines for error infoobjects

Page 4: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 4/7

 

I have displayed routine, when I checked (check option), I got an error

Page 5: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 5/7

 

You can see the error

Page 6: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 6/7

CLASS lcl_transform IMPLEMENTATION.

METHOD compute_0GR_WT_KG.

* IMPORTING  

* request type rsrequest 

* datapackid type rsdatapid  

* SOURCE_FIELDS-DOC_CATEG TYPE /BI0/OIDOC_CATEG  

* SOURCE_FIELDS-GROSS_WGT TYPE /BI0/OIGROSS_WGT  

* SOURCE_FIELDS-UNIT_OF_WT TYPE /BI0/OIUNIT_OF_WT  

* EXPORTING  

* RESULT type _ty_s_TG_1-GR_WT_KG  

DATA:

MONITOR_REC TYPE rsmonitor.

*$*$ begin of routine - insert your code only below this line *-* 

Data:*-- 

COMM_STRUCTURE type _ty_s_SC_1__RULE_33,

l_subrc type sy-tabix,

l_abort type sy-tabix,

ls_monitor TYPE rsmonitor,

ls_monitor_recno TYPE rsmonitors.

data:

*-- 

l_monitor type standard table of rsmonitor.

REFRESH:MONITOR.

* Runtime attributs 

SOURCE_SYSTEM = p_r_request->get_logsys( ).

MOVE-CORRESPONDING SOURCE_FIELDS to COMM_STRUCTURE.

* Migrated update rule call 

Perform routine_0013

TABLES 

l_monitor

USING 

COMM_STRUCTURE

CHANGING 

RESULT

l_subrc

l_abort.

*-- Convert Messages in Transformation format 

LOOP AT l_monitor INTO ls_monitor.

Page 7: Migration Procedrue

5/9/2018 Migration Procedrue - slidepdf.com

http://slidepdf.com/reader/full/migration-procedrue 7/7

  move-CORRESPONDING ls_monitor to MONITOR_REC.

append monitor_rec to MONITOR.

ENDLOOP.

IF l_subrc <> 0.

RAISE EXCEPTION TYPE cx_rsrout_skip_val.

ENDIF.

IF l_abort <> 0.

RAISE EXCEPTION TYPE CX_RSROUT_ABORT.

ENDIF.

*$*$ end of routine - insert your code only before this line *-* 

ENDMETHOD. "compute_0GR_WT_KG  

*----------------------------------------------------------------------*  

* Method invert_0GR_WT_KG  

*----------------------------------------------------------------------*  

* This subroutine needs to be implemented only for direct access 

* (for better performance) and for the Report/Report Interface * (drill through). 

* The inverse routine should transform a projection and  

* a selection for the target to a projection and a selection 

* for the source, respectively. 

* If the implementation remains empty all fields are filled and  

* all values are selected. 

*----------------------------------------------------------------------*  

*----------------------------------------------------------------------*  

METHOD invert_0GR_WT_KG.

*$*$ begin of inverse routine - insert your code only below this line*-* 

... "insert your code here 

*$*$ end of inverse routine - insert your code only before this line *-* 

ENDMETHOD. "invert_0GR_WT_KG  

ENDCLASS. "routine IMPLEMENTATION