‎2009 Jan 05 9:03 AM
Hi ,
I am trying to call the BAPI, 'BAPI_GOODSMVT_CREATE' for goods receipt through a web dynpro application.
In my scenario, we have ABAP stack on different Machine i.e. not on R3. When i call the BAPI, it creates some lock objects for the standard tables in R3 it uses, but no data is updated. Also the lock objects are not released. The return table of the BAPI is blank. But if i test the BAPI on r3 with the same data(in se37), it created a GRN. Please help me out with this.
As suggested in other posts, i have called 'BAPI_TRANSACTION_COMMIT' with wait = 'X'. But still it does not work.
Thanks and Regards,
Sagar
‎2009 Jan 05 9:07 AM
Hi,
May be authorization problem is the user from webdynpro the same as your R/3 logon name?
santhosh
‎2009 Jan 05 9:10 AM
Hi Santosh,
Thanx for your prompt reply.
Yes the username for both the systems is the same. And authorization level is the same. Both have SAP_ALL authorization.
Thanks,
Sagar
‎2009 Jan 05 9:16 AM
Hi,
can you post the parameters which you passing to the FM.
Regards,
Pavan
‎2009 Jan 05 9:22 AM
Hi Vishnu,
I am passing data from an internal structure to another FM in R3. There I am extracting those params frrom the strructure and passing them to the BAPI as it expectes it. I am very much sure that this thing is working as I have tested it in SE37. Also the locks object suggest that the BAPI is getting executed properly.
Thanks ,
Sagar
‎2009 Jan 05 9:36 AM
Hi Sagar,
Can u plz tell me what is the status of the return table..after the bapi is processed?
is it initial or has some messages ...
If it has some messages then please let me know the message ....
Thanks
Sahil
‎2009 Jan 05 10:21 AM
Hi Sahiil and Nagraj,
I have checked the return internal table. It is blank.
and i tried DEQUEUE_ALL as well, but to effect.
And If i am correct as I am using the standard BAPI, there should be no need to call DEQUEUE_ALL.
Regards,
Sagar
‎2009 Jan 05 10:36 AM
Hi Sagar ,
Try to make the GR with same PO through standard Tcode
remember the Bapi works on MB1B so I suggest to try same PO on both the Transactions i.e. MIGO and MB1B with same user id so that doubt for authorizations is also eliminated..
Thanks
Sahil.
‎2009 Jan 05 2:30 PM
Hi Sahiil,
This is not an authorization issue for sure. I can create the goods receipt manually.
And if it was an authorization issue, it wud have not set locks on the object. Its setting locks on the Standard tables and all, but they are not getting released. And I tested my FM that calls the Bapi in every possible way, it is working fine.
Regards,
Sagar
‎2009 Jan 05 9:32 AM
Hi,
Use the FM 'DEQUEUE_ALL' and see if it is working..
Regards,
Nagaraj