Application Development and Automation 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: 
Read only

Break Points

Former Member
0 Likes
1,194

How do I set break points for users... I am developing a program. I have to break only for me and another person. How can i do that.

13 REPLIES 13
Read only

Former Member
0 Likes
1,161

Hi alexander,

set user-specific static breakpoints using the BREAK statement followed by your user name and the other person name.

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Read only

0 Likes
1,161

How can i set user-specific break points ... any example of the syntax for the statement.

Read only

Former Member
0 Likes
1,161

Hi Alexander,

Do this way:

IF SY-UNAME = 'DEV1' OR SY-UNAME = 'DEV2'.

BREAK-POINT.

ENDIF.

Regards,

Vivek

Read only

Former Member
0 Likes
1,161

hi alexander

use syntax

break alexander.

jus go thru this link..might help u

http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617cc1e68c11d2b2ab080009b43351/content.htm

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Read only

Former Member
0 Likes
1,161

hi

good

where ever you want to set a break point for the user you can use the following statement as hard coded at that partiular point.

Syntax

BREAK-POINT.

Thanks

mrutyun^

Read only

Former Member
0 Likes
1,161

Hi,

We write the break point for a specific user using the below statment

<b>break sy-uname.</b>

BREAK 'User_name1'.

BREAK 'User_name2'.

Regards

Sudheer

Read only

0 Likes
1,161

In my code there is a statement

SELECT SINGLE * FROM EQUI INTO I_EQUI

In the syntax check..Field I_EQUI is unknown.It is neither in one of the specified tables.nor defined by a data statement.

How can i fix this one....

Read only

Former Member
0 Likes
1,161

Hi alexander..

can u be more specific with code..

coz I_EQUI seems to be a internal table/work area not defined

Read only

0 Likes
1,161

IF SY-TCODE ='MB31'.

SELECT SINGLE * FROM EQUI INTO I_EQUI

WHERE EQTYP = 'S'

AND MATNR = MATNR

AND SERNR = SERNR.

IF SY-SUBRC EQ 0.

MESSAGE E398 (00) WITH 'SERIAL NUMBER ALREADY EXISTS'.

ELSE.

CHECK VALIDATION LIKE SERNR0(1) = '2' OR SERNR0(1) = '3' OR SERNR+0(1) = '6'

AND SERNR1(2) = SY-DATUM2(2) AND

SERNR3(2) = SY-DATUM4(2) AND

SERNR+ 5(4) >= '0000' AND SERNR+5(4) <= '9999'

ENDIF.

ELSE.

SELECT SINGLE * FROM EQUI INTO I_EQUI

WHERE EQTYP ='S'

AND MATNR = MATNR

AND SERNR = SERNR.

IF SY-SUBRC NE 0.

MESSAGE E398(00) WITH 'PLEASE ENTER A VALID SERIAL NUMBER'.

ENDIF.

ENDIF.

This is the full code..

Read only

Former Member
0 Likes
1,161

Hi alexander,

code seems to be fine except check whether I_EQUI

is declared as an internal table ..however when comparing matnr = matnr ..it shud be notified which matnr is being compared to which matnr...select-options(matnr) ot previous itab matnr...jus check out that comparison

Read only

0 Likes
1,161

how can i check whether I_EQUI is declared as internal table or not....

Read only

0 Likes
1,161

alexander ...jus chck out in the data declarations for I_EQUI

or code

data : i_equi like equi occurs 0 with header line.

also check the comparisons in select statement at matnr = matnr and AND SERNR = SERNR.

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

Read only

0 Likes
1,161

For the validation statement the following error is been displayed.

Field validation is unknown It is neither in one of the specified tables or defined by a data statement... How to fix this one...