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: 

needs a bapi

Former Member
0 Kudos

Hi Guru's

I am using a BAPI BAPI_INSPCHAR_GETRESULT to get inspection lot characterstics result but this FM is obsolete . Please help me how i can get characteristics results FM .

Regards

Hitesh

4 REPLIES 4

Former Member
0 Kudos

Hi Hitesh,

Check this FM

QPL1_INSPECTION_LOT_CREATE

code for ur reference.

We have created a function which creates inspection lots based on some Z-tables we have. The FM you mention creates the inspection lot but just stores it in memory. It is necessary to update table QALS. Here's the interesting part of the code we're using:

  • LIKP data:

MOVE ztaf07-proveedor TO l_likp-lifnr.

MOVE ztaf07-cliente TO l_likp-kunnr.

MOVE ztaf07-cliente TO l_likp-kunag.

SELECT SINGLE vkorg FROM vbak

INTO l_likp-vkorg

WHERE vbeln = ztaf07-vbeln.

IF sy-subrc <> 0.

MOVE sy-subrc TO l_subrc.

EXIT.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

  • LIPS data:

MOVE ztaf08-matnr TO l_lips-matnr.

MOVE ztaf08-werks TO l_lips-werks.

MOVE ztaf08-c_fact TO l_lips-lgmng.

MOVE ztaf08-vrkme TO l_lips-meins.

MOVE ztaf08-charg TO l_lips-charg.

MOVE ztaf07-fecha TO l_lips-mbdat.

  • TVLK data:

MOVE '89' TO l_tvlk-qherk. "Lot creation without reference

CALL FUNCTION 'QAAT_SD_LOT_CREATION'

EXPORTING

i_kuwev = l_kuwev

i_likp = l_likp

i_lips = l_lips

i_tvlk = l_tvlk

IMPORTING

e_prueflos = l_prueflos

  • E_TEILLOS =

EXCEPTIONS

x_no_origin = 1

OTHERS = 2.

.

IF sy-subrc <> 0.

MOVE sy-subrc TO l_subrc.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ELSE.

MOVE l_prueflos TO l_lipsvb-qplos.

MOVE 0 TO l_lipsvb-qtlos.

MOVE 1 TO l_lipsvb-updkz.

APPEND l_lipsvb.

CALL FUNCTION 'QAAT_SD_LOT_POSTING'

TABLES

t_lips_tab = l_lipsvb.

IF sy-subrc <> 0.

MOVE sy-subrc TO l_subrc.

ENDIF.

COMMIT WORK.

ENDIF.

Reward if helpful.

Regards,

Harini.S

former_member189629
Active Contributor
0 Kudos

hitesh,

Check this link...

http://www.planetsap.com/LIST_ALL_BAPIs.htm

Reward if helpful,

Karthik

Former Member
0 Kudos

The BAPI which u have specified is obsolete. Instead, use BAPI_INSPOPER_GETDETAIL and set the indicator READ_CHAR_RESULTS.

This BAPI_INSPOPER_GETDETAIL supplies the inspection specifications and results of an inspection operation.

I hope so this will help you.

Former Member
0 Kudos

hi

good

check with these BAPIS

Check all,

BAPI_CLASS_ALLOC_GLOB_DEP BAPI: Assign Global Dependencies to Class

BAPI_CLASS_CHANGE BAPI: Change Class

BAPI_CLASS_CHARVALUE_DEL_DEP Class BAPI: Delete Local / Global Dependencies for Characteristic Valu

BAPI_CLASS_CHARVALUE_GLOB_DEP Class BAPI: Assign Global Dependencies to Characteristic Value

BAPI_CLASS_CHARVALUE_LOCAL_DEP Class BAPI: Maintain Local Dependency for Characteristic Value

BAPI_CLASS_CHARVALUE_READ_ALLO Class BAPI: Read Dependencies for Characteristic Value

BAPI_CLASS_CHAR_ALLOC_GLOB_DEP Class BAPI: Global Dependencies for Characteristic

BAPI_CLASS_CHAR_DELETE_DEP Class BAPI: Delete Global / Local Dependency for Characteristic

BAPI_CLASS_CHAR_LOCAL_DEP Class BAPI: Assign / Delete Local Dependency for Characteristic

BAPI_CLASS_CHAR_READ_ALLOC Class BAPI: Read Dependencies for Characteristic

BAPI_CLASS_CHAR_VALUE_TEXT_DEL Class BAPI: Delete Overwriting of Long Text for Characteristic or Value

BAPI_CLASS_CHAR_VALUE_TEXT_OVR Class BAPI: Overwriting of Long Text for Characteristic or Value

reward point if helpful.

thanks

mrutyun^