Posts

Showing posts from 2008

HR Infotypes

0000 - 0999 is PA related infotypes 1000 - 1999 is OM/PD related infotypes 2000 - 2999 is Time Management 4000 - 4999 is Recruitment 5000 - 5999 is Erecruitment & E learning 9000 - 9999 is customer specific infotypes To see a list of all infotypes, you could use transaction code OOIT or table T778T. On help.sap.com, they do offer a pretty extensive list and description on all of their infotypes. You could check it out @ http://help.sap.com/printdocu/core/Print46c/en/data/pdf/HRINF/HRINF.pdf

Questionnaire with Answers for SAP FI

Extracted from: http://www.sap-img.com/financial/questionnaire-with-answers-for-sap-fi.htm What is the difference between company and company code? A company is the organizational unit used in the legal consolidation module to roll up financial statements of several company codes. The Company Code is the smallest organizational ! unit for which a complete self-contained set of accounts can be drawn up for purposes of external reporting. How many chart of accounts can be attached to a company code? One or more Operative Chart of Accounts can be assigned to a company code. A COA must be assigned to a company code. This COA is the operative COA and is used in both FI and CO. One Chart of Account can be assigned to many Company codes i.e., Multiple company codes can either share the same or have separate COA. But a company code (Country specific Company code or International Company code) can have a country specific COA also along with Operative COA. The link between the regular COA and t...

Sample ALV with Button and Checkbox

REPORT ZZZZYYYYYZZZZYYYY NO STANDARD PAGE HEADING MESSAGE-ID zusf LINE-COUNT 65 LINE-SIZE 120. *&------------------------------------------------------------------*& *& TYPE POOLS: &* *&------------------------------------------------------------------&* TYPE-POOLS: slis. *&------------------------------------------------------------------&* *& PROGRAM VARIABLES: &* *&------------------------------------------------------------------&* RANGES: r_blart FOR vbkpf-blart. *&------------------------------------------------------------------&* *&------------------------------------------------------------------&* *& STRUCTURES: &* *&------------------------------------------------------------------&* DATA: gs_layout TYPE slis_layout_alv. *&------------------------------------------------------------------&* *& INTERNAL TABLES &* *&---------------------------------------------------------------...

Important/Useful SAP Programs / Function Modules

PROGRAMS: RPR_ABAP_SOURCE_SCAN - To scan ABAP program with any search string RS_LXE_RECORD_TORDER - To create/assign Transport request to the translation of the Smartform objects FUNCTION MODULES: ALSM_EXCEL_TO_INTERNAL_TABLE - Function Module to upload data from Excel to internal Table READ_EXCHANGE_RATE - Function Module to get currency exchange rate. Rate Type needs to be passed. (eg.VBAK-KURST ) TEXT_CONVERT_XLS_TO_SAP - Function Module to read data from excel file directly to internal table. FI Related : PRELIMINARY_POSTING_DOC_DELETE - Function Module to delete parked document BAPI_INCOMINGINVOICE_CREATE - Park/Post MM invoice BAPI_INCOMINGINVOICE_GETDETAIL - Get MM invoice details BAPI_ACC_DOCUMENT_POST - Function module to Post FI document. CALCULATE_TAX_FROM_GROSSAMOUNT - Calculate Tax from Gross Amount

Settting up the FI Validations

You can use additional validation to supplement the existing SAP logic to fit you into your businness needs. For e.g. to allow postings from company code 0001 to business area AA only. GGB0  - To maintain the validations Validation - Enter a validation name  e.g.   VBUS Applicaion Area - SAP module e.g. FI Calling Point - Dependent upon the application area that is selected.  0001 - Document Header - validate enteries at document header, e.g  BKPF  table  0002 - Line Items - check line item entris within a document, e.g.  BSEG  table  0003 - Complete Document - check settings for the whole documents. e.g. Validation step 001  Allowed company code ' 0001 ' to post to business area AA only.  ' FI00 ' checks that line item is from FI.  If checks failed, the error message number 14 is displayed to stop the transaction. Prerequisite   $BUKRS = '0001' AND  $GLVOR = 'FI00' Check   $GSBER = 'AA' Message   Type E   No. 14 - Business Area not allowed fo...

Important Transaction Codes

ABAP: SE11 - Data Dictionary Objects SE38 - Program Editor SA38 - Program Execution only SM59 - RFC WE19 - Re-process IDOC CG3Z - Upload File to Application Server SM30--> TPARA - Create / Maintain Parameter ID

ABAP Tips - 1 : How to Display a Popup and Get Values from User ?

Image
How to Display a Popup and Get Values from User ? Function Module POPUP_GET_VALUES can be used to display a popup to get inputs from user. The speciality of this function module is we can add as many number of fields as we want. The fields can be of any data type. REPORT ztest9910. DATA : t_fields LIKE sval OCCURS 0 WITH HEADER LINE . START- OF -SELECTION. *--- Prepare Parameters for FM -------------* t_fields-tabname = ’BKPF’ . t_fields-fieldname = ’BUDAT’ . APPEND t_fields. t_fields-tabname = ’BKPF’ . t_fields-fieldname = ’BLART’ . APPEND t_fields. *---- Function Module Call -----------------* CALL FUNCTION ’ POPUP_GET_VALUES’ EXPORTING *  NO_VALUE_CHECK = ’ ’    popup_title = ’Test Popup’ *  START_COLUMN = ’5’ *  START_ROW = ’5’ *  IMPORTING *  RETURNCODE = TABLES    fields = t_fields EXCEPTIONS    error_in_fields = 1    OTHERS ...

SAP Interview Questions - ABAP

There are lot of materials available in the internet regarding interview questions on ABAP - Technical. Here I have tried to accumulate some of them. These questions are mostly faced by me (When I get interviewed) or asked by me (when I interview others). I made two distinct parts as ’Purely Technical’ and ’Basic Functional’. I feel that some basic functional (read domain) knowledge is also necessary to flourish as a Good Technical Resource. Purely Technical Questions : What is the difference between Explicit Commit and Implicit Commit ? What is the difference between SAP LUW (Logical Unit of Work) and Database LUW ? What is the difference between Internal Session and External Session ? Give Examples What are the work-processes in BASIS Layer ? What are the different types of RFC s? What is the difference between V1 update and V2 Update ? Why does BAPI need explicit commit ? What is the difference between COMMIT and COMMIT WORK AND WAIT statements ? Why we pass parameters in RFC...

Identifying Business Object and Creating a Simple Custom Workflow

Image
This document is intended to create a step by step guide to find the business object for a process to implement custom workflow. This document also describes the method to create a simple workflow using the business object. The Objective: To find the business object related to Sales Order Creation To create a custom workflow which get triggered during Sales Order Creation. Step 1: Open Event Trace using transaction code SWEL or following menu path under Tools menu. Step 2: Set the time as current time This will display no event. Step 3: As per requirement open sales document creation screen using transaction code VA01. Create the document and save it. Step 4: Refresh the Event Trace List. Now we can find the Business Object (in this case BUS2032) and the Event (In this case CREATED) triggered during Sales Order Creation. This Business Object and the concerned event are essential to trigger the custom workflow. Note: ‘Name of the Receiver Type’ column shows the existing workflo...