Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Make it Mandatory in purticular field in table control in Std screen IW32

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

Hi Vijay.

Thanks for solution..

Problem solved..