cancel
Showing results for 
Search instead for 
Did you mean: 

graying out field?

Former Member
0 Kudos

Hi all,

Need your help.We are on SRM 4.0,R/3 4.6C.

On the Web gui,when we have options to go add items in the shopping cart by:

Catalog,Internal goods and services etc

My requirement is:

Now my requirement is to select from the drop down list and make that selection permanant for the end users i.e how can i freeze selection in the drop down list?

Please suggest a solution

Regards

Tommy

Message was edited by: Tom Hanes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tom,

to default "Personal templates" in the drop down list box, you have to change the FORM status_mixed_to_web in LBBP_PDH_SEARCHF12.

This form is populating the status list for SC.

By default "All" status is selected:

IF gs_search_field-status_mixed IS INITIAL.

MOVE '00' TO gs_search_field-status_mixed.

ENDIF.

To change it to personal templates, change '00' to '07'.

Rgds

Christophe

PS: please reward points for helpfull answers

Former Member
0 Kudos

Hello Christophe...thank you very much for replying.I very much appreciate your time and help.I will award you points now itself.

I am not a technical person...so just a couple of basic questions.

Q.]Where can i find the "FORM status_mixed_to_web in LBBP-PDH_SEARCHF12"?

Where are forms located/Transaction code?

So,i just to need to change "00" to "07".Can you please tell me where i can do the change?

Thank you again

Tommy

Former Member
0 Kudos

Hi Tom,

This is an ABAPer job.

First you must have developer rights and key on your system.

Then goes to transaction SE80 --> program SAPLBBP_PDH_SEARCH --> and locate the subroutine "status_mixed_to_web".

Or goes directly to transaction SE38 on program LBBP_PDH_SEARCHF12.

You will also need a modification key to be allowed to change this standard SAP object --> must be generated on the SAP marketplace with your S* user.

Then, instead of the std code:

<i>FORM status_mixed_to_web .

DATA: lv_counter(2).

IF gt_help_status_mixed[] IS INITIAL.

  • read status descriptions

PERFORM status_mixed_text_fill.

ENDIF.

IF gs_search_field-status_mixed IS INITIAL.

MOVE '00' TO gs_search_field-status_mixed.

ENDIF.

  • fill status description for Dynpro

PERFORM status_mixed_change.

  • Drop-down list for the create/change periods

CLEAR lv_counter.

LOOP AT gt_help_status_mixed.

ADD 1 TO lv_counter.

field-set 'STATUS_NUMBER' lv_counter gt_help_status_mixed-number.

field-set 'STATUS_LIST' lv_counter gt_help_status_mixed-text.

ENDLOOP.

ENDFORM. " status_mixed_to_web</i>

Change the default status in the list:

<i>FORM status_mixed_to_web .

DATA: lv_counter(2).

IF gt_help_status_mixed[] IS INITIAL.

  • read status descriptions

PERFORM status_mixed_text_fill.

ENDIF.

IF gs_search_field-status_mixed IS INITIAL.

<b> MOVE '07' TO gs_search_field-status_mixed.</b> ENDIF.

  • fill status description for Dynpro

PERFORM status_mixed_change.

  • Drop-down list for the create/change periods

CLEAR lv_counter.

LOOP AT gt_help_status_mixed.

ADD 1 TO lv_counter.

field-set 'STATUS_NUMBER' lv_counter gt_help_status_mixed-number.

field-set 'STATUS_LIST' lv_counter gt_help_status_mixed-text.

ENDLOOP.

ENDFORM. " status_mixed_to_web</i>

You can see the status list with codes (00, 01,....) in PERFORM status_mixed_text_fill.

Rgds

Christophe

Answers (1)

Answers (1)

Former Member
0 Kudos

Anybody?Please share your thoughts..

Thanks

Tommy