cancel
Showing results for 
Search instead for 
Did you mean: 

urgent..

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

DEAR KARTHICK SITARAMAN..

I GOT RESULT..

THANKS A LOT...

Former Member
0 Kudos

hi,

how display the image for webdynpro..

thanks.

s.suresh.

Answers (2)

Answers (2)

Madhu2004
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

HI..

NO GOT OUTPUT...