Skip to Content
avatar image
Former Member

How To Pass Data To The Back-End.

Hi All,

I want to send data to the back-end from a view,I have inputed the data in different rows of a table & I want to send the data to the back-end on the event of a click of a button tables respective of their columns in the back-end table.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 09, 2010 at 09:52 AM

    Hi ,

    For sending data to back end on click of button you can use this peace of code

    Here Test is a value node which we can bind with Table.

    int valueNodeSize=wdContext.nodeTest().size();

    for(int i=0;i<valueNodeSize;i++){

    IPrivateCheckView.ITestElement valueEle=wdContext.nodeTest().getTestElementAt(i);

    //=================Create Model Node Element===================

    IPrivateCheckView.IModelElement modelEle=wdContext.nodeModel().createModelElement();







    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09, 2010 at 01:35 PM

    Hi Anurag,

    If you want to send table data to backend system then you need to execute the model node(RFC/BAPI).

    before executing need to iterate the table data from context node and set to backend table for your RFC/BAPI.

    Then exeute you model. find the code to saving table data to backend system. refer to the link and find the tutorials

    Hope it helps



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2010 at 07:44 AM


    Please find sample code to interate table values and to send data to backend RFC on click of a button.

    Bapi_Mat_Dispach_Input dispach_Input = new Bapi_Mat_Dispach_Input();
        ZStr_Mat_List mat_List;
        //iterate the table datasouce node and set the values to RFC	
        for(int i=0;i<wdContext.nodeMaterialDetails().size();i++)
    	mat_List = new ZStr_Mat_List();
                                    . . .
                                    . . .
        //executing RFC 

    Call the RFC execution code on click of Button to send the data to RFC.


    Bala Baskaran.S

    Add comment
    10|10000 characters needed characters exceeded