What is IDoc ?

VN:F [1.9.3_1094]
Rating: 6.7/10 (3 votes cast)

About IDoc

If you are dealing with transfer of data between SAP or non-SAP systems, you would have certainly come across the term IDoc. In this post, lets get an overview about IDoc.

  • IDoc stands for Intermediate Documents. It’s a data container used to exchange data between two software processes. It’s created by an outbound ALE (Application link enabling)/EDI (Electronic data interchange) process and acts as input to an inbound ALE/EDI process.
  • Data in IDoc are stored on database in different database tables instead of flat files.
  • Every IDoc has a unique number.
  • IDocs are independent of sending and receiving systems.
  • IDocs are based on EDI standards, but is closest to EDIFACT standard.
  • Different outbound and inbound processes can use the same IDoc e.g. IDoc type ORDERS01 is used by MM module for purchase order as well as by SD module for accepting sales order.
  • IDocs contain data in character format (no binary data) i.e. can be viewed in simple text viewer.
  • Continue reading »

VN:F [1.9.3_1094]
Rating: 6.7/10 (3 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Enhancements – User Exits

VN:F [1.9.3_1094]
Rating: 7.7/10 (3 votes cast)

 1. What is a User Exit?

  • User exits allow you to add additional functions to the SAP standard.
  • Programs with user exits contain Subroutine (Form Routines) calls at certain points in their syntax that are identified by the prefix USEREXIT.
  • The actual User Exits Form Routines are located in an Include Program that has been assigned to a Module Pool Program.. The following diagram explains this:

image  Continue reading »

VN:F [1.9.3_1094]
Rating: 7.7/10 (3 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

SAP Solutions – Product Overview

VN:F [1.9.3_1094]
Rating: 7.0/10 (1 vote cast)

Hi Friends… In this post, we will begin discussion on Unit I – SAP Solutions of ABAP Workbench Fundamentals (TAW10_1). This unit is just a preface to newbies in SAP to give them a brief idea about the offerings of SAP to the customers. Though important, its not the most important topic to focus from ABAP certification point of view. But its always good to know about the context where you are going to work.

SAP offers a wide variety of enterprise solutions catering to different business areas for large, mid-size and small enterprises.

SAP Solutions can be broadly classified into following elements:

SAP Netweaver

SAP NetWeaver is the technological infrastructure for all SAP solutions. All other SAP solutions are built upon it. ABAP workbench and runtime are also part of this element. This can very well independently be used to develop customer applications also. This element will be dealt more in my next post. Continue reading »

VN:F [1.9.3_1094]
Rating: 7.0/10 (1 vote cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

SAP ABAP Certification Online Training & Tutorial

VN:F [1.9.3_1094]
Rating: 8.3/10 (7 votes cast)

Hello Friends!!!! Welcome to the SAP ABAP Certification Online Training & Tutorial series presented by How2SAP.com. Some of you would be wondering, what has inspired me to start this series of posts. You would be thinking, why am I starting this series, when there are already well defined ABAP certification course materials provided by SAP.

The reason lies behind my own experiences during preparing for SAP ABAP certification examination. Any book or study material is successful only if it perfectly knows its readers, their level of knowledge in the area being dealt. Though, ABAP certification materials provided by SAP is very comprehensive and exhaustive, it just seems to be a huge bulk of information put in front of you. When you start reading it, very often you would find repetitive information at some places and on the other hand, not even doing justice to many important topics. Above all this, the study material consists more than 2500 pages, good enough to test a normal human being’s patience. Continue reading »

VN:F [1.9.3_1094]
Rating: 8.3/10 (7 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Data Compression/Decompression in ABAP using CL_ABAP_GZIP

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)

Netweaver provides a service class CL_ABAP_GZIP to achieve this. This class has methods to compress as well as decompress text as well as binary data. I am briefly describing the methods of this class.
COMPRESS_TEXT:
This method is used to compress text data and get the compressed binary data. This method takes a character sequence (CHAR of any length, STRING etc.) input – TEXT_IN and returns compressed binary (XSTRING, RAW) output – GZIP_OUT.
DECOMPRESS_TEXT:
This method is used to de-compress compressed binary data and retrieve the text data back. This method takes a binary (XSTRING, RAW) input – GZIP_IN and returns character sequence (CHAR of any length, STRING etc.) output – TEXT_OUT.
COMPRESS_BINARY:
This method is used to compress binary data. This method takes a binary (XSTRING, RAW) input – RAW_IN and returns compressed binary (XSTRING, RAW) output – GZIP_OUT.
DECOMPRESS_BINARY:
This method is used to de-compress compressed binary data and retrieve the original binary data back. This method takes a binary (XSTRING, RAW) input – GZIP_IN and returns binary (XSTRING, RAW) output – RAW_OUT.
Soon, I will come back with more utilities in ABAP which make our lives easier. Till then…

Hi friends!!!

Have you ever felt the need of compressing large text or binary data in ABAP. I am sure whether or not you have come across it till now, it would prove to be very handy knowing how to do it. I can mention few example situations where you could use it. Suppose, you have large amount of text e.g. comments, notes etc. which need to be persisted in the database tables. Another example could be a case where you need to save a serialized object(instance) in the database which you later want to use.

Netweaver ABAP provides a service class CL_ABAP_GZIP to achieve this. This class has methods to compress as well as decompress text as well as binary data. I am briefly describing the methods of this class.

COMPRESS_TEXT:

This method is used to compress text data and get the compressed binary data. This method takes a character sequence (CHAR of any length, STRING etc.) input – TEXT_IN and returns compressed binary (XSTRING, RAW) output – GZIP_OUT.

DECOMPRESS_TEXT: Continue reading »

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Multi-line ALV using ROW_POS in field catalog

VN:F [1.9.3_1094]
Rating: 6.0/10 (1 vote cast)

Does you business requirement needs single line item in ALV to be displayed in multiple rows/lines for better readability? You then surely need a multi-line ALV, which can be implemented by just a simple tweaking in your ALV field catalog.

You can achieve this objective using property ROW_POS of Field catalog. Just assign a value between 1 to 3 to each of the records (denoting output internal table’s columns/fields) in field catalog. That’s it. Value is restricted between 1 and 3 since ALV can handle maximum of 3 rows for 1 ALV line item. Continue reading »

VN:F [1.9.3_1094]
Rating: 6.0/10 (1 vote cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Persisting SET/GET Parameter values in User Profile

VN:F [1.9.3_1094]
Rating: 8.5/10 (2 votes cast)

In my previous posts on SET/GET Parameters, Using SET/GET Parameter ID in SAPAssociating SET/GET Parameters to Screen elements, I kept mentioning that SET/GET parameters are stored in the SAP memory which is specific to one user/terminal session and shared accross all the main/external sessions within the particular user/terminal session. This implies that as soon as the user/terminal session ends i.e. user logs out of the system, the contents of the attached SAP memory is lost. This also means that all the values of SET/GET parameters in the SAP memory is wiped off.

So, how would the user be able to see his screens defaulted to his last used field values when he logs on next time?

Continue reading »

VN:F [1.9.3_1094]
Rating: 8.5/10 (2 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Associating SET/GET Parameters to Screen elements

VN:F [1.9.3_1094]
Rating: 9.3/10 (3 votes cast)

In my previous post, Using SET/GET Parameter ID in SAP, I discussed about how to create SET/GET parameters and then how to use them to transfer data from one external (main) session to the other within the same user (terminal) session.

We will now see how the parameter ids can be attached to screen elements in order to populate them by default with the previously set parameter value.

This can be done in the following ways:

Attaching SET/GET Parameters to Selection Screen

You can attach SET/GET parameter to Selection screen parameters / selection options using the keyword MEMORY ID. Continue reading »

VN:F [1.9.3_1094]
Rating: 9.3/10 (3 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Using SET/GET Parameter ID in SAP

VN:F [1.9.3_1094]
Rating: 8.0/10 (6 votes cast)

While working with SAP, many times you would have noticed screen fields getting populated with values on its own. Want to know how? It’s all by the virtue of SET/GET parameters (also known as SPA/GPA parameters). In this post, we will make ourselves knowledgible enough to work with these.

What are SET/GET parameters or SPA/GPA Parameters?

SET/GET Parameters or SPA/GPA parameters are the means through which you can make use of SAP memory to pass data between different main ( external ) sessions of a teminal ( user ) session. Continue reading »

VN:F [1.9.3_1094]
Rating: 8.0/10 (6 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn

Example: Field catalog – KEY, COL_POS

VN:F [1.9.3_1094]
Rating: 7.7/10 (6 votes cast)

In this post, you will find the detailed exaplanation of properties (fields) KEY & COL_POS of field catalog (SLIS_T_FIELDCAT_ALV) with example.

As explained in my previous post (Introduction to Field Catalog ( SLIS_T_FIELDCAT_ALV )) :

KEY : This field indicates if the respective column is the key field in the tabular data to be displayed. The columns marked as ‘Key’ fields will always be positioned before the non-key fields.

COL_POS : Specifies the position of column in the ALV display. If this property is not specified, the columns/fields of data table will appear in ALV display in the order in which their “fieldname” appear in the field catalog. “Key” fields will always have higher priority than non-key fields. You are free to use the same position number for key fields & non-key fields. However, if two key fields or non-key fields have been assigned the same position number, they will be displayed in the order in  their “fieldname” appear in the field catalog.

Here, you would be able to experience the real effect of these properties.

Continue reading »

VN:F [1.9.3_1094]
Rating: 7.7/10 (6 votes cast)
Hey friends!!! Don't forget to promote the post by pressing the buttons below, if you liked it...
  • Digg
  • del.icio.us
  • StumbleUpon
  • Twitthis
  • Yahoo! Buzz
  • Facebook
  • Technorati
  • LinkedIn