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

very urgent problem in bapi

Former Member
0 Likes
996

Hi Every One,

I tried using the BAPI "BAPI_PR_CREATE",in se37 by passing entries manually. The system created the pr and gives me PR number as "100078" but i am unable to see this PR in the system and neither the table EBAN gets updated. Request your help.

awaiting for u r reply....

Regards

Ravi

Hi Every One,

I tried using the BAPI "BAPI_PR_CREATE",in se37 by passing entries manually. The system created the pr and gives me PR number as "100078" but i am unable to see this PR in the system and neither the table EBAN gets updated. Request your help.

awaiting for u r reply....

Regards

Ravi

6 REPLIES 6
Read only

Manohar2u
Active Contributor
0 Likes
930

Ravi,

BAPI needs commit work compulsorily for updating database.

Use BAPI_TRANSACTION_COMMIT after executing your BAPI.

Keep everying in report and execute the same.

Regds

Manohar

Read only

Former Member
0 Likes
930

Hi Ravi,

This is a known "problem". Most BAPIs don't have a commit work. This is why you should call BAPI_TRANSACTION_COMMIT whenever a BAPI has been called and no errors have been reported.

Regards,

John.

Read only

Former Member
0 Likes
930

you need to use bapi_transaction_commit after you use any bapi. This commits the changes to the underlying system.

When you execute your bapi in se37, it simulates the posting.

Hope this helps

Darren

Read only

Former Member
0 Likes
930

hi ravi,

1.

DATA : ret LIKE bapiret2 OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = ret.

2. But if you do this

in se37 itself, it won't work.

3. Both bapis,

1) original bapi

2) commit bapi

should be in the same session.

4. So if u create a z program,

and do in it,

then it will update,

(but not in se37)

regards,

amit m.

Read only

Former Member
0 Likes
930

Hi,

you try to run it in TEST sequence mode with transaction commit.

for that you need to do this...

In the SE37 menu <b>Function Module->Test->Test Sequence-></b>

here you will be able to see one popup, in that enter

<b>BAPI_PR_CREATE</b> and then<b> BAPI_TRANSACTION_COMMIT</b> and then Run it with the maual inputs.

now see the PR number in DB.

Regards

Vijay

Read only

Former Member
0 Likes
930

Hi ravi,

I am testing BAPI_PR_CREATE manually i am getting problem with doctype.

even though i entered mandatory pritems it is asking for the same. Please send me the procedure for testing.

Thanks & Regards