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

please help me: BDC question

hi experts help me.

in functional spec they are not mention call transaction or session which method u will prepare why.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 04:32 PM

    Hi

    U can use both method, so insert a radiobutton in the selection-screen in order to decide which method to be used.

    The ABAP code is the same, the only difference is you have to use CALL TRANSACTION statament or fm BDC_OPEN_GROUP, BDC_INSERT, BDC_CLOSE_GROUP.

    IF P_SESS = 'X'.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        .................
      
      FL_OPEN = 'X'.
    ENDIF.
    
    *---> Here fill BDC table
    
    IF P_CALL = 'X'.
      CALL TRANSACTION <TCODE> ....
    ELSE.
      IF FL_OPEN = 'X'.
        CALL FUNCTION 'BDC_INSERT'
          ....................
      ENDIF.
    ENDIF.  
    
    IF FL_OPEN = 'X'.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
       .............................
    ENDIF.

    you can prepare your program to create a BI session if CALL TRANSACTION fails

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 04:40 PM

    it is ur requirement...if u have few records u can go for call transaction but if u have large no of records then go for session method as this will help a lot in ur case.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 04:41 PM

    Hi,

    It is better to use the Call transaction method, for this if any error records found, you can create the session for this one.

    Call Transaction 'TCODE' using BDCDATA MODE 'N' UPDATE 'S' messages into BDCMSGCOLL

    if sy-subrc <> 0.

    Call transaction 'BDC_OPEN_GROUP'

    CALL TRANSACTIOn 'BDC_INSERT'.

    CALL TRANSACTION 'BDC_CLOSE_GROUP'

    endif.

    Regards

    Sudheer

    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.