ABAP Objects: Function 'DEQUEUE_EMRKPF' doesn't work
I want to dequeue a reservation in the db-table RKPF.
Why is this?
Actually I want to change a purchase requsition and therefore I need to
execute the 'BAPI_PR_CHANGE'. I execute it twice to avoid failures. First
as a test run and secondly as normal without the testrun-flag.
My problem is the following: during the first run (test run) it enqueues
my reservation and the bapi leaves without dequeues my reservation, so I
wanted to dequeue it by myself. but I failed
Does anybody know the solution of my problem?
Here my code to dequeue the reservation:
CALL FUNCTION 'DEQUEUE_EMRKPF'
EXPORTING
MODE_RKPF = 'E'
MANDT = SY-MANDT
RSNUM = mv_rsnum
_SCOPE = '3'
_SYNCHRON = 'X'
_COLLECT = ' '
.
Before giving me a answer check out these things I checked out before:
I called the transaction SM12 and checked if my mv_rsnum is the same as in
the table
I didn't found any sy-subrc in the bapi
I dequeued the banf which has this reservation number..
No comments:
Post a Comment