Friday, 24 May 2013

BDC INTERVIEW QUESTIONS


BDC

What is full form of BDC Session?
Batch Data Communication Session.

What are the steps in a BDC session?
The first step in a BDC session is to identify the screens of the transaction that the program will process. Next step is to write a program to build the BDC table that will be used to submit the data to SAP. The final step is to submit the BDC table to the system in the batch mode or as a single transaction by the CALL TRANSACTION command.

How do you save data in BDC tables?
The data in BDC tables is saved by using the field name 'BDC_OKCODE' and field value of '/11'.

 What is the last entry in all BDC tables?
In all BDC tables the last entry is to save the data by using the field name BDC_OKCODE and a field value of '/11'.

 What is a multiple line field?
A multiple line field is a special kind of field which allows the user to enter multiple lines of data into it.

How do you populate data into a multiple line field?
To populate data into a multiple line field, an index is added to the field name to indicate which line is to be populated by the BDC session (Line index).

Write the BDC table structure.
BDC table structure
FIELD TYPE DESCRIPTION
Program CHAR (8) Program name of transaction.
DynPro CHAR (4) Screen number of transaction.
DynBegin CHAR (1) Indicator for new screen.
Fnam CHAR (35) Name of database field from screen.
Fval CHAR (80) Value to submit to field.

Does the CALL TRANSACTION method allow multiple transactions to be processed by SAP?
No. The CALL TRANSACTION method allows only a single transaction to be processed by SAP.

 Does the BDC-INSERT function allow multiple transactions to be processed by SAP?
YES.

What is the syntax for 'CALL TRANSACTION'?
CALL TRANSACTION trans [ using bdctab MODE mode ].
Three possible entries are there for MODE.
A - Show all screens.
E - Show only screens with errors.
N - Show no screens.



Sunday, 10 March 2013

4) SELECTION SCREEN PROGRAMMING

SELECTION SCREEN PROGRAMMING:


It is used for designing the selection screen with different elements.
As part of selection screen,we can have the following elements .
1) Comments(labels)
2) Blocks
3) Tabbed blocks
4) Push button
5) Check boxes
6) Radio button
7) Sub screens
8) Drop down list box
9) Input/output fields














Declare parameters:
    Table name-field name
Note: Whenever a program variable needs to refer the database fields. It is not recommended to hot-code the data type and size. because in future, if the database field properties are changed, we need to modify the corresponding declarations as part of multiple programs.
This process increases the maintenance cost.
To avoid this we can refer to the element of field or directly refer to the field itself.

SELECTION EVENTS:
This events triggered on the selection screen..

1) INITIALIZATION.

  • This event is triggered whenever the selection screen is displayed.
  • This event can be handled to initialize the selection screen fields.
  • This event can be triggered only once in the life time of a selection screen.
  • First event triggered on selection screen is “INITIALIZATION”.
  • By default selection screen no is “1000”.
  • Whenever a selection screen element overlaps with other element, it leads to activation error.

.................................TO BE CONTINUED.....................................





Thursday, 7 March 2013

3) INTERNAL TABLES

 INTERNAL TABLES:


  • It is a temporary table created in application server to store multiple records temporarily.
  • The life time and scope of the internal table is with in the program where it is created.
  • It can be created either with header or without header.
  • Header is like structure which can store single record, it is also called as wa(work area).
  • The body of internal table is stored multiple records.
  • To process the internal table data we need work area that is to append,reading,modifying,
  • Deleting and for looping.

Append:
It adds the data from wa to end of internal table.

Loop-End Loop:
It is used for looping the internal table data from body to header.

Describe:
It contains the no of records in the internal table and stores the count values in the system field.

Sy-Tabix:
It is a system field ,which stores the current index position in the internal table.The index of the internal table starts from 1.

1) First method to create internal table.
Syntax:For declaring Internal table.
Data:begin of <IT> occurs <n>,
         Field1,
         Field2,
         -------,
         -------,
         End of <IT>.
<n> ranges from 0,1,2,3……..



Example program:

DATA:begin of emp occurs 0,
            Empno  type i,
            Ename  type c,
            Edesg   type c,
            End of emp.
     Emp-empno = 1.
     Emp-ename = ‘santu’
     Emp-edesg = ‘ceo;.
  Append emp.  ( “inserts one record into internal table body”)

Clear emp.     (“clears work area”)
begin of emp occurs 2,
            Empno  type i,
            Ename  type c,
            Edesg   type c,
            End of emp.
     Emp-empno = 1.
     Emp-ename = ‘santhosh’
     Emp-edesg = ‘team lead;
  Append emp.  ( “inserts one record into internal table body”)

Clear emp.     (“clears work area”)

2) Second method to create internal table.
Syntax:
Data:<internal table>like<existing structure>occurs<n>[with header line].
<n> ranges from 0,1,2,3….
By using above syntax we can create int.table with header line or without header line.
 -----------------------------------------------------------------------------------------
  •  It is not recommended to use the first and second methods for declaring internal tables,
  •  Because in both syntaxes we need “occurs” statements which will do not static allocation memory.

STANDARD WAY OF DECLARING INTERNAL TABLE.

i)create the type declaration with the required fields.

Syntax:types:begin of <type name>,
                      Field 1,
                      Field 2,
                      --------
                      End of <internal table>.

ii)create the internal table work area and body based on data declaration.

Data:wa type <internal table>
          Itab type standard table of <internal table>
                          OR
 Data:wa type <internal table>
          Itab type standard table of wa.
                          OR
 Data: Itab type standard table of <internal table>
           wa like line of Itab.
        

Example:
Types:begin of ty_emp,
            Eno      type zeno, 
            Ename  type zename,                                                               
            Edesg   type zedesg,
            End of ty_emp.
 Data:wa   type ty_emp,
         Itab type standard table of ty_emp.

 Note:(we can refer from custom data elements or table data elements etc.)

To refresh the contents of internal table we can use
i)Clear
ii)Refresh
iii)Free

Clear:      It can clears the contents of int.table.

Refresh: Refreshes the contents of the int.table.

Free:       Clears the contents as well as deallocate the memory that is gets the memory to the initial screen
  
To delete the duplicate records from int.table we use syntax “delete adjacent duplicates
------------------------------------------------------------------------------------------------------------

Internal table creation:








Tuesday, 5 March 2013

2.2)T-CODES

STNDARD TRANSACTION CODES IN SAP:


SE01

Transport Organizer (Extended)
SE03

Transport Organizer Tools
SE06

Set Up Transport Organizer
SE07

CTS Status Display
SE09

Transport Organizer
SE10

Transport Organizer
SE11

ABAP Dictionary Maintenance
SE11_OLD

ABAP Dictionary Maintenance
SE12

ABAP Dictionary Display
SE12_OLD

ABAP Dictionary Display
SE13

Maintain Technical Settings (Tables)
SE14

Utilities for Dictionary Tables
SE15

ABAP/4 Repository Information System
SE16

Data Browser
SE16N

General Table Display
SE16RFCDESSECU

Data Browser RFCDESSECU
SE16T000

Data Browser T000
SE16TXCOMSECU

Data Browser TXCOMSECU
SE16USR40

Data Browser USR40
SE16USRACL

Data Browser USRACL
SE16USRACLEXT

Data Browser USRACLEXT
SE16V_T599R

Data Browser V_T599R
SE16W3TREES

Data Browser W3TREES
SE16WWWFUNC

Data Browser WWWFUNC
SE16WWWREPS

Data Browser WWWREPS
SE16_BKPF

Data Browser BKPF
SE16_BSEG

Data Browser BSEG
SE16_BSEG_ADD

Data Browser BSEG_ADD
SE16_BSID

Data Browser BSID
SE16_BSIK

Data Browser BSIK
SE16_BSIS

Data Browser BSIS
SE16_ECMCA

Data Browser Journal Entries
SE16_ECMCT

Data Browser Totals Records
SE16_KNA1

Data Browser KNA1
SE16_KNB1

Data Browser KNB1
SE16_LFA1

Data Browser LFA1
SE16_LFB1

Data Browser LFB1
SE16_MARA

Data Browser MARA
SE16_MARC

Data Browser MARC
SE16_RFCDESSECU

Data Browser RFCDESSECU
SE16_SKA1

Data Browser SKA1
SE16_SKB1

Data Browser SKB1
SE16_T000

Data Browser T000
SE16_T807R

Data Browser T807R
SE16_TCJ_CHECK_STACK

Data Browser TCJ_CHECK_STACKS
SE16_TCJ_CPD

Data Browser TCJ_CPD
SE16_TCJ_C_JOURNALS

Data Browser TCJ_C_JOURNALS
SE16_TCJ_DOCUMENTS

Data Browser TCJ_DOCUMENTS
SE16_TCJ_POSITIONS

Data Browser TCJ_POSITIONS
SE16_TCJ_WTAX_ITEMS

Data Browser TCJ_WTAX_ITEMS
SE16_TXCOMSECU

Data Browser TXCOMSECU
SE16_USR40

Data Browser USR40
SE16_USRACL

Data Browser USRACL
SE16_USRACLEXT

Data Browser USRACLEXT
SE16_V_T599R

Data Browser V_T599R
SE16_W3TREES

Data Browser W3TREES
SE16_WWWFUNC

Data Browser WWWFUNC
SE16_WWWREPS

Data Browser WWWREPS
SE17

General Table Display
SE18

Business Add-Ins: Definitions
SE19

Business Add-Ins: Implementations
SE21

Package Builder
SE24

Class Builder
SE29

Application Packets
SE30

ABAP Objects Runtime Analysis
SE32

ABAP Text Element Maintenance
SE32_OLD

ABAP Text Element Maintenance
SE32_WB99

ABAP Text Element Maintenance
SE33

Context Builder
SE35

ABAP/4 Dialog Modules
SE36

Logical Database Builder
SE37

ABAP Function Modules
SE38

ABAP Editor
SE38L

SE38 with RCIFIMAX
SE38M

Define Variant for RAPOKZFX
SE38N

SE38 with Default RDELALOG
SE38P

Delete ALE Change Pointers
SE38Q

Init. Data Transfer In Transit Qty
SE39

Splitscreen Editor: (New)
SE39O

Splitscreen Editor: Program Compare
SE40

MP: Standards Maint. and Translation
SE41

Menu Painter
SE43

Maintain Area Menu
SE43N

Maintain Area Menu
SE51

Screen Painter
SE54

Generate table view
SE55

Internal table view maintenance call
SE56

Internal table view display call
SE57

Internal table view deletion call
SE58

Web Dynpro Converter
SE61

SAP Documentation
SE61D

Display of SAPScript Text
SE62

Industry Utilities
SE63

Translation: Initial Screen
SE63_OTR

Translation - OTR
SE64

Terminology
SE71

SAPscript form
SE72

SAPscript Styles
SE73

SAPscript Font Maintenance
SE74

SAPscript format conversion
SE75

SAPscript Settings
SE75TTDTGC

SAPscript: Change standard symbols
SE75TTDTGD

SAPscript: Display standard symbols
SE76

SAPscript: Form Translation
SE77

SAPscript Styles Translation
SE78

Administration of Form Graphics
SE80

Object Navigator
SE80_ENH

Object Navigator
SE81

Application Hierarchy
SE82

Application Hierarchy
SE83

Reuse Library
SE83_START

Start Reuse Library
SE84

Repository Information System
SE85

ABAP/4 Repository Information System
SE89

Maintain Trees in Information System
SE8I

Lists in Repository Infosystem
SE90

Process Model Information System
SE91

Message Maintenance
SE92

New SysLog Msg Maintenance as of 46A
SE92N

Maintain System Log Messages
SE93

Maintain Transaction Codes
SE94

Customer enhancement simulation
SE95

Modification Browser
SE95_UTIL

Modification Browser Utilities
SE97

Maint. transaction call authorizatn