Hi Everybody,
I am trying to create IDOC through a custom basic type by MASTER_IDOC_DISTRIBUTE' function module.
The function module returns few data in the tables parameter through communication_idoc_control. Here I am getting idoc number from DOCNUM and IDOC status from STATUS.
Here the status coming as 29.
Although the IDOC no is generating inside the function module the I am not able to see it from WE02.
The function module MASTER_IDOC_DISTRIBUTE also returns sy-subrc = 0.
After that when I am writing COMMIT WORK. The system gives dump.
Commit work is not getting succeed anyhow.
Can anybody please tell me the reason?
With regards.
Satyajit