cancel
Showing results for 
Search instead for 
Did you mean: 

2LIS_11_V_SSL - Change dataflow to BW7 - Problem with Start Routine

Former Member
0 Kudos

I'm changing the dataflow of the standard business content for 2LIS_11_V_SSL through to 0SD_O04. I'm adding a start routine to the transformation as there was one in the standard update rules.

The standard 3.X update rules had this start routine:

  • fill the internal table "MONITOR", to make monitor ent *ries

LOOP AT DATA_PACKAGE.

IF DATA_PACKAGE-lw_gists EQ 'C' OR DATA_PACKAGE-sched_del EQ 'X'.

MOVE 'R' TO DATA_PACKAGE-recordmode.

MODIFY DATA_PACKAGE.

ENDIF.

ENDLOOP.

  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

Which I've changed to in my version 7 transformation start routine:

LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS>.

IF <SOURCE_FIELDS>-MCEX_WBSTA_LOW EQ 'C' OR

<SOURCE_FIELDS>-VBEP_DELETED EQ 'X'.

MOVE 'R' TO <SOURCE_FIELDS>-recordmode

MODIFY DATA_PACKAGE.

ENDIF.

ENDLOOP.

  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

However I get the error message:

E:The data object "<SOURCE_FIELDS>" has no component called "RECORDMODE"

The issue is obviously because in 3.X there is a recordmode in DATA_PACKAGE but in 7 there is no mention of recordmode in <SOURCE_FIELDS>.

How do I get round this?

Thanks

Joel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

the infor object 0RECORDMODE may not exist in data source. In data source the field ROCANCEL should be mapped to 0RECORDMODE. However you can also apply the code in end routine and there infor object 0RECORDMODE will be accessable.

My recommendation is to apply the code in end routine.

Regards

Aban

Former Member
0 Kudos

That was the decision I came to. ROCANCEL goes into 0STORNO and either one could be used to populate 0RECORDMODE.

Thanks again.

Answers (0)