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

in bdc

Former Member
0 Likes
539

hi expects,

wher does validation is done in bdc program.by writing which statement it shows the data in output?please help me.

thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
516

Hi Rohit,

You can do validation before populating data into the bdctab (internal table).

But it would be more structured and the maintainability becomes easy if you do the validations first and then take the data into a internal table and process the bdc.

Validation in BDC involves checking data with the database tables and many other validation as per requirement.

These validation sometimes becomes very complex, so its better to structure tha whole thing as i mentioned earlier.

Thanks,

George

    • reward points to helpful answers

4 REPLIES 4
Read only

Former Member
0 Likes
516

I did not understand your question. However, let me make some things clear about BDC.

1. You record a transaction using t-code SHDB. This recording contains the simulation of user's action when he actually enters data in the transaction.

2. Validation happens in the transaction only when u pass data through BDC.

3. If it is a invalid data, the BDC stops and the error message is recorded into the bdcmsgcoll structure

4. You take data from a flat file, store it into a internal table. Looping through each row of this table, you pass values to your BDC program

There are many links, threads over BDC in this forum for your reference.

Thanks,

SKJ

Read only

Former Member
0 Likes
517

Hi Rohit,

You can do validation before populating data into the bdctab (internal table).

But it would be more structured and the maintainability becomes easy if you do the validations first and then take the data into a internal table and process the bdc.

Validation in BDC involves checking data with the database tables and many other validation as per requirement.

These validation sometimes becomes very complex, so its better to structure tha whole thing as i mentioned earlier.

Thanks,

George

    • reward points to helpful answers

Read only

Former Member
0 Likes
516

Validations are done before you pass the data from the internal table to the BDCTAB, ie the recording piece of code.

Validations have to be done with the data in the database. However if possible i would suggest to use a BAPI, if a BAPI exists for your requirement because it would basically do all the check and would return messages as you would do it a the transactional level.

Shreekant

Read only

Former Member
0 Likes
516

hi,

First when u start recording everything gets recorded the way u process it....then while writing the bdc code......we transfer the flat file to the internal table trough bdc method.....so the sytx of call transcation plays the major roll for validation......