cancel
Showing results for 
Search instead for 
Did you mean: 

SE16 Data Browser problem with field wdctx_input

Former Member
0 Kudos

Hello

I was trying to implement the tutorial made by Thomas Jung "SE16 Data Browser", but I have problem....

View MAIN_VIEW contains method WDDOINIT.

Problem is in line of this method :

node_input = wd_context->get_child_node( name = <b>if_main_view=>wdctx_input</b> ).

When in checked program I get message syntax error :

"Field "WDCTX_INPUT" is unknown. It is neither in one of the specified tables nor defined by a "DATA"...."

I checked interface 'If_Main_View' and I couldn't find definition of the field <b>WDCTX_INPUT</b>.

Any sugestion ?

Mayby someone will try click on this field and check where should it be ?

I have install the NW04s SneakPreviw version.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I assume that you are still on SP5. The tutorial was created on SP6. In SP6, the runtime does generate constants for all the node names. That way if you rename something you will get a syntax error in the referencing code. On SP5, you can just substitute these constants with the names of the nodes: ie. `INPUT` instead of if_main_view=>wdctx_input.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thomas,

Thanks a lot for your help.

That's it. You have right.I was check my version and I am still on SP5.

I substitute these constants whit the names of the nodes and the tutorial activate without problem.

Problem solved.

PS.

This tutorial is really great ! It shows many aspects of Web Dynpro for ABAP.

I would very much recommend this tutorial !

Best regards,

Jakub Dyczko

IanStubbings
Active Participant
0 Kudos

Hi Thomas

I also have a problem with the stru_input line:

The type ELEMENT_INPUT is unknown.

Any ideas for this one?

Regards

Ian