Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

graying out field?

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

replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question