Skip to Content
0

Enhancement code to park and post with different users acoounting docuument

Apr 23, 2017 at 05:33 PM

91

avatar image

Hello,

I am using BAPI_ACC_DOCUMENT_POST to Park and post accounting document, I ( Implement the BTE RWBAP01) to have this possibility. Now I have a requirement , that the user who park is not who post. These two users, I get them from selection screen of my report. How can I separate the user who park and who post in my Abap programm ?

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
Apr 24, 2017 at 08:21 AM
1

'Now I have a requirement , that the user who park is not who post.'

Are you checking during post that the user is not the user that parked the document, raising an error if not the case, or could you elaborate your exact requirement?

NB: BTE RWBAP01 should no longer be used, as the BAPI has now been enhanced to provide the option to park documents (2092366 - Parking with BAPI_ACC_DOCUMENT_POST)

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hello,

Thank you for you response.In a normal logic, the user how park is the same who post, both in BKPF and VBKF i find that uname is the same. In debug mode, I don't knnow where should I modify the user who park .So the reqyuirement is to park and post with different user that I should use in my abap program.

Best regards

0

IMHO you shouldn't find some 'lawful' enhancement for this requirement, the uname value in document and change document comes from sy-uname, and so respects the licensed agreement with SAP, also think at security/authorization and logging for Audit level. A wild solution would be to change the data provided to the update task FM, but that I, for one, will not do so?

1

Even if I change the input of my bapi ( the username on the header) , I will get usually the same uname for parked and posted document ( In BKPF and VBKPF table)

0