Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

No status record was passed to ALE (Working fine in WE19)

Hi,

I have created custom IDoc Inbound function module for changing the planned order information. When I test this function module in WE19 its works fine but when I actually send information from another system it gives me an error as No status record was passed to ALE. I thought there is problem with my code but for testing purpose I have just poupated IDOC_STATUS with 53 status as following:

****************************My code************************

REFRESH idoc_status.

CLEAR: idoc_status.

idoc_status-docnum = idoc_contrl-docnum.

idoc_status-msgty = 'S'.

idoc_status-msgid = 'SU'.

idoc_status-msgno = '000'.

idoc_status-msgv1 = 'Test'.

idoc_status-status = '53'.

idoc_status-repid = sy-repid.

APPEND idoc_status.

workflow_result = c_wf_result_ok.

return_variables-wf_param = c_wf_par_processed_idocs.

return_variables-doc_number = idoc_contrl-docnum.

APPEND return_variables.

REFRESH idoc_data.

************************end of my code**************************

but still it gives me the same error. In some discussions I have seen that by clearing all variables local and global they got rid of this problem. But I am not getting exactly what is the problem and which varialbe to clear, can any one help me with this.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question