all abap

Upload: krish2322

Post on 06-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 all abap

    1/6

    Some of the differences ABAP Module side:

    For installing ECC 6.0 you required a solution manager key. With out solution

    manager key you cannot install ECC6.0.

    ECC 6.0 is called net weaver component here you have ABAP+JAVA stack & for

    installing 4.6 you don't require solution manager key. It only having ABAP stack.

    ECC6.0 supports UNCODE & 4.6C supports NONUNICODE.

    In terms of ABAP some function modules are obsolete in 4.7. e.g. WS_UPLOAD,

    WS_DOWNLOAD etc. You can find the list of obsolete FMs in the table RODIR.

    These need to be replaced in the ECC System.

    Also ECC is very strict in case of EPC Errors. You need to check the EPC and

    remove the call function interface errors where it says SLIN observes catching

    of a runtime error. These might work with no issues in 4.7 but will short dump in

    ECC.

    If you want to know more ABAP changes go to transaction ABAPDOCU and there

    is a node ABAP Changes by Release. You can see more ABAP Changes version

    by version here.

    ECC is more towards OOPS concepts, ECC is very developer friendly

    It has new debugger.

    New Enhancement Framework is introduced in ECC.

    It is more efficient to use Adobe forms in ECC.

    5.0 ECC - Build in Net Weaver Platform & 6.0 ECC - Build in Net Weaver Platformwith Solution Manager

    ECC has new options in BADIs where you can create your own badis and

    implement it.

    You have new concept called Implicit and explicit source code plugins in ECC.

    Has webdynrpo component accessible from SE80 transaction Itself.

    SAP memory ABAP memory

    Data sending between main

    sessions using get parameter and setparameter is SAP memory

    Data sending between internal

    sessions using import or export parametersis ABAP memory

    SAP memory is a global memory ABAP memory is local memory.

    SAP memory is available to theuser during the entire terminal session.

    ABAP memory is available to the userduring life time of external session.

  • 8/2/2019 all abap

    2/6

    What the difference between BDC and BAPI? What the exact situation wherewe can use BDC and BAPI?

    BDC is the good old method of moving legacy data to SAP.

    BAPI is the new enhanced Application Interface through which data can be uploadedinto SAP System.

    BDC is transaction oriented. Meaning, the data is uploaded into SAP through standardtransactions. Simply saying, BDC is continuous running of transaction repeatedlywithout human intervention, data being picked from text file for each run. It is just abundling of multiple executions of the same transaction and execute at once like amacro.

    Whereas BAPI is an interfacing method, through which SAP data can be processed from

    within SAP or from other non-SAP applications. BAPI can be termed as SAP transactionwithout dialog. All the screens of particular transaction is converted in the form of aCode Module. We can establish on-line interface with SAP data from non-SAPapplications through BAPI's if they are enabled for Remote Access.

    Generally BDC is preferred if the data from the legacy system is moved to SAP singletime. For example, at the time of Go-Live the data required for SAP is eitherdownloaded from other software or manually prepared in excel sheets and uploadedinto SAP at once. After that data or SAP has nothing to do with other software.

    BAPI's are preferred, if data exchange is online or continuous between SAPtransactions or SAP and non-SAP applications. BAPI's are preferred in view ofperformance also. Data loading through BAPI's are more robust and fastercomparatively, if they are called correctly.

    What are the difference between bdc and lsmw?

    BDC and LSMW both are use for loading data into SAP system. The difference is LSMWis loading tool by SAP where you can use various methods to upload, massage data orcleansed your data while loading into SAP from legacy system. The method can beBDC, BAPI, Idocs or SAP ABAP codes. Usually in BDC the user has to write an ABAPprogram or use other utility to load legacy data.

    BADI USER EXIST

    Can be used any number ofTimes

    Can be used only one time

    Code is in outside Code will be included in standard program

    OOPS concepts Not OOPS concepts used

    Fall back , Filter options are

  • 8/2/2019 all abap

    3/6

    available

    Full fill the requirements of asystem infrastructure

    This enhancement technique assumes atwo-tiered system infrastructure

    .What is the different between ALE, IDOC and BAPI?ALE IDOC BAPI

    System can work even if target system notalways online.No additional programming required. You justneed to set up the configuration

    ALE is SAP proprietary technology that enablesdata communications between two or more SAPR/3 systems and/or R/3 and external systems.

    Will only work if you have an active onlineconnection.

    Some programming required to call the BAPI

    Easier to create your own BAPI than your owBAPIs is that the interface and function are nsupposed to change.BAPIs probably have better performance sincdon't do the screen flow processing.

    What is the difference between user exit and customer exit?

    1. 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).2. Inside the form (user exit) you can read and change almost any global data fromhost program.

    Inside a function (customer exit) you can only access yourimport/export/changing/tables parameters.3 .User exits are more flexible because you have more information to use in your codebut on the other hand , it is very easy to manipulate erroneously global data and leadthe standard program to a dump or even to make database inconsistent. Customerexits are more restrictive but you are sure any change you can make to anyparameters will never lead to inconsistency4. User-exit doesnt have any classification. In customer-exit we have function-module

    exit, screen exit , menu exit.5. While changing User-exit,Access Key is required, whereas in Customer-exit noaccess key is needed.

    Menu ExitsMenu exits add items to the pulldown menus in standard SAP applications. You can usethese menu items to call up your own screens or to trigger entire add-on applications.SAP creates menu exits by defining special menu items in the Menu Painter. Thesespecial entries have function codes that begin with "+" (a plus sign). You specify themenu items text when activating the item in an add-on project.

  • 8/2/2019 all abap

    4/6

    Screen ExitsScreen exits add fields to screens in R/3 applications. SAP creates screen exits byplacing special subscreen areas on a standard R/3 screen and calling a customersubscreen from the standard screens flow logic.Function Module ExitsFunction module exits add functions to R/3 applications. Function module exits play arole in both menu and screen exits.

    What are interface/conversion programs in SAP?ANS:CONVERSION: LEGACY SYSTEM TO FLAT FILE.INTERFACE: FLAT FILE TO SAP SYSTEM.

    What is screen flow logic? What are the sections in it? Explain PAI and PBO.ans:-The control statements that control the screen flow.PBO - This event is triggered before the screen is displayed.PAI - This event is responsible for processing of screen after the user enters the dataand clicks the pushbutton.

    What does CHAIN ....END CHAIN do?Sometimes you want to check several fields as a group. To do this, include the fields ina FIELD statement, and enclose everything in a CHAIN-ENDCHAIN block.

    Example**** Screen flow logic: ****CHAIN.FIELD: SPFLI-CARRID, SPFLI-CONNID.

    MODULE CHECK_FLIGHT.ENDCHAIN.When an error is found inside a chain, the screen is re-displayed, and all fields foundanywhere in the chain are input-enabled. All non-chain fields remain disabled.

    Difference between IDOC and BAPI

    IDOC BAPIIDocs are text encoded

    documents with a rigid structurethat are used to exchange data

    between R/3 and a foreign

    system

    BAPIs are a subset of the RFC-enabledfunction modules, especially designed as

    Application Programming Interface (API) tothe SAP business object, or in other words:

    are function modules officially released bySAP to be called from external programs.

    Idocs are processedasynchronously and no

    information whatsoever isreturned to the client,

    BAPIs are called synchronously and(usually) return information

    IDOCs maybe more changeable from

    release to release.

    BAPIs are not totally immune to upgrades

    IDOCs are poorlydocumented

    BAPIs are reasonably well documented.

  • 8/2/2019 all abap

    5/6

    ->Preformance techniquesAns.1. The sequence of fields must be same as per database table2. During writing select query write all fields in sequence as per database table.3. Never write select statements inside loop.endloop.4. Use st05 SQL trace, se30 run time analysis, code inspector, slin,etc.5. Use select single * statement instead of select *6. Always use primary key7. Use binary search but before using binary search sort that table.

    How to create ts?

    Technical Spec is prepare from Functional spec.

    First declare the needed tables.

    And then declare the table fields.

    Pseudo logic is mentioned.

    sample screens are created according to the requirement.

    what are the difference sy-tabix and sy-index?

    Sy-tabix is used to find the current line in the internal table; its a current line index. Whereas sy-index inused to find the number of current pass in the loop statement.

    sy-tab ix : it is used in internal table loops.it gets the no.of records in the internal table.sy-index : it is used in simple loops like(do......enddo).it gets the particular record number.

    what are the difference initialization and instantiation?

    Instantiation: The mechanism whereby objects are created from a class description.Initialization: This is the value assigned to a variable when it first defined.

  • 8/2/2019 all abap

    6/6

    Instance ation will not allocate memory just a instance will be created.

    Initialization will actually allocate memory.