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

Usage Decision & Inspection close completed BAPI

former_member210118
Participant
0 Likes
1,301

Hello friends,

i'm looking for a BAPI / FM that giving an Inspection Control, it makes the Usage Decision and the Inspection Close Completed automaticaly..

Is there any ?

Best Regards

Ricardo Jorge Monteiro

3 REPLIES 3
Read only

Former Member
0 Likes
894

Try this bapi: BAPI_INSPLOT_SETUSAGEDECISION

Regards,

ravi

Read only

0 Likes
894

thaks ravi, this bapi i think help's a lot, but i tried it and come across a problem...The Bapi itself doesn't actually change the Usage Decision, in the code it say's i have to use another BAPI called BAPI_TRANSACTION_COMMIT. I've made a program that calls the first bapi and then this last one...but the Usage Decision stays the same..

any ideas how to turn this around ?

Read only

0 Likes
894

Now i'm getting a message "Selected set code does not exist, or data entered is incomplete" in The BAPI...

Here Is the program code i'm using:

data: ud_data like BAPI2045UD occurs 0 with header line,

sy_data like BAPI2045SS occurs 0 with header line,

return like BAPIRETURN1 occurs 0 with header line,

c_return like BAPIRET2 occurs 0 with header line.

ud_data-INSPLOT = '030000007159'.

ud_data-UD_FORCE_COMPLETION = 'X'.

ud_data-UD_CODE = 'A'.

ud_data-UD_CODE_GROUP = 'SCC01'.

ud_data-UD_SELECTED_SET = 'SCC1'.

ud_data-UD_PLANT = '02'.

append ud_data.

CALL FUNCTION 'BAPI_INSPLOT_SETUSAGEDECISION'

EXPORTING

NUMBER = '030000007159'

UD_DATA = ud_data

  • LANGUAGE =

IMPORTING

  • UD_RETURN_DATA =

  • STOCK_DATA =

RETURN = return

TABLES

SYSTEM_STATUS = sy_data

  • USER_STATUS =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

IMPORTING

RETURN = c_return.

Can anyone please help me this is very urgent