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: 

batch restriction in the FM 'VB_READ_BATCH'

0 Kudos

i want TO restrict the batch in the FM 'VB_READ_BATCH'

because it is giving the error of internal table size > 999999 value

in all the select query below i want ot add CLABS > 0 to restrict the entry .

IS THEIR ANY WAY FOR THIS .

is their any user exit

e.g query OF THE VB_READ_BATCH GIVEN BELOW

SELECT * FROM v_cf_mchb INTO TABLE xv_cf_mchb

FOR ALL ENTRIES IN s0_mchb

WHERE matnr EQ s0_mchb-matnr

AND werks EQ s0_mchb-werks.

SELECT * FROM v_cf_mkol INTO TABLE xv_cf_mkol

FOR ALL ENTRIES IN s0_mchb

WHERE matnr EQ s0_mchb-matnr

AND werks EQ s0_mchb-werks

AND sobkz EQ k.

Edited by: Surinderpal on Mar 13, 2010 1:38 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try to use Implicit enhancement which is available in start and end of Function module/subroutines.

Regards,

Ashok.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Try to use Implicit enhancement which is available in start and end of Function module/subroutines.

Regards,

Ashok.

0 Kudos

hello ashok

i use the implicit enhancement point .

and at the time of saving it is giving the short dump given below.

can u tell me where is mistake

*******************************************************

Runtime Errors MESSAGE_TYPE_X

Date and Time 15.03.2010 09:29:21

Short text

The current application triggered a termination with a short dump.

What happened?

The current application program detected a situation which really

should not occur. Therefore, a termination with a short dump was

triggered on purpose by the key word MESSAGE (type X).

What can you do?

Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system

administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look

at and manage termination messages, and you can also

keep them for a long time.

Error analysis

Short text of error message:

FATAL ERROR. Enter problem message.

Long text of error message:

Technical information about the message:

Message class....... "SEEF_HOOK"

Number.............. 200

Variable 1.......... " "

Variable 2.......... " "

Variable 3.......... " "

Variable 4.......... " "

How to correct the error

Probably the only way to eliminate the error is to correct the program.

-

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

"MESSAGE_TYPE_X" " "

"CL_ENH_CONTAINER_HOOK_IMPLS===CP" or "CL_ENH_CONTAINER_HOOK_IMPLS===CM00D"

"IF_ENH_CONTAINER_HOOK_IMPLS~SET_HOOK_IMPL_SOURCES"

If you cannot solve the problem yourself and want to send an error

notification to SAP, include the following information:

1. The description of the current problem (short dump)

To save the description, choose "System->List->Save->Local File

(Unconverted)".

2. Corresponding system log

Display the system log by calling transaction SM21.

Restrict the time interval to 10 minutes before and five minutes

after the short dump. Then choose "System->List->Save->Local File

(Unconverted)".

3. If the problem occurs in a problem of your own or a modified SAP

program: The source code of the program

In the editor, choose "Utilities->More

Utilities->Upload/Download->Download".

4. Details about the conditions under which the error occurred or which

actions and input led to the error.

System environment

SAP-Release 700

Application server... "dqserver"

Network address...... "192.168.10.16"

Operating system..... "Windows NT"

Release.............. "5.2"

Hardware type........ "4x AMD64 Level"

Character length.... 16 Bits

Pointer length....... 64 Bits

Work process number.. 1

Shortdump setting.... "full"

Database server... "DQSERVER"

Database type..... "MSSQL"

Database name..... "QSR"

Database user ID.. "qsr"

Char.set.... "C"

SAP kernel....... 700

created (date)... "Feb 4 2008 00:38:16"

create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"

Database version. "SQL_Server_8.00 "

Patch level. 146

Patch text.. " "

Database............. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"

SAP database version. 700

Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows

NT 6.0"

Memory consumption

Roll.... 16192

EM...... 25139040

Heap.... 0

Page.... 753664

MM Used. 13317904

MM Free. 3438160

User and Transaction

Client.............. 200

User................ "JCTALL"

Language key........ "E"

Transaction......... "SE37 "

Transactions ID..... "42E62FDFD5BDF18FB69D001EC9D6982D"

Program............. "CL_ENH_CONTAINER_HOOK_IMPLS===CP"

Screen.............. "SAPLSFUNCTION_BUILDER 3000"

Screen line......... 17

Information on where terminated

Termination occurred in the ABAP program "CL_ENH_CONTAINER_HOOK_IMPLS===CP" -

in "IF_ENH_CONTAINER_HOOK_IMPLS~SET_HOOK_IMPL_SOURCES".

The main program was "RSFUNCTIONBUILDER ".

In the source code you have the termination point in line 53

of the (Include) program "CL_ENH_CONTAINER_HOOK_IMPLS===CM00D".

Source Code Extract

Line SourceCde

23 IF sy-subrc -enhname.

Contents of system fields

Name Val.

SY-SUBRC 4

SY-INDEX 0

SY-TABIX 11

SY-DBCNT 0

SY-FDPOS 47

SY-LSIND 0

SY-PAGNO 0

SY-LINNO 1

SY-COLNO 1

SY-PFKEY WB_WITH_TOOL_NEW

SY-UCOMM WB_SAVE

SY-TITLE Function Builder: Enhancement ZBATCH Change VB_READ_BATCH

SY-MSGTY X

SY-MSGID SEEF_HOOK

SY-MSGNO 200

SY-MSGV1

SY-MSGV2

SY-MSGV3

SY-MSGV4

SY-MODNO 0

SY-DATUM 20100315

SY-UZEIT 092921

SY-XPROG SAPMSSY1

SY-XFORM XAB_READ

0 Kudos

thank for help

by using this my problem is resolved

it is working fine