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

To commit work after 'BAPI_INSPOPER_RECORDRESULTS' Call

Former Member
0 Likes
953

Dear All,

I am using 'BAPI_INSPOPER_RECORDRESULTS' to record Inspection Lot Char. result in 'SET_UD_AT_SAVE' Method of BADI

Definition 'INSPECTIONLOT_UPDATE' and doing the commit using 'BAPI_TRANSACTION_COMMIT'.

  • Record the Characteristic's result

CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'

EXPORTING

INSPLOT = gv_prueflos

INSPOPER = gl_char-INSPOPER

TABLES

CHAR_RESULTS = gt_result.

  • Commit the Characteristic's result

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = gc_x.

The commit work is happening for:

1. commit work from the buffer

2. commit work to record Inspection Lot Char. result

Please suggest how to commit only Inspection Lot Char. result and not commit work from the buffer.

Kindly suggest any Non-BAPI Function module to record Inspection Lot Char. result.

Thanks and Regards,

Nitin Sethi

Dear All,

I am using 'BAPI_INSPOPER_RECORDRESULTS' to record Inspection Lot Char. result in 'SET_UD_AT_SAVE' Method of BADI

Definition 'INSPECTIONLOT_UPDATE' and doing the commit using 'BAPI_TRANSACTION_COMMIT'.

  • Record the Characteristic's result

CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'

EXPORTING

INSPLOT = gv_prueflos

INSPOPER = gl_char-INSPOPER

TABLES

CHAR_RESULTS = gt_result.

  • Commit the Characteristic's result

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = gc_x.

The commit work is happening for:

1. commit work from the buffer

2. commit work to record Inspection Lot Char. result

Please suggest how to commit only Inspection Lot Char. result and not commit work from the buffer.

Kindly suggest any Non-BAPI Function module to record Inspection Lot Char. result.

Thanks and Regards,

Nitin Sethi

2 REPLIES 2
Read only

Former Member
0 Likes
651

Hello,

why do you need to COMMIT buffer and insplot separatly?

Ok, if you want to do that, you have to start a parallel task (LUW).

There are several ways to do that.

1. Write a programm, put your insplot-code into it and call it via SUBMIT (and return) from the method.

or

2. Write a function module (RFC) and call it with parameter DESTINATION 'NONE', please check in SM59 that destination NONE is existing.

Regards,

Martin

Read only

0 Likes
651

Thanks a Lot Martin,

Nitin Sethi