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

bdc

need bdc code for fd32 transaction?

regards,

padma

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 01:36 PM

    See the sample program for BDc FD32

    report ZFIEX_CUST_BDC

    no standard page heading line-size 255.

    include bdcrecx1.

    tables: knkk.

    types:

    begin of it_kna1,

    kunnr like rf02l-kunnr,

    kkber like rf02l-kkber,

    D0210 like rf02l-D0210,

    klimk like knkk-klimk,

    ctlpc like knkk-ctlpc,

    crblb like knkk-crblb,

    end of it_kna1.

    data: it_kna type it_kna1 occurs 0 with header line,

    x_kna type it_kna1.

    data: l_file type ibipparms-path.

    selection-screen begin of block b1 with frame title text-001.

    parameters: p_file like rlgrap-filename.

    selection-screen end of block b1.

    at selection-screen on value-request for p_file.

    perform get_f4_help using p_file.

    start-of-selection.

    call function 'WS_UPLOAD'

    exporting

    • CODEPAGE = ' '

    filename = p_file

    filetype = 'DAT'

    • HEADLEN = ' '

    • LINE_EXIT = ' '

    • TRUNCLEN = ' '

    • USER_FORM = ' '

    • USER_PROG = ' '

    • DAT_D_FORMAT = ' '

    • IMPORTING

    • FILELENGTH =

    tables

    data_tab = it_kna

    exceptions

    conversion_error = 1

    file_open_error = 2

    file_read_error = 3

    invalid_type = 4

    no_batch = 5

    unknown_error = 6

    invalid_table_width = 7

    gui_refuse_filetransfer = 8

    customer_error = 9

    no_authority = 10

    others = 11

    .

    if sy-subrc <> 0.

    message id sy-msgid type sy-msgty number sy-msgno

    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    endif.

    perform open_group.

    loop at it_kna.

    perform bdc_dynpro using 'SAPMF02C' '0100'.

    perform bdc_field using 'BDC_CURSOR'

    'RF02L-D0210'.

    perform bdc_field using 'BDC_OKCODE'

    '/00'.

    perform bdc_field using 'RF02L-KUNNR'

    '10030011'.

    perform bdc_field using 'RF02L-KKBER'

    '1000'.

    perform bdc_field using 'RF02L-D0210'

    'X'.

    perform bdc_dynpro using 'SAPMF02C' '0210'.

    perform bdc_field using 'BDC_CURSOR'

    'KNKK-CRBLB'.

    perform bdc_field using 'BDC_OKCODE'

    '=UPDA'.

    perform bdc_field using 'KNKK-KLIMK'

    ''.

    perform bdc_field using 'KNKK-KNKLI'

    '10030011'.

    perform bdc_field using 'KNKK-CTLPC'

    ''.

    perform bdc_field using 'KNKK-CRBLB'

    ''.

    perform bdc_field using 'KNKK-SBGRP'

    '001'.

    perform bdc_transaction using 'FD32'.

    endloop.

    perform close_group.

    end-of-selection.

    loop at it_kna.

    write:/1 sy-vline, it_kna-kunnr,

    sy-vline, it_kna-kkber,

    sy-vline, it_kna-D0210,

    sy-vline, it_kna-klimk,

    sy-vline, it_kna-ctlpc,

    sy-vline, it_kna-crblb,

    sy-vline.

    endloop.

    &----


    *& Form GET_F4_HELP

    &----


    • text

    ----


    • -->P_P_FILE text

    ----


    form get_f4_help using p_file.

    call function 'F4_FILENAME'

    exporting

    program_name = sy-cprog

    dynpro_number = sy-dynnr

    • FIELD_NAME = ' '

    importing

    file_name = l_file

    .

    if sy-subrc = 0.

    p_file = l_file.

    endif.

    ENDFORM.

    Reward Points if it is helpful

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2007 at 01:36 PM

    hi padma,

    I think you can better do it reading this,

    BDC:

    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.

    Features :

    BDC is an automatic procedure.

    This method is used to transfer large amount of data that is available in electronic medium.

    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).

    BDC uses normal transaction codes to transfer data.

    Types of BDC :

    CLASSICAL BATCH INPUT (Session Method)

    CALL TRANSACTION

    BATCH INPUT METHOD:

    This method is also called as ‘CLASSICAL METHOD’.

    Features:

    Asynchronous processing.

    Synchronous Processing in database update.

    Transfer data for more than one transaction.

    Batch input processing log will be generated.

    During processing, no transaction is started until the previous transaction has been written to the database.

    CALL TRANSACTION METHOD :

    This is another method to transfer data from the legacy system.

    Features:

    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.

    Updating the database can be either synchronous or asynchronous. The program specifies the update type.

    Transfer data for a single transaction.

    Transfers data for a sequence of dialog screens.

    No batch input processing log is generated.

    For BDC:

    http://myweb.dal.ca/hchinni/sap/bdc_home.htm

    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&

    http://www.sap-img.com/abap/learning-bdc-programming.htm

    http://www.sapdevelopment.co.uk/bdc/bdchome.htm

    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm

    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm

    http://www.sap-img.com/abap/learning-bdc-

    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html

    Regards,

    Jayant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 21, 2008 at 04:12 PM

    hi ,

    use the tables AGR_USERS , UST04 for checking the authorisation..for users..

    regards,

    venkat.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2008 at 03:07 AM

    Hi ,

    I used functionmodule creditlimit _change instead of BDC .if BDC is really needed please go through above postings.

    Rgds

    Sree M

    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.