SlideShare ist ein Scribd-Unternehmen logo
1 von 31
WebDynPro for Java:
Common Error
Prevention and Fixes
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
Agenda
Jodi Johnson
Developer, CLOROX
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
Learning Objectives
As a result of this workshop, you will be able to:
 Avoid some common but nasty errors in WebDynPro
 Correct the errors you couldn’t avoid
 Understand the impact of the errors
 Use practical tips to create an easier to maintain and more robust
application
SETUP Issues (Development Configuration
and Multiple Tracks)
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
Glossary
Development Configuration (DC):
the framework of a WebDynPro application
TRACK:
individual instance of WebDynPro
BUSINESS PACKAGE:
grouping of DCs that are treated as a unit(SCA)
SCA:
Software Deployment Archives, used by BASIS to import
WebDynPro Code between portals
SYSTEM:
HR ESS/MSS ECC5.0 PORTAL 6.2 SP 13
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DC – Tips - Multiple Tracks
Make sure correct portal is selected
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DC – Tips - Multiple Tracks
Ensure host matches selected portal host
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DC – Tips - Multiple Tracks
REASON: Can use separate tracks and portals to support
Production, code for a project and
check Service Packs.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DC – Tip – Use correct prefix for DCs
Business Package (ESS)
No Business Package
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DC – Tip – Use correct prefix for DCs
REASON: All DCs are grouped by business package and
transported to portals as a SCA.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DCs - Problem – Creating DC on server
Wrong place to add dc
Right place to add dc
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DCs - Problem – Creating DC on server
EFFECT: Cannot remove DC from server.
The SCA will not build correctly, BASIS must manually
exclude the bad DC before the build will succeed
SOLUTION: Only upgrading to the next Service Pack
will remove the DC from the server.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DCs – Problem - Changing SAP vanilla DCs
Importing Vanilla SAP Configuration to
make changes
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DCs – Problem - Changing SAP vanilla DCs
EFFECT: Everything works until a Service Pack is applied.
SAP DC will revert back to vanilla.
SOLUTIONS: Rewrite any changes made to SAP DC.
OR
Copy the SAP DC and make changes to
that DC.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DCs – Tip – Service Packs
PROBLEM: Service Packs will revert any SAP DCs to vanilla
and drop any new NON-SAP DCs.
EFFECT: Only vanilla SAP DCs will exist.
SOLUTION: Keep a list of all DCs created for a project,
BASIS can load them on the track after the
Service Pack is applied.
CONTEXT (RFCs and Models)
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
CONTEXT Overview
RFC - Remote Function Calls
(passes data from backend to WebDynPro)
Model
One to one relationship with RFC
Used Model
Allows access to Model by Custom Controller and Views
Custom Controller
(Value Nodes and Attributes)
Views
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
CONTEXT Inheritance from Custom Controller to View
Views can inherit context Value Node and Attributes from Custom Controller
but Custom Controller cannot inherit from Views
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFCs – Tip – Maximize coding in backend
REASON: Code runs quicker. Backend (ECC 5.0) is where data is
maintained and validated. WebDynPro should
be used for display, parsing and enforcing field
requirements.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC/Models – Tips – Use Input and Rename Output
Use the RFC Input
Rename the output in the
RFC input
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC/Model – Tip – Coding for reading models
try{
Z_Rfc_Read_Sample_Input readInput = new
Z_Rfc_Read_Sample_Input ();
wdContext.nodeSampleReadModel().bind(readInput);
wdContext.nodeReadOutput().invalidate();
}
catch (Exception e) {
}
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC/Model – Tip – Coding for reading models
TIP: Use a try {} when reading the model
REASON: Sometimes a null record is returned as the first record.
If this happens then the framework will go fetch the
correct record only if a try{} is coded.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC/Model – Tip – Coding for reading models
TIP: Always read the input
TIP: Always invalidate the output
REASON: Won’t work properly otherwise.
NOTE: Same rules apply to saving models
- move data to input
- invalidate the output
- save input
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC – Problem - Adding new fields to RFC
Must Reimport the RFC(Model)
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC – Problem - Adding new fields to RFC
EFFECT: Need to reimport model and restart Portal
whenever the RFC structure is changed.
SOLUTION: Upfront analysis, put all fields that will likely
be needed for future upgrades in the RFC.
Better too many fields than too few.
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
RFC/Model – Problem - Data structure differences
PROBLEM: WebDYnPro contains different data types than ABAP
Specifically, WebDynPro can translate a char(1)
as Boolean. If a Boolean field is changed to a
different data type, reimporting the RFC will not remove
the reference to the Boolean field in the context.
SOLUTION: Delete the context by hand and reattach
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
DEMO
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
Summary
 Do the analysis/design upfront
 Don’t modify SAP DCs – create new ones
 Work on only one track at a time
 Code data verification on the backend
 Include all possible fields in the RFCs
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
Further Information
 Public Web:
www.sap.com
www.sdn.sap.com
 Related Workshops/Lectures at SAP TechEd ’05
Session ID, Title, Session Type
 Americas’ SAP Users’ Group (ASUG)
www.asug.com
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
THANK YOU FOR YOUR
ATTENTION !
QUESTIONS – SUGGESTIONS – DISCUSSION
© SAP AG 2006, SAP TechEd ’06 / Session ID / CD110
Please complete your session evaluation.
Be courteous — deposit your trash,
and do not take the handouts for the following session.
Feedback
Thank You !

Weitere ähnliche Inhalte

Was ist angesagt?

SAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQLSAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQLSAP Technology
 
SAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS10- SAP HANA Remote Data SyncSAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS10- SAP HANA Remote Data SyncSAP Technology
 
SAP TechEd 2016 Barcelona TEC123 Session Presentation
SAP TechEd 2016 Barcelona TEC123 Session PresentationSAP TechEd 2016 Barcelona TEC123 Session Presentation
SAP TechEd 2016 Barcelona TEC123 Session PresentationCore To Edge
 
Sap ha400 en col13_hana 2.0 sps00 sAP book
Sap ha400 en col13_hana 2.0 sps00 sAP bookSap ha400 en col13_hana 2.0 sps00 sAP book
Sap ha400 en col13_hana 2.0 sps00 sAP bookYVIKASH
 
SAP HANA SPS09 - SAP HANA Answers
SAP HANA SPS09 - SAP HANA AnswersSAP HANA SPS09 - SAP HANA Answers
SAP HANA SPS09 - SAP HANA AnswersSAP Technology
 
160d74ec 597c-0010-82c7-eda71af511fa
160d74ec 597c-0010-82c7-eda71af511fa160d74ec 597c-0010-82c7-eda71af511fa
160d74ec 597c-0010-82c7-eda71af511faNagendra Babu
 
Open sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplovOpen sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplovNagendra Babu
 
Open sap fiori1_week_01_unit_01_courseintro
Open sap fiori1_week_01_unit_01_courseintroOpen sap fiori1_week_01_unit_01_courseintro
Open sap fiori1_week_01_unit_01_courseintroNagendra Babu
 
SAP HANA SPS10- SAP DB Control Center
SAP HANA SPS10- SAP DB Control CenterSAP HANA SPS10- SAP DB Control Center
SAP HANA SPS10- SAP DB Control CenterSAP Technology
 
SAP HANA SPS10- Extended Application Services (XS) Programming Model
SAP HANA SPS10- Extended Application Services (XS) Programming ModelSAP HANA SPS10- Extended Application Services (XS) Programming Model
SAP HANA SPS10- Extended Application Services (XS) Programming ModelSAP Technology
 
Getting your grips on Excel chaos
Getting your grips on Excel chaosGetting your grips on Excel chaos
Getting your grips on Excel chaosNiels de Bruijn
 
HANA SPS07 Fuzzy Search
HANA SPS07 Fuzzy SearchHANA SPS07 Fuzzy Search
HANA SPS07 Fuzzy SearchSAP Technology
 
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2vasuballa
 
Spark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business OperationsSpark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business OperationsSAP Technology
 
Gateway Deployment Options
Gateway Deployment OptionsGateway Deployment Options
Gateway Deployment OptionsGaurav Ahluwalia
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.docKranthi Kumar
 
How to find user exits
How to find user exitsHow to find user exits
How to find user exitsMohammed Shoeb
 

Was ist angesagt? (20)

SAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQLSAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQL
 
SAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS10- SAP HANA Remote Data SyncSAP HANA SPS10- SAP HANA Remote Data Sync
SAP HANA SPS10- SAP HANA Remote Data Sync
 
SAP TechEd 2016 Barcelona TEC123 Session Presentation
SAP TechEd 2016 Barcelona TEC123 Session PresentationSAP TechEd 2016 Barcelona TEC123 Session Presentation
SAP TechEd 2016 Barcelona TEC123 Session Presentation
 
Sap ha400 en col13_hana 2.0 sps00 sAP book
Sap ha400 en col13_hana 2.0 sps00 sAP bookSap ha400 en col13_hana 2.0 sps00 sAP book
Sap ha400 en col13_hana 2.0 sps00 sAP book
 
SAP HANA SPS09 - SAP HANA Answers
SAP HANA SPS09 - SAP HANA AnswersSAP HANA SPS09 - SAP HANA Answers
SAP HANA SPS09 - SAP HANA Answers
 
160d74ec 597c-0010-82c7-eda71af511fa
160d74ec 597c-0010-82c7-eda71af511fa160d74ec 597c-0010-82c7-eda71af511fa
160d74ec 597c-0010-82c7-eda71af511fa
 
Open sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplovOpen sap fiori1_week_02_unit_01_deplov
Open sap fiori1_week_02_unit_01_deplov
 
Open sap fiori1_week_01_unit_01_courseintro
Open sap fiori1_week_01_unit_01_courseintroOpen sap fiori1_week_01_unit_01_courseintro
Open sap fiori1_week_01_unit_01_courseintro
 
SAP HANA SPS10- SAP DB Control Center
SAP HANA SPS10- SAP DB Control CenterSAP HANA SPS10- SAP DB Control Center
SAP HANA SPS10- SAP DB Control Center
 
APEX Migration
APEX MigrationAPEX Migration
APEX Migration
 
SAP HANA SPS10- Extended Application Services (XS) Programming Model
SAP HANA SPS10- Extended Application Services (XS) Programming ModelSAP HANA SPS10- Extended Application Services (XS) Programming Model
SAP HANA SPS10- Extended Application Services (XS) Programming Model
 
Getting your grips on Excel chaos
Getting your grips on Excel chaosGetting your grips on Excel chaos
Getting your grips on Excel chaos
 
HANA SPS07 Fuzzy Search
HANA SPS07 Fuzzy SearchHANA SPS07 Fuzzy Search
HANA SPS07 Fuzzy Search
 
Introduction to ABAP
Introduction to ABAPIntroduction to ABAP
Introduction to ABAP
 
SAP ABAP
SAP ABAP SAP ABAP
SAP ABAP
 
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
OOW15 - Installation, Cloning, and Configuration of Oracle E-Business Suite 12.2
 
Spark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business OperationsSpark Usage in Enterprise Business Operations
Spark Usage in Enterprise Business Operations
 
Gateway Deployment Options
Gateway Deployment OptionsGateway Deployment Options
Gateway Deployment Options
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
How to find user exits
How to find user exitsHow to find user exits
How to find user exits
 

Andere mochten auch

Helping our insurance clients win, grow and manage clients
Helping our insurance clients win, grow and manage clientsHelping our insurance clients win, grow and manage clients
Helping our insurance clients win, grow and manage clientsMercuri International
 
11 de septiembre - Día del Maestro.
11 de septiembre - Día del Maestro.11 de septiembre - Día del Maestro.
11 de septiembre - Día del Maestro.danipresta
 
Extrabacon's sploit core
Extrabacon's sploit coreExtrabacon's sploit core
Extrabacon's sploit coreDaniel Reilly
 
Roll your own Botnet CnCs
Roll your own Botnet CnCsRoll your own Botnet CnCs
Roll your own Botnet CnCsDaniel Reilly
 
No estas deprimido sino distraído sebas 10 10
No estas deprimido sino distraído sebas 10 10No estas deprimido sino distraído sebas 10 10
No estas deprimido sino distraído sebas 10 10Sebastian Avila Badilla
 
GADGET STUDIO sponsorship presentation
GADGET STUDIO sponsorship presentationGADGET STUDIO sponsorship presentation
GADGET STUDIO sponsorship presentationNickolay Turubar
 
Historia de la publicidad
Historia de la publicidadHistoria de la publicidad
Historia de la publicidadSebastian Ortiz
 
Productivity Measurement System
Productivity Measurement SystemProductivity Measurement System
Productivity Measurement SystemShahtaj Keerio
 
презентация Microsoft office power point 2007
презентация Microsoft office power point 2007презентация Microsoft office power point 2007
презентация Microsoft office power point 2007Adrian Savko
 
презентація
презентаціяпрезентація
презентаціяAdrian Savko
 
Виховна система школи як оптимальний простір життєтворчості
Виховна система школи як оптимальний простір життєтворчостіВиховна система школи як оптимальний простір життєтворчості
Виховна система школи як оптимальний простір життєтворчостіAdrian Savko
 
презентацияпроведення місячника
презентацияпроведення місячникапрезентацияпроведення місячника
презентацияпроведення місячникаAdrian Savko
 

Andere mochten auch (20)

Helping our insurance clients win, grow and manage clients
Helping our insurance clients win, grow and manage clientsHelping our insurance clients win, grow and manage clients
Helping our insurance clients win, grow and manage clients
 
Suelo
SueloSuelo
Suelo
 
Cuaderno virtual 801 (2)
Cuaderno virtual 801 (2)Cuaderno virtual 801 (2)
Cuaderno virtual 801 (2)
 
Publicidad social
Publicidad socialPublicidad social
Publicidad social
 
11 de septiembre - Día del Maestro.
11 de septiembre - Día del Maestro.11 de septiembre - Día del Maestro.
11 de septiembre - Día del Maestro.
 
Suelo
SueloSuelo
Suelo
 
Extrabacon's sploit core
Extrabacon's sploit coreExtrabacon's sploit core
Extrabacon's sploit core
 
Roll your own Botnet CnCs
Roll your own Botnet CnCsRoll your own Botnet CnCs
Roll your own Botnet CnCs
 
Cuaderno virtual 801 (2)
Cuaderno virtual 801 (2)Cuaderno virtual 801 (2)
Cuaderno virtual 801 (2)
 
Eduar perea ppp
Eduar perea pppEduar perea ppp
Eduar perea ppp
 
No estas deprimido sino distraído sebas 10 10
No estas deprimido sino distraído sebas 10 10No estas deprimido sino distraído sebas 10 10
No estas deprimido sino distraído sebas 10 10
 
GADGET STUDIO sponsorship presentation
GADGET STUDIO sponsorship presentationGADGET STUDIO sponsorship presentation
GADGET STUDIO sponsorship presentation
 
Historia de la publicidad
Historia de la publicidadHistoria de la publicidad
Historia de la publicidad
 
Etiologias del dano_cerebral
Etiologias del dano_cerebralEtiologias del dano_cerebral
Etiologias del dano_cerebral
 
Productivity Measurement System
Productivity Measurement SystemProductivity Measurement System
Productivity Measurement System
 
Tipos de transferencia de calor
Tipos de transferencia de calorTipos de transferencia de calor
Tipos de transferencia de calor
 
презентация Microsoft office power point 2007
презентация Microsoft office power point 2007презентация Microsoft office power point 2007
презентация Microsoft office power point 2007
 
презентація
презентаціяпрезентація
презентація
 
Виховна система школи як оптимальний простір життєтворчості
Виховна система школи як оптимальний простір життєтворчостіВиховна система школи як оптимальний простір життєтворчості
Виховна система школи як оптимальний простір життєтворчості
 
презентацияпроведення місячника
презентацияпроведення місячникапрезентацияпроведення місячника
презентацияпроведення місячника
 

Ähnlich wie WebDynPro for Java Common Error v5

A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serverskrishna RK
 
Mho Web Dynpro Abap
Mho Web Dynpro AbapMho Web Dynpro Abap
Mho Web Dynpro Abapthomas_jung
 
Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...
Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...
Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...CA Technologies
 
NETCONF & YANG Enablement of Network Devices
NETCONF & YANG Enablement of Network DevicesNETCONF & YANG Enablement of Network Devices
NETCONF & YANG Enablement of Network DevicesCisco DevNet
 
SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01Argos
 
Biztalk Server 2006
Biztalk Server 2006Biztalk Server 2006
Biztalk Server 2006ipaciti
 
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...Sascha Wenninger
 
troubleshooting Fiori.pdf
troubleshooting Fiori.pdftroubleshooting Fiori.pdf
troubleshooting Fiori.pdfpraveenRapeti3
 
ADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain studyADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain studydhruvamdhruvil123
 
Fiori for s4 hana troubleshooting tips and tricks
Fiori for s4 hana  troubleshooting tips and tricksFiori for s4 hana  troubleshooting tips and tricks
Fiori for s4 hana troubleshooting tips and tricksJasbir Khanuja
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Srinivas Dukka
 
It's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization Nightmares
It's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization NightmaresIt's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization Nightmares
It's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization NightmaresCA Technologies
 
Montée en version de 300 bases de données vers Oracle 12c en 300 jours. Quel...
Montée en version de 300 bases de données vers Oracle 12c en 300 jours.  Quel...Montée en version de 300 bases de données vers Oracle 12c en 300 jours.  Quel...
Montée en version de 300 bases de données vers Oracle 12c en 300 jours. Quel...Swiss Data Forum Swiss Data Forum
 
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)Pierluigi Demaria
 
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...Linh Nguyen
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Andrejs Prokopjevs
 
Perf tuning with-multitenant
Perf tuning with-multitenantPerf tuning with-multitenant
Perf tuning with-multitenantJacques Kostic
 

Ähnlich wie WebDynPro for Java Common Error v5 (20)

A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
 
Mho Web Dynpro Abap
Mho Web Dynpro AbapMho Web Dynpro Abap
Mho Web Dynpro Abap
 
Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...
Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...
Pre-Con Ed: CA Workload Automation iDash for CA Workload Automation CA 7 r12 ...
 
NETCONF & YANG Enablement of Network Devices
NETCONF & YANG Enablement of Network DevicesNETCONF & YANG Enablement of Network Devices
NETCONF & YANG Enablement of Network Devices
 
SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01SAP performance testing & engineering courseware v01
SAP performance testing & engineering courseware v01
 
Autodesk Technical Webinar: SAP NetWeaver Gateway Part 1
Autodesk Technical Webinar: SAP NetWeaver Gateway Part 1Autodesk Technical Webinar: SAP NetWeaver Gateway Part 1
Autodesk Technical Webinar: SAP NetWeaver Gateway Part 1
 
Biztalk Server 2006
Biztalk Server 2006Biztalk Server 2006
Biztalk Server 2006
 
C# 4.0 - Whats New
C# 4.0 - Whats NewC# 4.0 - Whats New
C# 4.0 - Whats New
 
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
A Look at the Performance of SAP UI Technologies - UXP212 at SAP TechEd && d-...
 
troubleshooting Fiori.pdf
troubleshooting Fiori.pdftroubleshooting Fiori.pdf
troubleshooting Fiori.pdf
 
ADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain studyADM100 Running Book for sap basis domain study
ADM100 Running Book for sap basis domain study
 
Fiori for s4 hana troubleshooting tips and tricks
Fiori for s4 hana  troubleshooting tips and tricksFiori for s4 hana  troubleshooting tips and tricks
Fiori for s4 hana troubleshooting tips and tricks
 
W8/WP8 App Dev for SAP, Part 1B: Service Generation with NetWeaver Gateway Fr...
W8/WP8 App Dev for SAP, Part 1B: Service Generation with NetWeaver Gateway Fr...W8/WP8 App Dev for SAP, Part 1B: Service Generation with NetWeaver Gateway Fr...
W8/WP8 App Dev for SAP, Part 1B: Service Generation with NetWeaver Gateway Fr...
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
 
It's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization Nightmares
It's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization NightmaresIt's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization Nightmares
It's Not a Dream—Conquer Chaos for Your DB2® for z/OS® Optimization Nightmares
 
Montée en version de 300 bases de données vers Oracle 12c en 300 jours. Quel...
Montée en version de 300 bases de données vers Oracle 12c en 300 jours.  Quel...Montée en version de 300 bases de données vers Oracle 12c en 300 jours.  Quel...
Montée en version de 300 bases de données vers Oracle 12c en 300 jours. Quel...
 
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
Delta scope sap ehp8 for SAP ERP 6.0 (Technical View)
 
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
 
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
Optimize DR and Cloning with Logical Hostnames in Oracle E-Business Suite (OA...
 
Perf tuning with-multitenant
Perf tuning with-multitenantPerf tuning with-multitenant
Perf tuning with-multitenant
 

WebDynPro for Java Common Error v5

  • 1. WebDynPro for Java: Common Error Prevention and Fixes
  • 2. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 Agenda Jodi Johnson Developer, CLOROX
  • 3. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 Learning Objectives As a result of this workshop, you will be able to:  Avoid some common but nasty errors in WebDynPro  Correct the errors you couldn’t avoid  Understand the impact of the errors  Use practical tips to create an easier to maintain and more robust application
  • 4. SETUP Issues (Development Configuration and Multiple Tracks)
  • 5. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 Glossary Development Configuration (DC): the framework of a WebDynPro application TRACK: individual instance of WebDynPro BUSINESS PACKAGE: grouping of DCs that are treated as a unit(SCA) SCA: Software Deployment Archives, used by BASIS to import WebDynPro Code between portals SYSTEM: HR ESS/MSS ECC5.0 PORTAL 6.2 SP 13
  • 6. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DC – Tips - Multiple Tracks Make sure correct portal is selected
  • 7. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DC – Tips - Multiple Tracks Ensure host matches selected portal host
  • 8. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DC – Tips - Multiple Tracks REASON: Can use separate tracks and portals to support Production, code for a project and check Service Packs.
  • 9. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DC – Tip – Use correct prefix for DCs Business Package (ESS) No Business Package
  • 10. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DC – Tip – Use correct prefix for DCs REASON: All DCs are grouped by business package and transported to portals as a SCA.
  • 11. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DCs - Problem – Creating DC on server Wrong place to add dc Right place to add dc
  • 12. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DCs - Problem – Creating DC on server EFFECT: Cannot remove DC from server. The SCA will not build correctly, BASIS must manually exclude the bad DC before the build will succeed SOLUTION: Only upgrading to the next Service Pack will remove the DC from the server.
  • 13. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DCs – Problem - Changing SAP vanilla DCs Importing Vanilla SAP Configuration to make changes
  • 14. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DCs – Problem - Changing SAP vanilla DCs EFFECT: Everything works until a Service Pack is applied. SAP DC will revert back to vanilla. SOLUTIONS: Rewrite any changes made to SAP DC. OR Copy the SAP DC and make changes to that DC.
  • 15. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DCs – Tip – Service Packs PROBLEM: Service Packs will revert any SAP DCs to vanilla and drop any new NON-SAP DCs. EFFECT: Only vanilla SAP DCs will exist. SOLUTION: Keep a list of all DCs created for a project, BASIS can load them on the track after the Service Pack is applied.
  • 16. CONTEXT (RFCs and Models)
  • 17. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 CONTEXT Overview RFC - Remote Function Calls (passes data from backend to WebDynPro) Model One to one relationship with RFC Used Model Allows access to Model by Custom Controller and Views Custom Controller (Value Nodes and Attributes) Views
  • 18. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 CONTEXT Inheritance from Custom Controller to View Views can inherit context Value Node and Attributes from Custom Controller but Custom Controller cannot inherit from Views
  • 19. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFCs – Tip – Maximize coding in backend REASON: Code runs quicker. Backend (ECC 5.0) is where data is maintained and validated. WebDynPro should be used for display, parsing and enforcing field requirements.
  • 20. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC/Models – Tips – Use Input and Rename Output Use the RFC Input Rename the output in the RFC input
  • 21. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC/Model – Tip – Coding for reading models try{ Z_Rfc_Read_Sample_Input readInput = new Z_Rfc_Read_Sample_Input (); wdContext.nodeSampleReadModel().bind(readInput); wdContext.nodeReadOutput().invalidate(); } catch (Exception e) { }
  • 22. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC/Model – Tip – Coding for reading models TIP: Use a try {} when reading the model REASON: Sometimes a null record is returned as the first record. If this happens then the framework will go fetch the correct record only if a try{} is coded.
  • 23. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC/Model – Tip – Coding for reading models TIP: Always read the input TIP: Always invalidate the output REASON: Won’t work properly otherwise. NOTE: Same rules apply to saving models - move data to input - invalidate the output - save input
  • 24. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC – Problem - Adding new fields to RFC Must Reimport the RFC(Model)
  • 25. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC – Problem - Adding new fields to RFC EFFECT: Need to reimport model and restart Portal whenever the RFC structure is changed. SOLUTION: Upfront analysis, put all fields that will likely be needed for future upgrades in the RFC. Better too many fields than too few.
  • 26. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 RFC/Model – Problem - Data structure differences PROBLEM: WebDYnPro contains different data types than ABAP Specifically, WebDynPro can translate a char(1) as Boolean. If a Boolean field is changed to a different data type, reimporting the RFC will not remove the reference to the Boolean field in the context. SOLUTION: Delete the context by hand and reattach
  • 27. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 DEMO
  • 28. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 Summary  Do the analysis/design upfront  Don’t modify SAP DCs – create new ones  Work on only one track at a time  Code data verification on the backend  Include all possible fields in the RFCs
  • 29. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 Further Information  Public Web: www.sap.com www.sdn.sap.com  Related Workshops/Lectures at SAP TechEd ’05 Session ID, Title, Session Type  Americas’ SAP Users’ Group (ASUG) www.asug.com
  • 30. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 THANK YOU FOR YOUR ATTENTION ! QUESTIONS – SUGGESTIONS – DISCUSSION
  • 31. © SAP AG 2006, SAP TechEd ’06 / Session ID / CD110 Please complete your session evaluation. Be courteous — deposit your trash, and do not take the handouts for the following session. Feedback Thank You !