Bdc adv and disadv

what is the advantages and disadvantages of diff bdc's?

Hi,
Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
For more information check the following link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
Regards,
Bhaskar

Similar Messages

  • What are the adv and disadv of using SRM as an addon?

    Hi Friends
    what are the adv and disadv of using SRM as an addon
    Regards
    Simha

    Hi Simha,
    Here are my view points on SRM and ECC one client deployment: The decison to have one client for SRM and ECC is more driven by the business model of the client and functionalities one need out of SRM .Following points needs to considered before deployment:
    1) ERP and SRM as an add-on does not support any multiple-backend functions or hub deployment for procurement.
    2) Upgrade or migration from SRM system to ERP with SRM as add-on is not supported
    3) Strategic sourcing scenarios in SRM are not used by clients with such deployments
    4) Although SRM is running on the same client as ECC the purchasing organization have to be maintained in both MM and SRM system
    5) From HR Orgstructure stand point there is no additional benifit in same client deployment as compared to seperate deployment
    6) From Security stand point its better to have a seperate client for SRM-vendor registration as this functionality is exposed to outside world and internet.
    7) Master Data Synchronization is a positive point which is only available within the SRM Add-on deployment with ECC
    8) For SRM and ECC (seperate) master data management remains asynchronous and unidirectional
    Thanks,

  • Can anyone list problems/errors when uploading data using BDC's and BAPI's?

    Can anyone list the problems/errors when uploading data using BDC's and BAPI's?

    Hi,
    If you are actually creating a BDC to load data pls be more specific.
    Data format incorrect. Tab delimited/ etc
    Dates in wrong formats
    Currency incorrect formats
    Missing screens
    Wrong transaction code
    File not found,
    Missing Mandatory fields,
    Screen resoultion.
    You should always use refresh for your Bdcdata table.
    Loop at internal table.
    refresh Bdcdata.
    regards,
    sowjanya.

  • If your Team Lead given Functional Specifications for a BDC program and you

    If your Team Lead given Functional Specifications for a BDC program and you need to decide wether to write a Method Call Transaction or a Session.
    How you will decide ?

    Hi Krishna,
    See this you will got some ideas.
    Diff b/w call transaction and session method is
    Call transaction.
    1) asynchronous processing
    2) can transfer small amount of data
    3) processing is faster.
    4) errors need to be handled explicitly
    5) data is updated automatically
    Session method.
    1) synchronous processing.
    2) can tranfer large amount of data.
    3) processing is slower.
    4) error log is created
    5) data is not updated until session is processed.
    Thanks,
    Reward If Helpful.

  • BDC Sessions and Subscreens

    I have recorded a transaction using the transaction recorder (Transation LT0E); there is a subscreen on one of the screens.
    If I do not enter data in the subscreen (i.e. leave the proposed defaults), then when I play back the recording, it works fine. However, if I change the data in the subscreen and play that recording back, it fails; the little window that shows what the current command being executed is just disappears.
    If I turn the recording into a BDC session and run that, it records the error "No batch input data for screen SAPML03T 0105".
    Anybody have a clue what is happening here?

    Yes, thanks, that is what is happening; I am deleting a field which when the enter button is pressed is then re-calculating that field with a new value.
    Found a workaround for it.
    Cheers,
    Tony.

  • BDC tcodes and program names

    hi all
    I want all BDC  Tcodes and Program names  in SAP , is there any easy method to see all BDC Tcodes ?
    psrao

    there is no such tcode named for BDC,
    BDC is nothing but batch data conversion
    it means from the client side they will be having set of data to be uploaded it may be master data or it may be a transactional data
    and previously they might be using some other ERP softwares
    for uploading datas into SAP
    these are the methods followed Direct input method,LSMW,BDC's
    BDC has its data table known as BDCDATA it is used for validating the data in the file which we are going to upload into database through a transaction
    i.e.., say for example if they are going to upload vendor master data, these datas will be first passed into bdcdata structure and later on after validating it will passed to screen fields of XK01 transaction and after committing it, it will be uploaded into the data base

  • BDC, IDOC and Field-Exits

    Dear Friend,
             I want to get idea of BDC, IDoc and Field-exits. Can anybody tell me from where i can get the idea. Give me links!

    Hi,
    U can refer the following link
    http://www.sapgenie.com/abap/tips_and_tricks.htm
    Also u can search in the code sample part of sdn to get some idea.
    Thanks & Regards,
    Judith

  • BDC COING AND STEPS

    send the coding and steps for bdc using the commands
    1.bdc_open_group
    2.bdc_insert
    3.bdc_close_group
    using these commands to upload the data

    HI.
    refer this one.
    REPORT zmmat_mast
    NO STANDARD PAGE HEADING LINE-SIZE 200.
    *Programmer : Niraj Visnoi *
    *Website : http://sap.niraj.tripod.com *
    *Email : [email protected] *
    TABLES :mara, marc.
    INTERNAL TABLES *
    DATA: BEGIN OF bdcdata OCCURS 0.
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdcdata.
    DATA:BEGIN OF itab_basic OCCURS 0,
    matnr LIKE mara-matnr,
    zzmatnr LIKE mara-matnr,
    END OF itab_basic.
    DATA:BEGIN OF itab_mrp OCCURS 0,
    matnr LIKE mara-matnr,
    werks LIKE marc-werks,
    zzgpind LIKE marc-zzgpind,
    zzdate(10) type C ,
    END OF itab_mrp.
    DATA: BEGIN OF tab_mara OCCURS 0.
    INCLUDE STRUCTURE mara.
    DATA: END OF tab_mara.
    DATA: BEGIN OF tab_marc OCCURS 0.
    INCLUDE STRUCTURE marc.
    DATA: END OF tab_marc.
    DATA: ertab_basic LIKE itab_basic OCCURS 0 WITH HEADER LINE.
    DATA: ertab_mrp LIKE itab_mrp OCCURS 0 WITH HEADER LINE.
    DATA : v_ctr TYPE i VALUE 1. "Ctr for no orecords
    DATA : v_group(12) . "BDC Group Name
    DATA : v_group_ctr(3) TYPE n . "BDC Group Counter
    DATA : v_no_lines TYPE i.
    DATA: v_grpname(10) TYPE c.
    SELECTION-SCREEN BEGIN OF BLOCK dt-entry
    WITH FRAME TITLE text-002.
    selection-screen begin of line .
    selection-screen comment 01(49) text-101.
    parameters : p_basic radiobutton group r1.
    selection-screen end of line.
    selection-screen begin of line .
    selection-screen comment 01(49) text-102.
    parameters : p_mrp2 radiobutton group r1.
    selection-screen end of line.
    *PARAMETERS :
    p_basic RADIOBUTTON GROUP r1,
    p_mrp2 RADIOBUTTON GROUP r1.
    SELECTION-SCREEN END OF BLOCK dt-entry.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK fl-info
    WITH FRAME TITLE text-003.
    PARAMETER : p_dlhead AS CHECKBOX . "DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK fl-info.
    SELECTION-SCREEN SKIP 1.
    PARAMETER : p_max TYPE i DEFAULT '5000' . "No of rec / session
    SET PF-STATUS 'UPLOAD'.
    AT USER-COMMAND .
    IF sy-ucomm = 'UPLOAD' .
    IF p_basic = 'X'.
    IF NOT itab_basic[] IS INITIAL .
    PERFORM bdc_upload_basic.
    ENDIF.
    WRITE:/10 'Please execute the session in SM35 to Upload the data'.
    FORMAT INTENSIFIED OFF COLOR OFF .
    REFRESH itab_basic . CLEAR itab_basic .
    SET PF-STATUS space.
    ENDIF.
    IF p_mrp2 = 'X'.
    IF NOT itab_mrp[] IS INITIAL .
    PERFORM bdc_upload_mrp.
    ENDIF..
    WRITE:/10 'Please execute the session in SM35 to Upload the data'.
    REFRESH itab_mrp . CLEAR itab_mrp .
    SET PF-STATUS space.
    ENDIF.
    ENDIF.
    START-OF-SELECTION.
    IF p_basic = 'X'.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    CODEPAGE = ' '
    filename = 'C:\mm02_basic.txt '
    filetype = 'DAT'
    TABLES
    data_tab = itab_basic.
    IF p_dlhead EQ 'X'.
    READ TABLE itab_basic INDEX 1.
    DELETE itab_basic INDEX 1.
    CLEAR itab_basic.
    ENDIF.
    PERFORM blank_data_validation.
    ENDIF.
    IF p_mrp2 = 'X'.
    v_grpname = 'MRP2'.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    CODEPAGE = ' '
    filename = 'C:\mm02_mrp.txt '
    filetype = 'DAT'
    TABLES
    data_tab = itab_mrp.
    IF p_dlhead EQ 'X'.
    READ TABLE itab_mrp INDEX 1.
    DELETE itab_mrp INDEX 1.
    CLEAR itab_mrp.
    ENDIF.
    PERFORM valid_plant_check.
    ENDIF.
    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 display_data.
    END-OF-SELECTION.
    Start new screen
    FORM bdc_dynpro USING program dynpro.
    CLEAR bdcdata.
    bdcdata-program = program.
    bdcdata-dynpro = dynpro.
    bdcdata-dynbegin = 'X'.
    APPEND bdcdata.
    ENDFORM.
    Insert field
    FORM bdc_field USING fnam fval.
    CLEAR bdcdata.
    bdcdata-fnam = fnam.
    bdcdata-fval = fval.
    APPEND bdcdata.
    ENDFORM.
    *& Form blank_data_validation
    text
    --> p1 text
    <-- p2 text
    FORM blank_data_validation.
    LOOP AT itab_basic.
    IF itab_basic-matnr IS INITIAL OR itab_basic-zzmatnr IS INITIAL.
    MOVE-CORRESPONDING itab_basic TO ertab_basic .
    APPEND ertab_basic . CLEAR ertab_basic .
    DELETE itab_basic.
    CLEAR itab_basic.
    CONTINUE.
    ENDIF.
    SELECT SINGLE * INTO tab_mara FROM mara WHERE matnr = itab_basic-matnr
    IF sy-subrc <> 0.
    MOVE-CORRESPONDING itab_basic TO ertab_basic .
    APPEND ertab_basic . CLEAR ertab_basic .
    DELETE itab_basic.
    CLEAR itab_basic.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    ENDFORM. " dt_qty_validation
    *& Form CALL_BDC_CLOSE_GROUP
    text
    --> p1 text
    <-- p2 text
    FORM call_bdc_close_group.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
    not_open = 1
    queue_error = 2.
    IF sy-subrc NE 0.
    WRITE: /5 'BDC CLOSE GROUP FAILED, return code = ', sy-subrc.
    EXIT.
    ENDIF.
    ENDFORM. " CALL_BDC_CLOSE_GROUP
    *& Form CALL_BDC_INSERT
    text
    -->P_0545 text
    FORM call_bdc_insert USING v_tran_code.
    DATA: xmode VALUE 'E'.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = v_tran_code
    TABLES
    dynprotab = bdcdata
    EXCEPTIONS
    internal_error = 1
    not_open = 2
    queue_error = 3.
    IF sy-subrc NE 0.
    WRITE: /5 'BDC insert GROUP FAILED, return code = ', sy-subrc.
    EXIT.
    ENDIF.
    ENDFORM. " CALL_BDC_INSERT
    *& Form display_data
    text
    --> p1 text
    <-- p2 text
    FORM display_data.
    WRITE:/ 'Press','''Upload''',
    'to create session with the following records'.
    IF p_basic = 'X'.
    PERFORM display_header.
    FORMAT COLOR 2.
    LOOP AT itab_basic.
    WRITE :/2 itab_basic-matnr,'|',
    23 itab_basic-zzmatnr,
    54 '|'.
    ENDIF.
    ENDLOOP.
    NEW-LINE.
    ULINE (54).
    ENDIF.
    IF p_mrp2 = 'X'.
    PERFORM display_header_mrp.
    FORMAT COLOR 2.
    LOOP AT itab_mrp.
    WRITE :/2 itab_mrp-matnr,'|',
    23 itab_mrp-werks,
    33 '|',
    37 itab_mrp-zzgpind,
    49 '|',
    52 itab_mrp-ZZDATE,
    65 '|'.
    ENDLOOP.
    NEW-LINE.
    ULINE (65).
    FORMAT COLOR OFF.
    SKIP 4.
    WRITE :/ 'Records with Errors will not be Included in Session' .
    PERFORM display_header_mrp.
    FORMAT COLOR 2.
    LOOP AT ertab_mrp.
    IF NOT ertab_mrp IS INITIAL OR NOT ertab_mrp-matnr IS INITIAL.
    WRITE :/2 ertab_mrp-matnr ,'|',
    23 ertab_mrp-werks,
    33 '|',
    37 ertab_mrp-zzgpind,
    49 '|' ,
    52 ertab_mrp-zzdate,
    65 '|'.
    ENDIF.
    ENDLOOP.
    NEW-LINE.
    ULINE (65).
    ENDIF.
    FORMAT COLOR OFF.
    ENDFORM. " display_data
    *& Form BDC_UPLOAD_basic
    text
    --> p1 text
    <-- p2 text
    FORM bdc_upload_basic.
    *CLEAR itab_basic. REFRESH itab_basic.
    CLEAR : v_ctr , v_no_lines .
    IF NOT itab_basic[] IS INITIAL .
    v_group_ctr = '1' .
    CONCATENATE 'BASIC_' v_group_ctr INTO v_group .
    PERFORM open_group USING v_group .
    LOOP AT itab_basic .
    IF v_ctr GE p_max .
    PERFORM call_bdc_close_group .
    v_group_ctr = v_group_ctr + 1 .
    CLEAR v_group .
    CONCATENATE 'BASIC_' v_group_ctr INTO v_group .
    PERFORM open_group USING v_group .
    v_ctr = 0 .
    ENDIF.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RMMG1-MATNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RMMG1-MATNR'
    itab_basic-matnr.
    'DEEPAKTESTMAT'.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MSICHTAUSW-DYTXT(01)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'
    'X'.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=BU'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MARA-ZZMATNR'.
    PERFORM bdc_field USING 'MARA-ZZMATNR'
    itab_basic-zzmatnr.
    'ADV#AM29F010-70JI'.
    PERFORM call_bdc_insert USING 'MM02'.
    CLEAR bdcdata . REFRESH bdcdata .
    v_no_lines = v_no_lines + 1 .
    v_ctr = v_ctr + 1.
    ENDLOOP.
    PERFORM call_bdc_close_group.
    SKIP 10.
    WRITE :/10 'Session by name BASIC* created' .
    WRITE :/10 'Total No of records uploaded - ' , v_no_lines .
    ENDIF.
    ENDFORM. " BDC_UPLOAD
    *& Form display_header
    text
    --> p1 text
    <-- p2 text
    FORM display_header.
    NEW-LINE.
    set left scroll-boundary column 48.
    FORMAT COLOR 1 INTENSIFIED ON.
    ULINE (54).
    WRITE :/' Avnet Material',
    21'|' ,
    23 'Green Product '
    , 54 '|'.
    NEW-LINE.
    ULINE (54).
    FORMAT COLOR OFF INTENSIFIED OFF.
    ENDFORM.
    *& Form bdc_upload_mrp
    text
    --> p1 text
    <-- p2 text
    FORM bdc_upload_mrp.
    PERFORM call_bdc_open_group2.
    CLEAR : v_ctr , v_no_lines .
    IF NOT itab_mrp[] IS INITIAL .
    v_group_ctr = '1' .
    CONCATENATE 'MRP_' v_group_ctr INTO v_group .
    PERFORM open_group USING v_group .
    LOOP AT itab_mrp .
    IF v_ctr GE p_max .
    PERFORM call_bdc_close_group .
    v_group_ctr = v_group_ctr + 1 .
    CLEAR v_group .
    CONCATENATE 'MRP2_' v_group_ctr INTO v_group .
    PERFORM open_group USING v_group .
    v_ctr = 0 .
    ENDIF.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RMMG1-MATNR'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'RMMG1-MATNR'
    itab_mrp-matnr.
    'DEEPAKTESTMAT'.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MSICHTAUSW-DYTXT(13)'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(13)'
    'X'.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '0080'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'RMMG1-WERKS'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=ENTR'.
    PERFORM bdc_field USING 'RMMG1-WERKS'
    itab_mrp-werks.
    'sg11'.
    PERFORM bdc_dynpro USING 'SAPLMGMM' '4000'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '/00'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MARC-ZZGPIND'.
    PERFORM bdc_field USING 'MARC-ZZGPIND'
    itab_mrp-zzgpind.
    'G'.
    PERFORM bdc_field USING 'BDC_CURSOR'
    'MARC-ZZDATE'.
    PERFORM bdc_field USING 'MARC-ZZDATE'
    itab_mrp-zzdate.
    'G'.
    PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
    PERFORM bdc_field USING 'BDC_OKCODE'
    '=YES'.
    PERFORM call_bdc_insert USING 'MM02'.
    CLEAR bdcdata . REFRESH bdcdata .
    v_no_lines = v_no_lines + 1 .
    v_ctr = v_ctr + 1.
    ENDLOOP.
    PERFORM call_bdc_close_group.
    SKIP 10.
    WRITE :/10 'Session by name MRP2* created' .
    WRITE :/10 'Total No of records uploaded - ' , v_no_lines .
    ENDIF.
    ENDFORM. " bdc_upload_mrp
    *& Form display_header_mrp
    text
    --> p1 text
    <-- p2 text
    FORM display_header_mrp.
    NEW-LINE.
    set left scroll-boundary column 48.
    FORMAT COLOR 1 INTENSIFIED ON.
    ULINE (65).
    WRITE :/' Avnet Material',
    21'|' ,
    23 'Plant ' ,
    33 '|',
    35 'Indicator',
    49 '|',
    52 'Date',
    65 '|' .
    NEW-LINE.
    ULINE (65).
    FORMAT COLOR OFF INTENSIFIED OFF.
    ENDFORM. " display_header_mrp
    *& Form valid_plant_check
    text
    --> p1 text
    <-- p2 text
    FORM valid_plant_check.
    LOOP AT itab_mrp.
    IF itab_mrp-matnr IS INITIAL OR itab_mrp-werks IS INITIAL OR
    itab_mrp-zzgpind IS INITIAL.
    MOVE-CORRESPONDING itab_mrp TO ertab_mrp .
    APPEND ertab_mrp . CLEAR ertab_mrp .
    DELETE itab_mrp.
    CLEAR itab_mrp.
    CONTINUE.
    ENDIF.
    SELECT SINGLE * INTO tab_marc FROM marc WHERE matnr = tab_marc-matnr
    AND werks = itab_mrp-werks . .
    IF sy-subrc = 0.
    MOVE-CORRESPONDING itab_mrp TO ertab_mrp .
    APPEND ertab_mrp . CLEAR ertab_mrp .
    DELETE itab_mrp.
    CLEAR itab_mrp.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    ENDFORM. " valid_plant_check
    FORM open_group *
    FORM open_group USING p_grp .
    open batchinput group
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = p_grp
    user = sy-uname
    keep = 'X'.
    ENDFORM.
    Check this
    http://www.sap-img.com/ab001.htm
    Regards,
    Priyanka.

  • Call transaction using bdc tab and also skip first screen??

    Hi,
    Please help.
    I want to call transaction PA30 fill it with values which are determined only at runtime and then skip first screen.
    The screen doesn't have parameter fields so i cannot use 'set parameter id'.
    I also cannot create a transaction with parameters as I only have these at runtime.
    Anyone done anything like this???

    hi,
      you might be populateing the itab bdc_tab with the corresponding values fronm the recording.
    while doing the recording go until to the screen wher u want to finsih.
    and populate the bdc_tab wit the ok code,screen number and the value.
    this will do.
    for eg see the code below.
    METHOD analyze_log.
      DATA : wrk_extid TYPE balhdr-extnumber.
      DATA : wrk_date(10) TYPE c.
      DATA : it_rspar TYPE TABLE OF rsparams .
      DATA : wa_rspar TYPE rsparams.
      DATA: it_bdcdata TYPE STANDARD TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
      DATA: params TYPE ctu_params.
      CONSTANTS : object TYPE balhdr-object VALUE 'ZKIV_LOG'.
      IF wa_kopf-vertr_nr IS NOT INITIAL.
        CONCATENATE wa_kopf-vertr_nr '/' wa_kopf-nachtr_nr  INTO wrk_extid.
        wrk_date = '01.09.2006'.
        SET PARAMETER ID 'BALOBJ' FIELD object .
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
        wa_rspar-selname = 'ALDATE'.
        wa_rspar-sign = 'I'.
        wa_rspar-kind = 'P'.
        wa_rspar-option = 'EQ'.
        wa_rspar-low = wrk_date.
        APPEND wa_rspar TO it_rspar.
      ELSE.
        CLEAR wrk_extid.
        SET PARAMETER ID 'BALEXT' FIELD wrk_extid.
      ENDIF.
    Update BDC tab
    --Call SLG1 using BDC--&
      params-dismode = 'E'. "Show errors only
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_CURSOR'.
      wa_bdcdata-fval = 'BALHDR-ALDATE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BALHDR-ALDATE'.
      wa_bdcdata-fval = wrk_date.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=SELE'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = 'SAPLSLG3'.
      wa_bdcdata-dynpro   = '0100'.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_OKCODE'.
      wa_bdcdata-fval = '=&F03'.
      APPEND wa_bdcdata TO it_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = 'BDC_SUBSCR'.
      wa_bdcdata-fval = 'SAPLSBAL_DISPLAY                        0101SUBSCREEN'.
      APPEND wa_bdcdata TO it_bdcdata.
      CALL TRANSACTION 'SLG1' USING it_bdcdata OPTIONS FROM params.
    --End of BDC--&
    ENDMETHOD.
    here wat i m doing is that i dont want the subscreen 101 to be displayed..
    Message was edited by:
            Sandeep S

  • What is the tcode for bdc recording and how to do in hr-abap for pa and om

    hi,
         I need to do the bdc recording for pa and om. So, can any of you tell me how to do and what are the tcodes we have to use.
    thanks & regards,
        Sekhar.

    Hi ,
    Here is the link from you will get all the transaction code
    http://www.sap-basis-abap.com/saphr004.htm
    As far PA specfic some tcodes are given below
    PA20  Display HR Master Data
    PA30  Maintain HR Master Data
    PA40  Personnel Actions
    PA41  Correct Actions
    PA42  Fast Entry for Actions
    PA46  Import from Resumix
    PA47  Export to Resumix
    PA48  Hiring from non-SAP system
    PA51  Display Time Data
    PA53  Display Time Data
    PA61  Maintain Time Data
    PA62  List Entry of Additional Data
    PA63  Maintain Time Data
    PA64  Calendar Entry
    PA70  Fast Entry
    PA71  Fast Entry of Time Data
    PA88  Benefits
    For OM specific
    PP01  Maintain Plan Data (menu-guided)

  • Msg of type 'S' in BDC program and same msg of type 'A'

    We have to upload data for ABZON transaction of assets. When we use LSMW with recording method and try to upload say 3 records. All teh records are updated successfully but the batch input session log says last two records with a message of type 'A' "leave transaction is not possible in batch input"
    But when we upload the same data with BDC program with call transaction then teh log shows same message with type 'S'.
    what could be the reason for this?
    Though data gets uploaded successfully the 'A' message is being displayed in LSMW batch input log.
    if anyone has encountered a similar problem pls let us know how to resolve this asap.
    Thanks,
    Simmi

    hi,
    one crucial point I remember by using enjoy tcodes for bdc is the change of field bukrs.
    you must create one bdc-map for each company - program sth like this:
        LOOP AT itab.
          AT NEW bukrs.
            IF bk ne itab-bukrs.                    "not for 1st bk
              PERFORM open_btci_group USING map '00000000' 'X'.
              ADD 1 TO cnt.
              PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
              PERFORM bdc_field       USING 'BDC_OKCODE' '=FURT'.
              zeile = '01'.
              PERFORM bdc_field_loop USING  zeile 'SVALD-VALUE' itab-bukrs.
            ENDIF.
          ENDAT.
    hope that helps

  • BDC programming and table controls selColumns

    Hello,
    I have a small question regarding BDC programming. I am already quite familiar with the process in creating one but I have one question regarding table control and its selColumns.
    Transactions like pa40 would require its users to select one of the rows in the table controls via SelColumns. My questions is how would you simulate this using BDC.
    Thanks people and take care.

    Hai Chad Cheng
    report Z_TAB_CONTRL_01
           no standard page heading line-size 255.
    data : begin of it_kna1 occurs 0,
           kunnr like RF02D-KUNNR,
           D0130 like RF02D-D0130,
           end of it_kna1.
    data : begin of it_kna2 occurs 0,
           kunnr like RF02D-KUNNR,
           BANKS like KNBK-BANKS,
           BANKL like KNBK-BANKL,
           BANKN like KNBK-BANKN,
           koinh like KNBK-koinh,
           end of it_kna2.
    data : V_Count(2) type n.
    data : V_Val(15).
    include bdcrecx1.
    start-of-selection.
      perform Get_Data1.
      perform Get_Data2.
    perform open_group.
    loop at it_kna1.
    V_Count = '04'.
    perform bdc_dynpro      using 'SAPMF02D' '0106'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02D-D0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02D-KUNNR'
                                  '10002103'.
    perform bdc_field       using 'RF02D-D0130'
                                  'X'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    loop at it_kna2 where kunnr = it_kna1-kunnr.
    if v_count = '10'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    v_count = '00'.
    endif.
    V_Count = V_Count + 1.
    concatenate 'KNBK-KOINH(' V_Count ')' into V_Val.
    perform bdc_field       using 'BDC_CURSOR'
                                   'KNBK-KOINH(09)'.
    concatenate 'KNBK-BANKS(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-BANKS.
    concatenate 'KNBK-BANKL(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-BANKL.
    concatenate 'KNBK-BANKN(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-BANKN.
    concatenate 'KNBK-KOINH(' V_Count ')' into V_Val.
    perform bdc_field       using V_Val
                                  it_kna2-KOINH.
    endloop.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=UPDA'.
    perform bdc_transaction using 'FD02'.
    clear : it_kna1,it_kna2.
    endloop.
    perform close_group.
    *&      Form  Get_Data1
          text
    -->  p1        text
    <--  p2        text
    FORM Get_Data1 .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\tab_contl.txt'
       FILETYPE                      = 'ASC'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = it_kna1
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " Get_Data1
    *&      Form  Get_Data2
          text
    -->  p1        text
    <--  p2        text
    FORM Get_Data2 .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\tab_cont1.txt'
       FILETYPE                      = 'ASC'
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = it_kna2
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " Get_Data2
    Thanks & regards
    Sreenivasulu P

  • BDC: Header and item

    Hi all
    can any one please let me know how to upload header as well as item details from the same flat file through BDC?
    For example my file is like this.
    Customer (header) Ref(header) Account (item) GL(Item)
      100                      test            588                  9999
      100                      test            600                  1000
      101                       rtr              858                  666
    Based on the above file i have to create a BDC and in this for the same header i have to upload two item details.
    Can any one please tel me procedure how to do that??
    Thanks
    AJ

    Hi Arun Joseph,
    What is the problem with this flat file?
    Just LOOP these records, under AT NEW do the process regard HEADER field values, under AT END do the process for both header and its corresponding items and in between these statements process the items.
    Usually this is the way to do BDC for such type of recoeds. For example, Sales Order Creation, Purchase Order Creation and all.
    Regards,
    R.Nagarajan.
    We can -

  • Dependent transactions in bdc --KO01 AND IE01

    Hello All,
    i have a task to record KO01 AND IE01 THROUGH BDC, i am able to record both the t.codes but not finding the link between both the t.codes,so can any please tell me in what way these two T.codes are dependent and functionality of them as wel....

    AFAIK
    - KO01 create an internal order (can be support for budget control or asset) - get number in first parameter of message KO107 in BDCMSGCOLL structure returned internal table ([MESSAGES  INTO|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION_BDC_OPTIONS.htm#&ABAP_ADDITION_4@4@] for CALL TRANSACTION, no SM35 BDC)
    - IE01 create an equipment, I suppose you have to use the newly created internal order in the additional data tab with the account assignment block
    Truly your functionnal should have given you more information
    Regards,
    Raymond

  • Difference among BDC eCATT and LSMW

    Hi guys,
       May I have your attention please?
       I encounter difficulities regarding the relation among the above Data Transfer Tools.
       So far,I have learned a little about these tools, and done some data batch input from
    local drive.I find the three tools can deal with the same thing. So my question is what
    distinction exists among them since they are similar so much?
      Thank you

    Refer these links might be useful -
    Differences between  BDC , LSMW, BAPI,CATT
    LSMW Vs BDC
    Difference between BDC and LSMW
    Regards,
    Amit
    Reward all helpful replies.

Maybe you are looking for