cancel
Showing results for 
Search instead for 
Did you mean: 

Build a node in Runtime (ABAP)

Former Member
0 Kudos

Hi.

I wanna build a node which has some attributes in runtime.

I already know that this can be solved using Dynamic Programming. This is not my concern.

When I get a node which built in runtime and then

How can I get a internal table or structure data object

closely resemble with the node in runtime?

ex)

CONTEXT

|

-- SFLIGHT

1)static data object

data: itab type if_view01=>elements_sflight.

2)dynamic data object

?????

Help

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_szcs
Active Contributor
0 Kudos

Etnaya,

If you create a node at runtime, you can either specify a DDIC structure/table or add attributes one by one by specifying their name and type. Since you create the node, there exists no generated type. Your node seems to resemble SFLIGHT. Best option would be to use SFLIGHT as the static type of the node.

I am about to post a weblog regarding this topic within the next few days.

Best regards,

Thomas

P.S: You have a few open threads. I was wondering if you could close them (and award points) once your problem has been solved.

Former Member
0 Kudos

Above all. Thnak you for your reply.

I can not specify a DDIC structure/Table in runtime,

because the node is neither consisted through a DDIC infomatin nor expected what components is required in runtime.

Humm... Is this a hot issue?

P.S) I am sorry for awarding points in my open threads.

I don't know my questions is still open threads until you said to me.^^

In advance, I will finish the job.

Thank you Thomas.

thomas_szcs
Active Contributor
0 Kudos

Hi Etnaya,

You can add attributes dynamically at runtime by calling ADD_ATTRIBUTE of IF_WD_CONTEXT_NODE_INFO. This interface can be obtained by calling GET_NODE_INFO at a context node.

Best regards,

Thomas