Skip to Content
avatar image
Former Member

Packaging data not populated in customs declaration

Hi all,

I'm creating Pro-forma invoice in ECC and as a result Custom Declaration is getting created in GTS. In GTS the Packaging data in item level is coming as empty. So I implemented the BADI /SAPSLL/IF_EX_IFEX_SD0C_R3 and tried to pass the packaging data. But as a result the custom document stopped getting created in GTS.

I'm using the below code to populate the fields of the table cs_itm_cdoc-pge-

LOOP AT lit_vepo ASSIGNING <lfs_vepo>.
        lwa_itmpge-item_number = <lfs_vepo>-posnr.
        lwa_itmpge-int_id = <lfs_vepo>-vepos.
        lwa_itmpge-quantity = <lfs_vepo>-vemng.
        lwa_itmpge-dim_uom = <lfs_vepo>-vemeh.
        APPEND lwa_itmpge TO cs_itm_cdoc-pge.

        CLEAR lwa_itmpge.

      ENDLOOP.

I'm taking the value of <lfs_vepo> from the standard table vepo. Can anybody please tell me what I'm doing wrong?

Thanks,

Sarif

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 30, 2014 at 09:00 AM

    Hi Sarif,

    The field ITEM_NUMBER should refer to the Billing Item (i.e. same as CS_CDOC_ITM_GEN-ITEM_NUMBER).  In that way, the packaging data is linked to the relevant Declaration Item.

    But you shouldn't have to implement the BAdI unless the Packaging is carried out somewhere other than the outbound Delivery - the standard code should include the Packaging automatically.

    Regards,

    Dave

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 01:00 PM

    Hello Sarif,

    if you have an OSS access look at the OSS Note 1284334. Maybe this helps.

    Regards

    Thomas

    Add comment
    10|10000 characters needed characters exceeded