on 09-19-2014 3:37 PM
I want a validation in the action of removing the transaction "IW32" tab "operations" have tested different user exit however nothing meets my need, all I tested are not executed at the time of removal.
Any suggestions?
For the record, I got a resolution to the issue. It was necessary to create an "enhancement" in LCODTU03 include used by this transaction, in last place, with the code below.
DATA: BEGIN OF WL_EKPO,
EREKZ TYPE EKPO-EREKZ,
ELIKZ TYPE EKPO-ELIKZ,
BNFPO TYPE EKPO-BNFPO,
BANFN TYPE BANFN,
END OF WL_EKPO,
BEGIN OF WL_EBAN,
BANFN TYPE EBAN-BANFN,
EBELN TYPE EBAN-EBELN,
FRGZU TYPE EBAN-FRGZU,
BNFPO TYPE EBAN-BNFPO,
END OF WL_EBAN.
DATA: VMSG TYPE BAPI_MSG.
IF ( SY-TCODE EQ 'IW32' )
AND ( SY-UCOMM EQ 'OPT1' )
AND ( AFVGD-BANFN IS NOT INITIAL ).
SELECT SINGLE BANFN EBELN FRGZU BNFPO
FROM EBAN
INTO CORRESPONDING FIELDS OF WL_EBAN
WHERE BANFN = AFVGD-BANFN
AND BNFPO = AFVGD-VORNR.
CHECK SY-SUBRC IS INITIAL.
IF WL_EBAN-FRGZU = 'X'.
SELECT SINGLE EREKZ ELIKZ BNFPO BANFN
FROM EKPO
INTO CORRESPONDING FIELDS OF WL_EKPO
WHERE BANFN = WL_EBAN-BANFN
AND BNFPO = WL_EBAN-BNFPO.
IF SY-SUBRC IS INITIAL.
CONCATENATE 'Existem requisição aprovada (' WL_EBAN-BANFN '), pedido (' WL_EBAN-EBELN ') para o componente ('WL_EBAN-BNFPO').' INTO VMSG.
MESSAGE VMSG TYPE 'I'.
SUBRC = 4.
MESSAGE E398(00) WITH 'Não foi possível eliminar o item.'.
ELSE.
CONCATENATE 'Existem requisição aprovada (' WL_EBAN-BANFN ') para o componente ('WL_EBAN-BNFPO').' INTO VMSG.
MESSAGE VMSG TYPE 'I'.
SUBRC = 4.
MESSAGE E398(00) WITH 'Não foi possível eliminar o item.'.
ENDIF.
ENDIF.
ENDIF.
Grateful for everyone's help;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Below given suggesting is not your answer but i want to give you suggestion,
You can use Screen variants for this to Hide Deletion flag frow IW32.
Go to "SHD0"
Use T-code as "IW32"
and for Screen "ZIW32_3010" make Deletion field as "invisible" (you can check with Technical name as - BTN_LOEA for delection flag.
and check.
Regards,
Chaitanya Parchure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Please use Authorization Object
I_VORG_ORD PM: Business Operation for Orders
Or
I_TCODE PM: Transaction Code
Br
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK Marcos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcos,
Can you please elaborate on your requirement ?
Regards,
Joydeep..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are talking about preventing Operation removal in IW32, it should be possible with User-Exit IWO10009. Correct code, though allows the removal of operations, would not allow the Saving of the Order. so no changes will be done in Operations. I haven't tested this. May try with your ABAPer
KJogeswaraRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.