Application Development 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: 

User exit (To change the PO Release Strategy): M06E0004

Former Member
0 Kudos

Dear Experts,

I am trying to implement the enhancement for changing the PO release strategy, using exit M06E0004 for following situation.

If PO is already released and then if any changes made to it affects the net amount which makes it less than previous net amount. We have to change the PO Release indicator to 'Blocked'.

We have tried to change the value of USRC1 USRC2 USRN1 USRN2 of structure E_CEKKO but it is not workingu2026

Please help me *how / what to change in the E_CEKKO structure*.

          • I am new to User Exit.

16 REPLIES 16

Former Member
0 Kudos

Hi,

First you shoud create a project in CMOD transaction and then activate the project, Pass key information like BUKRS along with USRC1 USRC2 USRN1 USRN2 and try.

Regards,

Narayan

Former Member
0 Kudos

Sir we did all this ...just the thing not working is Code...

As i cannot understand what is to be passed to the E_CEKKO fields USRC1

USRC2 USRN1 USRN2...

0 Kudos

If there is any solution please let me know...

Or else just any clue for this

0 Kudos

Experts................

Waithin for the reply............................

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

How about using the BADI ME_PROCESS_PO_CUST. This BADI meets most of the requirements. Just try to find out appropriate method. There is an example implementation and documentation as well.

Thanks,

Vinod.

0 Kudos

Vinod,

If you can please ellobrate how can i do this using the BADI..... i am new in Exits

former_member262988
Active Contributor
0 Kudos

Hi,

If po is already released you can't change it...u need to revert the release to inital and then only u can change.....

Thanks,

Shailaja Ainala.

0 Kudos

Shailaja,

We are creating new version for servise PO, and it is geting unreleased when valu get increased, But we want to unrelease PO if the Current net value is less than the Previous one, which is not happening in current settings.

Former Member
0 Kudos

Expertssssssssssssssss????

Dont we have any solution for this.....?

Edited by: PrasadD on Mar 5, 2010 1:57 PM

Former Member
0 Kudos

Dear Experts,

As such there is not direct solution for this problem, as the problem is for some specific kind of work environment only, here it can be make workable by using the function module

"ME_REL_STRATEGIE_EKKO"

Register the key with OSS and add these lines

IF cekko-gnetw LT f1. " Done by KHS

PERFORM reset

USING e_frgst e_frggr

e_frgzu e_frgkz e_frgrl.

e_reset = 'X'.

ENDIF.

Top of line

IF cekko-gnetw GT f1.

By adding this it get reset by decreasing or increasing the Value after the first first release.

0 Kudos

Sorry for late reply...

Can u tell me where exactly i have to add this code in mentioned Function module???

JeetOP
Participant
0 Kudos

Iam also facing same issue ,could any one please suggest a way to do it?

0 Kudos

I Am facing same issue can you please help me out .....

JeetOP
Participant
0 Kudos

Hi Nagarajun,

I am able to solve this problem.!

All u have to do is follwoing two step.

1.maintained a flag in ur enhacement part (FM to Z_FIND_PO_RELEASE_STRATEGY)

inorder to know whether the current PO is without PR or not then export its value to memory.


2.Do enhancement in standard FM ME_REL_STRATEGIE_EKKO

(which is used to reset release strategy and indicator).

Inside this fm u can find  below code

if xchange ne space.

*- Strategie geändert --------------------------------------------------

    if e_frgst ne i_frgst or

       e_frggr ne i_frggr.

      perform reset

         using e_frgst e_frggr

               e_frgzu e_frgkz e_frgrl.

      e_reset = 'X'.

*- Wertänderung prüfen -------------------------------------------------

    else.

      if t16fb-kzfae eq '4' or

         t16fb-kzfae eq '6' .

         perform currency_conversion using *cekko-waers

                                          bwkurs_old

                                          hwaers

                                          fwaers

                                          bwkurs

                                    changing *cekko-gnetw.

        f1 = *cekko-gnetw * t16fb-tlfae / 1000.

        f1 = f1 + *cekko-gnetw.

        if cekko-gnetw gt f1.

          perform reset

            using e_frgst e_frggr

                  e_frgzu e_frgkz e_frgrl.

          e_reset = 'X'.

        endif.

      endif.

    endif.

  else.

    perform reset

       using e_frgst e_frggr

             e_frgzu e_frgkz e_frgrl.

  endif.....

above code is use to check the PO amount and with old net amount,Since normally code is done to reset indicator only when amount is greater than old one, u can copy above code and modify with ur condition(i.e flag) and paste in last line.

Please check & reward is useful.

0 Kudos

Hi Abhijeet ,

Thanks for your reply , I fixed this using comment from Hari shankar K , same day I posted ...

0 Kudos

No problem!