cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in CAT2

Former Member
0 Kudos
983

Hi ,

Anybody can explain to me how to put the extra checking in second screen ( screen 2002 ) in CAT2. I want to do the checking in field CATSD-RAUFNR (Receiver order).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I got this error, anybody can help me.

Runtime Errors DYNP_WRONG_SCREEN_TYPE

Date and Time 13.09.2007 00:27:05

Short text

Incorrect screen type: Screen is incorrectly defined or used.

What happened?

The attribute screen type with the values 'Normal Screen' and

'Subscreen' determines the use of the screen. If a normal screen is used

as subscreen or vice versa, an error occurs.

The screen "SAPLXCAT" 3000 has, in this respect, an inappropriate screen type.

Error analysis

This is a programming error in the application.

Trigger Location of Runtime Error

Program SAPLXCAT

Include LCATSO22

Row 11

Source Code Extract

Line SourceCde

1 * 4.6a

2 * XQPALRK160036 151298 Customer Subscreen für Header-Info

3 ***INCLUDE LCATSO22.

4 *&----


*

5 *& Module D2000_TRANSFER_DATA OUTPUT

6 *&----


*

7 * text

8 *----


*

9 MODULE D2000_TRANSFER_DATA OUTPUT. "new module XQPK160036

10 PERFORM D2000_TRANSFER_DATA CHANGING HIDE_HEADER_INFO.

>>>>> ENDMODULE. " D2000_TRANSFER_DATA OUTPUT

Former Member
0 Kudos

Use Exits

CATS0009 CATS: Customer-Specific Text Fields in Data Entry Section

CATS0010 CATS: Customer-Specific Text Fields in Worklist

Regards,

Amit R.

RaymondGiuseppi
Active Contributor
0 Kudos

You used Enhancement <b>CATS0012 CATS: Subscreen on data entry screen</b> and implemented screen 3000 (Extension <b>SAPLCATS2002_CUSTSCR3_SAPLXCAT3000</b>) as a normal screen where a subscreen is required.

Define dynpro 3000 as a subscreen.

Regards

Answers (2)

Answers (2)

RaymondGiuseppi
Active Contributor
0 Kudos

Use Enhancement <b>CATS0003 CATS: Validate recorded data</b> customer exit <b>EXIT_SAPLCATS_003</b>

Put the error messages back by using a syntax like the following sample

IF NOT fields-raufnr IS INITIAL   " Order filled
AND fields-vornr IS INITIAL " no oper
AND z_aufk-autyp = '30'. " work order
* send message error
  CLEAR i_messages.
  i_messages-msgid = 'ZFSC'.
  i_messages-msgno = '029'.
  i_messages-pernr = fields-pernr.
  i_messages-catsdate = fields-workdate.
  i_messages-msgty = 'E'.
  i_messages-msgv1 = fields-raufnr.
  SHIFT i_messages-msgv1 LEFT  DELETING LEADING '0'.
  i_messages-msgv2 = z_aufk-auart.
  i_messages-msgv3 = z_aufk-autyp.
  APPEND i_messages.
  IF 1 = 2. MESSAGE e029(zfsc). ENDIF. " Where used
ENDIF.

Regards

Former Member
0 Kudos

you can try with user exit

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sapgenie.com/abap/code/abap26.htm

http://www.sap-img.com/abap/what-is-user-exits.htm

http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction

http://www.easymarketplace.de/userexit.php

http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm

http://www.sappoint.com/abap/userexit.pdfUser-Exit

http://www.sap-img.com/ab038.htm

http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm

Transaction Code - CAT2 Time Sheet: Maintain Times

Exit Name Description

CATS0001 CATS: Set up worklist

CATS0002 CATS: Supplement recorded data

CATS0003 CATS: Validate recorded data

CATS0004 CATS: Deactivate functions in the user interface

CATS0005 CATS: Customer field enhancements

CATS0006 CATS: Validate entire time sheet

CATS0007 CATS: Subscreen on initial screen

CATS0008 CATS: Determine workflow recipients for approval

CATS0009 CATS: Customer-Specific Text Fields in Data Entry Section

CATS0010 CATS: Customer-Specific Text Fields in Worklist

CATS0011 CATS: Customer functions

CATS0012 CATS: Subscreen on data entry screen

No of Exits: 12

Rewards if useful..................

Minal