Skip to Content
author's profile photo Former Member
Former Member

Release Strategies - Iu00B4m lost!

People,

I have doubt about Release Strategies in Contracts and Purchase Orders.

Our configuration:

Basic Strategy:

Release Group W0

Release Strategy 01

Advanced Strategy:

Release Group WC

Release Strategy AC

The Classification of "Advanced Strategy" has EKKO-USRC1 = 3.

The scenario is:

The contract starts in '01' strategy. When it is approved in ME35 transaction, the program must check some conditions and then put the contract in 'AC' strategy.

My question is: how can I do this? I noticed that ME35 calls the exit EXIT_SAPLEBND_002. Anyone here is in same situation?

Thanks a lot!!!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2010 at 12:14 PM

    Hi,

    Sample Code:

    
      DATA : it_bekpo1 LIKE it_bekpo WITH HEADER LINE,
             lv_flag.
    
      CLEAR : lv_flag.
        it_bekpo1[] = it_bekpo[].
        CLEAR it_bekpo1.
    
    * excluded from the Release Strategy check.
    
      READ TABLE it_bekpo1 INDEX 1.
      IF it_bekpo1-ebeln+0(2) EQ 'IT'.
        e_cekko-usrc1 = 'Y'.
      ELSE.
    
        READ TABLE it_bekpo1 WITH KEY loekz = ''  konnr = ''.
        IF sy-subrc EQ 0 .
          e_cekko = i_cekko.
          e_cekko-usrc1 = 'N'.
        ELSE.
          LOOP AT it_bekpo1 WHERE loekz NE 'X'.
            IF it_bekpo1-konnr IS INITIAL.
              lv_flag  =  'X'.
              EXIT.
            ENDIF.
    
          ENDLOOP.
    
          IF lv_flag <> 'X'.
            e_cekko = i_cekko.
            e_cekko-usrc1 = 'Y'.
          ENDIF.
    
        ENDIF.
      ENDIF.        
    

    I hope this may helpfull.

    Thanks,

    AMS

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I tried this ABAP code but the contract was released and did not follow to another strategy 😔

      Do you use this code in ME35 transaction, in Exit EXIT_SAPLEBND_002?

      Edited by: MM SRM on Sep 30, 2010 2:56 PM

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 02:50 PM

    ok!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.