on 06-10-2008 9:45 AM
Dear ABAP Experts,
We want to use the 'item type' (EKPO-PSTYP) field for release strategy. The problem is that this field is not in CEKKO...
But CEKKO contains field USRC1 field that can be connected with EKKO-PSTYP somehow through user exit (EXIT_SAPLEBND_002, M06E0004).
My question is what are the process / steps / codes to realize this (to be able to use 'item category' field in release startegy for contracts and PO)?
Please consider that I haven't got a close relation with ABAP...(sorrowfully I don't know it...)
(No answer arrived in ABAP Enhancements & Modification Forum)
Thanks in advance,
Csaba
Hi,
U can implement this user exit as follows.
FIELD EXITS
The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
The format of field exit is :
FIELD_EXIT_dataelement_A-Z or 0-9
If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
The function module associated with field exit shows two parameters
INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
Before the field exit can have any effect the system profile parameter
ABAP/FIELDEXIT in all the application servers should be set to YES
ABAP/FIELDEXIT = YES.
U can find clear explaination in the following link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem has been solved by my colleague who has some ABAP knowkedge - first he activated the user exit then he wrote a short code.
-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The exit EXIT_SAPLEBND_002 has the parameter IT_BEKPO, this is a table with the structure of EKPO: I believe here it can find item data.
So u need to analyze that table in order to know the value EKPO-PSTYP:
DATA: W_EKPO TYPE EKPO.
LOOP AT IT_BEKPO INTO W_EKPO.
IF W_EKPO-PSTYP = ......
CEKKO.......
ENDIF.
ENDLOOP.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.