cancel
Showing results for 
Search instead for 
Did you mean: 

Call UDF from another UDF in same functional library

ranjith_kuruba
Explorer
0 Kudos

Can any one type the code to call a UDF from another UDF

Accepted Solutions (1)

Accepted Solutions (1)

josantonio_roldnluna
Participant
0 Kudos

Hi,

First you have to instantiate message mapping class.

You can find message mapping class name in Function Tab, in messge mapping.

In this example we call method setDash from setFilename. Both are in the same message mapping.

This is the code:

_MM_ORDRSP05_to_OrderResp_ loc = new _MM_ORDRSP05_to_OrderResp_();

loc.setDash(msgid, container);

Really it is not very dificult.

Regards,

José Antonio.

0 Kudos

This is really helpful . But how do we get the response back into the calling UDF . In my case I tried calling the UDF2 from UDF1 as you mentioned and it worked great but I return some value back in the UDF2 . How can I get that string output value into UDF1.

Please advice .

Answers (0)