full message is [ISC.0049.9027] Error at pub.list:appendToDocumentList - Transformers cannot loop over list elements.
I try to map fields out of record structure / Document into a to append Segment / record list in a MATMAS05 - IDoc. I allready mapped this Segment (E1MARMM) previously with different information and need this segment a second time with different informations.
I use appendToDocumentList
I don’t use a loop.
I link the IDoc Segment to “toList” inbound and outbound. under “fromItem” I copied the fields I want to map in (including @segment and MSGFN) and linked it to the inbound fields.
when I unlink the outbound “toList” the mapping step is working (of course doing nothing) and throwing no error. So I suppose this has something to do with receiving structure??
I don’t know if this helps but here’s what I want to do (a Loop did not help):
My I did connect itwrong
3.8 BRANCH on
Alternative UoM
3.81 %rec_MANITM_EUR/COMM/EXTRA.PS_SPLY_CHN_UNIT% != %rec_MANITM_EUR/LOCL/EXTRA.PS_INVT_UNIT%: SEQUENCE
3.811 MAP
Alternative Unit of Meassures
Source Destination
I get the same message when using a different transforner for this segment → [ISC.0049.9027] Error at oxse.utils:bilde5Stellen - Transformers cannot loop over list elements. With MATMAS03 I don#t have this issue. maybe it’s something with the inititalization wrong
“under “fromItem” I copied the fields I want to map in (including @segment and MSGFN) and linked it to the inbound fields.”
If any of the fields your are mapping from into the “fromItem” are lists, that’s the issue. You either need to loop over that list or specify an index from the list to the “fromItem” field.
Don’t really understand but Idoc structure is
IDoc / Document
E1MARAM / Document List
E1MARMM / Document List
And I want to append E1MARMM that it looks the following
before transformer
E1MARAM / Document List
E1MARAM[0] / Document
E1MARMM / Document List
E1MARMM[0] / Document
desired result after transformer
E1MARAM / Document List
E1MARAM[0] / Document
E1MARMM / Document List
E1MARMM[0] / Document
E1MARMM[1] / Document
Strange: When I link E1MARAM to “ToList” and put structure E1MARAM under “fromItem” I get NO error but as result
I had the same issue and then I found out what causes the problem:
When I clicked in the map line going to ‘toList’, I found in properties view “indices”, where I specified that the map should be done from the first element of the input list (elements[0]) to the first element of the output list (elements[0]), which means the same for the map line going from ‘toList’ to the output list. (Refer to the screen shot bellow…)