cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI confirmation and CO1P issue

swathi_rege
Active Participant
0 Kudos

Hi Gurus, here is my situation..

We do BAPI confirmations using Z program with auto GR and GI. after GR is done, we use the material document to process subsequent steps. All this is done in the confirmation Z program which uses bapi confirmation.

for some confirmations, GR document fails and I see a record in CO1P. I dont want to run coruproc because if i run it and create material document, i will be missing on my subsequent steps that the z program do.

what is the reason for some entries getting into co1p and how can I make them not go to co1p?

I looked at note 577368, but I couldnt really understand what the note is saying..

on a side note, my order type doesn't have any process control key in opk4.I left it blank so my goods movement will be posted in update task immediately.

if I am doing my goods movement in immediate update task, why are some records sitting in CO1P which is used for later in background processing setting.

Accepted Solutions (0)

Answers (1)

Answers (1)

svs_sap
Active Contributor
0 Kudos

Hi Swati,

Co1P is the transaction in which the post processing of error records can takes place.

And the GR entries you are doing are moved there may be the reason, there are some goods movements errors due to which the entries moved to COGI or the entries in COGI may be deleted, such entries are moved and once you run CO1P you get back all the entries in COGI for clearance is the one possibility.

Check in OPK4 order confirmation transaction if you restrict the or activate the termination of the goods movements for the incorrect entries that time the Goods movement entries with error will not move to COGI as well as not found in CO1P.

This can resolve your issue, but you have to decide whether your business wants the goods movement with error posting in COGI transaction or they are ok to restrict it.

Best regards,

Sharat

swathi_rege
Active Participant
0 Kudos

Sarath,

we are using BAPI confirmations. so "terminate if incorrect goods movement" check will anyway doesnt work as goods movement will be in update task.

my question is, what should i do to not have records in CO1P.

I know if i make the process control to have my goods movement " later in background" then it will go to CO1P. But our config says immediately in update task, so why are some records still going to co1p?

note 577368 says

""""

Options to eliminate the problem by less dialog processes waiting

for the update program.

- In selfwritten programs that call a confirmation BAPI, you must

only use the addition AND WAIT for COMMIT WORK if this is

absolutely required.

- Reduce the number of possible parallel tasks (OPKB) or remove

the entries completely if you actually do not need the parallel

processing.

""""

not sure what this means?

swathi_rege
Active Participant
0 Kudos

is there any BAPI or function module for CORUPROZ/CO1P?

swathi_rege
Active Participant
0 Kudos

I think I got it

CO_RB_CREATE_GOODS_MOVEMENTS