2007 Feb 01 12:02 PM
hi,
Need Select Query for this...
12. Check if the document category TVLK-VBTYP = 7 where TVLK-LFART = LIKP-LFART (Delivery Type) then this is and Inbound Delivery for a purchase order.
13. Check the value of field Shipment External ID#1 (VTTK-EXTI1) is not initial then check the BOL Data Format. If not VICSBOL then set the variable LI_INBVICS = N. and assign Shipment External ID#1 to Shipment External ID#2 i. e VTTK-EXTI2 = VTTK-EXTI1. and Check the TMS BOL Format. If VICSBOL then set LI_INBVICS = Y .
2007 Feb 01 12:08 PM
select data from tvlk into it_tvlk for all entries in it_likp
where lfart = it_likp-lfart.
loop at it_tvlk where vbtyp = '7'.
<write ur code>.
endloop.
2007 Feb 01 12:18 PM
Hi,
1)
IF TVLK-VBTYP = 7 and TVLK-LFART = LIKP-LFART.
Inbound Is for a Purchase order.
ELSE.
Inbound Is not for a Purchase order.
Endif.
2)
IF not VTTK-EXTI1 is initial.
IF BOL DATA <> VICSBOL.
LI_INBVICS = N.
VTTK-EXTI2 = VTTK-EXTI1
else if BOL DATA <> VICSBOL.
LI_INBVICS = Y
Endif.
endif.
endif.