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: 

mandatory custon field in me21n based on gross value

Former Member
0 Kudos

Hi ,

  i added custem field in me21n header level .. i want to make that field mandatory only when gross value greater than some amount...

  i done upto addition of custem field ..

i'm not getting gross value amount in EXit_SAPMM06E_006  or EXIT_SAPMM06E_007...

guide me how to get gross value amount ..

regards,

Anbu

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Hi Anbu

Gross value field you are checking conditon tab? Please attach a screen shot for the same

Nabheet

15 REPLIES 15

nabheetscn
Active Contributor
0 Kudos

Hi Anbu

Gross value field you are checking conditon tab? Please attach a screen shot for the same

Nabheet

0 Kudos

this filed should be mandatory .. this is the added custom field in header level

based on gross value ..

how to get gross value in program

0 Kudos

in EXit_SAPMM06E_006 these values are coming in TKOMV table. look for condition type P001 in your case. You can export this table and import in PBO and use it.

Nabheet

0 Kudos

Hi Anubuvanan-

Are you refering to condition value as Gross Value ?

Regards,

Atul Mohanty

0 Kudos

hi

    tkomv table is not der in EXit_SAPMM06E_006

0 Kudos

hi atul,

  yes i'm refering conditional value as gross value ..

  if gross value is greater than 15L .. custom field change to mandatory ..

i'm not getting conditional value in inside the include program ..

0 Kudos

It is under tables parameter

0 Kudos

inside the include .. table parameter is not updated.. so its show empty .. there is no value in that table

0 Kudos

sorry .. i'm getting value over der

0 Kudos

so you are done now

0 Kudos

Hi Anbuvavan -

You can export the value of TKOMV the include ZXM06U3 to your program.

1. Create a Z function group.

2. In the Top inculde of the custom FM declare a internal table TKOMV (like  EXIT_SAPMM06E_006)

3. Now create a function module to export and import the TKOMV values.

4. You can populate the internal table of Z function module from  include ZXM06U3

5. Use it in PBO / PAI of your screen. and clear the internal table of Z function module after that.

Regards,

Atul Mohanty

0 Kudos

thanks to every one.... its done

0 Kudos

i done evry think .. my custom field is marked as mandotry based on gross value .. when i'm in another tab like condition tab .. that time my filed s in mandatory state oly .. but that tym if  click on save button it allows to save ..

its not showing .. fill in all required field

how to resolve this one .. pls guide me

Former Member
0 Kudos

Hello,

In which Exit did you add your code to add the custom field?

0 Kudos

MM06E005

EXIT_SAPMM06E_006

EXIT_SAPMM06E_007