I am writing a script to upload supplier business information via MSM20DA and MSM20DB.
On MSM20DB the value displayed by the function keys literal at the bottom of the screen is 'XMIT-Update' both before the data entry and after, when usually 'XMIT-Confirm' would be displayed.
How would you code the 2 different situations in the DYNAMIC MSM20DB procedure, given that the function key literal does not change?
We usually would have smthg like:
TRIGGER @ERRMESS1I
. VALUE ' '
. TRIGGER @FKEYS1I
. . VALUE 'XMIT-Update' /* Ready for data entry
. . PERFORM MSM20DA_KEY_DATA
. . VALUE 'XMIT-Confirm' /* Data entered and all is ok: save and move to next screen
. . KEY !SEND
. . VALUE '' /* Error has occured - F3 back to MSM200A
. . SET 'STATUS=' 'ERROR'
. . SET 'ERROR=' @ERRMESS1I
. . PERFORM WRITE_ERROR_FILE
. . KEY !F3
. VALUE '' /* Error has occured - F3 back to MSM200A
. SET 'STATUS=' 'ERROR'
. SET 'ERROR=' @ERRMESS1I
. PERFORM WRITE_ERROR_FILE
. KEY !F3
but above does not work in this case as XMIT-Confirm does not apply.
On MSM20DB the value displayed by the function keys literal at the bottom of the screen is 'XMIT-Update' both before the data entry and after, when usually 'XMIT-Confirm' would be displayed.
How would you code the 2 different situations in the DYNAMIC MSM20DB procedure, given that the function key literal does not change?
We usually would have smthg like:
TRIGGER @ERRMESS1I
. VALUE ' '
. TRIGGER @FKEYS1I
. . VALUE 'XMIT-Update' /* Ready for data entry
. . PERFORM MSM20DA_KEY_DATA
. . VALUE 'XMIT-Confirm' /* Data entered and all is ok: save and move to next screen
. . KEY !SEND
. . VALUE '' /* Error has occured - F3 back to MSM200A
. . SET 'STATUS=' 'ERROR'
. . SET 'ERROR=' @ERRMESS1I
. . PERFORM WRITE_ERROR_FILE
. . KEY !F3
. VALUE '' /* Error has occured - F3 back to MSM200A
. SET 'STATUS=' 'ERROR'
. SET 'ERROR=' @ERRMESS1I
. PERFORM WRITE_ERROR_FILE
. KEY !F3
but above does not work in this case as XMIT-Confirm does not apply.