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: 

Regarding field exit

Former Member
0 Kudos

Hi frnds,

I got on req. like i want to replace the field with one hard coded value like in one screen matnr field i want to give the default value as 40 for this i developed code in that exit like.

data:v_matnr type mara-matnr value '40'.

but it doesn't effect any thing pls give me the solution.

6 REPLIES 6

Former Member
0 Kudos

Hi,

You have made a failure here.

DATA : v_matnr LIKE mara-matnr default '40'.

<removed_by_moderator>

Regards,

Kais

Edited by: Julius Bussche on Oct 20, 2008 5:24 PM

0 Kudos

oh sorry yaar,

like is also not working, it is showing one more error.

0 Kudos

Hi,

What kind of error?

Maybe the value must be an 18 characters value

like this '000000000000000040'

try rather : default 40

former_member598013
Active Contributor
0 Kudos

Hi Shiva,

For your requirement you first need to find the User exit/ BADI which gets executed in PBO. if you found then you can add your logic and your logic will definatly work.

Thanks,

Chidanand

0 Kudos

hi frnd,

already i find the badi, in that badi iam writing the peice of code as above, but it is not working is there any another way.

0 Kudos

Hi Shiva,

Why are you declaring a new variable v_matnr?

use the same field for matnr in the structure being passed to the BADI.

Do you know if the structure being passed to the BADI has MATNR field?