10-20-2008 4:06 PM
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.
10-20-2008 4:09 PM
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
10-20-2008 4:18 PM
oh sorry yaar,
like is also not working, it is showing one more error.
10-20-2008 4:22 PM
Hi,
What kind of error?
Maybe the value must be an 18 characters value
like this '000000000000000040'
try rather : default 40
10-20-2008 4:22 PM
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
10-20-2008 4:25 PM
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.
10-20-2008 4:51 PM
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?