fields missing in item records
IDOC - File
IDOC has header line and multiple item lines (appearing in one of the segments of IDOC)
when I mapped, all the fields of the item 1 are displayed but from item2, item3 and so on many fields are missing
i.e say each item has some 25 fields
for item 1, 25 fields are displayed
for item2 onwards only 8 fields are displayed
I want 25 fields to be displayed for item 2, item3 ... item n as well
all the source side fields are mapped with the destination fields through MapwithDefault ** so even if the source field doesnt come it should populate and empty space
which is not happening now.
can I achieve the above with standard functions?
Pelluri Veeranjaneyulu replied
you need to check all the fields are exisitng or not, by using EXISTS function you can check it out this, if field is doesn't exist just pass the blank value else value of that field. By this way you can get the all fields in target file.Now you can view the file like if the fields having the values those will present in file otherwise blank values will appear which are doesn't have the values.
Hope it will solve u r problem.