2006 Mar 28 2:22 PM
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
2006 Mar 28 2:26 PM
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
2006 Mar 28 2:26 PM
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.
2006 Mar 28 2:27 PM
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
2006 Mar 28 2:27 PM
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.
2006 Mar 28 2:29 PM
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
2007 Apr 02 7:34 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |