Skip to Content
avatar image
Former Member

ERROR: -Type conflict when calling a function module

hi to all,

when iam executing the program in browser Type conflict when calling a function module error is showing, i have bind all the attribute correctly still iam getting error, WHEN I CLICK ON THE SEARCH BUTTON DATA IS NOT COMING TO MY TABLE ITAB1 plz help me....

DATA:

NODE_IP_SELECTION TYPE REF TO IF_WD_CONTEXT_NODE,

ELEM_IP_SELECTION TYPE REF TO IF_WD_CONTEXT_ELEMENT,

STRU_IP_SELECTION TYPE IF_PLANNING_HISTORY=>ELEMENT_IP_SELECTION ,

ITAB TYPE TABLE OF ZSL_PL_UPDATE1,

WA TYPE ZSL_PL_UPDATE1.

  • navigate from <CONTEXT> to <IP_SELECTION> via lead selection

NODE_IP_SELECTION = WD_CONTEXT->GET_CHILD_NODE( NAME = `IP_SELECTION` ).

  • get element via lead selection

ELEM_IP_SELECTION = NODE_IP_SELECTION->GET_ELEMENT( ).

  • get all declared attributes

ELEM_IP_SELECTION->GET_STATIC_ATTRIBUTES(

IMPORTING

STATIC_ATTRIBUTES = STRU_IP_SELECTION ).

CALL FUNCTION 'ZBAPI_PL_UPDATE'

EXPORTING

GV_LIFNR = STRU_IP_SELECTION-LIFNR

GV_MATNR = STRU_IP_SELECTION-LIFNR

GV_GJAHR = ' '

GV_WEEK_LOW = STRU_IP_SELECTION-FROM_WEEK

GV_WEEK_HIGH = STRU_IP_SELECTION-TO_WEEK

  • IMPORTING

  • RETURN =

TABLES

GT_PL_UPDATE = ITAB

.

DATA:

NODE_PLANN_NODE TYPE REF TO IF_WD_CONTEXT_NODE,

ELEM_PLANN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT,

STRU_PLANN_NODE TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,

WA1 TYPE IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE,

ITAB1 TYPE TABLE OF IF_PLANNING_HISTORY=>ELEMENT_PLANN_NODE.

LOOP AT ITAB INTO WA.

MOVE-CORRESPONDING WA TO WA1.

APPEND WA1 TO ITAB1.

ENDLOOP.

  • navigate from <CONTEXT> to <PLANN_NODE> via lead selection

NODE_PLANN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = `PLANN_NODE` ).

CALL METHOD NODE_PLANN_NODE->BIND_TABLE

EXPORTING

NEW_ITEMS = ITAB1

  • SET_INITIAL_ELEMENTS = ABAP_TRUE

  • INDEX =

.

ENDMETHOD.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 09, 2011 at 09:41 AM

    CALL FUNCTION 'ZBAPI_PL_UPDATE'

    EXPORTING

    GV_LIFNR = STRU_IP_SELECTION-LIFNR

    GV_MATNR = STRU_IP_SELECTION-LIFNR

    GV_GJAHR = ' '

    GV_WEEK_LOW = STRU_IP_SELECTION-FROM_WEEK

    GV_WEEK_HIGH = STRU_IP_SELECTION-TO_WEEK

    • IMPORTING

    • RETURN =

    TABLES

    GT_PL_UPDATE = ITAB

    .

    Problem is here

    check out the type GV_GJAHR whether it accepts string type.

    thanks

    sarbjeet singh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 09, 2011 at 09:42 AM

    hi,

    One of the quick way to controle this is to use the service call tool and call the same function module and see what are the differene.

    Some how there are some type conflict arise.

    Add comment
    10|10000 characters needed characters exceeded