cancel
Showing results for 
Search instead for 
Did you mean: 

optimize the use of web dynpro code wizard

Former Member
0 Kudos

Hi All,

How to optimize the use of web dynpro code wizard. can anybody explain me each bullet of both the tabs Context and General.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi John,

In Code wizard contains CONTEXT and GENERAL.

CONTEXT :Contains Read, Set.. If you want to read Nodes or attributes of context use READ.

If you want to set values to attributes use SET, and TABLE also same purpose u get all attributes.

GENERAL :contains different options like method call in used controller, messages, alv integration,popup etc.

If you want to know more about ..Please read this...

http://help.sap.com/saphelp_nw04s/helpdata/en/3b/29933f09a5fb47e10000000a114084/content.htm

it Might helps you.

Cheers,

Kris.

Edited by: kissnas on Mar 4, 2011 1:32 PM

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I don't really understand what you are asking for here. Do you just want to know what the code wizard does? Why not then first read the online help or search on SCN for it? All we have here is people cutting and pasting the online help text.

Former Member
0 Kudos

Hi Thomas,

Actually i am very new to web dynpro for ABAP. i am also reading online help but unable to explore feature of code wizard.So i was right now looking for brief answer.

Former Member
0 Kudos

Hi John,

Best way to learn that is to do practice. Copy some standard components from swdp package. Go to any methods and try to get one of the context attribute and set the attribute.

Go on like this, you do not need years to learn that, in few days you can teach me new things. Go and have fun.

Former Member
0 Kudos

Hi johnright ,

Code wizard;-

Context:-

This is used to generate code realiting to any action of context node or attribute.

genearlly there are two types of action

Read & Write.

You can do the above actions realted to any node or any attribute.

Select the node or attribute under it accordingly. Now there is a option As table operation . Select this only when you want access any node as a table. In case of working with attributes or action of a node as a work area ( cardianality 1..1 or 1..n) you cannot select that.

Now there are three option you can do

1. Read :- to get details of attribute or node.

2.Set:- to set values in attribute or node .

3.append:- only in case of node using as a table operation to append any value.

General:-

Methods call in current controller:-

To use any methods used in that controller e.g. in any view to call any methods in that view.

Methods call in used controller:-

To use any methods that is in used controller like in case of view the used controller are decalred in properties tab so select that. One default method always present there as componentcontroller. To use any method of componentcontroller select it from here.

Instantiate used component:-

To instantiate any used component declared in properties tab like use any alv component.

Start navigation:-

To call the outbound plug use this. But before using this create any outbound plug first.

Generate Message:-

To generate any message ( error, warning)

Text symbol access:-

To generates a text symbol access from the associated assistance class.

Generate Popup:-

To create popup message use this. In web dynpro you cannot use function module 'POPUP_TO_CONFIRM' like in ABAP.

Portal Integration:-

Your applications can be integrated in a portal. Iinteract with the portal using the methods of IF_WD_PORTAL_INTEGRATION interface.

Personlization:-

For any configuration of the application use this.

For referrence:-

[Web dynpro code wizard|http://help.sap.com/saphelp_scm50/helpdata/en/3b/29933f09a5fb47e10000000a114084/content.htm]

Hope this is helpful for you.

Regard,

Monishankar C