Hey Folks,
I have a scenario where outbound idocs need to be triggered whenever there is a new project and wbs which is created through CJ01. The distribution model is maintained correctly and the idoc configurations ( partner profile, basic type message type linkage) are all correct. After debugging the issue was found in the subroutine ' distribute_project_ale' that calls the FM ALE_PROJECT_SAVEREPLICA. In this subroutine there is a FM STATUS_CHECK. Only if the outcome of this FM is 2, does the idoc get triggered. Now, to get the output or exception from this FM as 2, after creating the WBS,we have to release and lock the WBS. Only if the WBS is locked does the idoc get triggered. But this is not the required functionality. The WBS will not be locked when the user creates it. We are creating statistical WBS.The required functionality is to get the idoc triggered as soon as it is created from CJ01. Currently due to the check on the FM STATUS_CHECK, the idocs are prevented from getting triggered.Any workaround for this?
Thanks.