Do you Know ?

SAP ABAP Debugging Concept

Debugging:


It is Global debugging, better not to use J.

Type  /H   at Tcode bar and <enter> at bottom it shows debugging started, using
F8 exe. the program  Again <enter> select  debugging ,select <switch to classical debugging >

Use Step In <F5> to debug.

Easy method.

Go to program and place the cursor at the <select> statement and select the  to
<Set Break Point> at the bottom of the screen you will see the status too J.


Press <F8>


Press <F5> to step In ,Double click on fs[] internal table to see the

Again Double click on fs[] to see


Shows the records in the internal table,that’s it J.

H@ppy Debugging.

SAP ABAP Datatypes with Examples

Data typeNumeric

Example : 1

Report  ZTest.
Data N1(10) type n.” (documentation) Numeric data type declaration
N1 = 5000.
Write:/ n1.


Output:
0000005000

Example : 2

Inserting characters in numeric to see how it works :D

Report  ZTest.
Data N1(10) type n.
N1 = ‘hello’. ” Inserting characters
Write:/ n1.

Output:
0000000000

: Displays 10 zeros here.

Understanding:  If you are trying to insert characters into a numeric it will displays numeric only.

_______________________________________________________________________________________

DataType : Integer

Integer doesn’t require length specification , i.e. length specification not allowed (data a1(10) type I ,Syntax error) in integer data type.

Example : 1

REPORT  ZPROG3.

parameter week type i.

if week > 0 and week < 8.
case week.
when 1.
write:/ 'sunday'.
when 2.
write:/ 'monday'.
when 3.
write:/ 'tuesday'.
when 4.
write:/ 'wednesday'.
when others.
write:/ 'some other day'.
endcase.
else.
write:/ 'invalid entry'.
endif.

Input : 1
Output : Sunday

Input : 8
Output : invalid entry
________________________________________________________________________________________

DataType : Character


Longest form of declaring character.
Ex:  Data mychar(10) type c.

As because sap system takes any data by default as ‘char’.

Ex: Data mychar(10).

Example : 1

ZReport 1
data c1(10) .
c1 = 'Helloworld'.
write:/ c1.

Output:
Helloworld 
_________________________________________________________________________________________

DataType : Date


Date is not a KeyWord  “DATS” it is.

Syntax: data d1 type dats.

Example : 1

REPORT  ZPROG7.

date d1 type dats. 
date = '19981202'.
write:/ date.

Output: 
02.12.1988
_____________________________________________________________________________________

SAP ABAP SmartForms Interview Notes


 Smart Forms Short Summary Interview Notes      


 Scripts: Obsolete now.

 Scripts replaced with Smart forms.

ü        Supports web applications.
ü Different fonts styles
ü Input fields ,Push & radios buttons etc.

A page will have multiple windows, windows will have texts.

A window can have texts, graphics, address etc.

Creating a Table at Main Window must to display data on the page.

Logo creation at TCode: SE78.

A Table will have 

ü   Header :  To display columns.
ü   Main area : Used to display data.
ü   Footer : Not known XXXXX.

You can also add Background image for Page windows at Main Page.


PAGE NUMBERS:

ü  Total page numbers: use either &SFSY-Formpages&  (or)  &SFSY-JobPages&.

ü  Current page numbers:  &SFSY-Page&.

Use “increase counter” to display the page number increasing order at  Main_Page.

To draw a line or columns use the Table Widow, and insert the rows and columns.


You can download the smart form by simply typing “PDF!” at the code search box.


***IMP ***

Function Module name :   /1BCDWB/SF00000207

Even smart forms obsolete most of areas, its adobe forms rolling out.

Advantage & Disadvantage:


SAP ABAP Interview Questions Deloitte

Location : Hyderabad, Hitech City.
Company : Deloitte
Experience: 2.5 Years
Role : SAP ABAP Developer
Year : 2014

Name of the Person attended :  Satish G ,B.Tech ,CSIT.

Round : 1

Typical Deloitte doesn't starts directly into Technical Round, its gonna be English Test : D
Hr asked this guy to take english on Phone(Cisco Voip), once he was done with the test asked to leave for the day.

English Test: Tests your Speaking,Listening skills.

Got a call that he was selected for Round 1.  

60% folks gets rejected in this round :D

That's how deloitte operates. Having said that not every time they ask you to take english if the
requirement is huge/urgent this one [yes english test] will be skipped.

Round 2:

2 people are taking interview.

Interviewee : Walk through your profile. 
Interviewee: Difference between Scripts and Smartforms
Interviewee: Write a program for Factorial.
Interviewee: Write a program to check both strings are same or not ,using parameters.
Interviewee: What is Run-Time analaysis ? explain.
Interviewee: What is the use of structure in SAP ABAP ?
Interviewee: Which is faster,Call Transaction or Session Transaction ?

That's the end of the Interview.

Technical interview is not that difficult in Deloitte.

Result : Selected.

Note: We only post the Questions asked in the interview, as there is no standard answers for the questions, Google it :) for Answers from various Sources.

SAP ABAP Interview Questions for Infosys

Location : Hyderabad, Gachibowli.
Company : Infosys
Experience: 3+ Years
Role : SAP ABAP Developer
Year : 2014

Name of the Person attended :  Vinod Reddy.  

Round : 2

Interviewee:  Briefy explain your projects.
Interviewee:  What's yours strong area on SAP ABAP?
Interviewee:  Can we create a field without Data Element ? [ Smiles ] If yes how ?
Interviewee:  What is the use of "for all entires" concept in SAP ABAP?
Interviewee:  Can we use logo in reports? How ?
Interviewee: Did you use Logical Database in your Project?
Interviewee: Is a logical database a must to write an ABAP query or its not necessary ?
Interviewee: Can we use the loops,if else,perform etc things in the sap scripts?
Interviewee: Last Question, In SAP how many ways we can create a table ?

That's the end of the Interview.

Result : Selected.

Note: We only post the Questions asked in the interview, as there is no standard answers for the questions, Google it :) for Answers from various Sources.

Simple Classical Report

Simple Classical Report

Go to TCode: SE38 and provide the program name say ‘ZREPORT1’.

Then click on Create button.


Maintain below Code:

****************************************************************************

*&---------------------------------------------------------------------*
*& Report  ZREPORT1
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  ZREPORT1
line-size 80
line-count 30(5)
no standard page heading.


tables: mara.

data: begin of fs occurs 0,
      matnr type mara-matnr,
      mbrsh type mara-mbrsh,
      meins type mara-meins,
      mtart type mara-mtart,
      end of fs.


select-options: material for mara-matnr.


initialization.
material-low = '1'.
material-high = '1000'.
append material.

At selection-screen.
if material-low = ' '.
message I100(zkmessage).
elseif material-high = ' '.
message I100(Zkmessage).
endif.

start-of-selection.
select mara~matnr mara~mbrsh mara~meins mara~mtart into table fs[] from mara where matnr in material.
loop at fs[] into fs.
write:/ fs-matnr under 'Material',
         fs-mbrsh under 'Industry',
        fs-meins under 'Units',
        fs-mtart under 'Material Type'.
        endloop.

 end-of-selection.


 write:/25 'Classical report created by SAPFIRST' color 7.
 uline.
 skip.

 top-of-page.
 write:/ 'Classical report containing the general material data from the table mara' color 6.

 uline.
 write:/ 'Material' color 1,
         'Industry' color 2,
         'Units' color 3,
         'Material Type' color 4.

         uline.

         end-of-page.
         skip.
         write:/ 'Page Number', Sy-pagno,
                 'Date',sy-datum.

 *****************************************************************************

Ctrl + S  - To save the program.
Ctrl + F2 - To check syntax errors.
Ctrl + F3 – To Activate the program.

Note :
SY-PAGNO  - System Field to display the Page Number.
SY-DATUM  - System Field to Display the System date.

Press the F8 to execute the program.


Again Press F8 to display the data.

Output :


SAP ABAP Interview Questions of NTT DATA.

Location : Bangalore.
Company :NTT Data
Experience: 2.8 Years
Role : SAP ABAP Developer
Year : 2014

Name of the Person attended :  Narender Kumar , MCA.

Round : 1

Interviewee: Tell me about yourself.
Interviewee: Why did you do support project after you have  done Development Project?
Interviewee: What is the use of Structure?
Interviewee: What are selection Texts?
Interviewee: In Smartforms what System field you will use to get the Total pages?
Interviewee: What is the difference between SFSY-Jobpages and SFSY-formpages?
Interviewee: What is Check Table and Value Table?
Interviewee: Events in ABAP language.
Interviewee: Write a program to validate the username and password and if matches
                      User should able to login successfully.

That's the end of the Interview.

Result : Selected.

Note: We only post the Questions asked in the interview, as there is no standard answers for the questions, Google it :) for Answers from various Sources.

SAP ABAP Interview Questions of Wipro Technologies.

Location : Hyderabad, Gachibowli.
Company : Wipro Technologies
Experience: 3 Years
Role : SAP ABAP Developer
Year : 2014

Name of the Person attended :  Lavanya 

Round : 1

Interviewee :  Hi lavanya. 
Interviewee: Explain your projects you did.
Interviewee: What challeges you faced in your first Project?
Interviewee: Explain different layers in R/3 system.
Interviewee: List the Function modules in Smartforms.
Interviewee: What are the functional modules used in sequence in BDC?
Interviewee: What are the components of SAP scripts & Explain.
Interviewee: Write a code to display the stars in pattern , if you user input the 5 then 
                      it Should display the one star first, then two so on till 5 stars. 
Interviewee: Types of Locks in SAP ABAP?

That's the end of the Interview.

Result : Selected.

Note: We only post the Questions asked in the interview, as there is no standard answers for the questions, Google it :) for Answers from various Sources.

SAP ABAP Interview Questions for TCS 2014.

Location : Hyderabad, Gachibowli.
Company : TCS
Experience: 3 Years
Role : SAP ABAP Developer
Year : 2014

Name of the Person attended :  Suresh Kumar Goud

Round : 1

Ques1: Did you ever used Table Control Wizard in Module Pool Programming ?

Ques2: Where did you used Table Control Wizard in Module Pool Programming ?

Ques3: How can you delete the rows in Table Control Wizard using DELETE  button, 
             Write the code for the same.

Ques4: Explain about Lock objects in SAP ABAP & Did you ever used in your Project?

Ques4: Mention the functions used in Smartforms?

Only 5 questions :)

That's the end of the Interview.

Result : Rejected.

Note: We only post the Questions asked in the interview, as there is no standard answers for the questions, Google it :) for Answers from various Sources.

Program to display Triangle/Pyramid/Stars in SAP ABAP.

Displaying triangle/pyramid/stars in SAP ABAP.

In C Programming displaying the pyramid is quite a simple task with using the loops,
When it comes to the ABAP Programming it’s a bit a difficult task to achieve.

Well, having said that this code make sure that task is no longer difficult for you.

Here is the program using the parameter option to display the pyramid/triangle.