cancel
Showing results for 
Search instead for 
Did you mean: 

FORECAST_REL field need to be blank default in opportunity header

former_member183878
Active Participant
0 Kudos
64

My requirment to make FORECAST_REL field blank default when new opportunity open to create,

i tried BADI "CRM_OPPORT_H_BADI" and Enhancement in Componen t" BT111H_OPPT/Details " ,no solution found.

please help,

regard ,

vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vijay

Definitely there will be a BADI to reset the value of it. If you dont find anything

you can go for the below option. Follow this if you dont find any option only.

Try to set a flag when a new opportunity is created, export it to memory

or better if you take global variable and make it to 'X'.

Now go to component workbench, go to the corresponding attribute and in the SET_<attrname>

method try to import the flag which u set earlier and if it is 'X' then clear the value of <nval> at the

end. So that the blank value will be available in the field FORECAST_REL whenever a opportunity

is created.

Do not forget to clear the flag variable after the field <nval> has been reset.

e.g.

<nval> = ' '.

clear v_flag.

Thanks

Arun

robert_kunstelj
Active Contributor
0 Kudos

You can use badi CRM_OPPORT_H_BADI to develop your logic. Badi is triggered everytime when opportunity is used. In method CRM_OPPORT_H_MERGE you can play with command cs_opport_h_badi-forecast_rel = ' '.

Answers (1)

Answers (1)

former_member183878
Active Participant
0 Kudos

I was using same method only this code is not enough,i have added one more field to opportunity header and enhance the BADI

CRM_OPPORT_H_BADI.

my issue get resolved.