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: 

Custom fields on SAP standard screen - how to make them mandatory

Former Member
0 Kudos

Hi,

I have added 2 new custom fields [say zz1 and zz2] in the SAP Document Management System whilst creating documents in program SAPLCV110.

I want to have these fields set to mandatory only when the document type is say ZZZ.

Can you please let me know where abouts I need to go to introduce the code.

Regards,

Satish

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I think you will add these 2 fields in the Screen number 200 which is customer screen.

So after adding these two fields just put the chain and end chain logic or else in the PAI event of this screen you can put the logic for making mandatory i.e. you can give the error message for particular document type.

3 REPLIES 3

Former Member
0 Kudos

I think you will add these 2 fields in the Screen number 200 which is customer screen.

So after adding these two fields just put the chain and end chain logic or else in the PAI event of this screen you can put the logic for making mandatory i.e. you can give the error message for particular document type.

Former Member
0 Kudos

Hi,

Use the below code...


In PAI of the screen:
Chain.
       Field <zz1> module <module_zz1>. 
       Field <zz2> module <module_zz2>. 
endchain.


Module_zz1. 
     if zz1 = 'XXXX'.
       perform....
     endif.
endmodule_zz1.

Edited by: Satya suresh Donepudi on Mar 12, 2009 3:04 AM

Former Member
0 Kudos

Hi,

when even u added custom fields in layout

that taime go to field propery and put as required property

then it will be came madatory

Thanks and regards

durga.K