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

Re: SELECT COUNT(*) FROM VBAK-VBAP-VBUK - performance

$
0
0

Hi,

 

As you said, you need to count sales order for about 10000 materials, you need to split your select statement and execute it seperately. For such a large number of materials, there might be huge number of slaes orders. So try to use 'PACKAGE SIZE' or 'SELECT -- CURSOR' while fetching data. It will execute faster that join statements. Also avoid using aggregate function 'COUNT' in selec. First get all the records in internal table and use 'Describe' statement to count the number of records.

 

 

-Regards,

Ketan


Data management for testing purpose

$
0
0

Hi.

 

Could you share your experience how you perform automated testing in SAP systems? Let's say we have eCATT as a main testing tool. It works great. But best practices from software development area say that test should behave like a transaction - prepare data, run test, clean after itself. It seems to be an issue with SAP tools (or I miss something).

 

Ideally we need a system that would create test data (let's say hire employee), run functional test (calculate payroll), verify result and rollback all data entered, Only in this case we can be 100% sure test is successfull. Creating and deleting test data manually in test (like with another test in a chain) could run into system limitations like interval ranges, that also could be solved with client overwrite on regular basis.

 

I'm not very familiar with SAP TDMS that is supposed to solve this, but it seems to have the same limits - no transactional mode for temporary data management. Under transaction I mean not SAP transaction code but database transaction that could be rolled back anytime to an initial state.

 

Your thoughts?

 

Thank you.

Few questions related to CBTA

$
0
0

Hi All,

 

I have few questions related to CBTA tool.

 

1. How to do looping statement in CBTA tool. ( Ex: DO...ENDDO command in eCATT ).

2. How to attach a conditional checks to an existing CBTA test scripts. ( Ex: Similar to Script Control -> IF, IF....ELSE, EXIT ).

3. How to attach a step in the middle of existing CBTA test scripts. ( Ex: Similar to SAPGUI ( Attach ) command in eCATT ).

4. How to reset the session in CBTA test script ( Ex: Similar to (ResetGUI = 'X') in eCATT ).


Regards,

Siva

 

Message was edited by: Siva Kumar

Full table scan on KAPOL after sap migration

$
0
0

Hello,

 

I am a sap basis guy, we have recently performed a sap migration :heterogeneous copy from SAP ECC6 Oracle 10.2 Windows to SAP ECC6 Oracle 11.2 HPUX. The whole migration went fine. The ORacle statistics are. of course,  up to date

We have just been informed of performance issues when reading the pooled table A017, it turns out that after the migration , the execution plan has changed the primary index the table pool KAPOL is no longer used, and instead it is doing a full table scan leading to dreadful performance :

 

The ABAP coding generating those full table scan is the following :

 

select matnr lifnr

         knumh

    into table lt_a018_1

    from a017

     for all entries in lt_a018_k

   where kappl = 'M'

     and kschl = 'PB00'

     and lifnr = lt_a018_k-lifnr

     and matnr = lt_a018_k-matnr

     and ekorg = l_ekorg                                     "'2075'

     and werks = l_werks

     and esokz = '0'

     and datbi >= sy-datum

     and datab <= sy-datum.

  sort lt_a018_1 by matnr lifnr.

  describe table lt_a018_1 lines l_i2.


13-10-2014 08-31-00.png

 

The Oracle stats are up to date :

13-10-2014 11-04-55.png

 

 

 

As you can see, all the key fields are defined in the where clause, so why the index is no longer used ? That is a total mystery

I did not expect the change of Oracle version to have any effect on the execution plan ...

I understand that similar topic have been discussed in this section of the SCN forum :

http://scn.sap.com/thread/229068

http://scn.sap.com/thread/950128

Sp, maybe some of you (ABAPers) would have some idea, do you understand why the KAPOL index is no longer used ?

Is there anything missing in the ABAP request ?

 

Any idea would be highly appreciated.

 

Thank you.



ST12 & SAT Trace does not trace certain service calls in CRM

$
0
0

Dear All,

 

Customer was not able to take certain service calls traces.

 

Short summary:

The test consist of tracing web-services. Each service is run by a

distinctive user so we can analyse the performance better on the CRM

 

backend.

 

The web-Services do launch RFC and updates on the backend.

 

Services are �defined� in the same way in

 

SICF: /sap/bc/srt/xip/sap/crm_bupa*

 

 

At the start of the test, we can gather the traces for HTTP, RFC and soon. We are tracing across all servers for a specific user for all Tasks or for HTTP only. Then for an unknown reason, the HTTP trace stops gathering. But yet, if we activate the trace for all tasks, it will capture RFC and update for the said user.

  

We need to understand why we cannot trace some of the web-services. Are there some limitations about the amount of HTTP traces we can capture?

We can see the HTTP steps in STAD but ST12 is not �catching� them.�

 

Thanks and Regards,

Ganesh

Problems concerning transaction F.98

$
0
0

Hello,

 

after an EHP7 upgrade I am facing Problems with Transaction F.98.

On F.98 --> Reporting --> Brazil --> Registro de inventario we double click on it and nothing happens.

I found out that this Report is represented by program J_1BLB07.

So when I run this program I reach the appropriate Report entry. Fine.

But this ist not the way our users do. They Need to get this Report via TA F.98.

 

Where ist the error?

I have no idea.

 

Please assist.

Thanks

ATC - Communication Error in RFC_PING

$
0
0

Hello.

 

We are trying to configure ATC at the moment.

So far we have set up trusted RFC connections and configured the master system as well as the one satellite system we are going to use.

 

What is working is this:

  • Sending the results of the central run to the satellite system
  • Applying for an excemption on the satellite system
  • Answering to the exception on the master system

 

We have one major problem though:

On the satellite system, whenever we double-click on a finding to see its details, we get an error message saying "Communication error: >>> invalid RFC handle <<<".

ATC_2.PNG

The details of the finding are displayed, but it doesn't show that an excemption has been applied for.

 

Through debugging I have found out that the error is being thrown in the method CL_SATC_CI_EXEMPTION_PERSIST~DESTINATION_VALIDATION_SVC, where the function call RFC_PING returns sy-subrc 2, which means a communication error.

 

As I said, we have configured the RFC-Destination and since everything else is working, the RFC destination must work.

ATC_1.PNG

 

Is there any other configuration we might have missed?

 

p.s. we are using SAP BASIS 7.40 SP 5 in both systems.

Re: ATC - Communication Error in RFC_PING


Re: ST12 & SAT Trace does not trace certain service calls in CRM

$
0
0

Hi Ganesh,

 

Have you tried to measure from SICF directly?

Mark your service in SICF, and then choose Edit -> Runtime Analysis -> Activate. Select proper measurement variant and user you want to measure. After execution of your scenario step, deactivate the trace again. You can display the trace in SAT.

This helped me in some rare cases.

 

Best Regards, Randolf

Retrieving data from BSEG table in ALV report

$
0
0

Hi All,

I have a very small assignment in ABAP.

 

I have to make an ALV report from BSEG table of FI module. In the report there should be "Amount" column against "general ledger account", "cost center" , "profit center" and "business area".


I have found the Fields and data elements of Amount in LC (DMBTR), G/L Account (HKONT),Cost Center (KOSTL), Profit center(PRCTR), business area (GSBER) in BSEG table.

 

My question is while designing SELECT statement, which key fields would be required?

 

As BSEG is a cluster table, the only key fields allowed are those of the primary key[1]:

 

  • BUKRS - Company Code
  • BELNR - Accounting Document Number
  • GJAHR - Fiscal Year
  • BUZEI - Line Item Number


Ref [1] http://scn.sap.com/community/abap/testing-and-troubleshooting/blog/2007/11/12/quickly-retrieving-fi-document-data-from-bseg


Re: ATC - Communication Error in RFC_PING

$
0
0

Thank you for your quick reply. It is now working.

Getting error on Transporting from Development to Quality System

$
0
0

Dear Experts,

    I have an issue regarding Implementation. I am trying to transport a complete package from Development system to Quality system ( Development system has EHP7 while quality system has EHP6). When I am trying to release transport it is giving error.

 

Below is screen shot of error log:

 

 

when I clicked on error for detail, I found below error.....

 

 

 

The class, method, BADI and Implementation have no "Z" table, domain or data element and all these objects or in the same package:....

 

 

 

  Everything is correct.

  Can anyone tell me what is the problem and how to solve this issue? 


Please reply asap.



Regards

Naval

Re: Retrieving data from BSEG table in ALV report

$
0
0

Hi Khurram,

 

You can actually select all of those as long as you set the where condition in your select statement right. These key fields may vary depending on your requirement. Example, if you are trying to reread the value of your select statement and compare to another table, say BSIS or BSAS, then you would definitely need key field BELNR(Document Number) to limit you comparison on the previous select statement coming from BSEG.

 

In your case, you can actually still use all if you have your parameters.

 

 

Best Regards,

Charlie

Re: Retrieving data from BSEG table in ALV report

$
0
0

Cluster Tables:

- Should be accessed via primary key - very fast retrieval otherwise very slow

- No secondary indexes will be allowed

- Select * is Ok because all columns retrieved anyway. Performing an operation on multiple rows is

  more efficient than single row operations. Therefore you still want to select into an internal

  table. If many rows are being selected into the internal table, you might still like to retrieve

  specific columns to cut down on the memory required.

 

 

As per the cluster definition RFBLG in which BSEG belongs to, below fields are highly enough to read the records for fast access...

BUKRS , BELNR, GJAHR

 

 

Please note that, you can write select query based on BUKRS      or BUKRS, BELNR   or  BUKRS , BELNR, GJAHR   (Totally, sequence of index fields will be left to right)... This is on the basis of performance  view... Otherwise, it will be slow...

Re: Retrieving data from BSEG table in ALV report

$
0
0

Actually the primary available keys are those common in BSEG and the actual database table RFBLG, so only [implicit MANDT], BUKRS, BELNR, GJAHR.

BUZEI as well as every other fields are only selected after actual read of database and decompression of raw data. also Joseph is right, every fields of BSEG are read in database, nevertheless better give a list of field in the SELECT to reduce size of data after each implicit or explicit package (each FETCH of data) is extracted.

 

As much as possible try to use "secondary indexes", for G/L those are BSIS and BSAS (depending on clearing status) You can also join BKPF with those tables. Only read BSEG as the last table, minimizing the size of the internal table referenced in the FOR ALL ENTRIES.

 

NB: You can also add an append structure to secondary indexes (with exact same fields in BS[I,A][S,K,D,M] table) as those are filled with MOVE-CORRESPONDING statements. (and build a small report to update added fields in legacy documents to be executed once out of peakside/workind days).

 

Regards,

Raymond


collect issue

$
0
0

Dear All,

 

In debugg Mode when i run the GT_VBRP-fkimg1 have value when go to statement at new maktl the value was zero . why ??

 

LOOP AT GT_VBRP.

 

     AT NEW MATKL.

       AT NEW MATNR.

 

         GT_VBRP-fkimg12 = GT_VBRP-fkimg12 + GT_VBRP-fkimg1.

 

         GT_VBRP-WAVWR1  = GT_VBRP-WAVWR1  + GT_VBRP-WAVWR.

 

         GT_VBRP-NETWR1  = GT_VBRP-NETWR1  + GT_VBRP-NETWR.

 

 

 

         COLLECT GT_VBRP INTO GT_VBRP2.

         ENDAT.

         ENDAT.

   ENDLOOP.

 

 

thanks,

Eman

Re: collect issue

$
0
0

Just read doculmentation of AT - itab

(look for work area between AT/ENDAT for field to the right of the key)

 

NB: Usually AT NEW/AT END OF are used to prepare and append to final table, when ADD statements olr MIN/MAX check are executed out of such block /OR/ COLLECT statement is used to bypass those constraints, but both statements together may be surprising...

 

 

Regards,

Raymond

EDI ORDCHG: 00347 error Update item quantity of Sales Order

$
0
0

Hi,

 

I'm trying to update the item quantity of a Sales Order and I can "execute" the idoc in foreground mode, but in background the idoc finish in status 51 with the following error: error no. 00 347: "Field VBAP-MATNR (1) is not an input field".

 

Ho can I solve that?

 

Input parameters in Idoc are:

- Segment: E1EDP01

      Item 000010

      Action: 002

      Quantity X

 

    - Segment: E1EDP19

         Identif: 002  (I tried 001 too, but it doesn't works)

         Material: YYYY (material Customer Code)

 

And in table: NASTMSGENQ (customizing SPRO)

   I add the register:

       - Transaction Code: VA0o2

       - A. Func: 00

       - Error: 347

            ----> Information

     As I understood with this configuration if this error appears it will be an information comment and not an error. But it doesn't works in this case too.

 

Thanks for trying to help.

 

Regards

Re: collect issue

$
0
0

dear Raymond ,

 

when i debug first statement my itab has data but when move to next statement AT New MATKL the value was zero and stars why please help me

 

  111.jpg

26-10-2014 09-49-48 ص.jpg

i need to create or copy formula

$
0
0

Dear All

when i create new formula and insert code and active from MC1D when i assign it to MC23 it is not active because

There is no main program for include FMCV2600

.

 

my problem is new formula not assign to program SAPFMCVF .

 

how do it ??

 

please help me

 

Thanks

Eman.

 

 

Viewing all 1418 articles
Browse latest View live


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