on 12-20-2010 1:19 PM
Hi Sattam,
Try this code
Zcab_Submit_Notif_Values_Init_Input objZcab_Submit_Notif_Values_Init_Input =
new Zcab_Submit_Notif_Values_Init_Input();
for (int count = 0;
vectLongText != null && count < vectLongText.size();
count++) {
objZcab_Submit_Notif_Values_Init_Input.addZcab_Longtexts(
(Zcab_Longtexts) (vectLongText.get(count)));
}
wdContext.nodeZcab_Submit_Notif_Values_Init_Input().bind(
objZcab_Submit_Notif_Values_Init_Input);
objZcab_Submit_Notif_Values_Init_Input.execute();
wdContext.nodeOutputSubmit_Notif_Values_Init().invalidate();
In this code vectLongtext is the node which contains all the attributes of the table in the view and Zcab_Longtexts is the table within the rfc Zcab_Submit_Notif_Values_Init.
I hope this code will give you some idea.
Regards,
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sattam,
Is the RFC working fine in R/3?
is the mapping between the model nodes are correct?
Check the above and let us confirm.
Regards
Nizamudeen SM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sattam,
Can you debug the RFC by placing external breakpoint? In debugging mode check the size of the table parameter? and check whether all the values are getting passed to RFC?
if the value is not passed, then in webdynpro, like after setting the value to the table node, print the size of the table node or keep breakpoint and check the same in webdynpro.
Regards
Nizamudeen SM
Hi,
M pasting my code
[code}
Z_Rfc_Submit_Exemption_Input submitExemptionInput = new Z_Rfc_Submit_Exemption_Input();
for( int i = 0 ; i < wdContext.nodeSelectedLines().size(); i++)
{
IPublicExemption.IClaim_Tab_OElement tabElement = wdContext.nodeClaim_Tab_O().getClaim_Tab_OElementAt(i);
Zts_Reimbursement submitLineItems = new Zts_Reimbursement();
submitLineItems.setApamt(tabElement.getApamt());
submitLineItems.setApdat(tabElement.getApdat());
submitLineItems.setClaim(tabElement.getClaim());
submitLineItems.setClamt(tabElement.getClamt());
submitLineItems.setCtype(tabElement.getCtype());
submitLineItems.setDiamt(tabElement.getDiamt());
submitLineItems.setExnum(tabElement.getExnum());
submitLineItems.setExstatu(tabElement.getExstatu());
submitLineItems.setMandt(tabElement.getMandt());
submitLineItems.setLta(tabElement.getLta());
submitLineItems.setPernr(tabElement.getPernr());
submitLineItems.setStatu(tabElement.getStatu());
submitLineItems.setSudat(tabElement.getSudat());
submitExemptionInput.addXdetails(submitLineItems);
}
submitExemptionInput.setClaimamt(wdContext.currentContextElement().getClApDiAmnt());
submitExemptionInput.setExempamt(wdContext.currentContextElement().getExAmnt());
submitExemptionInput.setJbegda(wdContext.currentContextElement().getJourneyStartDate());
submitExemptionInput.setJendda(wdContext.currentContextElement().getJourneyEndDate());
wdContext.nodeZemami_Rfc_Submit_Exemption_Input().bind(submitExemptionInput);
try
{
wdContext.currentZemami_Rfc_Submit_Exemption_InputElement().modelObject().execute();
}
[code}
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.