Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Declare itab for type groups

Former Member
0 Likes
300

Experts,

I am trying to use this function module PVSDBWTY_SAVE_UPDATETASK... but in import parameters are referring to type groups.

Could you please let me know how to declare internal tables to pass into this FM. I tried with TYPES and it got failed.

    TYPES: BEGIN OF ty_pnwtyh.

            INCLUDE STRUCTURE pnwtyh_db.

    TYPES: END OF ty_pnwtyh.

    TYPES: BEGIN OF ty_pnwtyv.

            INCLUDE STRUCTURE pnwtyv_db.

    TYPES: END OF ty_pnwtyv.

    TYPES: BEGIN OF ty_pvwty.

            INCLUDE STRUCTURE pvwty_db.

    TYPES: END OF ty_pvwty.

    DATA: it_pnwtyh TYPE TABLE OF ty_pnwtyh,

          it_pnwtyv TYPE TABLE OF ty_pnwtyv,

*          it_prwty TYPE TABLE OF ty_prwty,

          it_pvwty  TYPE TABLE OF ty_pvwty,

          wa_pnwtyh TYPE ty_pnwtyh,

          wa_pnwtyv TYPE ty_pnwtyv,

*         wa_pnwtyv type ty_pnwtyv,

          wa_pvwty TYPE ty_pvwty.

    CALL FUNCTION 'PVSDBWTY_SAVE_UPDATETASK'

      EXPORTING

        it_pnwtyh = lt_pnwtyh

        it_pnwtyv = lt_pnwtyv

*       it_prwty  = lt_prwty

        it_pvwty  = lt_pvwty.

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
262

Just Open the FM.   PVSDBWTY_SAVE_UPDATETASK

read type of all Exporting parameter and use the same code to create your own parameter to catch the value.

Try this code .. i am not sure about your table and structure , its just a try..

DATA: it_pnwtyh TYPE TABLE OF pnwtyh_db,

          it_pnwtyv TYPE TABLE OF pnwtyv_db,

          it_prwty1 TYPE TABLE OF pvwty_db,

          it_pvwty2  TYPE TABLE OF pvwty_db.

    CALL FUNCTION 'PVSDBWTY_SAVE_UPDATETASK'

      EXPORTING

        it_pnwtyh = lt_pnwtyh

        it_pnwtyv = lt_pnwtyv

        it_pvwty  = lt_pvwty.

BR

ChanS