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

Re: BKPF - Performance issue

$
0
0

If you use BSEG/BKPF you should use year/date in where clause or else the company code uniqueness are very less obviously performance will be poor.


Collect ( QTY - Cost - Net Value ) per material

$
0
0

Dear All,

I need to make report to collect QTY - Cost - net value per Material On one week

Example

first week from ( 01.01.2010 ) to ( 07.01.2010 )

second week from ( 08.01.2010) to (14.01.2010 )

 

01.01.2010      a12345     20   5     1000

04.01.2010     a12345      10    2     15

 

first week    a12345   material desc    30    7       1015

 

How can i make this please ?

 

Thanks

Re: Collect ( QTY - Cost - Net Value ) per material

Re: collect issue

$
0
0

Read actually and carefully the online document AT - itab, what happen at fields right of break field is clearly described (* for character fields, all other types are cleared to initial value)

 

Regards,

Raymond

Re: BKPF - Performance issue

$
0
0

Hi,

 

Planning to create secondary index for the below fields.

 

MANDT

BUKRS

BLART

BLDAT

BUDAT

 

What do you think? Will it impact on any other areas (while INSERT or UPDATE the documents)??

Re: BKPF - Performance issue

$
0
0

Hi Reddy,

 

     Reason why I think, u are not getting the correct data, its because you are limiting your select statement through Package. Hope this helps. May I see your code including the DATE filter.

 

 

Best Regards,

Charie

Re: BKPF - Performance issue

$
0
0
Reason why I think, u are not getting the correct data, its because you are limiting your select statement through Package.

I think we are deviating here, data is coming correctly. It's just that to see 5 days old data, i have to pull 250,000 records(with my doc types and status) and filter them to 50 records using BLDAT and BUDAT.

 

I used package to avoid memory issues as i'm dealing with large table.

 

Planning to create secondary index for the below fields.

 

MANDT

BUKRS

BLART

BLDAT

BUDAT


What do you think? Will it impact on any other areas (while INSERT or UPDATE the documents)??

syntax control in mass for ABAP objects

$
0
0

Hello

 

I want to know how to check the syntax of all specific objects?

 

thx it's urgent.

 

David


Re: syntax control in mass for ABAP objects

Re: collect issue

$
0
0

Hi Eman Elgammal,

 

The problem you are facing is not at all odd. In fact it is quite obvious in nature.

 

ABAP engine resets work area to ensure that control level processing in case of AT-ENDAT is carried out properly. 

 

The following 3 rules must be observed:

  • The current control key of the work area remain unchanged.

  • All components with a character-like flat data type to the right of the current control key are set to character "*" in every position.

  • All the other components to the right of the current control key are set to their initial value.

 

In your case, 3rd rule is applied as field you are referring to is of type quantity. Hence it will be reset to its initial value as 0. A simple work around would be to copy the content of the work area just before it's values are reset.

 

 

Also, like Raymond Giuseppi mentioned, go through online documention for AT - itab. It will clear your doubt.

 

 

Thanks,

 

Nik

Re: Collect ( QTY - Cost - Net Value ) per material

$
0
0

Hi Eman Elgammal,try this algorithm.

 

Loop over current Itab_1 into wa_1 .

 

     loop_counter = Date.   " Lets assume its Date starts with value 1

    

     if ( loop_counter MOD 7 ) EQ 0 && (Sy-tabix NE 1).

          append wa_2 to Itab_2.

          clear wa_2.

     endif.

    

     wa_2 =      wa_2  +   wa_1.

 

Endloop.

 

Regards,

NG          

Re: Possibility of downward compatibility tests for ABAP language in source system ?

$
0
0

Dear Matthias,

 

I would be very interested in such a functionality. Together with Ivan Femia and other contributors I help to maintain the http://abap2xlsx.org/  project. Today we've got a contribution from Hannes Rempel which made some adjustments so that the code does not only work on NetWeaver 7.03 or 7.4. But as I have "only" a 7.40 at hand, I can't really do a check if all the coding is downward compatible. Perhaps Randolf Eilenberger who came up as the #1 search result regarding SCI can provide some insight here.

 

Best regards

Gregor

Deactivate Standard break point in a code

$
0
0

Dear Experts,

 

I need to deactivate a standard breakpoint in a code.

 

Please help me out with how will it be done.

 

 

Thanks

Gaurav Gupta

Re: Deactivate Standard break point in a code

$
0
0

Hi,

 

this breakpoint is associated with a checkpoint-group (in this case /SCMB/CNA).

With the transaction SAAB you can change how the System shall respond to coding associated with this group.

 

Transaction: SAAB

Checkpoint-Group: /SCMB/CNA

Go in with "CHANGE" (the famous pencil-Symbol :-) )

 

There you can see what is actually customized.

You can decide if the system should stop at a (coded) break-Point or not, how it should react to an assertion or a log-Point.

Important: you only Change it for breakpoints, assertions and logpoints associated with THIS checkpoint-Group.

 

If you find coding with a "pure" break-Point (without the ID xxxxxx behind it) than you have to Change the coding itself...

 

warm regards

Jan Aschenbrenner

Re: Deactivate Standard break point in a code

$
0
0

Hi Jan,

 

Thanks for the reply.

 

By default these are set to inactive. Please refer the snapshot attached and can you guide to how to achieve it.

 

break point 1.png

 

Thanks

Gaurav Gupta


Re: Possibility of downward compatibility tests for ABAP language in source system ?

$
0
0

Dear Gregor,

 

thank you for the hint with Randolf, I'll try ask him with reference to this discussion.

 

As you said, it's hard to test the downward compatibility without having a installed system and real import.

 

This is a pain point for us (and I think for many others too) who develop "standard" packages to be sold and installed on customer sites.

 

We can specify SAINT requirements to avoid import in target systems w/o a appropriate component vector but as we have to support the "oldest" supported NW ABAP as SAP itself, we need relieable checks in source system.

 

Best regards & see you at d-code,

Matthias

Re: Deactivate Standard break point in a code

$
0
0

hmmm,

 

it is possible to deactivate a checkpoint-group globally, but to active it for single users (or a single application server).

 

Firstly check if there is an activation for your user. To do that, just click in the subscreen "All Activations" on "User".

Secondly check if there is an activation for an application Server (same subscreen, the button below :-) )

In both cases a new window will appear. If you were in read only mode in the checkpoint-group than those Windows will also be read-only.

When you may change the checkpoint group, then you are also able to change the specific activations in the pop-up window.

 

Another way:

Start SAAB. Then you will find in the menu under "Activation ->Display->All" all active checkpoint-Groups (global and specific).
With "Activation -> Delete -> All" you cann deactivate every checkpoint-group.

 

If your group is inactive and there is no user or server specific activation, then i am a bit puzzled why the breakpoint still kicks in.

 

Warm regards

Jan

Re: Deactivate Standard break point in a code

short dump using ALSM_EXCEL_TO_INTERNAL_TABLE

$
0
0

I am using function module ALSM_EXCEL_TO_INTERNAL_TABLE to upload the data from Microsoft Excel file . i am getting a short dump stating that

Exception condition "UPLOAD_OLE" raised with the following descrpiton. Could any body help me on the same.

 

"RAISE_EXCEPTION" " "

"SAPLALSMEX" or "LALSMEXU01"

"ALSM_EXCEL_TO_INTERNAL_TABLE"

Re: SLIN- Error message char strings without text elements cant be translated

$
0
0

Hi kavya,

 

If you are passing the parameters to form routine with the blank spaces or small letters in between the string then you will get this error:

 

For eg.

 

PERFORM field_cat_creation USING : 'MSGID' 'Message ID',

                                        'LIFNR' 'Vendor No',

                                        'BUKRS' 'Company Code'.


In above example the string 'Message ID', 'Vendor No' and 'Company code' are containing the space in between so it will give the error.

 

For correcting the same you need to use the text elements and replace the strings with text element in your program.

Or If you do not want to use text elements then simply avoid the in between spaces and small characters.

 

for eg:

you can use the underscore '_' for avoiding the spaces.

 

PERFORM field_cat_creation USING : 'MSGID' 'Message_ID',

                                        'LIFNR' 'Vendor_No',

                                        'BUKRS' 'Company_Code'.    

Viewing all 1418 articles
Browse latest View live


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