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: 

bdc

Former Member
0 Kudos

need bdc code for fd32 transaction?

regards,

padma

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

Dear expert,

is there an authorisation object for SBGRP?

Thanks

Rox

Edited by: rossella fiorella on Mar 21, 2008 5:09 PM

Former Member
0 Kudos

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

Former Member
0 Kudos

hi ,

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

regards,

venkat.

Former Member
0 Kudos

Hi ,

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

Rgds

Sree M