Commented Code and XML

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

PIAPPLQPO is replaced with skumar due to authorization issues.

PIAPPLQPO is user in QPO

LE_SHP_TAB_CUST_HEAD

EXIT_SAPLV50I_010

You should be able to update the LIKP or LIPS tables using the EXTENSION internal
tables.

For this a BADI and an enhancement point are required.

Extend the fields in LIKP/LIKP and VBKOK/VBPOK with the custom fields.

Now implement the BADI SMOD_V50B0001/EXIT_SAPLV50I_010 to move the custom fields


from EXTENSION1 or 2 to CS_VBKOK or CT_VKPOK.

Implement the enhancement spot LE_SHP_DELIVERY_UPDATE/UPDATE_HEADER to move custom


fields from VBKOK/VBPOK to LIKP or LIPS.

Adding custom screen" http://www.abaplog.com/Icerik/39/add-custom-tab-to-vl02n--


vl03n

<n0:MT_Summit_Shipments xmlns:n0="http://summit.com/interlink/Shipments">
<Shipments>
<Header>
<Order OrderNumber="8000017335" FreightCharges="0.00" ShipmentTrackingDetails=""
BillofLading=""/>
</Header>
<Detail>
<Item Warehouse="NTDC" LineNumber="000040" ItemNumber="2557" QtyShipped="0"
LotNumber="" ItemStatus="" Company_ID="US10"/>
<Item Warehouse="NTDC" LineNumber="000050" ItemNumber="2558" QtyShipped="5"
LotNumber="" ItemStatus="" Company_ID="US10"/>
</Detail>
</Shipments>
</n0:MT_Summit_Shipments>

* Set lock for further changes if the delivery is NTDC on delivery save.
IF if_trtyp = 'H'.
SELECT sign opti low high
INTO TABLE lt_filter_werks
FROM tvarvc
WHERE name = 'ZVDC_PLANT'.

IF ls_xlips-werks IN lt_filter_werks.
ls_xlikp-zzwlink_locked = 'X'.
MODIFY ct_xlikp FROM ls_xlikp INDEX 1.
ENDIF.
ENDIF.

DATA: lt_filter_werks TYPE RANGE OF lips-werks,


la_lips TYPE lips.
READ TABLE xlips INTO la_lips INDEX 1.

SELECT sign opti low high


INTO TABLE lt_filter_werks
FROM tvarvc
WHERE name = 'ZVDC_PLANT'.

IF la_lips-werks IN lt_filter_werks.

IF t180-trvog = '6' AND


t180-trtyp = 'V' AND
vbuk-wbstk <> 'C' AND " Reverse PGI can happen
likp-zzwlink_locked = 'X'. "Delivery

AUTHORITY-CHECK OBJECT 'ZWLINK'


ID 'ACTVT' FIELD '02'.
IF sy-subrc <> 0.
break skumar.
break pohttpuser.
MESSAGE a000(zsummit) WITH 'Delivery locled in Warehouse and cannot be
changed manually'.
ENDIF.

ENDIF.

ENDIF.

- check reverse PGI


- when reverse PGI, Q - should we send this to WLINK? If yes, do we set to locked
?
- Item quantity change from WLINK
- Check PGI from VL02n
- Check when converting from VL03n to VL02n

17343

You might also like