Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 08, 2014 at 05:37 AM

    Hi Santosh,

    Pass the VKORG as well and retest it.

    Regards,

    Sudeesh Soni

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.