Just to post back in case anyone comes across this issue in future.
My script included multiple screens 0300, 0301, 0302 etc however the problem was that I used the "SAP Field" in my IF statement. Eg. If SAP FIeld RF05A-NEWBS was 01 then go to 0301. This didn't work. The IF statement had to point back to the load file and therefore I had to use "Column" and therefore the posting key was picked up correctly.
This was quite frustrating however I know going forward to look at this.
Thanks for responding Stephen.
------------------------------
James Tobin
------------------------------
Original Message:
Sent: 04-01-2019 04:33
From: Stephen Butler
Subject: AR Posting
Hi James,
With journal posts, there are a lot of different screens and fields that you *could* possibly hit along the way. Most are related to the field status group or posting key (as you've seen in your example)
What you'll likely need to do is write some if statements into your script - if the posting key is in the range of customer postings, then show screen 0301, otherwise, show 0300.
------------------------------
Stephen Butler | Systems Analyst
RSA Insurance Group Plc
Original Message:
Sent: 03-29-2019 20:23
From: James Tobin
Subject: AR Posting
I'm creating an AR posting using FB01 and it works if the posting keys are per the order it was recorded in (01, 50). However if there are multiple lines the loop is not functioning correctly. Has anyone got this working correctly previously?
The customer line is obviously different to the revenue line (0301 and 0300). Any input greatly appreciated
James
------------------------------
James Tobin
------------------------------