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

How can i write code inside methods.

Hi,

I am new to wbdynpro. How can i write code in Webdynpro?

I have created one layout in that two textboxes are there. After entering the details when i click on the button the datas should be saved into the database table. How can i write code in this.

please help me.

Shyja

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:31 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 05, 2007 at 10:24 AM
    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.