cancel
Showing results for 
Search instead for 
Did you mean: 

Passing import, export paramaters to ABAP method of 'wd_Comp_Controller...

Former Member
0 Kudos

Hello Gurus,

I am trying to know how do I pass the function module parameters which is wraped inside a method in webdynpro ABAP.

Following is the code inside the Onaction event handler of a button. When the button is pushed the data from select options are passed to field symbols. I want to pass this field symbol data to SAP function module which is wrapped in method 'Execute_Dolap_Spend_Data' which has import and export parameter. How to I pass import export parameter in parantheses in ABAP method 'Execute_Dolap_Spend_Data'.

Please help...

DATA: S_BUDAT TYPE REF TO DATA.
 DATA: S_BUKRS TYPE REF TO DATA.
 DATA: S_LIFNR TYPE REF TO DATA.
 DATA: S_WAERS TYPE REF TO DATA.
 DATA: TDISCREC TYPE TABLE OF /DOL/AP_DISCOUNT_REC.
 DATA: WA_DISCREC TYPE /DOL/AP_DISCOUNT_REC.

 FIELD-SYMBOLS: <FS_BUDAT> TYPE TABLE,
                <FS_BUKRS> TYPE TABLE,
                <FS_LIFNR> TYPE TABLE,
                <FS_WAERS> TYPE TABLE.


* Retrieve the data from the select option
  S_BUDAT = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'BUDAT' ).
  S_BUKRS = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'BUKRS' ).
  S_LIFNR = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'LIFNR' ).
  S_WAERS = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'WAERS' ).

*   Assign it to a field symbol
  ASSIGN S_BUDAT->* TO <FS_BUDAT>.
  ASSIGN S_BUKRS->* TO <FS_BUKRS>.
  ASSIGN S_LIFNR->* TO <FS_LIFNR>.
  ASSIGN S_WAERS->* TO <FS_WAERS>.

wd_Comp_Controller->Execute_Dolap_Spend_Data(    ).

Please help...

Regards,

Jainam.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Answereed