bdc part4 for abap

Upload: latha-jujari

Post on 14-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 BDC Part4 for abap

    1/8

    sapabapiq.com http://www.sapabapiq.com/2013/02/sap-bdc-real-time-interview-questions_4534.html?pfstyle=w

    SAP-BDC-Real-Time-Interview-Questions-Answers-Part-4

    SAP BDC Real T ime Interview Questions and Answers Part- 4, here in this post we are going to

    provide a list of BDC (Batch Data Communication) Real Time Interview Questions and Answers Part-4

    BDC is the process of t ransferring the data f rom Non SAP Systems to SAP Syste ms through using

    various methods. Refer this post for more details and BDC Interview Questions. Click on Read More.

    SAP ABAP BDC Inte rview Quest ions

    SAP BDC Interview Questions and Answers Part-4, here in this post we are going to provide a list of BDC

    (Batch Data Communication) Real Time Interview Questions and Answers Part-4. BDC is the process of

    transf erring the data f rom Non SAP Systems to SAP Systems through using various methods. Refer this postf or more details and BDC Interview Questions.

    61. What are the types of Batch Input?

    Classical Batch Input

    Call Transact ion

    Call Dialog

    62. How can we execute a funct ion in a BDC session?

    We can execute a f unction in a transaction by entering the function code or f unction key number in the

    command f ield of an SAP sess ion. A f unction key number must be pref ixed with the / (s lash) character. A

    f unction code must be pref ixed with the = character.

    Example:

    BDCDATA-FNAM = 'BDC_OKCODE'

    BDCDATA-FVAL = '=UPDA'

    63 How can we position the cursor on a particular fie ld?

    http://www.sapabapiq.com/2013/02/sap-bdc-real-time-interview-questions_4534.html?pfstyle=wphttp://www.sapabapiq.com/
  • 7/27/2019 BDC Part4 for abap

    2/8

    BDCDATA-FNAM = BDC_CURSOR

    BDCDATA-FVAL =

    64. Who are Dialog users and who are Background users?

    Dialog users are normal interactive users in the SAP system. Background users are user master records thatare specially def ined f or providing authorizations f or background process ing jobs.

    65. What are the update modes in CALL TRANSACTION?

    S : Synchronous

    A : Asynchrnous

    L : Local

    66. What does the message paramet er indicates?

    The message parameter indicates there all system messages issued during a CALL TRANSACTION are written

    into the internal table . The internal table must have the st ructure of BDCMSGCOLL.

    67. What is Direct Input?

    To enhance the batch input procedure, the system of f ers the direct input technique especially for t ransf erring

    large amount of data. This technique doesnt create sessions but stores t he data directly. The direct input

    programs must be executed in the back ground only. To maintain and start these programs, use program

    RBMVSHOW or the transact ion BMVO.

    68. What are the features of Recording Function ?

    Recording transaction runs, creating batch input sessions f rom the recorded transaction runs. Generating a

    batch input program f rom the recorded data.

    69. How do you set up batch process?

    Data analysis: Analyze the data that is t o be t ransf erred to the SAP System.

  • 7/27/2019 BDC Part4 for abap

    3/8

    Generate SAP st ructures: Generate SAP data st ructures f or incorporation into your data export program.

    Develop transf er program: You can write the program in ABAP/4 or as an external program.

    Create sequential f ile: Export the data that is to be transf erred, to a sequential f ile.

    Create batch input program: ABAP/4 batch input program that will read the data to be transf erred f rom the

    sequential f ile.

    Process batch input data: Process the data and add it to the SAP System. You can do this either by: batch-

    input session method or Call transaction method.

    Analyze results: Check that all data has been s uccessf ully processed.

    Analyze Error session: Correct and re-process erroneous data.

    70. What has to be done to the packed fields before submitting to a BDC session?

    Declare these f ields in the internal table as characters and the length o f the f ield should be same as the f ield

    length of the field's data element. This internal table is used to hold the data fetched from the sequential file

    using WS-upload f unction module

    71. What are acronyms BDC, BI, BTC, BTCI, CTU, LSMW?

    BDC

    Batch Data Collection. It's t he name of the SAP technology used to record and playtransactions automatically. There are 3 ways to execut e BDC: BI sessions, CTU, CDU.

    BI

    Batch Input. It has the same meaning as BDC. The BI session is one of the 3 ways to run theBDC technology. Note: remember that BI may also mean Business Intelligence which is notrelated to Batch Input at all

    BTCI

    Batch Input. It has the same meaning as BDC.

  • 7/27/2019 BDC Part4 for abap

    4/8

    CDU

    CALL DIALOG ... USING ... ABAP statement . CALL DIALOG is obsolete . It's one of the 3 waysto run the BDC technology.

    CTUCALL TRANSACTION ... USING ... ABAP statement . It's one of the 3 ways to run the BDCtechnology.

    LSMW

    Legacy System Migration Workbench. It allows using the BDC recorder and the BI sessions.

    72. What are the diffe rences between CTU and BI session?

    Note: Batch input sessions have other f unctions no t listed here (like keep sess ion, etc.) because we just

    discuss of the BDC technology here.

    Call Transaction Using Batch Input Session

    The BDC data is run via ABAPstatement CALL TRANSACTION... USING ...

    It is saved to database via ABAP funct ion modulesBDC_OPEN_GROUP, BDC_INSERT, BDC_CLOSE_GROUP, and islater run by SM35 t ransaction, or by programs RSBDCBTC orRSBDCSUB. Internally, it does not e xecute CTU but the kernelprogram BDC_START_GROUP

    Only one transaction is called Several transactions can be recorded in one session

    The ABAP program must do t heerror handling itself (note :CALL TRANSACTION statementret urns the messages in aninternal table)

    There is a built- in error and recovery mechanism in SM35 to viewthe log of errors and run the erroneous transactions again (note:the BDC data cannot be corrected)

    By default, standard size is notused

    By default, standard size is used (22 lines * 84 columns)

    Since 7.0, the dates and numbers can be always interpretedcorrectly during execution, by indicating in which format they arestored in the BDC data when you open t he BI session

  • 7/27/2019 BDC Part4 for abap

    5/8

    It's possible to def ine SY-CPROG in PROG parameter ofBDC_OPEN_GROUP function module

    Update mode can be chosen Update mode is always Synchronous

    You may use RACOMMIT ofCTU_PARAMS to not st op theBDC at the COMMIT WORK

    Transaction execution always stops at COMMIT WORK

    SY-BINPT can be set to spaceusing NOBINPT ofCTU_PARAMS

    SY-BINPT value is always X

    As SY-BINPT is reset to 'X' afterCOMMIT WORK, it can be set to'X' again using NOBIEND ofCTU_PARAMS

    Doesn't apply as BI session always stop af te r COMMIT WORK

    Opt ion CATTMODE ofCTU_PARAMS can be used

    All display modes can be used,including P and S All display modes can be used except P & S

    Extended log, Expert mode, Cancel if log error occurs

    Recording (SHDB)

    73. How do I record a Batch Input session for later playback and analysis?

    Using transaction SHDB it is possible to record transact ions as well as create skeleton programs that contain

    all the necessary code for creating batch input sessions.

    74. Why SHDB didn't record some screens?

    There was probably a COMMIT WORK. By default, the recording sto ps af ter COMMIT WORK (for more

    information

  • 7/27/2019 BDC Part4 for abap

    6/8

    When you start the recording, you have a check box "not po ssible, but anyway it makes no sense to t ranspor

    them: the recordings have no vocat ion to remain in the system, and are usually converted into programs or

    f unction modules, which are cross-client.

    75. How to copy a recording?

    1. Display the recording

    2. There is a button to export to a file on your presentation server

    3. Create a recording without transaction code and without starting the recorder, a button to

    import is then displayed

    Note that recordings are client-dependent.

    76. How to transport a recording?

    It's not possible, but anyway it makes no sense to t ransport them: the recordings have no vocation to remain

    in the system, and are usually converted into programs or f unction modules, which are cross-client.

    77. How does recording work?

    It works t he same as CTU with Display Mode "A", but it 's surrounded by kernel calls to SET_T RANS_VAR fo r

    activating and deactivat ing the recording: among other things, before CTU, there are call 'SET_TRANS_VAR' i'RECORDING' f ield 'X' and CALL 'SET_TRANS_VAR' ID 'ACTIV' FIELD 'X', and af ter CTU, there is call

    'SET_TRANS_VAR' id 'RECORDING' f ield ' '.

    The main function module for recording is BDC_RECORD_TRANSACTION, which returns t he BDC data. The

    SHDB recorder records the BDC data into APQI and APQD tables.

    LSMW recorder uses this same technology, but saves the BDC data into /SAPDMC/LSGBDC* tables.

    78. What values may contain BDC_CURSOR?

    It may contain 3 kind of values:

    A f ield name: MARA-MATNR (if several f ields have the same name in the outer dynpro, the BDC_SUBSC

    line is needed)

    A f ield name f ollowed by a row number between parentheses, indicating a f ield in a table control or step

    loop (see FAQ about table control scrolling below): MARA-MATNR(01)

  • 7/27/2019 BDC Part4 for abap

    7/8

    Coordinates in a list (row/column): 07/04

    79. What is CTU_PARAMS?

    This is a s tructure def ined in the ABAP Dictionary (SE11) that must be used to declare the type of variable

    af ter the OPTIONS FROM keyword of CALL TRANSACTION ... USING ... ("CTU") statement. It contains manyf ields to inf luence the CTU behavior.

    For more information, ref er to CALL TRANSACTION 'SM04' USING lt_bdcdata MODE 'N'

    UPDATE 'S'.

    is the same as:

    DATA ls_ctu_params TYPE ctu_params.

    ls_ctu_params-dismode = 'N'.

    ls_ctu_params-updmode = 'S'.

    CALL TRANSACTION 'SM04' USING lt_bdcdata OPTIONS FROM ls_ctu_params.

    80. What are the commands available for controlling the flow of a BI session?

    These commands are only available in foreground mode (A or E), and they are not available in CTU.

    They are also accessible via the menu under System -> Services -> Batch Input.

    Functioncode

    Meaning

    Corresponding menu item inSystem menu -> Services ->Batch Input

    /bbeg Restart transact ion

    /bde l

    Delete current t ransaction from batch input fromsession (log can still be seen but it can never berestarted)

    Delete transaction

    /n Terminate current transact ion, mark the transact ionas incorrect, and pass to next t ransaction

    Next t ransaction

    /bda Change the screen Processing from Error onlymode t o all display mode (Foreground processing)

    Process in Foreground

  • 7/27/2019 BDC Part4 for abap

    8/8

    /bde Change the display mode from All screens t o Erroronly

    Display Errors Only

    /bend End current bat ch input session completely Cancel

    Read Part One o f BDC Interview Quest ions and Answers

    Read Part Two o f BDC Interview Quest ions and Answers

    Read Part T hree of BDC Interview Quest ions and Answers

    Read Part Four of BDC Interview Quest ions and Answers

    Dear ABAPers if you know any Real T ime Interview Questions Please provide t he questions in below

    comment box it'll helpful f or the fe llow novice ABAPers.

    "You found the information helpful and want to say thanks? Your donation is enough to inspire us to do

    more. Thanks a bunch!"

    http://www.sapabapiq.com/2013/02/sap-bdc-real-time-interview-questions_4534.htmlhttp://www.sapabapiq.com/2013/02/sap-bdc-real-time-interview-questions_4905.htmlhttp://www.sapabapiq.com/2013/02/sap-bdc-real-time-interview-questions_16.htmlhttp://www.sapabapiq.com/2013/02/sap-bdc-real-time-interview-questions.html