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

Re: singleton class in global class

$
0
0

Hi,

 

Please read it is available every where online

 

Singleton Pattern in ABAP

 

When the class is global also the behavior is same the reason to use is something like in SD where you have multiple exits in MV45AFZZ and you have your Z data all scattered but in one session for you need data only to that specific order so you can keep a singleton class and read and process all data without worry where the instance is created.


Re: singleton class in global class

Re: singleton class in global class

Re: Few questions related to CBTA

$
0
0

This questions are also interesting for me! I hope there is someone out here who can provide some helpfull information.

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

$
0
0

Hi Balaji,

 

You are passing only date in your where condition. Try passing more fields in the key fields of MKPF and MSEG.

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

$
0
0

Did you check the execution plan in SQL trace in both the system? Maybe the access plan is referring to different indexes which is causing the difference in the execution time.

 

Regards

Re: Few questions related to CBTA

$
0
0

Hi Siva Kumar,

 

CBTA is similar to eCATT with only difference of editing the script. To add or modify the steps you need to first create and record the test script. Then go to the test script from test repository, double click on it, a new window will be opened with Script info. Under that go to tab 'Test Script' and click on edit button. This will show the recorded steps. You can now add new step  or condition at the last row using 'CBTA Default Component' under column type. Press F4 for column 'Name', search for the CBTA component for e.g. 'IF" , 'ELSE' etc to provide the conditions.

For CBTA components and its usability, please follow the link.

 

SAP Solution Manager WIKI - Test Management - Solution Manager - SCN Wiki

 

in that select the document CBTA 3.0 SP02 - Runtime Library and Default Components.

 

After providing the description for the added step, you have to provide values to the parameters including URI. (You can find the URI of a component on a screen by clicking on 'Technical Information > Object Spy'). Save the step and move its position using UP or DOWN button where it is required. You can pass the parameters in between the steps by making them 'Exposed '. For detailed information please follow the link :

 

http://scn.sap.com/community/it-management/alm/solution-manager/blog/2014/12/01/how-to-use-the-new-cbta-loop-capabilities

 

Regards,

Rutvik.

ATC not working on includes

$
0
0

Dear ATC experts,

I have ATC configured to run SLIN checks and a slew of Code Inspector checks. When I run ATC on an include, it reports no findings. Yet when I run SLIN or CI directly on this same include, they show a bunch of findings. What am I doing wrong?!

Thanks,

TerryB


ABAP runtime errors DBIF_RSQL_NO_MEMORY

$
0
0

Hi,

 

I have searched the forum but got no satifactory reply. Below is the error. Just wanted to know is this a memory issue. Can anything be done for this from ABAP end. Please suggest.

 

ABAP runtime errors    DBIF_RSQL_NO_MEMORY

       Occurred on     29.12.2014 at 03:39:48

 

 

>> Short dump has not been completely stored. It is too big.

 

 

 

 

No memory available for access to table "T005 ".

 

 

 

 

What happened?

 

 

 

 

Runtime Error

of the statements could not be executed at runtime.

The current ABAP program "SAPLV05N " had to be terminated because one

of the statements could not be executed at runtime.

 

 

 

 

 

 

What can you do?

 

 

 

 

Please make a note of the actions and input which caused the error.

Please make a note of the actions and input which caused the error.

 

 

To resolve the problem, contact your

SAP system administrator.

 

 

Choose "Print" for a hard coopy of the termination message. You can

display and adminster short dump messages using Transaction ST22.

 

 

 

Error analysis

 

 

 

 

No internal memory available for table access. The memory was needed by

a statement that accessed table "T005 ".

 

 

 

 

How to correct the error

 

 

 

 

Please check the entries in the system log (Transaction SM21).

 

 

If the error occurred in a non-modified SAP program, you may be

able to find a solution in the SAP note system.

If you have access to the note system yourself, use the following

search criteria:

 

 

"DBIF_RSQL_NO_MEMORY"

"SAPLV05N " or "LV05NF1A "

"FT_COUNTRY_CODE_GET"

If you cannot solve the problem yourself, please send the

following documents to SAP:

 

This is happening in a Batch Job but amazaingly this is not cancelling the Job..but when it only fails to created SD invoices.

Program for creating the Invoices is RV60SBT1 for bulk Invoice creation.

 

 

Please help/suggest.

Re: ABAP runtime errors DBIF_RSQL_NO_MEMORY

$
0
0

Hi Kumar

 

You can enable the ST12 trace and check the over all ABAP & DB usage

 

BR

Tracing a long running batch job.

$
0
0

Hi experts.

I'm sutuding se30 transaction by link:

ABAP Runtime Analysis (SE30) - How to analyze ABAP program flow

 

I did the examples 1 and 2 but i tryed the examplo 3 ( How to trace a long running batch job?) and did not work.

For test i created a job with z program .Then i go in se30 and click in button "Switch On/Off"  then appears a screen similar to sm50.

I hope my job to run every 3 minutes then i click in button to activate verification but the result is empyty.

To perform this analysis used a program on job that runs a simple select.

to perform this test should create a program that takes or stand still in a process?

What am I doing wrong?

 

Thanks.





HCM Payslip

$
0
0

Dear Experts,

 

I would like to know the syntax of multiplying a wage type by -1 whenever it is available in the payslip.

This wage type is a deduction one, but it is available in the payroll results with a positive sign (standard behavior).

 

The required scenario is to multiply this wage type by -1 as it appears in the Deductions section in the payslip.

 

Regards,

Re: HCM Payslip

$
0
0

Are you really looking for this?

 

If pa0008-lgart eq <wage_type>.

value = value * -1.

endif.

ATC - change email language

$
0
0

We are sending different kinds of email-notifications via the ATC.

Unfortunately all emails are written in English. Not all recepients are fluent in English so we would like to either change the language to German or customize the whole text that is sent.

 

Is there a way to do this?

Re: HCM Payslip

$
0
0

Dear Chinmay,

 

Thanks a lot for your answer. It was very useful.

 

Thanks,


How to deactivate Business Configuration Sets in SAP once they have been activated

$
0
0

How to deactivate Business Configuration Sets in SAP once they have been activated

ABAP Test Cockpit not working on includes

$
0
0

We have a habit in my company of putting code for enhancements into includes so that the only line of code in the enhancement is the INCLUDE statement. Some of these includes have quite a lot of code in them. When I bring up an include in SE38 and run ATC on it, it ALWAYS says

"The objects passed the chosen checks without any finding" when clearly there should be findings. It appears to me that the checks are not being performed.

What am I missing here?

Cheers,

TerryB

Re: ABAP Test Cockpit not working on includes

$
0
0

I think ABAP Test Cockpit works only on main program (1, M, Classes and Function Groups).

Unfortunately it does not work on SAP standard objects so you may want to try cloning the SAP standard main program and run ATC on it.

Not nice, I know, just a try

Sergio

Re: SELECT optimization for performance improvement

$
0
0

Hello Andrej,

 

The database optimizer only takes the first key column of BUT020~0 index into account, which is the CLIENT field. So the join statement leads to a full scan on all entries of BUT020 in one client.

The COUNTRY information for ADRC is not taken into account.

It could be that the IN-clause for COUNTRY does not look very attractive (selective) for the database, so it decides for the full scan on the possibly smallest table, that is BUT020.

See what happens if you use an EQ condition for COUNTRY.

 

Best Regards, Randolf

Re: SELECT optimization for performance improvement

$
0
0

Hi Andrej,

 

Could you please remove statement 'INTO CORRESPONDING FIELD OF TABLE' and use only 'INTO TABLE'. (Into corresponding field of table statement also decrease the performance).

 

on other hand, I would suggest please try to join first two table (ADRC & but020) and then select data from CRM table crmd_index using for all entries.

 

 

Please try as below :

 

TYPES : BEGIN OF lty_adrc_but,
         addrnumber TYPE ad_addrnum,
         partner    TYPE bu_partner,
        END OF lty_adrc_but,
       
        BEGIN OF lty_crmd_order,
          header TYPE crmt_object_guid,
        END OF lty_crmd_order.

 

DATA : lt_adrc_but TYPE STANDARD TABLE OF lty_adrc_but,
       lt_crmd_order TYPE STANDARD TABLE OF lty_crmd_order.

 

SELECT a~addrnumber
       b~partner
  FROM adrc AS a INNER JOIN but020 AS b ON a~addrnumber = b~addrnumber
  INTO TABLE lt_adrc_but
  WHERE country IN ls_multivalues-searchvalues.


IF NOT lt_adrc_but IS INITIAL.
  SORT lt_adrc_but BY partner.


  DELETE ADJACENT DUPLICATES FROM lt_adrc_but COMPARING partner.

  SELECT header
    FROM crmd_order_index
    INTO TABLE lt_crmd_order
    FOR ALL ENTRIES IN lt_adrc_but
    WHERE object_type = 'BUS2000111'
    AND   pft_6  = 'X'
    AND partner_no = lt_adrc_but-partner.


ENDIF.

Viewing all 1418 articles
Browse latest View live


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