‎2009 Oct 10 7:58 AM
sir,
sir,
Iam using ME54N for releasing a PR. I have got 2 release codes during release. Example. C1 - stores
officer, S1- General Manager.
Iam using a badi ME_PROCESS_REQ_CUST for one validation . How can i get the the current release
code , so that i can use it in my code for validation.
code goes as follows.
______________________________________________________________________________________________
ST_MEREQ_HEADER = IM_HEADER->GET_DATA( ) .
CLEAR: IS_YM33.
SELECT SINGLE * FROM YYM_YM33_LOGDATA
INTO IS_YM33 WHERE USERID = SY-UNAME
AND ACCESSDT = SY-DATUM.
IF SY-SUBRC = 0.
CLEAR: WST_DISP,DTDISPLAY.
CONCATENATE SY-DATUM6(2) '.' SY-DATUM4(2) '.' SY-DATUM+2(2) INTO DTDISPLAY.
CONCATENATE 'User' SY-UNAME 'Checked stock status on-' DTDISPLAY INTO WST_DISP SEPARATED BY
SPACE.
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
EXPORTING
I_MSGID = 'E4'
I_MSGTY = 'W'
I_MSGNO = '000'
I_MSGV1 = WST_DISP.
ELSE.
MESSAGE 'Stocks status not checked for this PR using Tcode YM33' TYPE 'E'.
ENDIF.
__________________________________________________________________________________________
Regards,
M.Srinivasa Murthy
‎2009 Oct 12 7:13 AM
Hi ,
Put your whole code in between this two line.
case sy-ucomm.
when 'MERELEASE'.
-
-U R Code Here---
...................
....................
-
ENDCASE.
So when ever user will relesae at that time only he will get the message pop up.
Regards
Rajendra.
‎2009 Oct 12 11:27 AM
sir,
Thank you Mr.rajendra. Your response is very useful.
I have got one more requirement.
Iam operating two release codes for releasing PR.
How do i know the present release code using this BADI.
Thanks,
M.Srinivasa Murthy
‎2009 Oct 13 6:06 AM
But how can u fix ur release codes?
Did ur functional guy told that he will always have only2 release code ex: s1 and c1 .
If that is the case then u can go for something like
if struct1-filed = s1.
do this.
elseif struct1-filed = c1.
do this .
endif.
Buit i dont think it will be 2 always , as in my case for some pr it is 3 code for some pr it is 4 , so i guess u cant go by relase code wise.
But still if u want u have to check in debugging the transaction me54n for a release then u can know.
Regards