2014 Jan 15 3:16 PM
Hello,
Our program is executing BAPI_BUS2002_SET_STATUS to change the network and it's activities from status REL to status TECO.
An error is occuring because one of the network activities is in status 'CRTD'. An activitiy can't have it's status changed from CRTD to TECO.
My issue isn't with the error...rather with the way the error is being returned. The BAPI doesn't return the error in the BAPI return table. Instead a message box appears saying "The business transaction cannot be carried out.". There are two options in the message box: 'Continue' or 'Status information'.
If we process the IDoc in background mode, the program will hang forever since no one will hit the 'continue' button in the message box.
I can add a check in the program to ensure that the network activities have the 'REL' status before trying to change it to 'TECO'.
However, does anyone know why a BAPI would show an error in a message box instead of the return table? I checked the import parameters of the BAPI and there is nothing there to suppress a message box from appearing.
Thanks,
Jennifer
2014 Jan 15 3:43 PM
Did you look for an OSS note like 953758 - BAPI_BUS2002_SET_STATUS : gives pop-up error when setting TECO for a network with no author... ?
Regards,
Raymond
2014 Jan 15 3:43 PM
Did you look for an OSS note like 953758 - BAPI_BUS2002_SET_STATUS : gives pop-up error when setting TECO for a network with no author... ?
Regards,
Raymond
2014 Jan 15 4:27 PM
Yes, thank you Raymond. This fixed the problem.
Sincerely,
Jennifer