06-11-2007 10:08 AM
Dear all,
I'm trying to change the delivery date from exit EXIT_SAPMM06E_013 but the system doesn't keep my changes. I'm able to change the delivery date in exit EXIT_SAPMM06E_017 but I need to make it from exit 013 because I need know the confirmations from tables XEKES/YEKES.
I'm on release 4.6C and I don't have the chance to use the BADI ME_PROCESS_PO_CUST.
Is there a way to make this from exit 013?
Here is the code I'm trying to use:
DATA : wa_table(100) TYPE c,
t_ett TYPE STANDARD TABLE OF beket,
wa_ett TYPE beket.
FIELD-SYMBOLS: <fs_ett> TYPE ANY TABLE.
IF sy-tcode = 'ME22N'.
wa_table = '(SAPLMEPO)ETT[]'.
ELSEIF sy-tcode = 'ME22'.
wa_table = '(SAPMM06E)ETT[]'.
ELSE.
EXIT.
ENDIF.
ASSIGN (wa_table) TO <fs_ett>.
t_ett[] = <fs_ett>[].
LOOP AT t_ett INTO wa_ett.
IF sy-tcode(4) = 'ME21'.
wa_ett-eindt = sy-datum.
ELSEIF sy-tcode(4) = 'ME22'.
wa_ett-eindt = sy-datum.
wa_ett-updkz = 'U'.
ENDIF.
MODIFY t_ett FROM wa_ett.
ENDLOOP.
<fs_ett>[] = t_ett[].
UNASSIGN <fs_ett>.
Thanks for your help.
Elio
01-30-2008 10:05 AM
Hi,
I am facing the same pbm.
I am trying to change PO Order Qty (Menge) based on a formula.
I have tried writting the code at the exits :
EXIT_SAPMM06E_016 and EXIT_SAPMM06E_013
I am also working on REL 4.6c. facing the same pbm. The value does not stay...!!
By now, you must have resolved the pbm.
How did you?
Regards,
remi