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

Is it possible multiple transaction

Former Member
0 Likes
953

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?

5 REPLIES 5
Read only

Former Member
0 Likes
717

hi,

yes it is possible.

Read only

Former Member
0 Likes
717

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.

Read only

Former Member
0 Likes
717

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

Read only

Former Member
0 Likes
717

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

Read only

Former Member
0 Likes
717

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