Skip to Content
author's profile photo Former Member
Former Member

urgent..

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:13 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 03:51 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 08:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.