cancel
Showing results for 
Search instead for 
Did you mean: 

M06E0004: release procedure (PO, contract) EKPO-PSTYP > CEKKO-USRC1

csaba_szommer
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

http://sap.niraj.tripod.com/id21.html

Answers (2)

Answers (2)

csaba_szommer
Active Contributor
0 Kudos

Problem has been solved by my colleague who has some ABAP knowkedge - first he activated the user exit then he wrote a short code.

-


Former Member
0 Kudos

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

csaba_szommer
Active Contributor
0 Kudos

Dear Jagadish and Max,

Thanks for your help and reply.

Max,

Could you please provide more detailed help for me...since I have never used user exit and I don't know ABAP syntax / language as well - it's all Greek to me...

Thanks,

Csaba