This code provides logic to remove the Header generated by TOP-OF-PAGE from the Last Page.
CODE Snippet |
*&---------------------------------------------------------------------* |
This code provides logic to remove the Header generated by TOP-OF-PAGE from the Last Page.
CODE Snippet |
*&---------------------------------------------------------------------* |
I was wondering if it is possible to have the same functionality of the Excel: Press Enter and cursor will move to next row.
As OO ABAP using the class CL_GUI_ALV_GRID provides so many methods for the processing at the Cell Levels. After looking to all the methods of the CL_GUI_ALV_GRID, I found there are so many methods which can do the processing at the Cell level. I have started to give the try. After certain tries, I was able to achieve what I was looking for.
Code Snippet for the Class handler for ALV Grid Call |
*&---------------------------------------------------------------------* |
Code Snippet for the Class handler definition and Implementation |
*&---------------------------------------------------------------------* |
Today we will try to explore the design patterns in the ABAP Objects. We will start with the Singleton design pattern, which is the simplest of its family of design patterns.
Code Snippet to check instance |
|
Code Snippet for Design Patterns: Singleton |
|
Sometimes we need to modify the subtotals on the ALV, specially when we have to give the average of the percentages or something like that. To change the subtotal we need to follow certain steps:
1. we need to get the ALV object form the ALV function module. We can use the FM GET_GLOBALS_FROM_SLVC_FULLSCR to get the Global data of the ALV. From this FM we will get the ALV object.
2. After getting the ALV object, we need to get the subtotal using the method GET_SUBTOTALS of the ALV object. We will get the first level subtotal using the parameter EP_COLLECT01.
3. Now, we need to modify the subtotal. Here we need to take help of Field-symbols since the EP_COLLECT01 is reference to data.
4. We need to refresh the Table display. For this purpose we can use the method REFRESH_TABLE_DISPLAY.
Here is the code snippet which performs all the steps mentioned above:Code Snippet to change the Subtotal |
|
Debugging is necessary when we have program lines node in our Smartforms and the code in the program lines node is not working as per our expectation. Currently, we don't have the Breakpoint button as what we have in the ABAP code Editor in the Workbench. So, what are the options to put a break point in Smartforms:
1. Hardcode the BREAK-POINT: We just have to put the BREAK-POINT statement whereever we want to stop the code and look inside in Debugger. This is good option when we are developing the Smartforms. But we all, as per the Human nature, forgot to remove those BREAK-POINTs from the program lines and Users would have to face the debugger at each and every break-point and would start shouting..!! This is what we all don't want. So, this option is not good.
2. Breakpoint using BREAK user-name: We can put the break point using the statment user name addition to the break command, for example BREAK NAIMESH. These break points would not stop any other users who would run this Smartform. Still it has some disadvantages: Everytime the developer who has put the break point will stop i n the Debugger. It is fine, if we have only one or two, but we have many than it would be a problem. So, this makes the option less powerful.
3. Breakpoint on the fly: To put a break point on the fly, we can follow these simple steps to put a breakpoint as required.
Step1: Open your Smartform and Copy the text as which you want to put a break point and press the Test Button. It will bring you the Function Builder.
Step 2: Press the dispaly button to open the code of the function.
Step 3: Press the Find (control+F) button.
Step 4: In the find screen, paste the copied text (control+V) in the Text.
Select the option "In main Program"
Press Enter
Step 5: From the hit list, go to the source code by doing doubleclick on the search results. Now, put a Cursor on the line and press the "Set Breakpoint" button.
That's it. So, when you run the application it will stop to this break point.
It seems to be the lengthy steps, but they are effective.
The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems
into an R/3 System.
The LSM Workbench covers the following steps:
(1) Read the legacy data from one or several files (e.g. spreadsheet tables, sequential files).
(2) Convert the data from source format to target format.
(3) Import the data using standard interfaces (Batch Input, Direct Input, BAPI, IDoc).
The Steps for LSMW are:
Example: Customer Master upload:
LSMW to Update Customer Master Records with Transaction Recording
Call Legacy System Migration Workbench by entering transaction code LSMW. Every conversion task is grouped together as Project / Subproject / Object structure. Create a Project called LSMW_DEMO and a Subproject as CUSTOMERS and Object as CUST_REC
Step 1: Maintain Object attributes
In this example, you will be updating the customer master records with the help of recording a transaction (XD02). Choose radio button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as XD02_REC, the description as Customer Master Updates Recording, and the transaction code as XD02.
Step 2. Maintain Source Structures
Give a name and a description to the source structure.
Step 3. Maintain Source Fields
In this step, you need to list what fields are present in the source structure. The easiest way is to click on ‘Table Maintenance’ icon to enter Fieldname, Type and Length for each field.
Step 4: Maintain Structure Relations
Execute a step to ‘Maintain Structure Relations’. Since, there is only one Source and Target Structure, the relationship is defaulted automatically.
Step 5: Maintain field mapping and conversion rules
Field RF02D-D0310 represents that you chose ‘Sales view’ for the customer Master screen accordingly its value should be set to X. Keep your cursor on field
RF02D-D0310 and click on Constant rule icon to choose the constant value of ‘X’.
If your source file already has the field value, you choose rule ‘Source Field’. Keep cursor on field ‘KUNNR’ and click on ‘Assign Source field’ icon to choose source field CUSTOMER from structure XD02S
Step 6: Maintain fixed values, translations, user-defined routines
You can also maintain re-usable translations and user-defined routines, which can be used across conversion tasks. In this case, that step is not required.
Step 7: Specify files
In this step, we define how the layout of the input file is. The input file is a Tab delimited with the first row as field names. It is present on my PC (local drive) as C:\XD02.txt.
Step 8: Assign files
Execute step ‘Assign Files’ and the system automatically defaults the filename to the source structure.
Step 9: Read data
In this step, LSMW reads the data from the source file (from your PC’s local drive). You have the option to read only selected rows and convert data values to Internal format.
Step 10: Display read data
This step is optional. If required, you can review the field contents for the rows of data read.
Step 11: Convert data
This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined, source fields are mapped to target fields.
Step 12: Display Converted data
Again this is an optional step to view how the source data is converted to internal SAP format.
Step 13: Create batch input session
Once the source data is converted in an internal format, you can create a batch session to process updates.
Step 14: Run Batch Input Session
You can execute the BDC session by Run Batch input session. Executing a batch input session is a standard SM35 transaction for managing BDC sessions. Once you have successfully executed the batch input session, the customer master records are updated in the system. You can confirm this by viewing the customer master records (XD03).
Benefits of SAP implementation :
Benefits to the suppliers :
1) SAP increases their market share and , increased business by virtue of AMCs.
2) Implementer gets business and people working at client side will build their resume.
3) Hardware manufacturer gets their share of business without any effort.
Clients :
1) Efficient , user specific, customized legacy system dies. Along with all the trained people to manage it will also loose their importance and gets demotivated.
2) Increased cost of IT by virtue of Initial expenditure on SAP licenses/ Hardware/ Net working & implementation. recurring costs /year goes up by virtue of AMC for SAP licenses and support
3) Entire Company performance goes down. Each person puts the blame on SAP for not working properly,
4) Trained manpower in SAP leaves the company in search of better ( ? ) opportunities leaving the systems department in disarray . This puts more dependence on support from AMC ( which is a mirage and clients pay heavy price )
5) One year post go live, with great difficulty , companies finalise accounts and have nightmarish times explaining the auditors.
6) Educated end users will find out lots of open ends in various clearing accounts. Due to pressure from Sr.Management, they try to pass manual entries and end up in differential account balances. ( simple inventory statement form MC.1 does not tally with sum of corresponding GL accounts )
7) End user start raising tickets on supports for flimsy issues consuming precious AMC hours
8) End of one year, the Sr management will realise that only 30 % of their actual business process were mapped in SAP and to full fill their other business needs, they need to go for other licenses in SAP modules --- more expenditure......!
9) Middle of second year, the database growth will increase and Size of Hardware needs up gradation...leading to more expenditure
10) Release notes for SAP will constantly put customised report updating..at client end. ( hope they have trained manpower to tackle it )
11) List of reports on MIS increases. End users reluctance to accept SAP reports puts more pressure on MIS
12) every transaction will be recorded which includes the mistake done by end users . All the mistakes done by respective users of MM/SD/PP ends at accounts department for answers.
13) End users and Sr management will realise that old system legacy ) was better and was answering to their needs with few exceptions like inter connectivity, web etc.
14) Dependency of legacy system and mapping it to SAP will produce replica of legacy system in the form of SAP ...! This leads to fact that all the features of SAP will never comes to light and implementers will package legacy system in SAP and run away with money. This happens at most of clients. Where all the minus of legacy systems reappears in SAP too...! ( why do you need to spend millions to get what you had earlier ..! )
Real benefits ( seen and appreciated by very very very few clients )
1) one data flows across all domains
2) Visibility of data
3) Visibility of inventory/accounts/MIS for better control
4) Planning and automated working avoiding procedural hurdles for various domains like purchase/production/sales etc
5) Inter-connectivity with other applications of PDM/SCM/CRM/ bla bla bla.....
1. How the tickets in production support are resolved?
2. Give some examples with solutions?
What are the types of ticket and its importance?
This depends on the SLA. It can be like:
1. Critical.
2. Urgent.
3. High.
4. Medium
5. Low.
The response times and resolution times again are defined in the SLA based on the clients requirement and the charges.
This is probably from the viewpoint of Criticality of the problem faced by the client as defined by SAP.
1) First Level Ticketing:
Not severe problem. Routine errors. Mostly handled by Service desk arrangement of the company (if have one).
Eg: a) Say Credit limit block in working on certain documents?
b) Pricing Condition Record not found even though conditions are maintained?
c) Unable to print a delivery document or Packing list?
PS: In the 4th phase of ASAP Implementation Methodology( i.e Final Preparations for GO-LIVE) SAP has clearly specified that a Service desk needs to be arranged for any sort of Implementation for better handling of Production errors.
Service desk lies with in the client.
2) Second Level Ticketing:
Some sort of serious problems. Those Could not be solved by Service Desk. Should be referred to the Service Company (or may be company as prescribed in SLA).
Eg: a) Credit Exposure (especially open values) doesn't update perfectly to KNKK Table.
b) Inter company Billing is taking a wrong value of the Bill.
c) Need a new order type to handle reservation process
d) New product has been added to our selling range. Need to include this into SAP. (Material Masters, Division attachements, Stock Handling etc.)
3) Third Level Ticketing:
Problems could not be solved by both of the above, are referred to Online Service Support (OSS) of SAP Itself. SAP tries to solve the Problem, sometimes by providing the perfect OSS Notes, fits to the error and rarely SAP logs into our Servers (via remote log-on)for post mortem the problem. (The Medical check-up client, connections, Login id and Passwords stuff are to be provided to SAP whenever they need or at the time of opening OSS Message.)
There are lots of OSS Notes on each issue, SAP Top Notes and Notes explaining about the process of raising a OSS Message.
Sometimes SAP Charges to the client / Service company depending on the Agreement made at the time of buying License from SAP.
Eg: 1) Business Transation for the Currency 'EUR' is not possible. Check OSS Note - This comes at the time of making Billing.
2) Transaction MMPI- Periods cannot be opened – See OSS Note.
There are many other examples on the issue.
4) Fourth Level Ticketing:
Where rarely, problems reach this level.
Those problem needs may be re-engineering of the business process due to change in the Business strategy. Upgradation to new Version. More or less this leads to extinction of the SAP Implementation.
What are the scope of work when SAP is implement?
You should have a Project manager from your company, who will work or should work closely with the implementing Company Project Manager.
The Implementing company will supply the Technical/Functional Consultants. Your company should provide so-called "Super Users / Key Users. These are persons within the company who know the business and its processes inside out.
The Key Users will work closely with the Technical Consultants in designing the companies Business Process to fit with SAP.
The Technical consultants should pass on their knowledge to the Key Users. The Key User will train the End Users, so they must be also trained in SAP Business Process, this is either done by the Implementing company or your company can
send them to SAP training.
The driving person here is your Company Project Manager, in any case all company persons involved in the Implementation project should be on the project 100 percent.
You should setup five phases :
1. Preparation
2. Blueprinting,
3. Realization
4. Preparation Go Live
5. Go Live/Support
From the Project Management side, there are many thing that must be set up prior to Blueprinting, such as Project Charter, Project Plan, Risk Management Plan, Change Management plan etc.
As far as a SOW, this is part of your Charter and there are many Templates of such documents, you need more than just the template, you must know how to analysis your overall environment (Company goals, landscape, Business objectives etc)ASAP: Accelerated Systems Application and Products in Data Processing
All implementation projects have the the following phases:
Scoping - What is to be implemented i.e. which submodules are to be implemented some clients may not require credit management for example. Look at the project scope document carefully it will tell you what SAP sub-modules in SAP you should be prepared for. Usually the sales people along with project manager do it.
As is - Here you understand the existing business processes of the client . Your BPOcollect all the ISO-documentation (if client is ISO certified), reports and forms at this stage and you analyse how and when the reports/forms are generated, where the data is coming from. You also do a Level -2 training for your BPO so he is made aware of all the required transactions in SAP.
Once this is over BPO can start learning with the consultants help more about SAP. This is crucial because if you miss out any transactions the BPO may forget about some of his Business processes which may come up later. It is a good practice to ask the BPO to make flow charts to explain business processes.
To-Be - Parallely you map these processes to SAP. Processes that you are not sure of as to whether they are present in SAP or not you try to do a configuration of those processes, and along with the BPO(Business process owner he is the clients employee who knows about the clients business processes probably a middle management guy, ther can more than one), BPO involvement is required as he may be able to tell you his requirements better. Once you do the business modelling you
will also be made aware of the gaps between as-is and to-be , here decisons have to be made as to wether a ABAP development/system modification is required or not and so on. Involve the BPO as much as possible and document everything it is good practice do not be lazy about it.
Business blueprint: Here the as-is and to-be and gap analysis is explained. This is the document that you will be using to do your configuration in the realization phase.
Realization phase: Here you do the configuration in the development server (there are three clients -development,quality, production). You also decide on the master data format, so that BPO can go collect the master data. You also gove ABAP specifications for forms, reports etc, system modifications etc. Unit testing: Your BPOs and a few key users sit down and test your configuration in your module only. It is good to test the BDCs that you need for uploading data at this stage so you have more realistic data and your BDCs are tested.
Integration testing:
Once all modules unit testing is over then the configuration is trasported to the Quality server, where testing for all the modules is done by BPOs and end user, this is to check if any problems are there in integration between various modules. Once all is okay from the QA server config is transported to the production server.
Go live preparation
Data uploading: The collected master data is checked and the uploaded into production server(sever and client I have used interchangeably). Now you are ready for go live i.e. users can now use the production server.
Thirumallasetty
ASAP methodoligy means nothing but standard process for implementation of SAP, It consists of 5 phases.
1. Project preperation - consists of identifying team members and developing strategy as how to go.
2. Business Blue print - consists of identifying the client current process, reqeirement and how SAP provides solution.
Consists of detailed documentaion
3. Realization -The purpose of this phase is to implement all the business and process requirements based on the
Business Blueprint.
4. Final Preparation - The purpose of this phase is to complete testing, end-user training,
5. Go Live and Support
All the functinal consultatns need good rapo with Abapers. right from uploading of legacy data, devoloping customised reports, BDC's, Forms etc, here functinal consultatns need to give guidence as to get the requried data for reports and all.. like the table name, fields etc
Kittu Kittu
What is baseline configuration in sap?
Base line and Final config is the third phase in ASAP methadology. The purpose of this phase is to implement all the business & process requirements based on business blue print. You customize the system step by step in 2 work packages: Base Line Configuration & Final Configuration.
- Base Line Configuration: this phase comprises the priority requirements of the enterprise, ensuring that they can be implemented quickly. This phase can be completed without programming or enhancements to SAP systems.
- Final Configuration: in this phase you confirm that all your requirements are met in the R/3 system. Final configuration is a transportation process that expands that base line solution.
In a nut shell, customization is done when the client's requirement cannot be mapped with SAP standards. Here you will have to take the help of ABAPers to develop the programs/change the program codes in order to match the clients business requirements
Configuration is done with out any developed programs