Application Development and Automation 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: 
Read only

Need Select Query

Former Member
0 Likes
463

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’ .

2 REPLIES 2
Read only

Former Member
0 Likes
418

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.

Read only

Former Member
0 Likes
418

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.