on 01-30-2008 12:02 PM
Hi All,
Now Im working in Dynamic Component Usage. For that I refered Help.SAP document.
From that Document I got the code for Ceating group.
data: L_CMP_API type ref to IF_WD_COMPONENT,
L_CMP_USAGE_GROUP type ref to IF_WD_COMPONENT_USAGE_GROUP.
L_CMP_API = WD_THIS->WD_GET_API( ).
if L_CMP_API->HAS_CMP_USAGE_GROUP( TESTGROUP ) is initial.
WD_THIS->CMP_USAGE_GROUP = L_CMP_API->CREATE_CMP_USAGE_GROUP(
NAME = TESTGROUP
USED_COMPONENT = <name used component>).
endif.
But it shows the Error like,
*Method MY_CONTROLLER_METHOD *
*Field "TESTGROUP" is unknown. It is neither in one of the specified *
tables nor defined by a "DATA" statement . . . . . . . . . .
Can any one help me on this issue.
Thanks and Points assured.
Edited by: Jasmine on Jan 30, 2008 1:05 PM
Hi ,
I think u have replaced the code this
WD_THIS->CMP_USAGE_GROUP = L_CMP_API->CREATE_CMP_USAGE_GROUP(
NAME = TESTGROUP
USED_COMPONENT = <name used component>).
by ...
WD_THIS->TESTGROUP = L_CMP_API->CREATE_CMP_USAGE_GROUP(
NAME = TESTGROUP
USED_COMPONENT = <name used component>).
so u have forgotten to create TESTGROUP variable in the controller class of the desired type....
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.