‎2007 Apr 20 8:12 PM
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
‎2007 Apr 20 9:57 PM
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
‎2007 Apr 20 8:24 PM
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
‎2007 Apr 20 9:57 PM
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
‎2007 Apr 20 10:10 PM
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
‎2007 Apr 21 3:59 AM
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......