on 02-04-2010 7:13 PM
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.
Answereed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.