Quantcast
Channel: SCN: Message List - ABAP Testing and Troubleshooting
Viewing all 1418 articles
Browse latest View live

Re: ABAP Test Cockpit false negatives

$
0
0

Hi Terry,

 

I had a look for your second 'false positive'.
It looks like Code Inspector naming conventions checks report a "Inconsistent Name ... PROGRAM/REPORT" if the object catalog entry of a report deviates from the name given in the REPORT statement in the ABAP code.

For example, in the menu of SE80 one finds under Goto-->Object Catalog Entry:

Object --- R3TR PROG Z_REPORT_XXX

 

But in the ABAP report itself one can define:

REPORT Z_REPORT_UUU.

 

The check raises a message for this inconsistency (though development workbench allows it).

 

Best Regards, Randolf


Re: ABAP Test Cockpit false negatives

$
0
0

Thank you, Randolf. You are exactly right on my second issue. This particular program had a different name in the PROGRAM statement than the actual object name. I corrected that and both the "inconsistent name" messages disappeared.

Anybody have any ideas on the first issue, where Extended Program Check is complaining about the lack of a license for a product we don't even have installed in our system?

Thanks,

TerryB

Re: ABAP Test Cockpit false negatives

$
0
0

Okay, I just figured the first issue out on my own. I can't explain the why, but here's the what: In my Code Inspector check variant, if I turn on "Security Analyses in Extended Program Check" under "Security Checks," the spurious "without a released license" message goes away. That's the resolution to the first issue. Just to recap, the solution to the second issue is to make sure that the name stated on the PROGRAM or REPORT statement matches the actual object name. All better now! Thanks again, Randolf!

Poor performance with same kind of data and same query comparing

$
0
0

Dear Gurus

We have done system refresh PRD-->PR1  and PRD-->QAS  on same date with the same PRD data.

 

The below query consuming  30 minutes to run in PR1 system,

but the same is working fine in less than 6 minutes in QAS system

 

from ST12 the below query takes 30 mins  time in PR1, and  4-6 mins in QAS

SELECT  WHERE "MKPF"."MANDT"= '400'  AND "MKPF"."CPUDT">= 20141204      

 

 

db statistics are uptodate in both the system. even the system is less loaded, and still giving poor performance..

 

could you please shed some light on this.

Re: SAT for measuring RFC FM getting callled multiple times sequentially

$
0
0

Hello Randolf,

 

Thanks for the response. I am have taken the trace of individual RFC call.

But last question would be, the overall measurement [ Gross time taken or Net time taken in micro seconds] for the Application which makes multiple calls to the same RFC will be equal to -> the sum of all measurements for individual RFC call right ?

 

Thanks,

Naresh

Re: SAT for measuring RFC FM getting callled multiple times sequentially

$
0
0

Hello Naresh,

 

Yes, if it's a synchronous RFC you should find both an entry "Rfc function_name" and an entry "Wait for RFC" in the trace of the program that started the RFCs.

 

Best Regards, Randolf

Re: SAT for measuring RFC FM getting callled multiple times sequentially

$
0
0

Hi Randolf,

 

Since the measurement scheduled is directly on the OBJECT: RFC Function Module itself, I cannot see the WAIT for RFC statement.

 

as I don't have much information beyond this RFC FM, I cannot take a trace on the master program of the application which delegates the call to RFC FM.

 

I hope my understanding is fine.

 

Thanks,

Naresh

Re: SAT for measuring RFC FM getting callled multiple times sequentially

$
0
0

Hi Naresh,

 

if it's synchronous RFCs (that is, application is waiting for the response of the RFC), then the overall runtime of the application will be the sum of all RFCs plus the time spend in the application itself.

It it's asynchronous RFCs (STARTING NEW TASK), then runtime of application might be (much) shorter than sum of RFC runtimes.

 

Best Regards, Randolf


Re: SAT for measuring RFC FM getting callled multiple times sequentially

$
0
0

Hello Randolf,

 

I got the answer. Yes it is a synchronous call for the RFC.

 

Additionally I have one short question in the same context,

 

Why is that I don't get the measurement for all the underlying programs/FM's which fall under this main RFC FM, when I give  the function pool name [ Function Pool/Main Program of the RFC FM ] as the object while scheduling the measurement ?

 

I get to see that complete measurement for all objects [ Diff. Programs/ FM's ] under the RFC FM, only when I provide the RFC FM name while scheduling the measurement.

 

Regards,

Naresh

Re: Poor performance with same kind of data and same query comparing

Re: For All Entries is NOT better than INNER JOIN in most cases

Re: Poor performance with same kind of data and same query comparing

$
0
0

Hi Joshi

longrunning.jpg

The Report from ST12 trace.. SQL performance

Re: Poor performance with same kind of data and same query comparing

$
0
0

hii Balaji

 

i want what you written in your select query in se 38..

 

Regards

Gaurav

How do I know when an ABAP program last changed?

$
0
0

I am familiar with the concept that there are a number of reasons that SAP will compile a particular ABAP program even though there may have been no change to the contents of that particular program, and that in these cases, the "Changed by" field will show "SAP" and the "Changed on" field will show the date that SAP compiled the program.

 

My question is, if you see the "Changed by" field indicates "SAP", can you always assume that this was not a change to the ABAP program (and that, rather, it was just the system compiling the program)? Or, are there some cases where this scenario could still indicate the ABAP program changed on the indicated date?

 

Example:

 

"Changed by" = "SAP", and "Changed on" = "8 Feb 2014"

 

Can I assume that this does not indicate that SAP actually changed the ABAP program on 8 Feb 2014? Or could this indicate SAP changed this program on that date?

 

Further, since the "Changed on" date can be misleading, is there a way to truly validate when an ABAP program last changed?

 

If there are any links to reference materials that would help with this, that would be helpful as well.

 

Thanks!

Re: How do I know when an ABAP program last changed?

$
0
0

hii Jayda

 

Attributes changed on and by indicates who and when program is changed..

if you are not sure you can always check the  program version.

 

in utilities---versions--version mnagement.

 

Regards

Gaurav


Re: Poor performance with same kind of data and same query comparing

$
0
0

Hi joshi:

 

SELECT mseg~mblnr

          mseg~mjahr

          mseg~zeile

          mseg~bwart

          mseg~kzbew 

          mseg~kzvbr 

          mseg~xauto

          mseg~matnr

          mseg~werks

          mseg~lgort

          mseg~insmk

          mseg~sobkz  

          mseg~lifnr

          mseg~shkzg

          mseg~menge

          mseg~meins

          mseg~bustm

          mseg~ebeln 

          mseg~ebelp  

          mseg~aufnr  

          mkpf~cpudt

          mkpf~cputm

     INTO TABLE gt_mseg

     FROM mkpf INNER JOIN mseg

       ON mkpf~mblnr = mseg~mblnr

      AND mkpf~mjahr = mseg~mjahr

    WHERE mkpf~cpudt GE gv_old_date

Re: Poor performance with same kind of data and same query comparing

$
0
0

or something like below:

 

SELECT "MSEG"."MBLNR","MSEG"."MJAHR","MSEG"."ZEILE","MSEG"."BWART","MSEG"."KZBEW","MSEG"."KZVBR","MSEG"."XAUTO","MSEG"."MATNR","MSEG"."WERKS","MSEG"."LGORT","MSEG"."INSMK","MSEG"."SOBKZ","MSEG"."LIFNR","MSEG"."SHKZG","MSEG"."MENGE","MSEG"."MEINS","MSEG"."BUSTM","MSEG"."EBELN","MSEG"."EBELP","MSEG"."AUFNR","MKPF"."CPUDT","MKPF"."CPUTM" FROM "MKPF" INNER JOIN "MSEG" ON "MKPF"."MANDT"="MSEG"."MANDT" AND "MKPF"."MBLNR"="MSEG"."MBLNR" AND "MKPF"."MJAHR"="MSEG"."MJAHR" WHERE "MKPF"."MANDT"=:A0 AND "MKPF"."CPUDT">=:A1

Re: Startroutine in SAP BW: SOURCE_SYSTEM

$
0
0

Hello Thomas,

 

It seems you are missing some attributes while defining a Datasource.

 

I guess the people in the tagged community can help you with it.

 

SAP Business Warehouse

 

Regards,

TP

Re: Poor performance with same kind of data and same query comparing

$
0
0

r u selection this from mkpf?

 

please check it again

 

Gaurav

singleton class in global class

$
0
0

Hi Experts,

 

I have a basic understanding that if we use singleton class we can have only one instance at a time.

 

please let me know why and where we will use singleton call and how we can implement singleton class in global class

 

Thanks in Advance

Srivedha Sankaran

Viewing all 1418 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>