on 03-26-2008 11:33 AM
I have scenario below:
Z_RFC_SalesOrderEntry_Input
|-----> I_T_Area
|--> PNo
|---> Quantity
|-----> E_T_Area
|-----> Output
How to set Table parameter Pno and Qiantity to I_T Area of RFC in web dynpro through coding.....
Hi Pradeep,
Try This.
try
{
Z_RFC_SalesOrderEntry_Input z_RFC_SalesOrderEntry_Input = new Z_RFC_SalesOrderEntry_Input();
int size = wdContext.nodeText().size();
for (int i = 0; i < size;i++)
{
Z<Put the structure name for I_T_Area> itArea= new <Put the structure name for I_T_Area>();
itArea.setPNo(wdContext.nodeText().getTextElementAt(i).getPNo());
itArea.setQuantity(wdContext.nodeText().getTextElementAt(i).getQuantity);
z_RFC_SalesOrderEntry_Input.addI_TArea(itArea);
}
wdContext.nodeZ_RFC_SalesOrderEntry_Input().bind(z_RFC_SalesOrderEntry_Input);
wdContext.currentZ_RFC_SalesOrderEntry_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(Exception e)
{
}
Assuming Text value node is bound to your View. Put the model class name properly.
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
At first create an element of type Z_RFC_SalesOrderEntry_Input
Z_RFC_SalesOrderEntry_Input salesOrderElement = new Z_RFC_SalesOrderEntry_Input();
wdContext.Z_RFC_SalesOrderEntry_Input().bind(salesOrderElement );
I_T_Area objITArea = new I_T_Area();
objITArea .setPNo(PNo);
objITArea .setQuantity(Quantity);
wdContext.currentZ_RFC_SalesOrderEntry().modelObject().setI_T_Area(objITArea);
wdContext.currentZ_RFC_SalesOrderEntry().modelObject().execute();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Create an object for I_T_Area and poulate values using add() function.
see the code below.
Z_RFC_SalesOrderEntry_Input input = new Z_RFC_SalesOrderEntry_Input();
I_T_Area area = new I_T_Area();
area.add<table column1>(<entry>);
"<column2>
"<cloumn3>
input.set I_T_Area(area);
<execute rfc>
Regards,
Sunitha Hari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
1)just create the object.
Zhr_address input=new Zhr_address();
2)Then set the parameters
input.setParam1();
input.setParam2();
3)Then add the obj to the corresponding node
4)then execute the RFC
Regards
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.