2008 Mar 21 9:43 AM
IS IT POSSIBLE TO UPLOAD MULTIPLE TRASACTIONS DATA USING ONLY ONE BDC PROGRAM?
IS IT POSSIBLE TO UPLOAD MULTIPLE TRASACTIONS DATA USING ONLY ONE BDC PROGRAM?
2008 Mar 21 9:49 AM
2008 Mar 22 6:43 AM
hai Shake sha vali,
It Is Possible To Create A Bdc Program To Upload Data Into Multiple Transaction's.
It Is Only Possible In BDC Session Method.
But it Is not Possible To handle Multiple Transactions in BDC Call Transaction Method.
Regards.
Eshwar.
2008 Mar 22 6:51 PM
Hello shake sha vali,
Difference between call transaction and session method?
Session method: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous. Multipe transcations
The Session Method allows multiple transactions to be processed by SAP.
Call Transaction method: The records are immediately added to the database table. sy-subrc is returned to 0 if succesful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous.
The CALL TRANSACTION method allows only a single transaction to be processed by SAP.
Ex : Session method :
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = 'ERROR'
KEEP = 'X'
USER = SY-UNAME
PROG = SY-CPROG .
G_FLAG = 'X' .
ENDIF .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XK01'
TABLES
DYNPROTAB = T_BDCDATA .
ENDFORM. " SUB_CREATE_SES
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XD01'
TABLES
DYNPROTAB = T1_BDCDATA .
ENDFORM. " SUB_CREATE_SES
CALL FUNCTION 'BDC_CLOSE_GROUP' .
This the way we work with multiplr transcations in Session method. We need to create another structure, Internal table. work area for every transaction......
Hope the info was helpful.
Regards,
Krishna Chaitanya
2008 Mar 22 6:52 PM
Hello shake sha vali,
Difference between call transaction and session method?
Session method: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous. Multipe transcations
The Session Method allows multiple transactions to be processed by SAP.
Call Transaction method: The records are immediately added to the database table. sy-subrc is returned to 0 if succesful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous.
The CALL TRANSACTION method allows only a single transaction to be processed by SAP.
Ex : Session method :
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = 'ERROR'
KEEP = 'X'
USER = SY-UNAME
PROG = SY-CPROG .
G_FLAG = 'X' .
ENDIF .
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XK01'
TABLES
DYNPROTAB = T_BDCDATA .
ENDFORM. " SUB_CREATE_SES
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'XD01'
TABLES
DYNPROTAB = T1_BDCDATA .
ENDFORM. " SUB_CREATE_SES
CALL FUNCTION 'BDC_CLOSE_GROUP' .
This the way we work with multiplr transcations in Session method. We need to create another structure, Internal table. work area for every transaction......
Hope the info was helpful.
Regards,
Krishna Chaitanya
2012 Aug 05 2:36 PM
hii,
yes , defiantly it is possible to process multiple transaction for bdc in session method.
it is nothing but a repitation of code Session Method code excepting BDC_OPEN_GROUP and BDC_CLOSE_GROUP.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FK01'
DYNPROTAB = IT_BDCDATA
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
.
repeat this function module for different transaction code.
thanks
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |