edifact icon indicating copy to clipboard operation
edifact copied to clipboard

Problems reading RFF segment from EDI-File

Open onlineware opened this issue 3 years ago • 1 comments

Hello,

i try to get the data from the RFF-Segment

$reader = new Reader($fn); $rffSegment = $reader->groupsExtract('RFF'); print_r($rffSegment);

In the EDI-File it looks like: RFF+VN:87310'

The return value is an array. This array is only filled, if the line is set twice in the edi file.

Like this: RFF+VN:87310' RFF+VN:87310'

I can't understand why that is! Can you help me please!

onlineware avatar Feb 18 '21 11:02 onlineware

When call $reader->groupsExtract('RFF'), $barrier stay 'USN', but, if no USN in message, can not extract group.

Try $reader->groupsExtract('RFF',['UNT']) or other segment code, what is before next group.

uldisn avatar Feb 18 '21 14:02 uldisn