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

Custom method to activate and de-activate custom fields.

Former Member
0 Likes
668

Hi All,

I have appended 3 fields on sap std structire incl_eew_pd_item_csf_sc.

The requirement is by default the 3 fields will be not active.The custome fileds will only be changebale if G/L

account of thr item is maintained in table ztable.so i need to develop one custome method & custom class.

If g/l account is not maintained in the dedicated ztable ,these fileds will be de-activated & not ready for enduser.

In case of cost distribution on line item level, the three custom fields will be activated if at least one account assignment line of the item contains a G/L listed in ztable

what code should i write in the method?

Please give any suggestion.

Regards,

Oorvi

Edited by: oorvi joshi on Sep 29, 2009 2:52 PM

Hi All,

I have appended 3 fields on sap std structire incl_eew_pd_item_csf_sc.

The requirement is by default the 3 fields will be not active.The custome fileds will only be changebale if G/L

account of thr item is maintained in table ztable.so i need to develop one custome method & custom class.

If g/l account is not maintained in the dedicated ztable ,these fileds will be de-activated & not ready for enduser.

In case of cost distribution on line item level, the three custom fields will be activated if at least one account assignment line of the item contains a G/L listed in ztable

what code should i write in the method?

Please give any suggestion.

Regards,

Oorvi

Edited by: oorvi joshi on Sep 29, 2009 2:52 PM

4 REPLIES 4
Read only

Former Member
0 Likes
568

Hi,

Correct me if my understanding is wrong.

You have some custom fields shown in the screen which were added to the standard structure.

You want to control the display of those custom fields using the entry in ztable.

If that is the case, depending on the entry in the ztable u can use

LOOP AT SCREEN

IF screen-name EQ 'XXXX'.

disable the field

Modify screen.

ENDIF.

ENDLOOP.

-> U can create an implicit enhancement to create ur custom code.

Read only

Clemenss
Active Contributor
0 Likes
568

Hi oorvi,

"There's no such thing as a free lunch"

Do what you get payed for,

or send me a cheque and I will consider.

Regards,

Clemens

Read only

Former Member
0 Likes
568

I ma new SRm module so i am confused.

Read only

Former Member
0 Likes
568

if its on SRM portal you are talking about then use BADIs.

search SCN to get the proper BADI Names