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 returns empty RETURN

Former Member
0 Likes
2,246

Hi Experts,

I am using a BAPI to change/update some fields(Planner group, Iwerks, Work cnetre..etc) in my Notification order (IW52) and for this i am using this BAPI_ALM_NOTIF_DATA_MODIFY. If there is an error the RETURN param shows the message appropriatey but when there is no error this BAPI does not return anything in the RETURN parameter nor it changes the reqd fields.

Please advice me how to use this BAPI?

thanks

Dan

7 REPLIES 7
Read only

Former Member
0 Likes
1,299

Hi Dan

If their is no error and as a result of this if any document number is generated then return table have that document number .

Check this link for some useful info on this BAPI:

Regards

Neha

Read only

abdul_hakim
Active Contributor
0 Likes
1,299

Hi

If the Operation is successful, then the BAPI either returns the success message in the RETURN parameter or nothing. Check the documentation of this BAPI.

Cheers,

Hakim

Read only

Former Member
0 Likes
1,299

Hi,

There are many bapis that do not return the value in the return table upon successfull updating..

Hence you should not worry...

Check for values in return table..if it is not empty..do your error procecssing other wise perform success processing as per the requirement..

IF GT_RETURN[] is not intial.

Error record

Error message/Error Processing

ELSE.

success updation

success processin

ENDIF

Note: After using this BAPI to modify notification, You need to call the BAPI_ALM_NOTIFICATION_SAVE to save the notification...

Regards

Shiva

Read only

0 Likes
1,299

Sorry i dont remember the BAPI to save.. You can search BAPINOTIFSAVE*

Read only

0 Likes
1,299

Hi All,

Thanks for the replies.

I am also saying that the BAPI is NOT updating/Changing the required fields in the notif order even when the RETURN is empty.

Do you want me to use BAPI_ALM_NOTIF_SAVE after this?

thanks

Dan

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,299

Look at this OSS [Note 604300 - FAQ: BAPI_ALM_NOTIF* and BAPI_SERVNOT*|https://service.sap.com/sap/support/notes/604300], also read carefully the online documentation of the FM/BAPI.

You MUST call in sequence

- [BAPI_ALM_NOTIF_CREATE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_alm_notif_create&adv=false&sortby=cm_rnd_rankvalue] or [BAPI_ALM_NOTIF_DATA_MODIFY|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_alm_notif_data_modify&adv=false&sortby=cm_rnd_rankvalue].

- [BAPI_ALM_NOTIF_SAVE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_alm_notif_save&adv=false&sortby=cm_rnd_rankvalue]

- BAPI_TRANSACTION_COMMIT

Regards

Read only

Former Member
0 Likes
1,299

Yes .. We need to call these in sequence:

BAPI_ALM_NOTIF_DATA_MODIFY.

BAPI_ALM_NOTIF_SAVE

BAPI_TRANSACTION_COMMIT