Showing posts with label SAP. Show all posts
Showing posts with label SAP. Show all posts

3.21.2010

What is the difference between SY-UCOMM and OK_CODE in Dialog Program? | SAP ABAP Programming

sy-ucomm is for doing the functions what the user wishes to do at that particular event. You use it in menus and other place . this mainly in using
 
ok_code is generally used in screen as of I have used.  You will define the function in the screen. and you can use it in the main program.
ok_code acts just as a temporary variable that stores the value of sy-ucomm.


When user interacts with the screen elements, the function code that you have assigned is filled in the sy-ucomm field which is turn gets reflected in OK_CODE. 

In your ABAP programs, you should work with the OK_CODE field instead of SY-UCOMM. There are two reasons for this: Firstly, the ABAP program has full control over fields declared within it, and secondly, you should never change the value of an ABAP system field. However, you should also always initialize the OK_CODE field in an ABAP program for the following reason: 

In the same way that the OK_CODE field in the ABAP program and the system field SY-UCOMM receive the contents of the corresponding screen fields in the PAI event, their contents are also assigned to the OK_CODE screen field and system field SYST-UCOMM in the PBO event. Therefore, you must clear the OK_CODE field in the ABAP program to ensure that the function code of a screen is not already filled in the PBO event with an unwanted value. This is particularly important when the next PAI event can be triggered with an empty function code (for example, using ENTER). Empty function codes do not affect SY-UCOMM or the OK_CODE field, and consequently, the old field contents are transported.
read more...

1.27.2010

SAP HR | ALE | EDI | PP | MM | ABAP | ERP Interview Questions and Answers

In the below links there are few questions and answers faced by my colleagues and friends in SAP Interview.

SAP HR Interview Questions
SAP MM Interview Questions
SAP ABAP Interview Questions
SAP  Interview Questions
SAP ERP Interview Questions


Keep Watching this space for more resources.Leave me a comment on this page on any specific resource if you need..
read more...

SAP Controlling FAQ

CONTROLLING

Controlling: Controlling provides you with information for management decision-making. If facilitates co-ordination, monitoring and optimization of all process in an organization.

Features of Controlling: Cost Center Accounting, Activity Based Accounting, Internal Orders, Product Costing, & Profitability Analysis.

Controlling Area: Organization unit that represents a closed system Used for accounting purposes.

You can assign one or more company codes to one controlling area.

If you assign more than one company code to one controlling area, then you need to note the following.

1) Consistent Chart of a/c’s (Treat each cost element in all company codes in same way).
2) The Operative fiscal year variants in the company codes must match the fiscal year variant in controlling area.
3) You should execute period end closing in controlling for all company codes at same time.
4) The system only post reconciliation posting across company codes without taxes, which means that it cannot automatically create invoice.
5) Maintain controlling area - OKKP .
6) Maintain no. ranges for controlling documents - KANK
7) Maintain versions - OKEQ

COST ELEMENT ACCOUNTING

Cost Elements: Cost Elements Describe the origin of costs. Cost element classifies the organization valuated consumption of production factors within a controlling area.

Primary Cost Elements: These arise through the consumption of productions factors that are sourced externally. Primary cost elements are used for direct posting and must be accompanied in GL a/c’s in FI.

T-code : KA02 : The categories are follows 1) General primary cost element, 03 - Imputed cost element percentage method 4 - Imputed cost element, target = Actual Method, 11- Revenue elements, & 12 - sales deductions.

Secondary Cost Elements: Cost elements arise through the consumption of production factor’s that are provided internally i.e., by enterprise itself. Secondary cost elements are used strictly for internal controlling posting like assessments and settlements. T-code - ka06

Category: 12 - internal settlements, 31 - Result analyses, 41 - overhead’s, 42 - assessments etc. Cost Element Group - kah1

COST CENTER’S

Cost Center’s: Organizational Unit within a controlling area that represents a defined location of cost incurrence. The definition can be based on 1) Functional Requirement, 2) Allocation criteria, 3) Physical location and 4) Responsibilities for cost.

Change Cost center hierarchy - OKEON
Creation of Cost Center - KS01

Distribution: Was created to transfer primary costs from a sender cost center to receiving controlling objects. Distribution is primary cost elements.
Define Distribution - KSV1
Execute “” - KSV5

Assessment: Was created to transfer primary and secondary costs from a sender cost center to receiving controlling objects.
During assessment, the original cost elements are summarized into assessment cost elements (secondary cost element, category=42).

Define Assessment - KSU1
Execute Assessment - KSU5

Activity Types: Categorizes productions and services activities provided by a cost center to the organization and used for allocating costs for internal activities to the originates of the costs.

Creation of Allocation Cost elements - KA06
Creating/Maintaining the Activity types - KL01

Statistical key figures: Are used as the basis (tracing factor) on which to make allocations (assessments & distributions) and to analyze structural key figures.
read more...

6.07.2009

SAP FTP - How to

CALL FUNCTION 'FTP_CONNECT' DESTINATION
RFC_DESTINATION
EXPORTING USER = USER PWD = PASSWORD ACCT =
ACCOUNT HOST = HOST
TRACE = FTP_TRACE GUSER = GATEWAY_USER

GPWD = GATEWAY_PASSWORD GHOST =
GATEWAY_HOST
IMPORTING HANDLE = HANDLE ERROR = CERROR

EXCEPTIONS SYSTEM_FAILURE = 1
COMMUNICATION_FAILURE = 2.
read more...

3.23.2009

SAP Basics

Download it free!

I found this article for the Basic Learners in SAP. Please download and have a quick look on it.
read more...

3.22.2009

Printing remuneration statement (Pay slips) using HR Forms

Download PDF

Purpose

An HR-Form often functions as an enterprise's business card, which means it requires an
attractive graphical design. The HR Forms will enable you in future to create flexible reports with
an attractive layout for HR master data, personnel time data, and payroll results. Therefore, it will
be a central Human Resource tool that enables you to select data from various sources in a
uniform manner, which you can then design and print.

Tasks involved:


• Selecting data for HR forms
• Designing the layout of HR forms
• Activating HR forms
• Testing and correcting form printing
• Starting form printing
read more...

3.03.2009

SAP Functional Transaction Codes


Customer
XD01 Create Customer (Centrally)
XD02 Change Customer (Centrally)
XD03 Display Customer (Centrally)
XD04 Customer Changes (Centrally)
XD05 Block customer (centrally)
XD06 Mark customer for deletion (centr.)
XD07 Change Customer Account Group
XD99 Customer master mass maintenance
XDN1 Maintain Number Ranges (Customer)
Vendor
XEIP Number range maintenance: EXPIMP
XK01 Create vendor (centrally)
XK02 Change vendor (centrally)
XK03 Display vendor (centrally)
XK04 Vendor Changes (Centrally)
XK05 Block Vendor (Centrally)
XK06 Mark vendor for deletion (centrally)
XK07 Change vendor account group

Sales Order
VA00 Initial Sales Menu
VA01 Create Sales Order
VA02 Change Sales Order
VA03 Display Sales Order
VA05 List of Sales Orders
VA07 Compare Sales - Purchasing (Order)
VA08 Compare Sales - Purchasing (Org.Dt.)
Inquiry
VA11 Create Inquiry
VA12 Change Inquiry
VA13 Display Inquiry
VA14L Sales Documents Blocked for Delivery
VA15 Inquiries List
Quotation
VA21 Create Quotation
VA22 Change Quotation
VA23 Display Quotation
VA25 Quotations List
VA26 Collective Processing for Quotations
Contract
VA41 Create Contract
VA42 Change Contract
VA42W Workflow for master contract
VA43 Display Contract
VA44 Actual Overhead: Sales Order
VA45 List of Contracts
VA46 Coll.Subseq.Processing f.Contracts
Item Proposal
VA51 Create Item Proposal
VA52 Change Item Proposal
VA53 Display Item Proposal
VA55 List of Item Proposals
VA88 Actual Settlement: Sales Orders
Delivery (Outbound)
VL00 Shipping
VL01 Create Delivery
VL01N Create Outbound Dlv. with Order Ref.
VL01NO Create Outbound Dlv. w/o Order Ref.
VL02 Change Outbound Delivery
VL02N Change Outbound Delivery
VL03 Display Outbound Delivery
VL03N Display Outbound Delivery
VL04 Process Delivery Due List
VL06 Delivery Monitor
VL06C List Outbound Dlvs for Confirmation
VL06D Outbound Deliveries for Distribution
VL06F General delivery list - Outb.deliv.
VL06G List of Oubound Dlvs for Goods Issue
VL06I Inbound Delivery Monitor
VL06IC Confirmation of putaway inb. deliv.
VL06ID Inbound Deliveries for Distribution
VL06IF Selection inbound deliveries
VL06IG Inbound deliveries for goods receipt
VL06IP Inbound deliveries for putaway
VL06L Outbound Deliveries to be Loaded
VL06O Outbound Delivery Monitor
VL06P List of Outbound Dlvs for Picking
VL06T List Outbound Dlvs (Trans. Planning)
VL06U List of Uncheckd Outbound Deliveries
VL08 Confirmation of Picking Request
VL09 Cancel Goods Issue for Delivery Note
VL10 Edit User-specific Delivery List
VL10A Sales Orders Due for Delivery
VL10B Purchase Orders Due for Delivery
Customer management
FD01 Create Customer (Accounting)
FD02 Change Customer (Accounting)
FD02CORE Maintain customer
FD03 Display Customer (Accounting)
FD04 Customer Changes (Accounting)
FD05 Block Customer (Accounting)
FD06 Mark Customer for Deletion (Acctng)
FD08 Confirm Customer Individually(Actng)
FD09 Confirm Customer List (Accounting)
FD10 Customer Account Balance
FD10N Customer Balance Display
FD10NA Customer Bal. Display with Worklist
FD10NET Customer Balance Display
FD11 Customer Account Analysis
FD15 Transfer customer changes: send
FD16 Transfer customer changes: receive
FD24 Credit Limit Changes
FD32 Change Customer Credit Management
FD33 Display Customer Credit Management
FD37 Credit Management Mass Change
Pricing
V/03 Create Condition Table (SD Price)
V/04 Change Condition Table (Sales pr.)
V/05 Display Condition Table: (Sales Pr.)
V/06 Condition Categories: SD Pricing
V/07 Maintain Access (Sales Price)
V/08 Conditions: Procedure for A V
V/09 Condition Types: Account Determin.
V/10 Account Determination: Access Seqnc
V/11 Conditions: Account Determin.Proced.
V/12 Account Determination: Create Table
V/13 Account Determination: Change Table
V/14 Account Determination: Display Table
BOM
CS00 BOM Menu
CS01 Create Material BOM
CS02 Change Material BOM
CS03 Display Material BOM
CS05 Change Material BOM Group
CS06 Display Material BOM Group
CS07 Allocate Material BOM to Plant
CS08 Change Material BOM - Plant Alloc.
CS09 Display Allocations to Plant
CS11 Display BOM Level by Level
CS12 Multilevel BOM
CS13 Summarized BOM
CS14 BOM Comparison
CS15 Single-Level Where-Used List
CS20 Mass Change: Initial Screen
CS21 Mass Material Change: Initial Screen
CS22 Mass Document Change: Initial Screen
CS23 Mass Class Change: Initial Screen
CS25 Archiving for BOMs
CS26 BOM deletion
CS27 Retrieval of BOMs
CS28 Archiving for BOMs
CS31 Create class BOM
CS32 Change class BOM
CS33 Display class BOM
CS40 Create Link to Configurable Material
CS41 Change Material Config. Allocation
CS42 Display Material Config. Assignment
CS51 Create standard BOM
CS52 Change standard BOM
CS53 Display standard BOM
CS61 Create Order BOM
CS62 Change Order BOM
CS63 Display Order BOM
CS71 Create WBS BOM
CS72 Change WBS BOM
CS73 Display WBS BOM
CS74 Create multi-level WBS BOM
CS75 Change multi-level WBS BOM
CS76 Display multi-level WBS BOM
CS80 Change Documents for Material BOM
CS81 Change Documents for Standard BOM
CS82 Change documents for sales order BOM
CS83 Change documents for WBS BOM
CS84 Change documents for class BOM
CS90 Material BOM Number Ranges
CS91 Number Ranges for Standard BOMs
CS92 Number Ranges for Sales Order BOMs
read more...

1.11.2009

How To Do Configuration For Credit Management

Credit and risk management takes place in the credit control area. According to your corporate requirements, you can implement credit management that is centralized, decentralized, or somewhere in between.

An organizational unit that represents the area where customer credit is awarded and monitored. This organizational unit can either be a single or several company codes, if credit control is performed across several company codes. One credit control area contains credit control information for each customer.

For example, if your credit management is centralized, you can define one credit control area for all of your company codes.

If, on the other hand, your credit policy requires decentralized credit management, you can define credit control areas for each company code or each group of company codes.

Credit limits and credit exposure are managed at both credit control area and customer level. You set up credit control areas and other data related to credit management in Customizing for Financial Accounting. The implementation guide is under Enterprise Structure -> Definition or Assignment -> Financial Accounting and then Maintain credit control area. You assign customers to specific credit control areas and specify the appropriate credit limits in the customer master record.




read more...

8.25.2008

R/3 Functional Modules

R/3′S APPLICATIONS:-

R/3’s applications are modules. They can be used either alone or combined with other solutions. The integration capability of these applications increases the benefits derived for any company.

Logistics

Logistics comprises all processes involved in purchasing, materials management, manufacturing, warehousing, quality management, plant maintenance, service management and sales and distribution. All applications access a shared consistent database, supported by production data management.

SD: Sales & Distribution:- SD actively supports sales and distribution activities with outstanding functions for pricing, prompt order processing, and on-time delivery, interactive variant configuration, and a direct interface to profitability analysis and production.
PP: Production Planning and Control:- PP provides comprehensive process for all types of manufacturing: from repetitive, make-to-order, and assemble-to-order production, through process, lot and make-to-stock manufacturing, to integrated supply chain management with functions extended MRP and electronic kanban, plus optional interfaces to PDC, process control systems, CAD and PDM.
PS: Project System:- PS coordinates and controls all phases of a project, in direct cooperation with Purchasing and Controlling, from quotation to design and approval, to resource management and cost settlement.
MM: Materials Management :- MM optimizes all purchasing processes with workflow-driven processing functions, enables automated supplier evaluation, lowers procurement adn warehousing costs with accurate inventory and warehouse management, and integrates invoice verification.
QM: Quality Management :-QM monitors, captures, and manages all processes relevant to quality assurance along the entire supply chain, coordinates inspection processing, initiates corrective measures, and integrates laboratory information systems.
PM: Plant Maintenance:-PM provides planning, control, and processing of scheduled maintenance, inspection, damage-related maintenance, and service management to ensure availability of operational systems, including plants and equipment delivered to customers.
SM: Service Management:- SM provides highly integrated cusotmer service functionality to compete in today’s global markets.
PDM: Product Data Management:-PDM supports in creating and managing product data throughout the product life cycle.
FinancialsFianancials is a suite of integrated financial application components encompasses all aspects of financial accounting, investment management, controlling, treasury management, and enterprise controlling.


FI: Financial Accounting:- FI collects all the data in company relevant to accounting, providing complete documention and comprehensive information, and is at the same an up-to-the-minute basis for enterprise-wide control and planning.
CO: Controlling:- CO is a complete array of compatible planning and control instruments for company-wide controlling systems, with a uniform reporting system for coordinating the contents and procedures of company’s internal processes.
IM: Investment Management:- IM offers integrated management and processing of invetment measures and projects from planning to settlement, including pre-investment analysis and depriciation simulation.
TR: Treasury:-TR is a complete solution for efficient financial management that ensures the liquidity of worldwide company, its structures, financial assets, profitability and minimizes risks.
EC: Enterprise Controlling:-EC continuously monitors company’s success factors and performance indicators on the basis of specially prepared management information.
Human ResourcesHR provides solutions planning and managing company’s human resources, using integrated applicatons that cover all perosnnel management tasks and help simplify and speed the process.

PM: Personnel Management:- PM is a complete solution for personnel administration, recruitment management, travel management, benefits administration and salary administration.
OM: Organizational Management:-OM assists in maintaining an accurate picture of organization’s structure, no matter how fast it changes. It is systematic and forward planning tool that considers the final effects of all personnel events thus it’s complete solution for personnel cost planning.
PA: Payroll Accounting:-PA addresses payroll functions from a global point-of-view and gives the capability to centralize payroll processing or decentralize the data based on country or legal entities.
TM: Time Management:- TM is integrated with payroll accounting, controlling, production planning, plant maintenance, project system, external services and shift planning. It provides with a variety of standard reports that will assist in tracking and analyzing employee time with compeleteness and accuracy.
PD: Personnel Development:- PD assists with planning, monitoring, and analyzing scheduled seminars, training courses, and business events, registration and booking, price determination and invoicing.

read more...

8.21.2008

Unique concept of internal table in ABAP

Unique concept of internal table in ABAP :

Internal tables provide a means of taking data from a fixed structure and storing it in working memory in ABAP. The data is stored line by line in memory, and each line has the same structure. In ABAP, internal tables fulfill the function of arrays. Since they are dynamic data objects, the programmer is saved the task of dynamic memory management in his or her programs. Internal tables should be used whenever there is a need to process a dataset with a fixed structure within a program. A particularly important use for internal tables is for storing and formatting data from a database table within a program. They are also a good way of including very complicated data structures in an ABAP program.

Like all elements in the ABAP type concept, internal tables can exist both as data types and as data objects A data type is the abstract description of an internal table, either in a program or centrally in the ABAP Dictionary, that you use to create a concrete data object. The data type is also an attribute of an existing data object.

Internal tables as data types



Internal tables and structures are the two structured data types in ABAP. The data type of an internal table is fully specified by its line type, key, and table type.

Line type

The line type of an internal table can be any data type. The data type of an internal table is normally a structure. Each component of the structure is a column in the internal table. However, the line type may also be elementary or another internal table.

Line Type can also refer to an ABAP Object’s reference pointer value. If two ABAP Objects are not related, they do not have the same line type. The line type is stored in the value of the reference pointer and can be viewed in the debugger. If one object attempts to access another unrelated object’s components, you will receive an error specifying that the line types do not match.

Key

The key identifies table rows. There are two kinds of key for internal tables - the standard key and a user-defined key. You can specify whether the key is UNIQUE or NON-UNIQUE. Internal tables with a unique key cannot contain duplicate entries with the same key. The uniqueness depends on the table access method.

If a table has a structured line type, its default key consists of all of its non-numerical columns that are not references or themselves internal tables. If a table has an elementary line type, the default key is the entire line. An internal table which has a line type that is itself an internal table, has an empty key.

The user-defined key can contain any columns of the internal table that are not references or themselves internal tables. Internal tables with a user-defined key are called key tables. When you define the key, the sequence of the key fields is significant. You should remember this, for example, if you intend to sort the table according to the key.

Later versions of ABAP permit the definition of secondary keys.

Table type

The table type determines how ABAP will access individual table entries. Internal tables can be divided into three types:

Standard tables have an internal linear index. (Think of index as “record number”. It is not to be confused with a database index, for example). From a particular size upwards, the indexes of internal tables are administered as trees. In this case, the index administration overhead increases in logarithmic and not linear relation to the number of lines. The system can access records either by using the table index or the key. The response time for key access is proportional to the number of entries in the table. The key of a standard table is always non-unique. You cannot specify a unique key. This means that standard tables can always be filled very quickly, since the system does not have to check whether there are already existing entries.

Sorted tables are always saved sorted by the key. They also have an internal index. The system can access records either by using the table index or the key. The response time for key access is logarithmically proportional to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique or non-unique. When you define the table, you must specify whether the key is to be unique or not. Standard tables and sorted tables are known generically as index tables.

Hashed tables have no linear index. You can only access a hashed table using its key. The response time is independent of the number of table entries, and is constant, since the system access the table entries using a hash algorithm. The key of a hashed table must be unique. When you define the table, you must specify the key as UNIQUE.

Generic internal tables

Unlike other local data types in programs, you do not have to specify the data type of an internal table fully. Instead, you can specify a generic construction, that is, the key or key and line type of an internal table data type may remain unspecified. You can use generic internal tables to specify the types of field symbols and the interface parameters of procedures. You cannot use them to declare data objects.

Internal tables as dynamic data objects

Data objects that are defined either with the data type of an internal table, or directly as an internal table, are always fully defined in respect of their line type, key and access method. However, the number of lines is not fixed. Thus internal tables are dynamic data objects, since they can contain any number of lines of a particular type. The only restriction on the number of lines an internal table may contain are the limits of your system installation. The maximum memory that can be occupied by an internal table (including its internal administration) is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more than 2 million entries. The line types of internal tables can be any ABAP data types - elementary, structured, or internal tables. The individual lines of an internal table are called table lines or table entries. Each component of a structured line is called a column in the internal table.

Choosing a table type

The table type (and particularly the access method) that you will use depends on how the typical internal table operations will be most frequently executed.

Standard tables

This is the most appropriate type if you are going to address the individual table entries using the index. Index access is the quickest possible access. You should fill a standard table by appending lines (ABAP APPEND statement), and read, modify and delete entries by specifying the index (INDEX option with the relevant ABAP command). The access time for a standard table increases in a linear relationship with the number of table entries. If you need key access, standard tables are particularly useful if you can fill and process the table in separate steps. For example, you could fill the table by appending entries, and then sort it. If you use the binary search option with key access, the response time is logarithmically proportional to the number of table entries.

Sorted tables

This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.

Hashed tables:

This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.


read more...

8.15.2008

AUTO INSURANCE QUOTE

Use
SAP Policy Management (FS-PM) is an integrated policy management system that is suitable for insurance companies operating on a global basis and for the regional market. This is guaranteed by integration in the SAP landscape.

Integration - auto insurance quote
SAP Policy Management is a central component of the insurance solution portfolio (SAP for Insurance), based on SAP NetWeaver 2004s (SAP NetWeaver Application Server ABAP 7.0).

This integration ensures that the communication with other SAP components, such as FS-BP (Business Partner), FS-CD (Collections/Disbursements), FS-CM (Claims Management), FS-ICM (Incentives & Commission Management), FS-RI (Reinsurance), and additional components is possible using defined interfaces. You can also connect systems from other providers.

Features
The following graphics show an overview of SAP for Insurance and the system architecture of SAP Policy Management:



Overview of architecture of SAP Policy Management. Auto insurance and statutory health insurance are potential LoB modules.

SAP Policy Management is divided into a basic part and into lines of business parts with industry-specific product models and business processes/transactions.

The Product Engine (msg.PM) linked to SAP Policy Management delivers the definition of the product structure used as the basis for policies, and for rating and plausibility check rules, and it also executes the calculations for each insurance product.

For more information, see:

● Collections/Disbursements

● In-Force Business Management

● Product Engine (msg.PM)

● Lines of Business

● Object Management

● Journal Management

● Fund Management

● Correspondence

● Accounting Component



read more...

8.13.2008

Send report as attachment in background

REPORT zpwtest .

TABLES : t001 .
TYPE-POOLS slis .

DATA : t_t001 TYPE TABLE OF t001 ,
t_abaplist TYPE TABLE OF abaplist .

DATA : w_abaplist TYPE abaplist .

SELECT-OPTIONS : s_bukrs FOR t001-bukrs OBLIGATORY .
PARAMETERS : p_list TYPE c NO-DISPLAY .

START-OF-SELECTION .

IF sy-batch = 'X' AND p_list IS INITIAL .

* Submit report and get list in memory
SUBMIT zpwtest EXPORTING LIST TO MEMORY
WITH s_bukrs IN s_bukrs
WITH p_list = 'X'
AND RETURN.

* Get the list from memory.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = t_abaplist
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

* Send report to mail receipent
PERFORM send_mail .

ELSE.
PERFORM select_data .
PERFORM display_data .
ENDIF.

*SO_NEW_DOCUMENT_SEND_API1

*&---------------------------------------------------------------------*
*& Form select_data
*&---------------------------------------------------------------------*


FORM select_data.

SELECT *
INTO TABLE t_t001
FROM t001
WHERE bukrs IN s_bukrs .

ENDFORM. " select_data

*&---------------------------------------------------------------------*
*& Form display_data
*&---------------------------------------------------------------------*
FORM display_data.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_structure_name = 'T001'
TABLES
t_outtab = t_t001
EXCEPTIONS
program_error = 1
OTHERS = 2.

IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

ENDFORM. " display_data

*&---------------------------------------------------------------------*
*& Form send_mail
*&---------------------------------------------------------------------*
FORM send_mail.

DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 10,
compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
w_object_hd_change LIKE sood1,
compressed_size LIKE sy-index.


* Fot external email id
* receiver_list-recextnam = 'XXXXXXXXXXXX@XXXXXX.COM'.
* receiver_list-recesc = 'E'.
* receiver_list-sndart = 'INT'.
* receiver_list-sndpri = '1'.

* FOr internal email id
receiver_list-recnam = sy-uname .
receiver_list-esc_des = 'B'.
APPEND receiver_list.


* General data
w_object_hd_change-objla = sy-langu.
w_object_hd_change-objnam = 'Object name'.
w_object_hd_change-objsns = 'P'.
* Mail subject
w_object_hd_change-objdes = 'Message subject'.
* Mail body
APPEND 'Message content' TO message_content.

CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = compressed_size
TABLES
in = t_abaplist
out = compressed_attachment.


DESCRIBE TABLE compressed_attachment.

CLEAR packing_list.
packing_list-transf_bin = 'X'.
packing_list-head_start = 0.
packing_list-head_num = 0.
packing_list-body_start = 1.
packing_list-body_num = sy-tfill.
packing_list-objtp = 'ALI'.
packing_list-objnam = 'Object name'.
packing_list-objdes = 'Attachment description'.
packing_list-objlen = compressed_size.
APPEND packing_list.

CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = w_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = message_content
receivers = receiver_list
packing_list = packing_list
att_cont = compressed_attachment.


ENDFORM. " send_mail


read more...

8.08.2008

SAP in Kanji for Japanese People

COLUMBIA, Md. -- RWD Technologies, Inc. today announced that its end-user productivity solution, RWD Info Pak(TM), is now available in Kanji for its SAP customers in Japan. Through SAP Learning Solutions, RWD's joint venture with SAP in the Asia-Pacific region, RWD has released Info Pak Publisher and Help Launchpad in Japan. SAP customers in Japan can now rapidly build world-class end-user...

COLUMBIA, Md. -- RWD Technologies, Inc. today announced that its end-user productivity solution, RWD Info Pak(TM), is now available in Kanji for its SAP customers in Japan. Through SAP Learning Solutions, RWD's joint venture with SAP in the Asia-Pacific region, RWD has released Info Pak Publisher and Help Launchpad in Japan. SAP customers in Japan can now rapidly build world-class end-user...
read more...

7.31.2008

Complete Transaction Set

Transactions

* search_sap_menu - Finds the menu path to a transaction - Can either type in TX code in the search criteria or a description- ie. 1st try SE38 and then ABAP.... the returned result is 'bottom to top'.

EDI Specific Transactions

* VOE1 - Translation between EDI categories and SD item categories
* VOE2 - Table EDSC view. Customer link to sales area detail
* VOE3 - Table view EDPVW. Add partner types that will be transferred to the IDoc
* VOE4 - Table view EDPAR. Link external partner number with our internal number
* WEDI- EDI Administrator Menu
* BALE - Idoc Administration

Scheduling agreements

* OVA9 Create entries for each sold-to customer for which you will receive EDI schedule releases. At implementation, the only field that needs to be maintained is "Check PO number," which causes SAP to make sure that the PO number sent on the release matches the PO number on the schedule agreement. This transaction updates table T663A. SAP will not post an EDI schedule release, if this record is missing.


Transactions

* search_sap_menu - Finds the menu path to a transaction - Can either type in TX code in the search criteria or a description- ie. 1st try SE38 and then ABAP.... the returned result is 'bottom to top'.

EDI Specific Transactions

* VOE1 - Translation between EDI categories and SD item categories
* VOE2 - Table EDSC view. Customer link to sales area detail
* VOE3 - Table view EDPVW. Add partner types that will be transferred to the IDoc
* VOE4 - Table view EDPAR. Link external partner number with our internal number
* WEDI- EDI Administrator Menu
* BALE - Idoc Administration

Scheduling agreements

* OVA9 Create entries for each sold-to customer for which you will receive EDI schedule releases. At implementation, the only field that needs to be maintained is "Check PO number," which causes SAP to make sure that the PO number sent on the release matches the PO number on the schedule agreement. This transaction updates table T663A. SAP will not post an EDI schedule release, if this record is missing.

*OVAI Create entries for each Vendor / Partner description combination. (Vendors must match sold-to Acct. at Cust., and Partner descriptions must match ship-to Partner descriptions.) This transaction updates table T661W. SAP uses this table to determine the schedule agreement sold-to partner.

* OVAJ If you would like SAP to post schedule requirements using discrete dates only, instead of weekly and/or monthly buckets, you can indicate the days of the week that you deliver to this customer. SAP will divide the customer's quantity for a week or month evenly into the days of the week specified by the distribution function code. This code must be sent in the DELINS IDoc in field E1EDP16-ETVTF.

IDoc Transactions

* WE09 / WE02 IDoc lists according to content. View IDocs via specific IDoc number or business application detail contained within the contents of a segment.
* WE05 View IDocs
* WE19 EDI test tool. Use to test inbound Function module changes.
* WE20 Partner profile configuration. Add partner detail together with inbound and outbound relationships. We also incorporate message control on the outbound IDocs. Utilize the organizational units to trap functional errors for further processing
* WE30 Create IDoc extension type
* WE31 Segment create
* WE57 Assign function module to logical message and IDoc type
* WE60 IDoc type documentation tool
* WE82 Link Release detail to Extension IDoc Type
* BD55 Conversion rule user exit. Link conversion rule user exit to the different system \ partner combinations
* BD87 Reprocess IDocs in error or waiting for action. (Both inbound and outbound in 4.6. Use BD88 in prior versions)
* BALA ALE Application Distribution
* BALM ALE Master Data Distribution

Output determination
856 - ASN

* V/36 Maintain output determination for deliveries (Output determination procedures). V10000 (Header output) has condition type LAVA (usually with requirement 1 NB: Use V/84 – V7ALLE – SHAD for grouped ASNs. I.e. Group deliveries into shipments
* VV21,VV22,VV23 Create output condition records for shipping. LAVA – WE (Partner function) - We must add each new partner with VV21
* VL71 Reissue output for deliveries

810 - Invoice

* V/54 Maintain access sequence for billing documents
* VV31,VV32,VV33 Create condition records for billing documents. (RD00 – RE Billing party)
* VF31 Reissue output for billing documents

855 – Order Response

* V/30 Sales document output types (BA00)
* V/48, V/32, V/43 Maintain access sequence for sales documents
* VV11,VV12,VV13 Create condition records for sales documents. (BA00 – SP Sold to party)
requirements coding

* V/27 Create code to check requirements for output control. Used to check ZBA0 against BA00 output.

Sales & Distribution
Sales order / Quote / Sched Agreement / Contract

* VA02 Sales order change
* VA05 List of sales orders
* VA22 Quotation change
* VA32 Scheduling agreement change
* VA42 Contract change

Billing
* VF02 Change billing document
* VF11 Cancel Billing document
* VF04 Billing due list
* FBL5N Display Customer invoices by line
* FBL1N Display Vendor invoices by line

Delivery


* VL02N Change delivery document
* VL04 Delivery due list
* VKM5 List of deliveries
* VL06G List of outbound deliveries for goods issue
* VL06P List of outbound deliveries for picking
* VL09 Cancel goods issue
* VT02N Change shipment
* VT70 Output for shipments

General

* VKM3, VKM4 List of sales documents
* VKM1 List of blocked SD documents
*VD52 Material Determination

Workflow

* SWEAD Event queue administration
* SWE2 Event type linkages
* SWE3 Event linkages
* PPOME Organizational Unit Maintenance
* SWE5 Consistency Checks for Event Linkages
* SWUD Workflow Diagnostic Tool

General

The following section provides detail on other useful SAP areas.
Create delivery via transfer orders

Once the order is saved proceed through the following steps. The process assumes the item has values in the warehouse bin.

* VL04 Delivery due list. Run the delivery due with your order number to create the delivery
* LT03 Create Transfer Order. EG. Warehouse: 101 and enter. Picking background. Save
The Transfer order should now be saved. It now needs to be confirmed.

* In LT03 go to menu option Transfer Order -> Confirm – Transfer Order
* Enter
* Save

The transfer order is now confirmed.

* VL02N Delivery change. EG: Edit the delivery to do the following Pack – External customer material number = COO. External delivery number – Waybill number. BOL – Transport tag. Carrier – Header partner – SP (E.G. FXP). Tracking number = Packing Unit

Purchase Orders

* ME22N PO Change
* ME57 Create PO from purchase requisition

ATP

* CO09 Availability overview

Goods Movement

* MIGO Post goods receipt
* MB51 Material document list
* MB01 Goods Movement

Other

* MD04 Material Requirements. Shows material requirements and releases against materials
* SE38 ABAP Editor. Used to modify ABAP programs
* SM01 Transaction list. Lock transactions in the system. Also a good tool to see what transactions are available
* SHDB Transaction recorder (BDC)
* CMOD User exit \ project tool. Coordinates your changes into projects for the purpose of activating all user exits for a particular project. A user exit needs to be modified before it will work
* SE16 Table contents display
* SOST View mails sent externally from SAP
* SU53 Check authorization object
* SQVI Table Quickviewer – Used to created quick client dependent reports
* ST22 ABAP Dump Analysis
* ST01 System trace
* ST11 Display developer trace
* ST05 SQL Trace
* SM21 System log
* ST22 Display short dumps
* SM12 Display locked entries

Programs

* List of ABAP Reports

Idoc

* RBDAPP01 Post inbound Idocs to application documents
* RBDAGAI2 Re-processing of IDocs after ALE input error
* RBDAGAIE Reprocessing of edited IDocs
* RBDMANIN Start error handling for non-posted Idocs
* RSEINB00 Idoc inbound processing by file
* RSEOUT00 Process outbound IDocs

General

* RV80HGEN Report 'RV80HGEN' for including customer-specific routines in the SAP standard source code is not included automatically as an XPRA in the object list of the transport request. See OSS note 0385067. This report needs to be run in target clients once you have implemented a custom requirements definition.
* RSWUWFML Report that interrogates the Workflow inbox, based on certain selections, and then forwards a notification to the respective users that they have email waiting in the SAP system. The auto-forwarding assignment of an email address to a user can be accomplished by the administrator and tx: SO36 or by the user themselves using tx: SO13. Use tx: SOST to view email status’ sent from SAP.
* RHSOBJCH Corrects the following error in workflow customizing:

Transport object PDST

Information Table SOBJ is consistent as regards key tables

***Error*** Table HRP1600 Not an entry in table SOBJ

Information Table SOBJ is consistent as regards PAD tables

See note 134311 (point 2). Note 60801 also recommends the same steps regarding RHSOBJCH.

* RSPO0075 Run report RSPO0075 to activate access method M for device types.




read more...

ABAP - Sample Resume

Career Profile:
IT Professional with three years of experience in programming, database
management, network administration and SAP R/3 ABAP Workbench
Development.

Technical Skills & Applications:
ERP: SAP R/3 Ver. 4.0B
ABAP: Reporting, SAPScript, Dialog Programming, BDC, Logical Databases,
ABAP Query, RFC, ALE-EDI, IDOC, BAPI, jCO
Programming Languages: ABAP Workbench, Visual Basic.
RDBMS: Oracle, or MS SQL Server, or MySQL
Operating Systems: MS Windows 9x, NT, Red Hat Linux

Professional Experience:
Your currently working company and experience
Company Name And Address
Position(XXXXXXXX)
From Period till Today

Career Profile:
IT Professional with three years of experience in programming, database
management, network administration and SAP R/3 ABAP Workbench
Development.

Technical Skills & Applications:
ERP: SAP R/3 Ver. 4.0B
ABAP: Reporting, SAPScript, Dialog Programming, BDC, Logical Databases,
ABAP Query, RFC, ALE-EDI, IDOC, BAPI, jCO
Programming Languages: ABAP Workbench, Visual Basic.
RDBMS: Oracle, or MS SQL Server, or MySQL
Operating Systems: MS Windows 9x, NT, Red Hat Linux

Professional Experience:
Your currently working company and experience
Company Name And Address
Position(XXXXXXXX)
From Period till Today

Your Previous working company and experience
Company Name And Address
Position(XXXXXXXX)
From Period to period


-Worked on projects as an ABAP consultant in an ERP team
-Developed custom ABAP reports(classic and interactive) for management
as needed
-Worked in FI, PP, MM modules
-Designed dialog programs using ABAP workbench tools
-Produced most of the new business forms with SAPscript
-Assisted in migrating legacy data to R/3 using BDC
-Configured ALE Process across two application servers and sent master
data(material master, vendor master) through
Application Link Enabling(ALE)
-Facilitated printing of documents posted in FI module.
-Created a Sales Order form in Visual Basic using BAPI


ABAP Certifications:
Year. Certified ABAP Consultant
Year. Other Skill Certification.


Hope this will help u creating ur resume...

Any Suggestions.... Share it in Comments.
read more...

7.01.2008

SAP LOTUS NOTES INTEGRATION

Introduction - Read it... if u need More info... Post ur E-Mail ID.. Wil send u
Today, organizations depend on many tools and technologies to manage the information and ensure sharing of information, using both the enterprises, Intranet and the Internet.
Two of these technologies that are extensively used, include SAP R/3 to structure the data and Lotus Notes to collaborate this data. But managing both of these simultaneously can become an arduous job. Keeping this in mind, many companies came out with various approaches by using, which the two technologies can be brought together on one platform and their functionalities can be combined in one application. This application enables organizations to provide employees with single point of user-friendly access to data, enables them to access data offline and monitor workflows spanning all areas of the organization and ensures automated data entry to R/3. This text is aimed at explaining the integration and the steps that are to be taken to integrate SAP R/3 and Lotus/Domino.
SAP R/3 is one of the most reliable process-oriented applications that have various modules such as Financial Accounting, Material Management etc to take care of resource management requirements of an organization. On the other hand Lotus Notes is an extremely powerful Groupware application in the market today. A number of Enterprise are using SAP R/3 as well as Lotus notes to structure, collaborate and exchange information within and outside the organization. The integration ensures a single point of user-friendly access to data, offline data access and automated accurate data entry to R/3.
read more...

6.14.2008

ALE - Data Distribution Model

One of the challenges in designing distributed applications is the data distribution model, which consists of all participating systems and the messages to be exchanged by the system. Data distribution in R/3 to R/3 environment is easily achieved but there are several bottlenecks in R/3 to non-R/3 scenarios – for example data mapping - as non-R/3 systems seldom have as rich an organizational representation as R/3 has. The following figure illustrates the concept of data distribution using ALE.

Figure 1: ALE FRAMEWORK

Enterprise business objects of a SAP system are distributed with the help of BAPIs (Business Application Programming Interfaces). ALE acts as a layer that incorporates the inter-linking of business objects at the application level. The ALE layer provides the following services:
Applications services: this layer provides ALE with an interface (for instance: BAPI) to R/3 to facilitate data exchange to or from external R/3 systems.
Distribution services: the onus of filtering and converting messages exchanged between SAP and non-SAP systems is on the distribution layer of ALE. This service is the core service and acts as a sandwich layer between application and communication layers.
Communications services: ALE supports synchronous as well asynchronous communication. Synchronous messaging is used for the direct reading of control data, while asynchronous messaging is used for transmitting or receiving application data.
The implementation of ALE is achieved with the help of external converters (ALE converters), which connect SAP applications to non-SAP applications. In simple words, external converters are generic-format conversion programs, which contain specific converter functions. The capabilities of the external converter will be discussed later in this article.
read more...

6.02.2008

SAP Quality Management

SAP QM Tips and Quality Management Discussion Forum
Practical and helpful SAP QM Stuff to assist those supporting the SAP Quality Management Modules. If you have any SAP Quality Management question, please feel free to raise it in the SAP QM Forum.
The integration of the QM application component in the R/3 System allows quality management tasks to be combined with those in other applications (such as materials management, production, sales and distribution and cost accounting). SAP has developed and implemented three quality management systems certified according to ISO 9001:2000
SAP Global Development -- Ensures that SAP solutions meet the highest possible standards
SAP Active Global Support -- Provides tailored services to maintain the quality of installed solutions
SAP IT -- Ensures the stability and quality of SAP's internal IT infrastructure; SAP IT is certified according to the requirements specified in ISO 27001:2005 Each system defines standardized, certified processes for its domain. And use of a system enables employees to share and apply best practices within their domain.These three quality management systems merge their common information (management review, document control, record control, audits, corrective and preventive action, and personnel development), thereby ensuring the consistent application of this information across SAP.
read more...

6.01.2008

Important Tables in SAP

FI-AA-AA Asset Accounting: Basic Functions – Master Data
(AA)

ANKA Asset Classes: General Data ANLKL
ANKP Asset Classes: Fld Cont Dpndnt ANLKL / AFAPL
on Chart of Depreciation
ANKT Asset Classes: Description SPRAS / ANLKL
ANKV Asset Classes: Insurance Types ANLKL / VRSLFD
ANLA Asset Master Record Segment BUKRS / ANLN1 / ANLN2
ANLB Depreciation Terms BUKRS / ANLN1 / ANLN2 /
AFABE / BDATU
ANLT Asset Texts SPRAS / BUKRS / ANLN1 /
ANLN2
ANLU Asset Master Record User Fields .INCLUDE / BUKRS /
ANLN1 / ANLN2
ANLW Insurable Values BUKRS / ANLN1 / ANLN2 /
(Year Dependent) VRSLFD /GJAHR
ANLX Asset Master Record Segment BUKRS / ANLN1 / ANLN2
ANLZ Time Dependent Asset BUKRS / ANLN1 / ANLN2 /
Allocations BDATUFI-AA-AA Asset Accounting: Basic Functions – Master Data 2.0
(AA2)
ANAR Asset Types ANLAR
ANAT Asset Type Text SPRAS / ANLAR
FI-AA-AA Asset Accounting: Basic
(AB) Functions –Asset Accounting

ANEK Document Header Asset Posting BUKRS / ANLN1 / ANLN2 /
GJAHR /
LNRAN
ANEP Asset Line Items BUKRS / ANLN1 / ANLN2 /
GJAHR /LNRAN / AFABE

ANEV Asset Downpymt Settlement BUKRS / ANLN1 / ANLN2 /
GJAHR / LNRANS

ANKB Asset Class: Depreciation ANLKL / AFAPL / AFABE /
Area BDATU
ANLC Asset value Fields BUKRS / ANLN1 / ANLN2 /
GJAHR / AFABE
ANLH Main Asset Number BUKRS / ANLN1
ANLP Asset Periodic Values BUKRS / GJAHR / PERAF /
AFBNR /ANLN1 / ANLN2 /
AFABERFI-SL-VSR Special Purpose Ledger: Validation, Substitution
(GVAL) and Rules
GB03 Validation / Substitution User VALUSER
GB92 Substitutions SUBSTID
GB93 Validation VALID
read more...

5.14.2008

Step-by-Step Instructions,Practical Advice,and other tips and trciks


SAP R/3 for Everyone is the nontechnical user's guide to working with SAP R/3, the leading business enterprise software product in the world. Written and road-tested by experienced SAP R/3 users and trainers, this book saves typical SAP R/3 users time and trouble by providing them with the universal skills needed to work with any module of this complex software.SAP R/3 can be used effectively by anyone who can perform a handful of simple procedures that are employed in nearly every SAP R/3 transaction. The authors explain these procedures in plain English, using illustrations and real-world examples.After a brief explanation of the architecture and operation of SAP R/3, readers get step-by-step instruction in* Logging on and off, managing passwords, and customizing the SAP application window and screens* Navigating between screens with menu folders, transaction codes, and the menu bar* Setting up customized favorites folders with quick links to the initial screens of transactions and other useful resources* Understanding the four basic transaction types* Working on initial screens, including tips and techniques for entering codes, searching for codes, customizing initial screens, and using multiple selection screens and selection options* Customizing output reports with filters, sorts, sums, and display variants* Exporting output reports to Microsoft Excel and Word and e-mailing output reports to other SAP usersPractical and jargon-free, SAP R/3 for Everyone provides readers with the skills and confidence they need to efficiently conduct any business activity with SAP R/3


Links to download :

http://rapidshare.de/files/4543090/Prentice.Hall.PTR.SAP.R3.for.Everyone.Jul.2005.zip.html
read more...