Application Development 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: 

BAPI to Update Country of Origin for Delivery Item

Former Member
0 Kudos

Hello All,

I have a requirement as follows.

For an Outbound delivery item (VL02N), I need to update the 'Country of Origin' (EIPO-HERKL). This will come in 'Origin/Destination/Business' tab under 'Foreign Trade /Customs' tab for the delivery item. Could anyone please tell me if there is

a BAPI to do the same.

I think this country of origin is not the country of origin for the material, because even if the material is having a value for country of origin in material master, the same is not reflecting in the delivery.

Thanks and Regards

Indrajit

9 REPLIES 9

Former Member
0 Kudos

Hi,

Please try the BAPI 'BAPI_STOREORDER_CHANGE'

<removed_by_moderator>

Cheers,

Raghav.

Edited by: Julius Bussche on Jun 24, 2008 7:19 PM

0 Kudos

Hi Raghav,

Not sure why you feel this bapi will be useful, there is no field for Country.

Thanks

Indrajit

0 Kudos

Hi Indrajit,

Have you found a way to solve your problem. I'm facing exactly the same problem with my requirement now.

Please update if you know the solution.

Thanks in advance.

RK.

0 Kudos

Hi,

Try using the FM ''EXPIMP_POSTING".

Refer to the sample code.

PARAMETERS p_deliv TYPE vbeln.

DATA: lt_xeikp TYPE STANDARD TABLE OF eikpvb,

lt_xeipo TYPE STANDARD TABLE OF eipovb,

lx_xeikp TYPE eikpvb,

lx_xeipo TYPE eipovb,

lv_exnum TYPE exnum.

SELECT SINGLE exnum

FROM likp

INTO lv_exnum

WHERE vbeln = p_deliv.

lx_xeikp-exnum = lv_exnum.

APPEND lx_xeikp TO lt_xeikp.

lx_xeipo-exnum = lv_exnum.

lx_xeipo-expos = '000010'.

lx_xeipo-herkl = 'US'.

lx_xeipo-updkz = 'U'.

APPEND lx_xeipo TO lt_xeipo.

CALL FUNCTION 'EXPIMP_POSTING' IN UPDATE TASK

TABLES

fxeikp = lt_xeikp

fxeipo = lt_xeipo.

COMMIT WORK.

Thanks,

Indrajit

0 Kudos

Thanks Indrajit.

Wish i could award points to you. But its your thread

0 Kudos

Hi Indrajit,

For an Outbound delivery item (VL02N), I need to update the 'Country of Origin' (LIKP-OIC_OLAND1).

I have used "BAPI_OUTB_DELIVERY_CREATE_STO" to create the outbound delivery from STO.

Could anyone please tell me if there is a BAPI to do the same.

I think this country of origin is not the country of origin for STO, because even if the STO (EKKO-OIC_OLAND1) is having a value for country of origin in Purchasing document header table (EKKO), the same is not reflecting in the delivery.

Please provide me some solution.

0 Kudos

Hi

For an Outbound delivery item (VL02N), I need to update the 'Country of Origin' (LIKP-OIC_OLAND1).

I have used "BAPI_OUTB_DELIVERY_CREATE_STO" to create the outbound delivery from STO.

Could anyone please tell me if there is a BAPI to do the same.

I think this country of origin is not the country of origin for STO, because even if the STO (EKKO-OIC_OLAND1) is having a value for country of origin in Purchasing document header table (EKKO), the same is not reflecting in the delivery.

Please provide me some solution.

former_member181995
Active Contributor
0 Kudos

Indra

look at this bapi:

BAPI_OUTB_DELIVERY_CHANGE

Amit.

Former Member
0 Kudos

Check if user exit 'EXIT_SAPLV50E_003' was implemeted in your system. Country of origin of the material can be changed in this user exit.

This user exit is called in the function module 'EXPORT_ITEM_DATA_PROPOSE' and matdat-herkl is mapped to eipo-herkl (That may indicate that the country of origin is copied from the material master).

Instead of using a BAPI to update the export information, why not use the user exit to propose country of origin.

Refer to the documentation of 'EXIT_SAPLV50E_003' for further information.

Thanks

Manoj