on 03-08-2011 6:16 AM
Hi All,
I am using SHP_EXTENDED_DUE_LIST FM, in this IX_SELECT_OPTIONS node contains LEDAT, but it is of type select options.
I want to bind this to date type attribute.
Delivery date :__ to __.
while executing original FM we are giving low and high values it is giving output, but while binding i am getting only LEDAT but type is different. how to process this?? Please Help.
Thanks,
VEnky.
hi,
u can get the select option high and low values as well, thn u have to bind with the context attriute and pss these as parameters for the FM
suppose the select option parameter is LEDAT , then u can get the low and high values as LEDAT-low and LEDAT-high
regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
create two input field manually low and high in web dynpro
fetch the value sentered there and set it in one type declared of same as the attribute.
and fill it accordingly.
here is some sample code.
data val type SHP_LEDAT_RANGE_T.
data ws_val type shp_ledat_range.
ws_val-low = '20110101'. "fetch the value form one input field
ws_val-high = '20110404'. "other input field
append ws_val to val.
data nd type ref to if_Wd_context_node.
nd = wd_Context->PATH_GET_NODE( 'SHP_EXTENDED_DUE_LIS.IMPORTING.IX_SELECT_OPTIONS' ).
nd->set_attribute(
name = 'PEDAT'
VALUE = VAL
).
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarbjeet,
I am trying like this...
DATA: r_date TYPE SHP_LEDAT_RANGE,
r_plant TYPE SHP_VSTEL_RANGE,
L_IX_SELECT_OPTIONS TYPE SHP_VL10_SELECT_OPTIONS,
L_EX_DELIVERY TYPE SHP_VL10_DELIVERY,
L_IX_PARAMETERS TYPE SHP_VL10_PARAMETERS.
DATA: ld_from_date TYPE d,
ld_to_date TYPE d.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->Element_input.
DATA lv_del_cdate TYPE wd_this->Element_input-del_cdate.
DATA lv_to_date TYPE wd_this->Element_input-to_date.
DATA lv_ship_point TYPE wd_this->Element_input-ship_point.
navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
lo_el_input = lo_nd_input->get_element( ).
get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `DEL_CDATE`
IMPORTING
value = lv_del_cdate ).
get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `TO_DATE`
IMPORTING
value = lv_to_date ).
r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-low = lv_del_cdate .
r_date-high = lv_to_date.
APPEND r_date to L_IX_SELECT_OPTIONS-ledat.
CLEAR r_date.
get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `SHIP_POINT`
IMPORTING
value = lv_ship_point ).
r_plant-sign = 'I'.
r_plant-option = 'EQ'.
r_plant-low = lv_ship_point.
r_plant-high = ''.
APPEND r_plant to L_IX_SELECT_OPTIONS-VSTEL.
CLEAR r_plant.
CALL FUNCTION 'SHP_EXTENDED_DUE_LIST'
EXPORTING
IX_PARAMETERS = L_IX_PARAMETERS
IX_SELECT_OPTIONS = L_IX_SELECT_OPTIONS .
DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).
lo_componentcontroller->execute_shp_extended_due_list( ).
But i am getting this error : Screen output without connection to user.
CAN U TELL ME ANY THING WRONG IN THIS??
tHANKS,
vENKY.
Edited by: venkys on Mar 8, 2011 9:52 AM
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.