on 12-04-2007 2:27 PM
hi..
i am doing webdynpro for abap..but i could not get output..
how to create data from internet..
two fields(empno and empname) and one button(save). but
i need create data to database from internet....
below this program..
DATA: Node type REF TO IF_WD_CONTEXT_NODE.
DATA: ITAB TYPE STANDARD TABLE OF ZEMP.
INSERT ZEMP FROM TABLE ITAB.
Node = wd_Context->get_Child_Node( Name = `S_NODE2` ).
<b>please adjust this program..</b>
reply me
i ll give u reward point soon...
thanks.
s.suresh.
Hi,
First in context create node for 2 input field. Then disign layout for input filds and do data binding. Then create button and assign ON action event to it. In action method use wizard to read the values from the node.
DATA: Node type REF TO IF_WD_CONTEXT_NODE,
elem_node1 TYPE REF TO if_wd_context_element,
stru_node1 type ZEMP.
Node = wd_Context->get_Child_Node( Name = `S_NODE2` ).
get element via lead selection
elem_node1 = node->get_element( ).
get all declared attributes
elem_node1->get_static_attributes(
IMPORTING
static_attributes = stru_node1 ).
INSERT ZEMP FROM stru_node1.
If helpful reward points.
Regards,
Karthick S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
on save action,
read the node under which u declared the values . and u can get the static attributes.
insert the values from that work area where u get the values.
Regards,
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi suresh...
just read the 2 input fields using code wizard, read attribute.
consider the variable names as v1 and v2.
consider the table name as tab and fields as f1 and f2.
now the coding is:
tab-f1 = v1.
tab-f2 = v2.
insert tab.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.