Application Development and Automation 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: 
Read only

statement is not accessible

Former Member
0 Likes
815

hi all ,

i am beginner in BDC, i am writing coding which is given there

REPORT ZTOTAL_BDC.

INCLUDE bdcrecx1.

*PARAMETERS: dataset(132) LOWER CASE.

types: begin of ty_upload,

matnr type matnr,

WERKS type WERKS_D,

VERID type VERID,

BDATU type BDATM,

ADATU type ADATM,

STLAL type STALT,

STLAN type STLAN,

PLNTY type PLNTY,

PLNNR type PLNNR,

ALNAL type PLNAL,

MDV01 type SA_LINE1,

TEXT1 type VERS_TEXT,

BSTMI type SA_LOSVN,

BSTMA type SA_LOSBS,

STTAG type FV_STTAG,

end of ty_upload.

data: it_upload type table of ty_upload,

wa_upload like line of it_upload,

  • bdcdata type bdcdata occurs 0 with header line ,

program type bdcdata-program,

dynpro type bdcdata-dynpro,

dynbegin type bdcdata-dynbegin,

fnam type FNAM_____4,

fval type BDC_FVAL.

*break-point.

perform upload_data.

its throwing an error that statement "perform upload_data" is not accesible.

1 ACCEPTED SOLUTION
Read only

asik_shameem
Active Contributor
0 Likes
757

Hi

Do like this

INCLUDE bdcrecx1.

*PARAMETERS: dataset(132) LOWER CASE.

types: begin of ty_upload,
matnr type matnr,
WERKS type WERKS_D,
VERID type VERID,
BDATU type BDATM,
ADATU type ADATM,
STLAL type STALT,
STLAN type STLAN,
PLNTY type PLNTY,
PLNNR type PLNNR,
ALNAL type PLNAL,
MDV01 type SA_LINE1,
TEXT1 type VERS_TEXT,
BSTMI type SA_LOSVN,
BSTMA type SA_LOSBS,
STTAG type FV_STTAG,
end of ty_upload.

data: it_upload type table of ty_upload,
wa_upload like line of it_upload,

* bdcdata type bdcdata occurs 0 with header line ,

program type bdcdata-program,
dynpro type bdcdata-dynpro,
dynbegin type bdcdata-dynbegin,
fnam type FNAM_____4,
fval type BDC_FVAL.

START-OF-SELECTION. " << Change Here

*break-point.
perform upload_data.

4 REPLIES 4
Read only

Former Member
0 Likes
757

you have to create the subroutinue upload_data and write some code inside it...

Read only

0 Likes
757

insert START-OF-SELECTION before the PERFORM.

Thomas

Read only

0 Likes
757

thank u thomas..

Read only

asik_shameem
Active Contributor
0 Likes
758

Hi

Do like this

INCLUDE bdcrecx1.

*PARAMETERS: dataset(132) LOWER CASE.

types: begin of ty_upload,
matnr type matnr,
WERKS type WERKS_D,
VERID type VERID,
BDATU type BDATM,
ADATU type ADATM,
STLAL type STALT,
STLAN type STLAN,
PLNTY type PLNTY,
PLNNR type PLNNR,
ALNAL type PLNAL,
MDV01 type SA_LINE1,
TEXT1 type VERS_TEXT,
BSTMI type SA_LOSVN,
BSTMA type SA_LOSBS,
STTAG type FV_STTAG,
end of ty_upload.

data: it_upload type table of ty_upload,
wa_upload like line of it_upload,

* bdcdata type bdcdata occurs 0 with header line ,

program type bdcdata-program,
dynpro type bdcdata-dynpro,
dynbegin type bdcdata-dynbegin,
fnam type FNAM_____4,
fval type BDC_FVAL.

START-OF-SELECTION. " << Change Here

*break-point.
perform upload_data.