Skip to Content
0
Former Member
Feb 21, 2006 at 08:47 PM

abap help

13 Views

hi folks,

I am running a batch input program taking the data from excel file (.csv) format, the program is using the call transaction to process the data in the BDC table and then create a batch input

the sample code goes like this....

declaration part ..

bisflag(1) TYPE c VALUE 'N'.

.

.

.

PERFORM fill_bdc_tab.

  • fill the bdc_tab

*calling the PA30 transaction to process the records in the bdc_tab*

CALL TRANSACTION 'PA30'

USING bdc_tab

MODE s_mode

UPDATE 'S'

MESSAGES INTO messtab.

IF sy-subrc NE 0.

TRANSFER itab_in TO filestat.

TRANSFER itab_in TO fileout.

record_error = record_error + 1.

PERFORM write_errors.

  • Add to batch session

IF bisflag = 'N'.

bisflag = 'Y'.

CALL FUNCTION 'BDC_OPEN_GROUP'

.

.

.

ENDIF.

CALL FUNCTION 'BDC_INSERT'

EXPORTING

tcode = 'PA30'

TABLES

dynprotab = bdc_tab

and so on....

It is throwing two error messages into 'messtab' one is a warning which I am working on and the other is a status message which says

'no batch input data for some screen number' I am not able to understand this, what does that mean?

Thanks

Vinu