10-28-2006 10:09 AM
Hi,
Kindly let me know the differences between BDCs and Idocs?
Regards,
Ramesh.
10-28-2006 10:46 AM
10-28-2006 10:11 AM
hi,
chk this.
BDC are used for follwoing scenarios mostly:
1. Mass Upload of Data
2. allowed to do some activity repeatedly for large amout of data where User Interaction becomes Hectic.
Major use would be for DATA TRANSFER!!!!!
It allows us to automate some transaction for which we have data.
Following documents would give u some brief idea on Batch Data communication :
http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm
http://www.sapgenie.com/abap/bdc.htm
If u want to call a transaction and goto a particular screen as soon as u call the transaction, u can record the flow in BDC.
That is u have to goto SHDB transaction for recording and then specify the transaction code then pass the values and once u reach the screen, press save button and press back.
Code will get automatically generated.
Then u can copy and paste the part of the code that is needed.
A sample code for calling MM03 transaction from an ALV. When u click on the MATNR of the ALV grid this will call transaction. U can perform this
Declare a messtab
DATA: i_bdcdata TYPE STANDARD TABLE OF bdcdata,
Internal table to hold BDC messages
i_messtab TYPE STANDARD TABLE OF bdcmsgcoll
Work area to hold bdcdata value
DATA: w_bdcdata TYPE bdcdata,
Work area to hold BDC messages
w_messtab TYPE bdcmsgcoll.
CONSTANTS : c_e type bdcmsgcoll-msgtyp value 'E', "E
c_a type bdcmsgcoll-msgtyp value 'A', "A
nodata type c value '/'. "/
perform f1000_bdc_mm03 using lv_matnr lv_werks.
FORM f1000_bdc_mm03 USING P_LV_MATNR
P_LV_WERKS.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MATNR'
p_lv_matnr.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(15)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(15)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '0080'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-WERKS'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-WERKS'
p_lv_werks.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'=ZU01'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_dynpro using 'SAPLMGMM' '4300'.
perform bdc_field using 'BDC_OKCODE'
'=ZU08'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_dynpro using 'SAPLMGMM' '4110'.
perform bdc_field using 'BDC_OKCODE'
'=GESV'.
*perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
call transaction 'MM03' using i_bdcdata MODE 'N'MESSAGES INTO i_messtab.
<b>for IDOC
http://www.sapgenie.com/sapedi/idoc_abap.htm
check the above link.,..</b>
Hope this helps u.
anver
pls mark points if helped
Message was edited by: Anversha s
10-28-2006 10:23 AM
Hi ramesh,
Kindly read this also.
HI
IDOC is used transfer data from the SAP to sap or non-sap system.
For details refer the contents below
ALE
ALE is SAP proprietary technology that enables data communications between two or more SAP R/3 systems and/or R/3 and external systems. When a new enterprise resource planning (ERP) solution such as R/3 is implemented, companies have to interface the ERP system with legacy systems or other ERP systems.
ALE provides intelligent mechanisms where by clients can achieve integration as well as distribution of applications and data.
ALE technology facilitates rapid application prototyping and application interface development, thus reducing implementation time.
The ALE components are inherently integrated with SAP applications and are robust, leading to a highly reliable system.
ALE comes with application distribution/integration scenarios as well as a set of tools, programs, data definitions, and methodologies that you can easily configure to get an interface up and running.
regards,
anver
10-28-2006 10:46 AM