05-29-2008 11:24 AM
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
05-29-2008 11:35 AM
Hi,
Please try the BAPI 'BAPI_STOREORDER_CHANGE'
<removed_by_moderator>
Cheers,
Raghav.
Edited by: Julius Bussche on Jun 24, 2008 7:19 PM
05-29-2008 11:40 AM
Hi Raghav,
Not sure why you feel this bapi will be useful, there is no field for Country.
Thanks
Indrajit
06-24-2008 4:37 PM
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.
06-24-2008 4:43 PM
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
06-24-2008 4:46 PM
Thanks Indrajit.
Wish i could award points to you. But its your thread
11-10-2009 3:05 PM
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.
11-10-2009 3:07 PM
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.
06-24-2008 4:41 PM
06-24-2008 5:12 PM
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