on 02-22-2006 4:37 PM
Hi all,
I'm making a web dynpro progect that makes a list of the sales orders with BAPI_SALESORDER_GETLIST and changing the value of SHORT_TEXT with BAPI_SALESORDER_CHANGE.
I've used the first bapi output to fill the ChangeSalesOrderView but how can i copy the context node values from the GETLIST output to the CHANGE input?
thanks,
Daniele
p.s. i've another doubt why does NetWeaver makes 2 models for each BAPI? It's because the fist is in display mode and the other in modify?
Hi Daniele,
I think in ur program u select any salesorder and then modify it okay u can get the selected data through the current selected node
like wdContext.nodeName().CurrentNodeNameElement().getAttributeNaem()....using this set the input for the change parameter u want......
Now answer to ur second question ......
In RFC u have Import ,Export and Tables Parameter.....
so in Dynpro Side......
Import->RFCName_Input
Export->Output
tables->present in both Input and Output
Classes-> if structure is used as any of the types...above
Regards,
yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
has anyone an example of the loop?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I guess you are asking for a looping thru the various elements of a node (say 'Test').
for(int i=0;i<wdContext.nodeTest.size();i++) {
// to get the element by element
IPrivate<controller/view name>.ITestElement currElement = (IPrivate<controller/view name>.ITestElement)wdContext.nodeTest.getElementAt(i);
}
Thanks and regards
RK
Hi,
Please refer this link. This explains how to set an input table for the RFC.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/linking%20rfc%20to%20web%20dynpro.pdf">Linking RFC to Web Dynpro</a>
Noufal
Hi Daniele,
As far as I understand, your question is about "Tranferring data from one context node to the other one".
If it is so,
I think you have to loop through all the instances of the first node, take the attribute's value from there, create an instance of the other node, fill the data to the attributes of that.
Regards,
Mausam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.