Thursday, August 5, 2010

Send mail via ABAP functions Module to SAP mail inbox

REPORT ZEMAIL_SEND.
* data for send function
DATA DOC_DATA LIKE SODOCCHGI1.
DATA OBJECT_ID LIKE SOODK.
DATA OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE.
DATA RECEIVER LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
OBJCONT-LINE = ‘text’. “Content of email that you want to mail
APPEND OBJCONT.

* insert receiver (sap name)
REFRESH RECEIVER.
CLEAR RECEIVER.
MOVE: SY-UNAME TO RECEIVER-RECEIVER,
'X' TO RECEIVER-EXPRESS,
'B' TO RECEIVER-REC_TYPE.
APPEND RECEIVER.
* insert mail description
WRITE ‘Test Mail’ “Subject of mail
TO DOC_DATA-OBJ_DESCR.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_DATA
IMPORTING
NEW_OBJECT_ID = OBJECT_ID
TABLES
OBJECT_CONTENT = OBJCONT
RECEIVERS = RECEIVER
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.

Wednesday, July 21, 2010

Difference between user-exit & customer-exit


·         USER EXITS are FORMS and are called by SAP standard programs using PERFORM.

CUSTOMER EXITS are FUNCTIONS so they are called using CALL FUNCTION (or more exactly CALL CUSTOMER FUNCTION).

·         Inside the form (user exit) you can read and change almost any global data from host program.
Inside a function (customer exit) you can only access your import/export/changing/tables parameters.


·         User exits are more flexible because you have more information to use in your code but on the other hand, it is very easy to manipulate erroneously global data and lead the standard program to a dump or even to make database inconsistent. Customer exits are more restrictive but you are sure any change you can make to any parameters will never lead to inconsistency

·         User-exit doesn’t have any classification. In customer-exit we have function-module exit, screen exit and menu exit.

·         User exits are basically designed For SD module. Customer exits are available for M, SD, FI and HR. Basically designed for all modules.

Tuesday, July 20, 2010

About SAP


Systems, Applications and Products in Data Processing
"SAP is one of the largest software company in the world. Its ranking is after Microsoft, IBM and Oracle in terms of market capitalization. SAP is the largest Enterprise Resource Planning (ERP) solution software provider. SAP's products focus on ERP (enter pries resource planning), which it helped to pioneer. The company's main product is SAP R/3;the "R" stands for real time data processing and the number 3 relates to a three-tier application architecture: database, application server and client SAPgui ( presentation layer ).Other major product offerings include Advanced Planner and Optimizer (APO),Business Information Warehouse(BW),Customer Relationship Management(CRM),Supplier Relationship Management(SRM), Human Resource Management Systems(HRMS),Product Lifecycle Management(PLM), Exchange Infrastructure(XI) and Knowledge Warehouse(KW).Reportedly, there are over 91,500 SAP installations at more than 28,000 companies as per the statistics of 3 years before. SAP products are used by over 12 million people in more than 120 countries." In this website we trying to collect, arrange different SAP materials for professionals seeking for references. Mainly we are trying to collect ABAP tutorials, BAPI, LSMW, IDOC, ALE, ABAY syntx, NetWeaver, SAP HR, SAP MM, SAP SD, FICO, PP, PM like functional modules, interview questions and answers. latest sap jobs information also available in the site. Users can also contribute their materials or articles for helping other professionals. It’s just an online help for the SAP professionals searching for materials, tutorials and PDF study guides, FAQS and jobs

Monday, July 19, 2010

About ABAP





ABAP (Advanced Business Application Programming, originally Allgemeiner Berichts-Aufbereitungs-Prozessor, German for general report creation processor is a very high level programming language created by the German software company SAP. It is currently positioned, alongside the more recently introduced Java, as the language for programming SAP's Web Application Server, part of its Net Weaver platform for building business applications. Its syntax is somewhat similar to COBOL.

The ABAP programming language was originally used by developers to develop the SAP R/3 platform. It was also intended to be used by SAP customers to enhance SAP applications – customers can develop custom reports and interfaces with ABAP programming. The language is fairly easy to learn for programmers but it is not a tool for direct use by non-programmers. Good programming skills, including knowledge of relational database design and preferably also of object-oriented concepts, are required to create ABAP programs.


ABAP remains the language for creating programs for the client-server R/3 system, which SAP first released in 1992. As computer hardware evolved through the 1990s, more and more of SAP's applications and systems were written in ABAP. By 2001, all but the most basic functions were written in ABAP. In 1999, SAP released an object-oriented extension to ABAP called ABAP Objects, along with R/3 release 4.6.

SAP's most recent development platform, NetWeaver, supports both ABAP and Java.