07-29-2008 6:10 AM
Hi experts,
I want a bapi to achieve the same functionality as of tcode QE51N.
My inputs for bapi will be batch (mandatory),material and plant(optional),and a set characteristics like gauge head front,bottom dry lube n et al.
I want to know the approach to find the required bapi.If you already know bapi with this functionality,please reply.
07-29-2008 10:37 AM
07-29-2008 6:11 AM
07-29-2008 6:24 AM
This link gives list of all available bapis.
I want bapi for tcode qe51n functionality.how do i go about it?
07-29-2008 6:15 AM
Hi,
Check the below link ,perhaps it may help you
http://sap.ittoolbox.com/groups/technical-functional/sap-log-qm/bapi_inspectionplan_create-1247552
Regards,
Shiva Kumar
07-29-2008 10:37 AM
08-06-2008 7:28 AM
Hi all,
I finally succeeded in getting it..Thanks for all the replies.It was really helpful!!!
DATA: BEGIN OF ichar_results OCCURS 0.
INCLUDE STRUCTURE bapi2045d2.
DATA: END OF ichar_results.
DATA: BEGIN OF bapireturn2 OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF bapireturn2.
DATA: BEGIN OF ireturntable OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF ireturntable.
DATA: BEGIN OF insplot_tab OCCURS 0.
INCLUDE STRUCTURE bapi2045d2.
DATA: END OF insplot_tab.
DATA:insplot_num TYPE qibplosnr.
PARAMETERS:p_batch TYPE charg_d,
p_oprnum type QIBPVORNR.
CALL FUNCTION 'BAPI_INSPLOT_GETLIST'
EXPORTING
batch = p_batch
TABLES
insplot_list = insplot_tab.
LOOP AT insplot_tab.
insplot_num = insplot_tab-insplot.
ENDLOOP.
ichar_results-insplot = insplot_num.
ichar_results-inspoper = p_oprnum."Inspection lot operation num
ichar_results-inspchar = '0010'.
ichar_results-mean_value = '1.112'.
APPEND ichar_results.
ichar_results-insplot = insplot_num.
ichar_results-inspoper = p_oprnum."Inspection lot operation num
ichar_results-inspchar = '0020'.
ichar_results-mean_value = '2.223'.
APPEND ichar_results.
ichar_results-insplot = insplot_num.
ichar_results-inspoper = p_oprnum."Inspection lot operation num
ichar_results-inspchar = '0080'.
ichar_results-mean_value = '8.884'.
APPEND ichar_results.
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
insplot = insplot_num
inspoper = p_oprnum
IMPORTING
return = bapireturn2
TABLES
char_results = ichar_results
returntable = ireturntable.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = bapireturn2.
09-23-2008 9:41 AM
Hi, I faced the need to use func.'BAPI_INSPOPER_RECORDRESULTS'. I tried to use it as described in your example without insp.point which is not relevant in our case, but the mean_value does not
appear in the insp.lot. Any Idea?
Thanks,
Shuli