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_GOODSMVT_CREATE Lock

Former Member
0 Likes
1,040

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

9 REPLIES 9
Read only

Former Member
0 Likes
905

Hi,

May be authorization problem is the user from webdynpro the same as your R/3 logon name?

santhosh

Read only

0 Likes
905

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

Read only

Former Member
0 Likes
905

Hi,

can you post the parameters which you passing to the FM.

Regards,

Pavan

Read only

0 Likes
905

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

Read only

0 Likes
905

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

Read only

0 Likes
905

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

Read only

0 Likes
905

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.

Read only

0 Likes
905

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

Read only

former_member404244
Active Contributor
0 Likes
905

Hi,

Use the FM 'DEQUEUE_ALL' and see if it is working..

Regards,

Nagaraj