This website is not affiliated with, sponsored by, or approved by SAP AG.
Development (ABAP Development WorkBench, ABAP/4 programming)
Moderators: thx4allthefish, Snowy, Gothmog, YuriT
by baciuadi » Thu Mar 22, 2012 1:06 am
Hi,
I need some healp.
In transaction IE01 I have to change the following: when Category (ITOB-EQTYP) ='M' not to check Manufacturer (ITOB-HERST) because i get a message error:
Entry xxx does not exist in TE063 (check entry) Just for Category='M'. How can i do this? There is an Userexitst or ...?
I found this:
- Code: Select all
&---------------------------------------------------------------------*
*& Module DYNPRO_CHECK_HERST INPUT
*&---------------------------------------------------------------------*
* check/set manufacturer data (user exit)
*----------------------------------------------------------------------*
MODULE DYNPRO_CHECK_HERST INPUT. "TODOXXX: Einbinden HTN (EMATN/MAPAR)
PERFORM DYNPRO_CHECK_MANUFACTURER USING OBJECT_TYPE
ACTIVITY_TYPE
CHANGING ITOB
I_CODE.
IF NOT I_CODE IS INITIAL.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE.
Thank you,
-
baciuadi
-
- Posts: 5
- Joined: Wed Jan 04, 2012 2:42 am
by baciuadi » Thu Mar 22, 2012 1:41 am
I think i can do this:
- Code: Select all
if ITOB-EQTYP = 'M'.
else
PERFORM DYNPRO_CHECK_MANUFACTURER USING OBJECT_TYPE
ACTIVITY_TYPE
CHANGING ITOB
I_CODE.
IF NOT I_CODE IS INITIAL.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
but i need acceskey to change LITO0I02. Before te request to basis acces key, i need to be sure that this is the place where i need to change.
Can you help me?
-
baciuadi
-
- Posts: 5
- Joined: Wed Jan 04, 2012 2:42 am
by Rich » Thu Mar 22, 2012 2:36 am
You do not say what system you're on, however, if you're on ECC 6 and above you have the concept the enhancement framework. There is an implied enhancement point at the start and end of every procedure. You should be able to add code in the enhancement point for procedure DYNPRO_CHECK_MANUFACTURER without the need for an access key.
-
Rich
-
- Posts: 6919
- Joined: Thu Oct 31, 2002 4:47 pm
- Location: Geneva
-
by baciuadi » Mon Mar 26, 2012 5:57 am
Thank you Rich.
I found the enhamcement point for procedure DYNPRO_CHECK_MANUFACTURER, but i realy don't nou how to solve my problem:
when Category (ITOB-EQTYP) ='M' not to check Manufacturer (ITOB-HERST) because i get a message error: Entry xxx does not exist in TE063 (check entry) Just for Category='M'.
In SAPLITO0, screen 1022, screen elements ITOB-HERST was changed: Dic.Attribute (non-modifiable):Foreign key check intended.
-
baciuadi
-
- Posts: 5
- Joined: Wed Jan 04, 2012 2:42 am
Return to ABAP
Who is online
Users browsing this forum: No registered users and 6 guests