12-10-2011 5:50 AM
Helo Experts,
My requirement is in IW32 hav one table control screen. it has many fields in that one of the field name is Recipient.
I need to activate that column should be Mandatory.
throw SPRO functional people can activate as a mandatory. But if activate like this, it ll make whole column as a mandatory. If enter the data in first row, the remaining rows also that field as a mandarty. So am not able to go further..
Throw access key I tried to change the field attributes as a recommended.. that time also same thing happening..
I tried to use User EXIT IWO10009
in include ZXWOCU07
my code is
tables:
resbd.
data : wempf type resbd-wempf.
IF sy-dynnr = '3000'.
IF screen-name = 'WITH_SEL_OPR'.
screen-input = '0'.
if RESBD-wempf = ' '.
message 'Enter the reciepnt data' type 'E'.
endif.
endif.
ENDIF.
but while executing the tcode its showing error No vendor specified
its not showing my message..
Thanks in advance..
Edited by: Prasath on Dec 10, 2011 8:30 AM
Edited by: Prasath on Dec 12, 2011 8:24 AM
12-12-2011 9:59 AM
Hi gurs,
IF sy-dynnr = '3000'.
IF screen-name = 'WITH_SEL_OPR'.
screen-input = '0'.
if resbd-matnr NE ' ' and resbd-wempf = ' ' .
message E001(zmesg) with 'Enter the recipient data'.
endif.
endif.
ENDIF.
here problem is while debugging matnr and wempf data is not picking form std screen.
any one can give the solution.
12-12-2011 9:59 AM
Hi gurs,
IF sy-dynnr = '3000'.
IF screen-name = 'WITH_SEL_OPR'.
screen-input = '0'.
if resbd-matnr NE ' ' and resbd-wempf = ' ' .
message E001(zmesg) with 'Enter the recipient data'.
endif.
endif.
ENDIF.
here problem is while debugging matnr and wempf data is not picking form std screen.
any one can give the solution.
12-12-2011 4:37 PM
Hi,
If I am not wrong you want this validation for recipient in components tab.
Use exit EXIT_SAPLCOMK_014.
FUNCTION EXIT_SAPLCOMK_014.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" REFERENCE(IS_HEADER) TYPE CAUFVD OPTIONAL
*" REFERENCE(IS_COMPONENT) TYPE RESBD
*" REFERENCE(IS_COMPONENT_OLD) TYPE RESBD
*" REFERENCE(IS_MATERIALVIEW) TYPE MSFCV
*" REFERENCE(I_FCODE) TYPE T185F-FCODE OPTIONAL
*" REFERENCE(I_MARKED) TYPE KREUZ OPTIONAL
*" CHANGING
*" REFERENCE(C_AKTYP) TYPE RC27S-AKTYP OPTIONAL
*" EXCEPTIONS
*" NO_CHANGES_ALLOWED
*"----------------------------------------------------------------------
INCLUDE ZXCO1U23 .
ENDFUNCTION.
Write below code inside include ZXCO1U23.
If IS_COMPONENT-MATNR IS NOT INITIAL.
IF IS_COMPONENT-WEMPF IS INITIAL.
message E001(zmesg) with 'Enter the recipient data'
ENDIF.
ENDIF.
Try This.
BR,
Vijay
12-13-2011 5:43 AM
HI Vijay,
thanks a lot for ur replay..
ya exact the requirement is correct..
I tried with ur coding.. This is user Exit so i tried to gave the coding in se37.
But it is not working..
how it ll link with Tcode Iw32.
12-13-2011 6:19 AM
Hi Vijay,
I got it.
Exit is PPCO0023.
now it is working. Error message is coming.But while coming that message screen is Disabled.
After press enter also it is disable mode only.. it is not coming enable mode..
how to make it enable.
Thanks in advance.
Prabhu
Edited by: Prasath on Dec 13, 2011 7:49 AM
12-13-2011 8:21 AM
Hi,
Do one thing.
Include - LCOMKF5Q
FORM material_chk
USING
i_sobkz LIKE resb-sobkz
i_lifnr LIKE resb-lifnr
i_bomexpl_pm LIKE rc27x-flg_sel
i_flg_no_dialog TYPE c
CHANGING
c_matnr LIKE resb-matnr
c_werks LIKE resb-werks
c_lgort LIKE resb-lgort
c_charg LIKE resb-charg
c_subrc.
Inside above form there is a enhancement point mentioned below.
ENHANCEMENT-POINT MATERIAL_CHK_06 SPOTS ES_SAPLCOMK STATIC.
Create implementation against above mentioned enhancement point and inside that implementation write below mentioned code.
If RESBD-MATNR IS NOT INITIAL.
IF RESBD-WEMPF IS INITIAL.
message 'Enter the recipient data' type 'E'.
ENDIF.
ENDIF.
I tried in my system and it is working perfectly.
Try this.
BR,
Vijay
12-13-2011 8:57 AM