on 07-12-2005 8:08 AM
Hello All,
I am trying to write the values in my table to the backend via aRFC call. Problem is, I am only able to transfer values that are outside the tables eg: UserID, Name, Address ... etc . Information in the table for some reason, is not able to be written to the backend.
The table on my screen consists of 9 columns and 5 rows :
1) Departure Date (inputfield)
2) Departure Time (inputfield)
3) Arrival Date (inputfield)
4) Arrival Time (inputfield)
5) From City (inputfield)
6) To City (inputfield)
7) Carrier (dropdown by key)
😎 Flight Number (inputfield)
9) TravelClass (dropdown by key)
I am able to see the contents prior to executing the BAPI call by using this syntax (for verification purpose, I am only printing out the departure time):
"for (int i =0; i<wdContext.nodeTrans().size();i++)
{
Date printBegdat = wdContext.nodeZ_Xbtr_Create_Trip_Input().nodeTrans().getTransElementAt(i).getBegdat();
wdComponentAPI.getMessageManager().reportSuccess("The is the written printBegdat : " + printBegdat);
}"
Can someone advise where I may have gone wrong ? Thnak you.
from
Kwok Wei
Please let us know the complete Model structure once.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Kwok,
I think u have to add code like:
ZTable tab = new ZTable();
tab.set<val>("Name");
<loop>
input.add<Ztable>(tab);
</loop>
execute RFC.
regards,
Piyush.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kwok,
Are you trying to populate the data to a table in the backend?
If so please go through the following article.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/li... rfc to web dynpro.pdf
If that is not the case check out whether you are setting the values from the table correctly as the input to the RFC.
Hope this helps you.
Regards,
Vijith
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 | |
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.