Skip to Content
author's profile photo Former Member
Former Member

How to use 2 transactions in BDC?

Hi all,

Can any one tell me how to use 2 Transactions in BDC. Is it possible if yes how?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 10:10 AM

    u can use call transaction twice with two different transaction code.

    in case of session method :

    Have one BDC_OPEN_GROUP, multiple BDC_INSERT s and one BDC_CLOSE_GROUP.

    You should have multiple BDC_INSERT s for multiple transactions.

    call function BDC_OPENGROUP.

    Build BDC data and cal lBDC_INSERT for transaction 1

    Build BDC data and cal lBDC_INSERT for transaction 2

    Build BDC data and cal lBDC_INSERT for transaction 3

    paas the tcodes to bdc_insert.

    call function BDC_CLOSE_GROUP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 10:42 AM

    Hi

    you can call 2 transactions in BDC for uploading the data.

    Here we need to record 2 transactions (shdb).

    Once completion of the recording. Populate the data into input internal table .

    Loop the internal table and process the 2 transactions

    like

    1. BDC_OPEN_GROUP

    2. LOOP AT ITAB

    a. Populate first transaction recording data

    and pass transaction to the BDC_INSERT_GROUP.

    BDC_INSERT_GROUP.

    b. Populate second transaction recording data

    and pass transaction to the BDC_INSERT_GROUP.

    BDC_INSERT_GROUP.

    ENDLOOP.

    3. BDC_CLOSE_GROUP

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.