2011 Aug 26 7:49 PM
Hi,
I have a requirement:Documents need to be parked, but before parking all the validations that happen before posting have to be made.
In other words document need to go through all the checks of posting but should not be posted but parked.
I am hoping to find a FM or BAPI.
Things tried:
1. BDC of FB01.
2. Program RFBIBL01
The above two methods are parking with out validating balances, or internal orders or anything.
Please help.
2011 Aug 27 10:12 PM
As far as I know, BAPI_ACC_DOCUMENT_CHECK does everything that an actual posting does, minus the posting itself.
The downside is that you have to prepare the data for calling that BAPI in a somewhat different way than you already did for FB01 or RFBIBL00.
Thomas
2011 Aug 27 10:12 PM
As far as I know, BAPI_ACC_DOCUMENT_CHECK does everything that an actual posting does, minus the posting itself.
The downside is that you have to prepare the data for calling that BAPI in a somewhat different way than you already did for FB01 or RFBIBL00.
Thomas
2011 Sep 14 10:01 PM
BAPI_ACC_DOCUMENT_CHECK was very helpful. I am stuck in implementing it.
It does not take any standard value in 'obj_typ' field. I tried BKPF, BKPFF etc.
I cann't give any garbage value as it is checking TTYL table. Can you please help.
2011 Sep 15 4:38 AM
HI,
The value that you passed to objkey is BKPFF is correct.You can check the fm where and all used ,debug and see.
Regards,
Madhu.
2011 Sep 15 2:59 PM
It is not working with obj_key BKPFF.
I found this code in the function module.
* FI Belegnummer als Referenz
IF document_header-obj_type = 'BKPFF'.
PERFORM append_msg_to_return
USING 'E' "TYPE
'RW' "ID
'628' "NUMBER
'BKPFF' "MESSAGE_ONE
'DOCUMENTHEADER' "MESSAGE_TWO
'DOCUMENTHEADER' "PARAMETER
1 "ROW
'OBJ_TYPE'. "FIELD
ENDIF.
Therefore it is giving an error 628
Edited by: har1712 on Sep 15, 2011 3:59 PM
2011 Sep 15 3:43 PM
In my (one system only) scenarios I always leave OBJ_TYPE, OBJ_KEY and OBJ_SYS blank when calling this or the equivalent ..._POST function modules. You could give this a try.
Thomas
2011 Sep 26 4:37 PM
Hi Thomas,
Sorry for the late reply, I had to tweak the BAPI a little more to work.
I could finally get it to work because of your help.
Thanks again.
2011 Aug 27 11:33 PM