on 05-10-2013 4:24 PM
Hi ,
In SRM Employee self service portal is displaying Shopping cart details..
POWL_TABLE_COMP this is web dynpro component is run to show Shopping cart data.
TABLE_DATA is view where SAP displaying Shopping cart ALV data.
i wrote below code to add one column. It worked .
DATA lv_value TYPE ref to cl_salv_wd_config_table.
data value2 type REF TO CL_SALV_WD_COLUMN.
lv_value = lo_interfacecontroller->get_model( ).
value2 = LV_VALUE->IF_SALV_WD_COLUMN_SETTINGS~CREATE_COLUMN( ID = 'VENDOR' POSITION = 1 ).
LR_HEADER = value2->CREATE_HEADER( ). .
LR_HEADER->SET_TEXT( 'Vendor'
I want fiill above 'Vendor ' column. Please any of you let me know sample code how to do it.
output looks like
SC NUMBER DES QTY VALUE VENDOR
I want to fill vendor column with resect to shopping cart number.
Regards
Ram.
Hi Rama,
If you want to read alv data, just read node which is binded to DATA node.
Get Vendor data and sample code to add vendor data.
* navigate from <CONTEXT> to <N_ROTCODE> via lead selection
lo_nd_n_rotcode = wd_context->get_child_node( name = wd_this->wdctx_n_rotcode ).
lo_nd_n_rotcode->get_static_attributes_table( importing table = lt_n_rotcode ).
loop at lt_n_rotcode into ls_n_rotcode.
ls_n_rotnode-vendor = lv_vendor.
append ls_n_rotnode to lt_n_rotnode.
endloop.
lo_nd_n_rotcode->bind_table( lt_n_rotnode ).
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.