Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bdc

Former Member
0 Likes
650

please give list of sample bdc frequntly asked questions

3 REPLIES 3
Read only

Former Member
0 Likes
604

Hi,

What is BDC programming?- Transferring of large/external/legacy data into SAP system using Batch Input programming. Batch input is a automatic procedure referred to as BDC(Batch Data Communications).The central component of the transfer is a queue file which receives the data vie a batch input programs and groups associated data into “sessions”.

What are the functional modules used in sequence in BDC?- These are the 3 functional modules which are used in a sequence to perform a data transfer successfully using BDC programming: BDC_OPEN_GROUP - Parameters like Name of the client, sessions and user name are specified in this functional modules. BDC_INSERT - It is used to insert the data for one transaction into a session. BDC_CLOSE_GROUP - This is used to close the batch input session.

What should be the approach for writing a BDC program?

ANS:-

STEP 1: CONVERTING THE LEGACY SYSTEM DATA TO A FLAT FILE to internal table CALLED “CONVERSION”.

STEP 2: TRANSFERING THE FLAT FILE INTO SAP SYSTEM CALLED “SAP DATA TRANSFER”.

STEP 3: DEPENDING UPON THE BDC TYPE i ) call transaction(Write the program explicitly)

ii) create sessions (sessions are created and processed. if success data will transfer).

What is a batch input session?

ANS:-

BATCH INPUT SESSION is an intermediate step between internal table and database table.

Data along with the action is stored in session ie data for screen fields, to which screen it is passed, program name behind it, and how next screen is processed.

. What is the alternative to batch input session?

ANS:-

Call transaction.

A situation: An ABAP program creates a batch input session.

We need to submit the program and the batch session in background. How to do it?

ANS :-

go to SM36 and create background job by giving

job name, job class and job steps (JOB SCHEDULING)

. What are the problems in processing batch input sessions?

How is batch input process different from processing online?

ANS:-

PROBLEMS:-

i) If the user forgets to opt for keep session then the session will be automatically removed from the session queue(log remains). However if session is processed we may delete it manually.

ii)if session processing fails data will not be transferred to SAP database table.

. What do you do when the system crashes in the middle of a BDC batch session?

ans:-

we will look into the error log file (SM35).

What do you do with errors in BDC batch sessions?

ANS:-

. Setting up a BDC program where you find information from?

ans:-

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

ans:-

fields converted into character type.

What is the structure of a BDC sessions.

ans:-

BDCDATA (standard structure).

What are the fields in a BDC_Tab Table.

ans:-

program,dynpro,dynbegin,fnam,fval.

We look into the list of incorrect session and process it again. To correct incorrect session we analyize the session to determine which screen and value produced the error.For small errors in data we correct them interactively otherwise

modify batch input program that has generated the session or many times even the datafile.

How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs?

ans:-

go to SM36 and create background job by giving job name,job class and job steps(JOB SCHEDULING)

Advantages & Disadvantages of different types of BDC’s?

Ans Transaction Method:

1) It is faster than session method.

2) While executing, it starts from starting.

Session Method:

1) It is slower than transaction method.

2) While executing, it does not start from starting.

How to write a BDC - how do u go about it?

Ans Steps for writing BDC

1) /nSE38

2) Declare Tables, Data (for ITAB) and Data (for BDCITAB)

3) Call function ‘Upload’.

4) Write code for the First Screen, Radio Button, Filename, Change Button, Second Screen, Utilities (Create Entries), Third Screen and Save.

5) Call transaction ‘SE11’ using BDCITAB mode ‘A’.

6) Save, Check Errors, Activate and Execute.

What are the function module in BDC?

Ans There are three function module in BDC:

1) BDC_OPEN_GROUP

2) BDC_INSERT

3) BDC_CLOSE_GROUP

Thanks,

shyla

Read only

Former Member
0 Likes
604

Hi Manoj,

Check these questions.

What is BDC- its use, and how to use it?

It is Batch Data conversion used for transferring some data other than sap into sap ... this is also a work of an ABAPer.

What is "UTS" Or may be it is "UST", something called Unit test?

Use: After developing any object we should write a test case proving that the object is working properly or not. This is done by the ABAPer. This is UNIT TEST CASE.

In BDC how can we handle Table Controls?

When you do your recording you will have a tab for Next line or Insert. You have to capture that in your recording. If your transaction code doesn't have that in the recording then you have to set up a page down (=P+) and loop it based on the line entries u c on teh screen.

Suppose we are transfer data through BDC from leagacy to SAP and their is some duplicate data in legacy system but we don't want this in SAP system .So how can we check that this data is already exist?

In BDC you would have all your legacy data in an internal table. Use Delete Adjacent dulpicates syntax to delete duplicate entries.

Can we use two transaction code in one BDC like XK01 & XD01 if yes how?

Yes, we can do that by combining the two bdc program codes together. Then you perform the program routine accordingly. However, it will make your BDC program very long and complex.

How can we handle errors in Function Module?

Exceptions is used to handle errors.

Can we use Session method & Call transaction both in one BDC if yes please give me example and scenerio where we use this?

You start your dataload using Call Transaction and if any errors occur push all those errors in a session so that your dataload takes place uninterrupted and you can processs ur errors later.

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

Former Member
0 Likes
604

1. List the main differences between CALL TRANSACTION and SESSION method.

2. Which method is more faster?

3. What is meant by 'Multiple Transactions' in SESSION method?

4. How will you obtain the erroneous records in CALL TRANSACTION?

5. A table of which structure type will hold messages in CALL TRANSACTION?

etc....

These were the questions asked to me in my learning stage.....

Reward points if helpful

Regards