on 11-05-2008 1:26 PM
Hi guys
I don't understand how to bind a node
I want to bind a mandatory parameter for my model (ex: Bapi_Delete_Travel_Expense_Input)
if the parameter is a node ,not a attribute,how to bind it I don't understand yet.
Please give me some suggest
Thanks
Best Regards
Yan
Hi,
to pass a node with cardinality 1..1 or 1..n to rfc follow the below process.
write the following code in wdDoInit() of component controller.
Zsd_<rfc name>_Input input = new Zsd_<rfc name>_Input();
wdContext.nodeZsd_<rfc name>_Input().bind(input);
input.set<node name>(new <structure name>);
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Context--
-
Z_Hr_Ess_Delete_Travel_Expense_Input (node)
-
Framedata (node)
-
Outpute (node)
-
Employeenumber (attribute)
-
Tripno (attribute)
The Framedata's structure is Bapitrmian
The mandatory parameter is " Framedata" , "Employeenumber " , "Tripno"
The Framedata need through other RFC "Z_Hr_Ess_Read_Travel_Details_Input" to get
Context--
-
Z_Hr_Ess_Read_Travel_Details_Input
-
Output (node)
-
Framedata (node)
-
Employeenumber (attribute)
Hi,
Assuming Z_Hr_Ess_Delete_Travel_Expense_Input is your structure name for input node.
Z_Hr_Ess_Delete_Travel_Expense_Input input = new Z_Hr_Ess_Delete_Travel_Expense_Input();
Bapitrmain subnode1 = new Bapitrmain();
subnode1 .setFramedata("<>");
input.setFramedata(subnode1);
wdContext.nodeZ_Hr_Ess_Delete_Travel_Expense_Input().bind(input);
Rregards,
Apurva
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
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.