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: 

call statement

Former Member
0 Kudos

Hi to all,

there is one program which will extract all the dump( Error sessions) from SM35. in that program there are some call statements which are working fine in 4.5B version, Client upgraded to ECC 6.0 version, in that it is not working.

for example

data:paramname(11) VALUE 'bdc/logfile',

logname(80).

CALL 'C_SAPGPARAM' ID 'NAME' FIELD paramname

ID 'VALUE' FIELD logname.

this call statement is getting some path and file name into logname in 4.5B version, but in ECC version its getting failed.

is we need to do any configuration for this, i also tried by passing value 'bdc/new_protocol' to the PARAMNAME, didnt working.

after getting this fiel and pathe name, how to read the data in that file.

there are some call statements to read this file, but those also again failing.

data: ec TYPE i,

one TYPE i VALUE 1.

DATA BEGIN OF bdclda OCCURS 0.

INCLUDE STRUCTURE bdcld.

DATA END OF bdclda .

i have included some declarations for reference.

CALL 'ReadLogDirA' ID 'LOGN' FIELD logname

ID 'DTAB' FIELD bdclda-sys

ID 'AINF' FIELD one

ID 'ECNT' FIELD ec.

is we need any configuration, or is there some thing else to do it.

can any body help pls.

regards

raadha

4 REPLIES 4

Former Member
0 Kudos

hello,

could any body pls help me on this

0 Kudos

hello,

could any one help me how to use these statements.

regards

raadha

0 Kudos

Hello every body,

Can anybody help me where can i get documentation for these Cfunctions, Pls help me

Regards

Raadha

Former Member
0 Kudos

Hi,

You need to change some coding part.

Replace Occurs 0 with like standard table.

Example:

DATA BEGIN OF bdclda OCCURS 0.

INCLUDE STRUCTURE bdcld.

DATA END OF bdclda .

Change it to:

DATA BEGIN OF bdclda.

INCLUDE STRUCTURE bdcld.

DATA END OF bdclda.

DATA:

bdclda LIKE STANDARD TABLE bdclda.

Regards,

Rama.