Application Development and Automation 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: 
Read only

Version Checkbox not getting automatically marked completed while creating a new version(ME22N)

Former Member
0 Likes
743

Hi ,

The requirement is to check the vesrion checkbox for new version created through ME22n .

I have implemented exit : EXIT_SAPMM06E_012 and throwing a message for the following check .



*&  Include           ZXM06U43

*&---------------------------------------------------------------------*

*CASE sy-tcode.

*  when 'ME22N'.

*    IF SY-UCOMM = 'MECHECKDOC' or sy-ucomm = 'MESAVE'.

*      If i_ekko-PROCSTAT = '01' .

*        message 'Please tick the Version Completed in Version Tab' type 'E'.

*      endif.

*    ENDIF.

*endcase.

But my requirement is to automatically check the version .

I have found another exit EXIT_SAPL2012_001 .  IT has VERSIONS structure with field COMPLETED . Ideally it should solve the purpose .

But the exit is not getting triggred . I have checked everything (creation of project , activation etc ..) .

Alternatively i tried calling it from method check of BADI  ME_PROCESS_PO_CUST , with calling the exit FM . Here its being called ,but not  marking the version as complete  .

Its an urgent req . Please advise .

Thanks

Barun

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
611

EXIT_SAPL2012_001 is only triggered from BAPI_PO_CREATE1...

Else when you checked BAdI ME_PROCESS_PO_CUST, did you look at interface IF_DCM_ADAPTER (on parameter IM_HEADER received in IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER)

Regards,

Raymond

Read only

0 Likes
611

Thanks Raymond ,

I looked into IF_DCM_ADAPTER interface ... It has a method

IS_COMPLETE_VERSION_ALLOWED .. BUt it has returning paramter for version . Not to set the version as complete . Please advise me in case of any other alternative .