Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Check all the posting parameters before parking

Former Member
0 Kudos
160

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.

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos
100

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

7 REPLIES 7

ThomasZloch
Active Contributor
0 Kudos
101

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

0 Kudos
100

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.

0 Kudos
100

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.

0 Kudos
100

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

0 Kudos
100

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

0 Kudos
100

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.

Former Member
0 Kudos
100

Hi

You can try PRELIMINARY_POSTING_FB01

Shiva