‎2007 Nov 14 11:12 AM
Hello!
I have to insert a headertext via BAPI_PR_CHANGE to an existing Purchase Requisition.
I was testing this BAPI while filling the table PRHEADERTEXT and the field NUMBER, but the Purchase Requisition wasn't changed.
Have I to do something more?
Kind regards!
Dennis
‎2007 Nov 14 11:19 AM
‎2007 Nov 14 11:28 AM
Hi Eric,
I have set TESTRUN = 'X'.
Is it not enough to test the bapi and understand how it works?
‎2007 Nov 14 1:04 PM
if testrun is set, nothing will be posted, you have to take it out and do a COMMIT WORK statement after the function call (if everything is all right). If your objective is only to see if the data which you give to the BAPI is ok, than you can set testrund and check the return message.
‎2007 Nov 16 9:16 AM
I do a COMMIT WORK after the function call, but nothing happens.
Have I to fill some more fields to change the headertext with this BAPI?
‎2007 Nov 19 9:31 AM
sorry... no idea...
check the return parameter of the BAPI, if it is OK, than you have to debug...
‎2007 Nov 19 9:36 AM
Use function module BAPI_TRANSACTION_COMMIT
after coming calling BAPI.
‎2008 Sep 26 8:35 PM
Was this ever solved? I have encountered the same problem: I have a purchase requisition, I try to add header text with BAPI_PR_CHANGE, the return messages says requisition was updated, but the text was not updated. I do not have "test run" checked!
I have tried debugging but I could not discover what the problem is.
Has anyone here ever successfully updated purchase requisition header text with BAPI_PR_CHANGE?
Thanks,
Margaret
‎2008 Sep 26 8:40 PM
And you ran BAPI_TRANSACTION_COMMIT after each call to the BAPI?
Rob
‎2008 Oct 09 4:37 PM
Rob,
I tried this change using Test function of SE37. Other changes I tested in SE37 were applied to the purchase requisition without separately calling BAPI_TRANSACTION_COMMIT . I confess I don't understand how I would (or why I would need to) do that.
Margaret