‎2007 Mar 30 12:27 PM
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
‎2007 Mar 30 12:32 PM
‎2007 Mar 30 2:23 PM
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 ?
‎2007 Mar 30 4:02 PM
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