on 01-16-2007 4:36 PM
Hi,
how is it possible to get more then one row by calling a BAPI from the WD. In my Application I need the rows of a Table coming from the r/3 System. How is it possible to get all the rows after the first call? What is the logic behind it? My purpose is also to create an own BAPI.
regards,
Sharam
null
Hi Pourmir,
Once you execute the RFC the result will be available to you. It will return all the rows of table if there are any.You just have to bind the Table UI element to structure which is available to you. While executing the RFC make sure that you are passing all mandatory parameters.
You can get the size of Table by:
wdContext.node<nodeName>.size();
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your replay. My purpose is to save the values getting from the
Back-End-System in my array, so I don't need a UI-Table. How is it possible? My next question is, if I create a RFC in my Back-End-System (R/3), which type of Export-Parameter or Table-Parameter should I use, an internal Table or a structure which was embedded in a LOOP? Could you please post me an example?
regards,
sharam
Hi,
If I understand, you don't want display the result into a Web Dynpro Table. If so, after the execution, the result of your request is stored into the context. Then you don't really need to transfert the data from your context to an Java Array.
But if you want to do it, here is the code :
guess your result node called
nodeResult
Vector myVector = new Vector();
for (int i = 0; i < wdContext.nodeResult().size(); i++){
myVector.put(wdContext.nodeResult().getElementAt(i));
}
I hope this will answer to your question.
Regards
Hi,
I donc't really get your second question
But to create a BAPI, the good manner to do, it is to create one with only table for input and/or output parameters. It is for optimizing the performences. But of course it works well with the other type of parameters.
A good stuff to know is, whatever you set as SAP's type for your BAPI's parameters because after importing the model, NWDS will cast all SAP's types to String or BigDecimal java type.
Regards,
hi,
Check out the link below.
check working with RFC's.
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Actually, it is automatic. If the result of your BAPI is plenty of rows, then your WD table will be fill as well. But you have to bind the BAPI's node to yout WD table.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.