(Don't laugh) Legacy SAP BC 4.6 issue

Guys, I could really do with some support on this as I have spent considerable amount of time (days) plugging away and I’m still trying to figure this out on a weekend. I’m obviously being dumb.

EDICoreUsersGuide.pdf, on page78, has the following positional flatfile…

BPYZCORP 0020000112085434 2000011202
1UYZCORP DUUSD
1BYZCORP DUABC_CO CORPORATION 94A22190
1DYZCORP P.O. BOX 500
N4YZCORP ABCD STREET ZZ123450001
PRYZCORP MIKE L. SOMEONE
VQYZCORP TE716-742 6653
PTYZCORP SD
1HYZCORP 00319991203
1NYZCORP IV36934
1BYZCORP XYZ CORPORATION
1DYZCORP 100 RIDGEVIEW DR
N4YZCORP CITY YY543210007
QTYZCORP 32000000000000004
2CYZCORP YY234457-B24 VP687534982
1KYZCORP EA00000000274.73
QTYZCORP 32000000000000001
2CYZCORP TT380551-001 VP687535989
1KYZCORP EA00000000507.38
PTYZCORP SD
1HYZCORP 00319991203
1NYZCORP IV36870
1BYZCORP ENMY NATIONAL BANK
1DYZCORP 1000 STREET NAME
N4YZCORP OAKLYN ZZ102080000
QTYZCORP 32000000000000032
2CYZCORP MM185152-406 VP687259986
1KYZCORP EA00000000149.65
QTYZCORP 32000000000000032
2CYZCORP MM185152-406 VP687259986
1KYZCORP EA00000000149.23

and template…

<?xml version="1.0"?> 10 BP 1U 1B 1D N4 PR VQ PT, PT 1H 1N 1B 1D N4 QT, QT 2C 1K

…as an example. I’m tying to get this to work so that I can then implement my own solution on this ancient (soon to be replaced by pi) piece of kit. But I keep on getting the following error message…

java.lang.NullPointerException
at wm.b2b.edi.EDIConverter.getSegment(EDIConverter.java:680)
at wm.b2b.edi.EDIConverter.createLoop(EDIConverter.java:489)
at wm.b2b.edi.EDIConverter.toEDIValues(EDIConverter.java:373)
at wm.b2b.edi.convertToValues(edi.java:677)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:303)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:700)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:147)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:279)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:556)
at com.wm.lang.flow.FlowState.stepIncremental(FlowState.java:479)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:370)
at wm.server.JSBC_flow.stepFlow(JSBC_flow.java:203)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:310)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:700)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:104)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:151)
at com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:441)
at com.wm.util.TimeWrappingProvider$TimeMesuredTask.run(TimeWrappingProvider.java:40)
at com.wm.util.pool.PooledThread.run(PooledThread.java:109)
at java.lang.Thread.run(Thread.java:725)

Any ideas on what I am doing wrong? I’ve attached my flow.

Would really appreciate any help

Cheers.
test2.zip (2.7 KB)

Hi,

Please provide following details

  1. Doc Type
  2. EDI Version
  3. Flatfile version.

Can you also please attach complete package which includes payload and service.

Thanks,
Manju.