Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_BUS2002_SET_STATUS error returned in message box?

Former Member
0 Kudos
1,030

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Kudos
581
2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Kudos
582
Read only

0 Kudos
581

Yes, thank you Raymond.  This fixed the problem.

Sincerely,

Jennifer