After a system update EWAWA01 no longer posts data in Background.
Sy-Subrc code 1001 occurs when run in background.
I need to identify the part of the transaction code that triggers this.
Based on some digging around the Internet it seems that a software update changed some screen design elements. Since the program was probably partially made using SHDB to record screen interactions, the change in screen design has rendered the elements made from this recording unusable.
Suspected problematic code is below.
CALL TRANSACTION 'EWAWA01' WITHOUT AUTHORITY-CHECK using bdcdata_tab OPTIONS FROM opt MESSAGES INTO lt_return. loop at lt_return into ls_return. if ls_return-type NE 'E' and ls_return-type NE 'A'. else. if SY-subrc ne '0' . Write: / 'Fehler:', / sy-subrc, sy-MSGID(5), sy-MSGTY, sy-MSGNO, sy-MSGV1, ls_return-type, / file_cont. else. Write: file_cont. endif. if SY-Batch eq space. DELETE DATASET p_path . endif.