2009 Mar 12 2:13 PM
Hi all,
Am not able free memory ID in BADI.I used following statements for the same-
free memory id 'ZCAR'.
DELETE FROM MEMORY ID 'ZCAR'.
Please help.
Thank you.
2009 Mar 12 2:21 PM
Hi all,
Am not able free memory ID in BADI.I used following statements for the same-
free memory id 'ZCAR'.
DELETE FROM MEMORY ID 'ZCAR'.
Please help.
Thank you.
2009 Mar 12 2:19 PM
free memory id worked for me in BADI,
Can u show the code which u have written above and below this statement.
why do u say its not getting freed does it show in debug.
кu03B1ятu03B9к
2009 Mar 12 2:21 PM
2009 Mar 12 2:24 PM
As i see above this is what he has already tried, so why are you advising him to try it again.
кu03B1ятu03B9к
2009 Mar 12 2:25 PM
This is my full code for the same-
METHOD if_ex_badi_matn1~matn1_output_001.
DATA: it_zemail_mdm TYPE STANDARD TABLE OF zemail_mdm,
wa_zemail_mdm TYPE zemail_mdm.
SELECT * INTO wa_zemail_mdm
FROM zemail_mdm
WHERE user_psid = sy-uname. "OR superior_psid = sy-uname .
ENDSELECT.
IF sy-tcode = 'MM06'.
CONSTANTS : c_msg1(45) TYPE c VALUE 'You are not authorised for this transaction.'.
DATA: v_x, c_err TYPE c VALUE 'S'.
GET PARAMETER ID: 'ZCAR' FIELD v_x.
IF sy-uname = wa_zemail_mdm-user_psid AND v_x = ' '.
MESSAGE c_msg1 TYPE c_err.
LEAVE TO SCREEN 0.
ENDIF.
free memory id 'ZCAR'. "HERE IT IS
DELETE FROM MEMORY ID 'ZCAR'. "HERE IT IS
ENDIF.
ENDMETHOD.
Edited by: sanu debu on Mar 12, 2009 3:25 PM
2009 Mar 13 4:55 AM
Hi Sanu,
You can try to use CLEAR statement.
eg: CLEAR ZCAR.
GET PARAMETER ID 'ZCAR' FIELD v_x.
or if you are assigning a select option to a parameter, try the following piece of code,
INITIALIZATION.
GET PARAMETER ID 'ZCAR' FIELD s_zcar-low.
IF s_zcar-low NE ``.
s_zcar-option = 'EQ'.
s_zcar-sign = 'I'.
APPEND s_zcar.
ENDIF.
START-OF-SELECTION.
SET PARAMETER ID 'COMP' FIELD s_compcd-low.
Hope it helps.
Regards,
Jose
2009 Mar 13 5:12 AM
Hello,
From your code it is quite clear that Free memory id & delete from memory id will never going to execute at run-time.
My suggestion to you try to clear memory in your screen 0 PBO module .
Or else you want to clear in badi & try to clear before calling screen 0.
Regards,
Sameer
2009 Mar 15 8:07 AM
close this thread as u have already got the solution in the other similar thread u posted.
кu03B1ятu03B9к
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |