Application Development and Automation 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: 
Read only

Regarding field exit

Former Member
0 Likes
917

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
Read only

Former Member
0 Likes
881

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

Read only

0 Likes
881

oh sorry yaar,

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

Read only

0 Likes
881

Hi,

What kind of error?

Maybe the value must be an 18 characters value

like this '000000000000000040'

try rather : default 40

Read only

Former Member
0 Likes
881

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

Read only

0 Likes
881

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.

Read only

0 Likes
881

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?