on 07-20-2011 11:49 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.