Sei sulla pagina 1di 10

Join 25k+ Publishers who track Tweets, Likes, Pins, +1s to their websites right from their WordPress

Dashboard!

HOME

TECH

SAP

BLOGGING

SOCIAL MEDIA

MONEY

EXPLORE
FREE UPDATES ENTER YOUR EMAIL:

SEARCH

YOU ARE HERE: HOME > SAP > FLOORPLAN MANAGER FOR WEBDYNPRO ABAP: DYNAMICALLY MODIFYING PURCHASE ORDER FPM IN

Floorplan Manager for WebDynpro ABAP: Dynamically Modifying Purchase Order FPM in SRM7 Using Custom AppCC
APRIL 23, 2012 BY SANKAR BHATTA SAP READ PRINT EMAIL PDF

JOIN US

This tutorial is intended for ABAP webdynpro developers working in SRM7 with good knowledge on FPM.

riyaz.net
Like 1,567

POPULAR ARTICLES

Beginner's Guide to ALE and IDocs - a step-by-step approach Beginner's Guide to ALE and IDocs - Part II XI/PI: SAP XI Troubleshooting Guide XI/PI: A Guide to Using SAP XI SOAP Adapter XI/PI: Convert Flat File to Deeply Nested XML Structures Using Only Graphical Mapping Beginner's Guide to ALE and IDocs - Part III XI/PI: Simple IDoc Communication using SAP XI

View Video Tutorials on Web Dynpro for ABAP by Sankar Bhatta

XI/PI: Understanding the RFC Adapter XI/PI: File Content Conversion for Complex

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

This tutorial is intended for ABAP webdynpro developers working in SRM7 with good knowledge on FPM. Most of the requirements we encounter in projects involves modifying web ui components. Almost all of the applications in SRM are built based on ABAP webdynpro FPM. Modifying FPM based applications is bit different than modifying normal ABAP webdynpro applications. In the coming sections we will see different methods of achieving this. If you are not familiar with webdynpro go through the below links first to get a hang of ABAP webdynpro 1. Web Dynpro ABAP Part 1 2. Web Dynpro ABAP Part 2 3. Web Dynpro ABAP Part 3 If you are familiar with ABAP webdynpro but not with FPM go through the below docs and elearning material first. Getting started with Floor Plan Manager (Web Dynpro for ABAP) Building a Simple RoadMap Application using Floor Plan Manager GAF (Guided Activity Floorplan) Go through the below excellent e learning material on SDN. eLearning Tutorials Floorplan Manager for Web Dynpro ABAP After the above tutorial download the developer guide from the link below FPM Application Developers Cookbook Ok enough of material.. lets get into some action now Basically there are three ways of modifying the PO FPM elements depending on the requirement. 1. If you want to hide/remove MAIN/SUBVIEWS or indivudual UIBBs contained in them and you want to make these changes visible across all roles then enhance the standard component configuration and make the necessary changes. 2. If you want hide/remove fields with in specific UIBB ( for example you want to hide PO number field in Overview* tab ) based on some logic. you can use WD_BADI_DOMODIFYVIEW BADI, create an implementation with filters component /SAPSRM/WDC_PO_DOFC_OV_HD and view V_PO_DOFC_OV_GN_HD and write the below code (to get the component and view name , right click on

XI/PI: File Content Conversion for Complex Structures XI/PI: Your First XI Scenario

Proactively Manage IT
www.bmc.com/IT_Performance Shift from Reactive to Proactive IT Performance Mgmt. Learn More!

EVERGREEN PICKS

Beginner's Guide to ALE and IDocs - a step-by-step approach Beginner's Guide to ALE and IDocs - Part II GetSocial WordPress Plugin XI/PI: SAP XI Troubleshooting Guide XI/PI: A Guide to Using SAP XI SOAP Adapter How to Customize GetSocial with CSS3 Buttons XI/PI: Convert Flat File to Deeply Nested XML Structures Using Only Graphical Mapping Beginner's Guide to ALE and IDocs - Part III XI/PI: Simple IDoc Communication using SAP XI

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

the field in web ui and go to more field help)

XI/PI: Understanding the RFC Adapter

DATA : lo_ref TYPE REF TO cl_wd_transparent_container. lo_ref ?= view->get_element( 'LEFT_CONTAINER' ). IF lo_ref IS NOT INITIAL. lo_ref->remove_child( id = 'PO_NUMBER_LABEL' ). lo_ref->remove_child( id = 'PO_NUMBER' ). ENDIF.
Stop Letting Your Credit Cards Run Your Life Web UI Modifications in SAP SRM 7 How to Access PO Details from Custom Component Embedded in Standard FPM in SRM7
RECENT POSTS

Social SEO is here. Are You Ready? 7 Excellent Tools to Develop iPhone Apps

3. If you want to hide/remove/add MAIN / SUBVIEWS based on some logic, then you have to follow the method I mentioned below. First lets look at the standard purchase order display screen and understand the difference components and configurations that it uses. Login with the employee role and go to shopping area->My Pos POWL query where you will see bunch of POs. Open any of the PO by clicking on it. Right click on any of the tabs ( Overview, Header, Approval etc., ) and go the More field help of the UI element. You will see below information Header 1 Application Webdynpro component Window Information View Information Configuration ID Header 2 /SAPSRM/WDA_L_FPM_OIF FPM_OIF_COMPONENT FPM_WINDOW CNR_VIEW /SAPSRM/WDCC_FPM_OIF_PO_PURCH

RECOMMENDATIONS

Sign Up

C reate an account or log in to see what your frien

Social SEO for Your WordPress Blog One person recommended this. XI/PI: Dealing with Errors on the Outbound side One person recommended this. XI/PI: Simple IDoc Communication using SAP XI One person recommended this. XI/PI: SAP XI Troubleshooting Guide 4 people recommended this. XI/PI: A Guide to Using SAP XI SOAP Adapter 2 people recommended this. Nutrition Myths and Facts 5 people recommended this. XI/PI: Designing with Integration Repository 3 people recommended this.

Now go to component FPM_OIF_COMPONENT from SE80 and locate the application /SAPSRM/WDA_L_FPM_OIF. This application will have different application configurations associated with it. We need to figure out which application configuration is getting called at run time. To know this we need to go to PFCG and see the Employee role, go to display purchase order webdynpro application and click on details button.

Remove Background from Photo without Photosho 5 people recommended this.

CDN Setup: How to Create CDN to Speed up Your Bl

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

6 people recommended this.

GetSocial WordPress Plugin - Free Social Media Sh 33 people recommended this. Technology Blog 4 people recommended this.

Now double click on application configuration /SAPSRM/WDAC_I_FPM_OIF_PO_PURCH and select Start Configurator, which will take you to application configuration browser window. Click on Other funcitons dropdown button and select create enhancement. This will open up a pop up window asking for the name of new configuration, description and package. Enter a configuration name starting with Z or Y and click OK

Click on Create button to go to the individual component configuration view. The component configuration that is currently used by application is displayed there.
Fac ebook s oc ial plugin

We need to create an enhancement for this component configuration as well and use it in the apllication configuration enhancement. To create enhancement for component configuration /SAPSRM/WDCC_FPM_OIF_PO_PURCH, expand the component configuraiton section of FPM_OIF_COMPONENT and locate the configuration /SAPSRM/WDCC_FPM_OIF_PO_PURCH. start the

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

configurator and select create enhancemnet from the other functions button dropdown. Enter any name starting with Z or Y and select OK. save the configuration. Now replace /SAPSRM/WDCC_FPM_OIF_PO_PURCH with the Z component configuration that we just created.

After this is done click on go to compoent configuration and select change -> global settings. you will see under application specific parameters , webdynpro component and confguration used for AppCC.

we need to create our own custom AppCC component by copying the standard WD component /SAPSRM/WDC_FPM_OIF_CONF and component configuration /SAPSRM/WDCC_FPM_APPCC_PO_PURCH. Go to se80 and create both ( configuration can not be copied. so just look at the standard configration /SAPSRM/WDCC_FPM_APPCC_PO_PURCH and creata Z configuration similar to it ). Once we have created the custom AppCC component and configuration, replace the standard AppCC component and configuration with custom ones.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Ok we are done with the enhancement part . As we have created a custom AppCC component, we can now add/remove main/subviews as we want. lets look at a simple scenario. The requirement is to change the name of the Header mainview to Header after change and remove the subview Budget from the mainview Header and also add a new subview with name FPM is Cool which holds a custom component ( YTEST ) as an UIBB. The above requirement can be achived by just changing the custom component configurationZENH_SAPSRM_WDCC_PO_PURCH that we had created earlier. But what if we need to do that based on some logic, we need a place to write the code. This is where the interface method OVERRIDE_EVENT_OIF of AppCC component comes into picture. Go to the component controller of component ZWDC_FPM_OIF_COMP and open the method OVERRIDE_EVENT_OIF and write the below code at the end.

TYPES: BEGIN OF ty_s_uibb, component interface_view config_id config_type config_var needs_stretching location index END OF ty_s_uibb . DATA: ls_uibb TYPE ty_s_uibb, lt_uibb TYPE STANDARD TABLE OF ty_s_uibb . ls_uibb-component = 'YTEST'. ls_uibb-interface_view = 'YTEST'. TYPE string, TYPE string, TYPE wdy_config_id, TYPE wdy_config_type, TYPE wdy_config_var, TYPE fpm_needs_stretching, TYPE fpm_location, TYPE fpm_index,

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

APPEND ls_uibb TO lt_uibb. CASE io_oif->mo_event->mv_event_id. WHEN 'FPM_START'. TRY. *rename the main view Header to Header after change CALL METHOD io_oif->rename_mainview EXPORTING iv_variant_id iv_new_name = = 'PO_PUR' 'PO_HDR' 'Header After Change' . iv_mainview_id =

*remove subview 'Budget' under main view Header CALL METHOD io_oif->remove_subview EXPORTING iv_variant_id iv_subview_id = 'PO_PUR' = 'Budget'. iv_mainview_id = 'PO_HDR' add subview FPM is coll in Header mainview CALL METHOD io_oif->add_subview EXPORTING iv_variant_id iv_mainview_id iv_subview_id it_uibb ENDTRY. ENDCASE. = 'PO_PUR' = 'PO_HDR' = 'mysubview' = lt_uibb.

iv_subview_name = 'FPM is Cool' CATCH cx_fpm_floorplan .

This is how PO screen looks after the code change. Header description is changed, Budget subview is removed and there is a new subview with name FPM is Cool added.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

If you now click on subview FPM is Cool, you can see the custom component YTEST ( I had created a simple component YTEST with single button and some text)

I hope this tutorial will be of some help to ABAP webdynpro developers working in SRM 7. Next in the series: How to Access PO Details from Custom Component Embedded in Standard FPM in SRM7

View Video Tutorials on Web Dynpro for ABAP by Sankar Bhatta

Like

Send

Tw eet

3
PRINT

2
EMAIL PDF SHARE

EXPLORE: SAP

COMMENTS & TRACKBACKS

About Sankar Bhatta Sankar Rao Bhatta is an SAP NetWeaver Consultant with Intel, India. After completing M.Tech from IIT Bombay, he worked with IBM as SAP Consultant before joining Intel. Other areas of his expertise include SAP SRM and ABAP.

RELATED POSTS

XI/PI: Sending Emails Using XI Mail Adapter XI/PI: The XI Starter Kit

Web UI Modifications in SAP SRM 7 XSLT Mapping A Simple

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Example

Comments
ADD A COMMENT SHOW OLDER COMMENTS FIRST

1.

christi parks says:


DECEMBER 2, 2012 AT 4:25 PM

Hello, sir i would like to ask that what is the scope of SAP webdynpro ABAP training what all topics should be covered and has anyone studies from this course http://www.wiziq.com/course/8153-sap-webdynpro-pro-abap-training of SAP webdynpro ABAP training ?? or tell me any other guidance would really appreciate help and Also i would like to thank for all the information you are providing on SAP Webdynpro ABAP training. REPLY

Speak Your Mind


NAME

EMAIL *

WEBSITE

POST COMMENT

Notify me of follow-up comments by email.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Notify me of new posts by email.

About Riyaz
riyaz.net is a popular technology site with how-to guides, tips and tutorials on personal technology, blogging, social media, web apps, personal finance and SAP. riyaz.net was launched way back in 2005 by web designer, blogger and SAP Consultant Riyaz Sayyad from Pune, India. Over the years the site has grown into a full featured online community with thousands of visitors daily from around the world. Read more.

Group Sites
Social Metrics pro FlipBuy Indian Art Gallery SEO Blog

Downloads
Social Plugins GetSocial Social Media Sharing Plugin WP Tweetbox WordPress Plugin

Popular Topics
WordPress Tips & Tricks Internet Software SAP PI SAP ABAP Lifestyle Personal Finance Health & Fitness Travel & Leisure

Popular Guides
Dropbox Tutorial CDN Setup Guide Blog Design Tips Optimize RSS Feed Create Twitter App Short URLs Password Protect Folders Time Management ALE IDocs Tutorial SAP PI Starter Kit SAP PI Tips Ergonomics

Connect
Facebook Twitter Google+ Subscribe via RSS Email Newsletter Contact Us

Free Social Media Monitoring Tools for WordPress

BACK TO TOP

COPYRIGHT 2005-2013 RIYAZ.NET ALL RIGHTS RESERVED TERMS OF USE PRIVACY POLICY DISCLAIMER DESIGNED BY RIYAZ CONTACT US

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Potrebbero piacerti anche