‎2007 Feb 07 8:57 AM
I have a problem when calling the two BAPI's mentioned above. According to the OSS notes there is a known problem when these two BAPI's are called in sucession. The second BAPI to be called BAPI_EQMT_INSTALLFL causes an update termination. The main problem is that we are on 3.1i the notes are only in support of versions 4x or greater.
I have tried a number of things to get this to work including:
Clearing locks on EQUI,
Inserting a commit work of my own,
Calling the BAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLBACK.
I have checked OSS notes 352120, 154546, 311367, 175902, 176663 and 630363 without a solution. I have changed the two BAPI's to have an additional parameter as per note 352120 but the receiving FORM has only 4 parameters and the OSS note is to implement an additional parameter in the PREFORM and does not include the change for the actual FORM. So I backed that out again.
Has anyone else come across this problem and more importantly has anyone come up with a solution other than coding a BDC to install the FLOC, I could do that but I want to use the BAPI. If all else fails I may end up using BDC.
Dave
‎2007 Feb 07 9:07 AM
Hi
Just for your reference there is a standard function module
<b>IDOC_INPUT_PIECEOFEQUIPMENT_IN</b>
, which in turn calls this BAPI - BAPI_EQMT_INSTALLFL.
Please check, how it functions.
Hope this will help.
Please reward suitable points.
Regards
- Atul
‎2007 Feb 07 9:10 AM
‎2007 Feb 07 9:09 AM
‎2007 Feb 07 9:13 AM
The return codes from the BAPI's are correct they show and 'S' for sucess. then I get an express message in my inbox informing me that the "Update was terminated" the equipment is created from first BAPI but the equipment is not installed at the FLOC.
Dave
‎2007 Feb 07 9:20 AM
Along with the "Update was terminated" a short dump is happening in the background. The dump is a RAISE_EXCEPTION and relates to
"Exception condition "STATUS_INCONSISTENT" raised."
Dave
‎2007 Feb 07 9:22 AM
Hi
Please Try this out...
First call the first BAPI in this way
data: w_task(10).
move '1234567890' to w_task.
call function 'BAPI_EQMT_CREATE' starting new task w_task
exporting
...
...
...
*--- Wait for 1 or 2 second
wait for 2 seconds.
clear w_task.
move '1234567890' to w_task.
call function 'BAPI_EQMT_INSTALLFL' starting new task w_task
exporting
...
...
...Hope this will help.
Please reward suitable points.
Regards
- Atul
‎2007 Feb 07 9:35 AM
Atul,
Thanks for your proposed solution but unfortunately I cannot use it because I need to be able to get the Equipment number back from the the BAPI_EQMT_CREATE and what you have proposed does not allow for FM import parameters.
Dave
‎2007 Feb 07 9:51 AM
Hi
Instead of NEW TASK use..
IN UPDATE TASK Addition with the function call as well.
Hope this will help.
Please reward suitable points.
Regards
- Atul
‎2007 Feb 07 10:01 AM
Short dump CALL_FUNCTION_NO_VB
The function module "BAPI_EQMT_INSTALLFL" was called with the addition
"... IN UPDATE TASK".
However, it is not flagged in the Function Library as executable in the update task.
Dave
‎2007 Feb 07 1:48 PM
‎2007 Feb 07 9:46 AM
Hi David ,
No need to Look for Note to resolve this issue, Just Debug there FM calls of that BAPI , Then u will come to know y it is raising Short DUMP.
<b>FM EQUIPMENT_INSTALL_PREPARE
FM 'STATUS_CHANGE_FOR_ACTIVITY'</b>
Regards
Prabhu