Skip to Content
avatar image
Former Member

Purchasing doc category(EKKO-BSTYP) in BAPI_CONTRACT_CREATE

Hi Experts,

Where to fill purchasing doc category(EKKO-BSTYP) in BAPI_CONTRACT_CREATE?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 21, 2009 at 05:46 AM

    Hello

    Nowhere.

    This field is filled automatically depending on importances of field BSART (Purchasing document type).

    For example: if BSART = 'NB' then BSTYP automatically set 'B'.

    Look at table T161 - you will see relationship between this fields.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      just to be registered...

      i did an enhancement point in function ME_REL_STRATEGIE_EKKO.

      In my Z program, I export to memory id the structure i_cekko_new:

      CLEAR i_cekko_new.

      i_cekko_new-bukrs = gs_cabec-bukrs.

      i_cekko_new-bstyp = cc_k.

      i_cekko_new-bsart = gs_cabec-evart.

      i_cekko_new-lifnr = gs_cabec-lifnr.

      i_cekko_new-spras = 'P'.

      i_cekko_new-ekorg = gs_cabec-ekorg.

      i_cekko_new-ekgrp = gs_cabec-ekgrp.

      i_cekko_new-waers = gs_cabec-waers.

      i_cekko_new-bedat = sy-datum.

      i_cekko_new-ktwrt = gs_cabec-ktwrt.

      i_cekko_new-lifre = gs_cabec-lifnr.

      i_cekko_new-usrc2 = gs_cabec-unsez.

      i_cekko_new-gnetw = gs_cabec-ktwrt.

      EXPORT i_cekko_new TO MEMORY ID 'xxx'.

      In the enhancement point, I just verify if sy-tcode equals my Z transaction so I IMPORT i_cekko_new FROM MEMORY ID 'xxx'.

      sorry my english...