FM "SPR_KOMK_KOMP_FILL" does not return any data

Hi ,

I am executing FM "  SPR_KOMK_KOMP_FILL"  but it does not return any data.. any thing missing here ???

    DATA : wa_pispr LIKE TABLE OF pispr WITH HEADER LINE.

   CLEAR wa_pispr.
  wa_pispr-matnr = p_matnr.
  wa_pispr-werks = werks.

   APPEND wa_pispr.

   CALL FUNCTION 'SPR_KOMK_KOMP_FILL'
    EXPORTING
      pi_i_spr                    = wa_pispr
    IMPORTING
      pe_i_komk                   = komk
      pe_i_komp                   = komp
    EXCEPTIONS
      org_structure_not_completed = 1
      OTHERS                      = 2.

KOMK & KOMP tables are empty after exeuting above FM...

Regards,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 08, 2014 at 05:16 AM

    Hi,

    maybe this fm can't be called alone, maybe some other fm's of function group WVKC have to be called before.

    Have a look into include LWVK1F6K how to fill structure parameter PISPR:

      perform pispr_aus_kalp using pi_vkkam px_iniam yes.

    * end   of insertion WRF_PPW_RPC

      pispr-mgame = mgame_kalk.

      call function 'SALES_PRICE_READ_INITIAL'

           exporting

                pi_i_spr      = pispr

    ...

    Regards,

    Klaus

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08, 2014 at 05:37 AM

    Hi Santosh,

    Pass the VKORG as well and retest it.

    Regards,

    Sudeesh Soni

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content