Application Development 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: 

BAPI for QE51N transaction

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check with this: BAPI_EECATIMESHEET_GETWORKLIST

thanks,

Sendil.

6 REPLIES 6

Former Member
0 Kudos

hi Usha,

refer to the lik below for BAPI's:

http://www.sapbapi.com/bapi-list/

With luck,

Pritam.

0 Kudos

This link gives list of all available bapis.

I want bapi for tcode qe51n functionality.how do i go about it?

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Check with this: BAPI_EECATIMESHEET_GETWORKLIST

thanks,

Sendil.

0 Kudos

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.

0 Kudos

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