cancel
Showing results for 
Search instead for 
Did you mean: 

error when includeing cntn01_swc webdynpro abap

Former Member
0 Kudos

Hi Experts,

i need to pass internal table to SAP_WAPI_START_WORKFLOW Container, To pass the multiple records to the container

i used INCLUDE cntn01_swc in my webdynpro abap coding. And when i activiting the component its showing the error in the

INCLUDE cntn01_swc and the ERROR is

statement "ENDMETHOD" is missing.

please reply with the requried information.

Thanks & Regards.

Khanna.

Accepted Solutions (0)

Answers (2)

Answers (2)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

you can not use INCLUDE statement in the OO ABAP (ie in methods). you can write the required logic in eaither new FM or in the methods of assistance class.

Thanks,

Chandra

Edited by: Chandrashekhar Mahajan on Nov 17, 2011 4:00 PM

Former Member
0 Kudos

Hi Chandrashekhar Mahajan,

Thanks for reply on INCLUDE CNTN01_SWC, can u help me more regarding this.

please give me the logical how to create assistance class or class to develope the INCLUDE CNTN01_SWC and to integreate into webdynpro abap

Please give me the requried information so that i can understand why because i am new to this process.

Thanks & Regards.

Khanna

ChandraMahajan
Active Contributor
0 Kudos

Hi,

to know how to use assistance class, refer http://wiki.sdn.sap.com/wiki/display/WDABAP/AssistanceclassfunctionalityinWDA and http://www.saptechnical.com/Tutorials/WebDynproABAP/Class/Index.htm

Thanks,

Chandra

RicardoRomero_1
Active Contributor
0 Kudos

In this thread the same error happens;

may be you can use an assistence class for do it.

Ragards,

Former Member
0 Kudos

Hi Hi Ricardo Romero Mata,

Thanks for reply on INCLUDE CNTN01_SWC, can u help me more regarding this.

please give me the logical how to create assistance class or class to develope the INCLUDE CNTN01_SWC and to integreate into webdynpro abap

Please give me the requried information so that i can understand why because i am new to this process.

Thanks & Regards.

Khanna

RicardoRomero_1
Active Contributor
0 Kudos

Hi,

Try to follow the following steps:

1- Create an [assistence class|http://help.sap.com/saphelp_nw70/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/content.htm]: Goto se24 and create a class with the class CL_WD_COMPONENT_ASSISTANCE as super class.

2- On Menu click GOTO --->class local-types -


>macros ---> INCLUDE cntn01_swc

3- Create a public method within this class where you can use the include cntn01_swc and fill the table for the FM SAP_WAPI_START_WORKFLOW.

4- In your webdynpro add the assistence class in the properties of your component.

5- A new attribute will appears in your views, windows, etc. called WD_ASSIST. This attribute refers to your class. you can use the method you created like this: wd_assist->your_method( parameters ).

Hope this help you.

Regards.