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 BAPIRET2 type/severity 'W' (warning) correct behaviour

Former Member
0 Likes
1,034

I am working on an interface with another application. On the SAP side we will create a custom BAPI. I have explained the other guys that the BAPI will return (amongst other things) an array of type BAPIRET2 and explained the most important fields of BAPIRET2 - starting with TYPE, of course (which is more of a severity code).

Anyway, I explained the meaning of those letters, but I was not too sure about the precise meaning of 'W'.

If a BAPI "CreateWidget" has a W in its return, can the calling application assume that the widget has not been created at all or should it assume that a defective widget has been created?

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
780

Hello Peter

I can give you an example of another BAPI: if BAPI_SALESORDER_CREATEFROMDAT2 returns a warning (but no 'AEX' message) then the sales document has been created but some non-essential data (like the plant of the materials) are missing.

Regards

Uwe

I am working on an interface with another application. On the SAP side we will create a custom BAPI. I have explained the other guys that the BAPI will return (amongst other things) an array of type BAPIRET2 and explained the most important fields of BAPIRET2 - starting with TYPE, of course (which is more of a severity code).

Anyway, I explained the meaning of those letters, but I was not too sure about the precise meaning of 'W'.

If a BAPI "CreateWidget" has a W in its return, can the calling application assume that the widget has not been created at all or should it assume that a defective widget has been created?

3 REPLIES 3
Read only

Former Member
0 Likes
780

I would generally expect it was created, but possibly with incomplete information.

Read only

Former Member
0 Likes
780

W is nothing but the Warning message while creating the widget. Check the bapi returns any message with E else widget may be created. Check in that bapi any import parameter is there to give the widget number created.

Regards,

Prakash.

Read only

uwe_schieferstein
Active Contributor
0 Likes
781

Hello Peter

I can give you an example of another BAPI: if BAPI_SALESORDER_CREATEFROMDAT2 returns a warning (but no 'AEX' message) then the sales document has been created but some non-essential data (like the plant of the materials) are missing.

Regards

Uwe