‎2008 Aug 12 9:22 AM
Greetings,
I m calling FIVE FM namely,
BAPI_ALM_ORDER_MAINTAIN
BAPI_TRANSACTION_COMMIT,
BAPI_ALM_NOTIF_DATA_ADD,
BAPI_ALM_NOTIF_SAVE,
BAPI_TRANSACTION_COMMIT
in the sequence written above.But i am not able to add data
to a created notification (created through BAPI_ALM_ORDER_MAINTAIN ),IF i process it in the above sequence.If i do the notification addition separetly,its working.
Do anyone have an idea to do this in a single function module.?
Helpful answers will be rewarded.
Regards,
‎2008 Aug 12 9:29 AM
Hello
And how are you using BAPI_TRANSACTION_COMMIT ?
Give code pls ...
‎2008 Aug 12 9:29 AM
Hello
And how are you using BAPI_TRANSACTION_COMMIT ?
Give code pls ...
‎2008 Aug 12 9:31 AM
Hi Jigneesh,
Try to use Wait Statement after every Bapi commit, I think this logic works sometimes.
Thanks
Sudharshan
‎2008 Aug 12 9:35 AM
‎2008 Aug 12 9:58 AM
hi,
i have passed the parameter for wait also.still its not getting
updated.
‎2008 Aug 12 10:07 AM
Try to open the order (IW32 or the like) after the commit wait, there may be a delay as i wrote. So try something like:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = bapiret2.
IF bapiret2-type EQ 'E'.
" help
ENDIF.
DO.
SELECT COUNT(*) FROM aufk BYPASSING BUFFER
WHERE aufnr = returned_order.
IF sy-subrc EQ 0.
EXIT.
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
ENDDO.Regards
‎2008 Aug 12 11:11 AM
Hi Raymond,
i tried with similar code lines.But it didnt work.
My assumption is that there is some problem with lock mechanism.Is there any way to handle this.?
I searched and found one sap note for the bapi...still its not working.
Waiting for you reply.
Edited by: Jinesh Kumar C on Aug 12, 2008 4:02 PM
‎2008 Aug 12 11:47 AM
‎2008 Aug 12 11:51 AM
‎2008 Aug 12 12:38 PM
‎2008 Aug 12 12:39 PM