‎2009 May 19 4:12 PM
Hi all,
I need to inform more than 1 extension using the function
QPLEXT_INSPECTION_LOT_CREATE
I inform the LOS_REF with no problem but need to inform also
the field INSP_DOC_NUMBER using the function.
Here's the code I am using......
st_insp_header-werk = st_znaqme002-werks.
st_insp_header-art = st_fm_const-art.
st_insp_header-herkunft = st_fm_const-herkunft.
GET TIME STAMP FIELD lv_timestamp.
st_insp_header-erstelzeit_utc = lv_timestamp.
st_insp_header-insp_doc_number = space.
st_insp_header-matnr = st_znaqme002-matnr.
st_insp_header-charg = st_znaqme002-charg.
st_insp_header-losmenge = st_fm_const-losmenge.
st_insp_header-mengeneinh = st_fm_const-mengeneinh.
clear st_extension1.
st_extension1-field = 'LOS_REF'.
st_extension1-value = st_znaqme002-los_ref.
APPEND st_extension1 TO it_extension1.
************************************************************
****I want to add the field INSP_DOC_NUMBER
****
***clear st_extension1.
***st_extension1-field = 'INSP_DOC_NUMBER'.
***st_extension1-value = st_znaqme002-doc_no.
***APPEND st_extension1 TO it_extension1.
**************************************************************
CALL FUNCTION 'QPLEXT_INSPECTION_LOT_CREATE'
EXPORTING
is_insp_header = st_insp_header
it_extension1 = it_extension1[]
iv_execute_commit = 'X'
IMPORTING
ev_lot_number = p_prueflos
EXCEPTIONS
creation_failed = 1
creation_with_failure = 2
OTHERS = 3.
When I run this the inspection lot is created with the los_ref but I do not know how to create with both los_ref and insp_doc_number.
Help please.
Curtis
‎2009 May 19 4:50 PM