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

insert multiple records from web dynpro

Hi,

How to insert multiple records from web dynpro applications to SAP backend system ?

Thanks,

sowmya

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 Apr 30, 2009 at 11:06 AM

    Hi Sowmya,

    IPrivate<viewname>.I<node>Element ele;
    for (int n =0; n < MAXSIZE;n++) {
    ele = wdContext.node<node>().create<node>Element();
    //set atributes
    ele.set<atb1name>(atbvalue);
    ele.set<atb2name>(atbvalue);
    ,.......
    wdContext.node<node>().addElement(ele);
    }

    If you get any error, please search this forum, there are lot of threads for similar requirements and problems. Still if you are not able to resolve, you are welcome to get back in the same thread.

    All the best.

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2009 at 12:35 PM

    Hi soumya..

    if want to multiple row selected then save into the Sap back End..

    value node--table.

    Backend value node=table_bapi_input;

    back end internal table --tableback.

    int size=wdcontext.nodeTable().size();

    int lead=wdcontext.nodeTable().getLeadSelection();

    table_bapi_input in=new table_bapi_input();

    wdcontext.nodetable_bapi_input().bind(in);

    for(int i=size-1;i>0;i--){

    tableback set=new tableback()

    if(lead==i || wdcontext.nodeTable().ismultiSelection(i)){

    set.setName(wdContext.nodeTable().getTableElementAt(i).getName();

    }

    in.addZc_input(set);

    }

    wdContext.currenttable_bapi_inputElement().modelobject().excute();

    wdContext.nodeOutput().invalidate();

    thanks

    jati

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 20, 2009 at 09:11 AM

    Hi Sowmya,

    I am looking for a similar requirment. Could you please explain me the process of how you resolved this problem. I would appreciate your help.

    regards,

    Gopal.

    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.