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

BAPI_PRODORDCONF_CREATE_TE not create final confirmation

Former Member
0 Likes
2,797

Hello!

I would like to use this BAPI BAPI_PRODORDCONF_CREATE_TE instead of transaction CO19.

When I create TE via Timeevent table I choose field FIN_CONF = 'X' for Final confirmation.

This BAPI end with save confirmation. But When I look this confirmation in CO14 I saw partial confirmation.

Where is the problem. When I did this in CO19, everything is ok.

Thank you for helping me,

Mirko

11 REPLIES 11
Read only

Former Member
0 Likes
2,435

Did you review the contents of the DETAIL_RETURN table for messages, errors, etc.?

Read only

0 Likes
2,435

Yes I did.

Return was empty.

In detail return was 1 line. Message: Confirmation of order 000001000062 saved.

Mirko

Read only

0 Likes
2,435

OK .... I found this SAPNOTE

Note 1230750 - Time event confirmation BAPI: FIN_CONF field has no effect

How can we solve this now?

Mirko

Read only

0 Likes
2,435

I write Customer message and got this answer ....

**************

time event confirmation don't need this field. If you want to post

a final confirmation you have to post the final statement like end of

processing. This is no error this is standard design, it's the same

behavoir as in dialog transaction.

**************

Read also this sapnote 1230750.

I think this solve the problem.

Mirko

Read only

0 Likes
2,435

Hi. Anybody solve this ptoblem?

Read only

Former Member
0 Likes
2,435

Hi

Have u use the following code after the call to BAPI

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

       EXPORTING

            WAIT = 'X'.

Regards,

Sandeep

Read only

0 Likes
2,435

Hi, thanks for quick answer. Yes we did use always this. Our problem is we can't make final confrimation. The BAPI has ignore type of confirmation. And always has confirmed time as partial confirmation.

Read only

karel_cada
Explorer
0 Likes
2,435

Create confirmation with RECORDTYPE = V40 after B40

Read only

0 Likes
2,435

Hi Karel Cada,

I am facing the similar issue and when I try to use V40 after a B40, I get the error "Pair formation: End message for start time 10/16/2022 01:01:01 is missing".

Could you please help me with this.

Thank you

Read only

0 Likes
2,432

Hi.

1) Add to TIMEEVENTS record with type B40 with yield, scrap, ... FIN_CONF = 'X', CLEAR_RES = 'X'

2) Add to TIMEEVENTS record with type V40 with yield = scrap = rework = 0 FIN_CONF = 'X', CLEAR_RES = 'X'. You can add times for variable activity CONF_ACTIVITY1-6

3) call BAPI_PRODORDCONF_CREATE_TE

4) check DETAIL_RETURN for error messages

a) BAPI_TRANSACTION_COMMIT if no errors

b) BAPI_TRANSACTION_ROLLBACK if any errors

With this steps work fine for me.


Read only

0 Likes
2,432

Hi,

I am facing similar issue.

Could you please help me on how to correct this.