cancel
Showing results for 
Search instead for 
Did you mean: 

I don't understand how to bind a node

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

Thank you your suggest ,thank you very much ,is helpful to me

You said structure name is like "Bapitrmain" ? Right?

And if i need pass some value of Bapitrmain

I should write :

Bapitrmain.setXXXX();

It is right?

Former Member
0 Kudos

Yes

Former Member
0 Kudos

But many node have this structrue ,how to get node that i need

Please tell me

Thanks

Edited by: yan li on Nov 5, 2008 3:28 PM

Former Member
0 Kudos

Hi,

please post your rfc context structure ?

and let me know the node you want to set.

Regards,

ramesh

Former Member
0 Kudos

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)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Apurva

Thank you very much ,you are really a genius ,thank you for your great help

Best Regards

Yan

Answers (0)