Application Development 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: 

new to BDC so required some good documents plz

Former Member
0 Kudos

hello friends

i am new to bdc .

so i want to know that when to go for call transaction

and when to session method?

if anyone of u have some document with examples then plz send me.

do send me about sap-img, sapgenie,sappoints, etc .

plz send me some good docu

which will be helpful for a new guy like me to enter

in BDC.

give some examples.

can i expect this from anyone of you.

if anyone can send some good documents to me

then my id is- sanjeevsingh_sap@yahoo.com

thanks & regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Check your mail.

Regs,

Venkat

11 REPLIES 11

Former Member
0 Kudos

Hello,

Check your mail.

Regs,

Venkat

0 Kudos

hi venkat

thanks for sending this valuable documents.

can u send me real time code using call transaction where u have done the erroe handling bcoz in this we have to handle the error on our own.

examples- Material master upload

vendormaster ,or customer master or any other whatever u have.

u can also send some code where u have used session method.

if u can send i will be grateful to u for ur effort.

bye

Former Member
0 Kudos

hi Sanjeev,

BDC is Batch Data Communication where data is transferred from legacy system(that can be non-SAP system) to SAP system. In this case, you pass the data from legacy system and in SAP system the get can be filled into the screen and updated in the database using the transactions. In BDC, you automatise this process and thus update the tables in SAP system.

Regards,

Richa.

0 Kudos

thanks richa

but can i expectsome real time code examples from u

which i can refer.

especially for call transaction where u have put code

for error handling also

Former Member
0 Kudos

hi,

Check your mail. I sent ppts and docs.

Regards,

Sailaja.

0 Kudos

sorry sailaja

i didn't yet recieve any ppt and doc send by u.

so plz send it once again.

my id is- sanjeevsingh_sap@yahoo.com

Former Member
0 Kudos

HI,

sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions

www.sappoint.com/abap.html

www.erpgenie.com/sap/abap/tips_and_tricks.htm

www.net-temps.com/job/ttys/JP0003/sap_abap_r_3.html

searchsap.techtarget.com/topicETA/0,295498,sid21_tax299327_idx0_off100,00.html

Regards,

Laxmi.

Former Member
0 Kudos

Hello,

BDC CODE WITH HANDLING ERRORS:

=============================



  DATA: BEGIN OF BDCDATA OCCURS 5.

          INCLUDE STRUCTURE BDCDATA.

  DATA: END OF BDCDATA.

  DATA: C_TCODE LIKE BKPF-TCODE VALUE 'FB01'.

  DATA BEGIN OF MESSTAB OCCURS 10.      

         INCLUDE STRUCTURE BDCMSGCOLL.

  DATA END OF MESSTAB.                  


FORM Main_Program

  REFRESH BDCDATA.

  PERFORM APPEND_BDC USING 'SAPMF05A' '0100' '          ' '        '.

  PERFORM APPEND_BDC USING '        ' '    ' 'BKPF-BLDAT' '09031998'.

  PERFORM APPEND_BDC USING '        ' '    ' 'BDC_OKCODE' '/00'.

  PERFORM APPEND_BDC USING 'SAPMF05A' '0300' '          ' '   '.

  PERFORM APPEND_BDC USING '        ' '    ' 'BSEG-WRBTR' '*'.

  PERFORM APPEND_BDC USING '        ' '    ' 'BDC_OKCODE' 'BU'.

 

  CALL TRANSACTION 'FB01' USING BDCDATA MODE 'N' UPDATE 'S'.

  PERFORM UPDATE_IDOC_STATUS.

ENDFORM.

  REFRESH MESSTAB.

  CALL TRANSACTION C_TCODE USING BDCDATA MODE 'N' UPDATE 'S'

       MESSAGES INTO MESSTAB.
 

  RETURN_CODE = SY-SUBRC.

  IF RETURN_CODE = 0.

    LOOP AT MESSTAB.

      IF MESSTAB-MSGTYP = 'E'.

        RETURN_CODE = MESSTAB-MSGNR.

        SY-MSGID = 'B1'.

        SY-MSGNO = 999.

        SY-MSGV1 = 'Error: Check BDC'.

      ENDIF.

    ENDLOOP.

  ENDIF.

 

*--- Here we check the return code, if there was an error, we put the

*    transaction in a BDC session for the user to review and correct.

  IF RETURN_CODE NE 0.

    CALL FUNCTION 'BDC_OPEN_GROUP'

         EXPORTING

              CLIENT = SY-MANDT

              GROUP  = 'ZKJW'

              USER   = SY-UNAME

              KEEP   = 'X'.

    CALL FUNCTION 'BDC_INSERT'

         EXPORTING

              TCODE     = C_TCODE

         TABLES

              DYNPROTAB = BDCDATA.

    CALL FUNCTION 'BDC_CLOSE_GROUP'

         EXCEPTIONS

              NOT_OPEN    = 1

              QUEUE_ERROR = 2

              OTHERS      = 3.

  ENDIF.

 

*--- Append BDCDATA internal table ------------------------------------

FORM APPEND_BDC USING    VALUE(P_PROG)

                         VALUE(P_SCREEN)

                         VALUE(P_NAM)

                         VALUE(P_VAL).

  CLEAR BDCDATA.

 

  IF P_PROG NE SPACE.

    BDCDATA-PROGRAM   = P_PROG.

    BDCDATA-DYNPRO    = P_SCREEN.

    BDCDATA-DYNBEGIN  = 'X'.

    BDCDATA-FNAM      = P_NAM.

    BDCDATA-FVAL      = P_VAL.

  ELSE.

    BDCDATA-FNAM      = P_NAM.

    BDCDATA-FVAL      = P_VAL.

  ENDIF.

   APPEND BDCDATA.

 ENDFORM.

Regs,

Venkat

Former Member
0 Kudos

Hello,

Did u check the above code.

Regs,

Venkat

Former Member
0 Kudos

sent one ppt to ur mail