---
title: "How to change storage location in inbound delivery use bapi?"
author: "pentium100"
date: "2011-12-30T13:53:58Z"
tags: []
categories: ["行业应用"]
slug: "how-to-change-storage-location-in-inbound-delivery-use-bapi"
draft: false
lastmod: "2011-12-30T13:53:58Z"
id: 1330437
url: "https://pentium100.iteye.com/blog/1330437"
---


The paramater ITEM_DATA for bapi_inb_delivery_change has not a field named lgort.
so we use BADI SMOD_V50B0001, in this BADI has a method EXIT_SAPLV50I_009, use to change data in likp and lips.  

So if you want to change the lgort or werks in the lips, you need to do below steps: 
1/ you need to pass the value by extension1 to the BAPI, and get it in EXIT_SAPLV50I_009, 
2/ set the lgort or werks in ct_vbpok accounting to extention1, 
3/ set the filed kzlgo and xwmpp with 'X'.

it's all you need to do. 
