Skip to Content
avatar image
Former Member

Regarding 2 BDC session in a sengle program. is it possible??

dear all,

Can i able to do 2 bdc sessions in a single program.

I will be having 2 file, 1 file need to create bdc for 1 transaction.

2nd file need to create a separate BDC for the 2 transaction. is this possible,,,

\[removed by moderator\]

thanks,

SUresh

Edited by: Jan Stallkamp on Sep 3, 2008 3:58 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2008 at 11:08 AM

    hi

    It is very much possiable you need to call OPEN_BDC_SESSION function module twice.

    Hope this will help.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 03, 2008 at 11:07 AM

    Yes.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2008 at 11:27 AM

    Hi,

    Open the Session Once.

    Call FM: BDC_Open_Group.

    For 1st Transaction.

    loop at it_xd01. "Customer Creation

    mention recording steps

    call FM: BDC_Insert.

    endloop.

    loop at it_mk01." Vendor Creation

    mention recording steps

    call FM: BDC_Insert

    endloop.

    Finallly Close the session.

    BDC_Close_Group.

    Repeat the above loop endloop procedure for each transaction to be processed through the same session.

    Regards,

    MD

    Add comment
    10|10000 characters needed characters exceeded

    • This will create one session with two different transactions.

      If you want to have two sessions, just include the bdcdata stuff twice with different names.

      after that open the first group, insert dynpors and fields, and close the group. The you can open the second group, fill dynpros and fields and close the second one.

      you can not open two groups at the same time, you have to close the first group before you open the second one.

  • avatar image
    Former Member
    Nov 14, 2011 at 11:39 AM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded