BDC Part4 For Abap
BDC Part4 For Abap
co m
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 T ime Interview Questions and Answers Part-4. BDC is the process of transferring the data from Non SAP Systems to SAP Systems through using various methods. Refer this post for more details and BDC Interview Questions. Click on Read More.
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. Ref er this post f or more details and BDC Interview Questions.
61.
62.
We can execute a f unction in a transaction by entering the f unction code or f unction key number in the command f ield of an SAP session. A f unction key number must be pref ixed with the / (slash) character. A f unction code must be pref ixed with the = character.
63
64.
Dialog users are normal interactive users in the SAP system. Background users are user master records that are specially def ined f or providing authorizations f or background processing jobs.
65.
66.
T he message parameter indicates there all system messages issued during a CALL T RANSACT ION are written into the internal table . T he internal table must have the structure of BDCMSGCOLL.
67.
To enhance the batch input procedure, the system of f ers the direct input technique especially f or transf erring large amount of data. T his technique doesnt create sessions but stores the data directly. T he direct input programs must be executed in the back ground only. To maintain and start these programs, use program RBMVSHOW or the transaction BMVO.
68.
Recording transaction runs, creating batch input sessions f rom the recorded transaction runs. Generating a batch input program f rom the recorded data.
69.
Data analysis: Analyze the data that is to be transf erred to the SAP System.
Generate SAP structures: Generate SAP data structures 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: batchinput session method or Call transaction method.
Analyze results: Check that all data has been successf ully processed.
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 of the f ield should be same as the f ield length of the f ield's data element. T his internal table is used to hold the data f etched f rom the sequential f ile using WS-upload f unction module
71.
BDC Batch Data Collection. It's the name of the SAP technology used to record and play transactions automatically. T here are 3 ways to execute BDC: BI sessions, CT U, CDU. BI Batch Input. It has the same meaning as BDC. T he BI session is one of the 3 ways to run the BDC technology. Note: remember that BI may also mean Business Intelligence which is not related to Batch Input at all
CDU CALL DIALOG ... USING ... ABAP statement. CALL DIALOG is obsolete. It's one of the 3 ways to run the BDC technology.
CT U CALL T RANSACT ION ... USING ... ABAP statement. It's one of the 3 ways to run the BDC technology.
LSMW Legacy System Migration Workbench. It allows using the BDC recorder and the BI sessions.
72.
Note: Batch input sessions have other f unctions not listed here (like keep session, etc.) because we just discuss of the BDC technology here.
T he BDC data is run via ABAP statement CALL T RANSACT ION ... USING ...
It is saved to database via ABAP function modules BDC_OPEN_GROUP, BDC_INSERT, BDC_CLOSE_GROUP, and is later run by SM35 transaction, or by programs RSBDCBT C or RSBDCSUB. Internally, it does not execute CT U but the kernel program BDC_START _GROUP
Only one transaction is called T he ABAP program must do the error handling itself (note: CALL T RANSACT ION statement returns the messages in an internal table)
Several transactions can be recorded in one session T here is a built-in error and recovery mechanism in SM35 to view the log of errors and run the erroneous transactions again (note: the BDC data cannot be corrected)
By default, standard size is used (22 lines * 84 columns) Since 7.0, the dates and numbers can be always interpreted correctly during execution, by indicating in which format they are stored in the BDC data when you open the BI session
Transaction execution always stops at COMMIT WORK You may use RACOMMIT of CT U_PARAMS to not stop the BDC at the COMMIT WORK SY-BINPT value is always X SY-BINPT can be set to space using NOBINPT of CT U_PARAMS Doesn't apply as BI session always stop after COMMIT WORK As SY-BINPT is reset to 'X' after COMMIT WORK, it can be set to 'X' again using NOBIEND of CT U_PARAMS Option CAT T MODE of CT U_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 transactions as well as create skeleton programs that contain all the necessary code f or creating batch input sessions.
74.
T here was probably a COMMIT WORK. By def ault, the recording stops af ter COMMIT WORK (f or more inf ormation
When you start the recording, you have a check box "not possible, but anyway it makes no sense to transport 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.
75.
1. Display the recording 2. T here 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.
It's not possible, but anyway it makes no sense to transport 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.
It works the same as CT U with Display Mode "A", but it's surrounded by kernel calls to SET _T RANS_VAR f or activating and deactivating the recording: among other things, bef ore CT U, there are call 'SET _T RANS_VAR' id 'RECORDING' f ield 'X' and CALL 'SET _T RANS_VAR' ID 'ACT IV' FIELD 'X', and af ter CT U, there is call 'SET _T RANS_VAR' id 'RECORDING' f ield ' '. T he main f unction module f or recording is BDC_RECORD_T RANSACT ION, which returns the BDC data. T he 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.
It may contain 3 kind of values: A f ield name: MARA-MAT NR (if several f ields have the same name in the outer dynpro, the BDC_SUBSCR 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-MAT NR(01)
79.
What is CT U_PARAMS?
T his is a structure def ined in the ABAP Dictionary (SE11) that must be used to declare the type of variable af ter the OPT IONS FROM keyword of CALL T RANSACT ION ... USING ... ("CT U") statement. It contains many f ields to inf luence the CT U behavior. For more information, refer to CALL T RANSACT ION 'SM04' USING lt_bdcdata MODE 'N' UPDAT E 'S'. is the same as: DATA ls_ctu_params T YPE ctu_params. ls_ctu_params-dismode = 'N'. ls_ctu_params-updmode = 'S'. CALL T RANSACT ION 'SM04' USING lt_bdcdata OPT IONS FROM ls_ctu_params.
80.
What are the commands available for controlling the flow of a BI session?
T hese commands are only available in f oreground mode (A or E), and they are not available in CT U.
T hey are also accessible via the menu under System -> Services -> Batch Input.
Meaning Function code Corresponding menu item in System menu -> Services -> Batch Input /bbeg /bdel Delete current transaction from batch input from session (log can still be seen but it can never be restarted) /n Terminate current transaction, mark the transaction as incorrect, and pass to next transaction Change the screen Processing from Error only mode to all display mode (Foreground processing) Next transaction Restart transaction Delete transaction
/bda
Process in Foreground
/bde
Change the display mode from All screens to Error only End current batch input session completely Cancel
/bend
Dear ABAPers if you know any Real T ime Interview Questions Please provide the questions in below comment box it'll helpful for the fellow 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!"