Application Development and Automation 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: 
Read only

Creating Parked GL document using BAPI

Former Member
0 Likes
2,758

Up until recently, I had been using the AcctngGLPosting BAPI to automate a process of creating a parked GL document. In order to get this to work, I was using I user exit to capture the document header record and change the "status_new" field to a "2" which would result in a parked document.

However, as part of our EHP7 upgrade this process now stopped working and is throwing and error "636 Changing the transaction code is not permitted for parked documents". I also found SAP note "2021422 - Parking using RWIN with illegal TCODE or AWTYP", which explicitly prevents me from doing what was previously working. The note explains why this change was made, but doesn't provide an answer to how to use the bapi to create the parked GL document instead.

Does anyone know of another mechanism by which to create a parked GL document? I've reviewed the documentation for the AcctngGLPosting BAPI and I don't see anything changed in there to accommodate this functionality.

Any and all suggestions are welcome.

1 ACCEPTED SOLUTION
Read only

Former Member
1,926

Hi,

Try Implementing the BTE RWBAPI01.

I have changed the header status using this BTE for BAPI BAPI_ACC_DOCUMENT_POST.

Hope This helps.

5 REPLIES 5
Read only

Former Member
0 Likes
1,926

Elder,

We submit program " RFBIBL00"  (for tcode FBV1) in a customer program to create a session of parked documents.

submit rfbibl00                   and return
         with ds_name eq p_output
         with fl_check eq space
         with callmode eq callmode           
         with pa_xprot eq 'X'.           


Then process the created batch in the same customer programs using:


submit rsbdcsub   and return     "8/23/01 and return was added
   with mappe = p_sname        " batch session name, in the batch header record
   with z_verarb  = 'X'        " To process
   with fehler   = ' '         " not batch sessions in error
   with logall   = 'X'  .      " Extended log              


Bruce



Read only

Former Member
1,927

Hi,

Try Implementing the BTE RWBAPI01.

I have changed the header status using this BTE for BAPI BAPI_ACC_DOCUMENT_POST.

Hope This helps.

Read only

0 Likes
1,926

Thanx for the information. This looks like it will allow me to do exactly what I need.

Read only

Former Member
0 Likes
1,926

Hi Gaurav,

        We also have the same issue now. We are using the " BAPI_ACC_GL_POSTING_POST"  to park the document.  So do we need to replace it with another BAPI " BAPI_ACC_DOCUMENT_POST", if yes can you send me some instructions on how to do this?

Read only

former_member206439
Contributor
0 Likes
1,926

What FM we have to use if I have to update header status in this BTE?