Skip to Content
Author's profile photo kedhareeswari tekumudi

SOCO : Add custom fields to carry out sourcing search screen

Purpose:

            User wants to add custom fields to the carry out sourcing( sourcing cockpit ) search screen and also in result table.

Procedure:

    Step 1:  We need to configure that custom field through SPRO. 

    Step 2: Then we need to add our custom field in search structure and result structure of SOCO( sourcing cockpit ).

                  Component : /SAPSRM/WDC_DO_SOCO_GAF_1

                  Context node -> Search -> Search_fields  -> /SAPSRM/S_SEARCH_FIELDS_PR

                  Context node -> Search -> Result_fields  -> /SAPSRM/S_CLL_WD_SOCO_WORKAREA

    

    Step3 : Need to change the layout according to the requirement.

   Search screen:

/wp-content/uploads/2014/02/scn1_391737.gif

     Output result screen:

/wp-content/uploads/2014/02/scn2_391809.jpg

     Step 4: Write the code needed to restrict the output based on the input given by the user for the applicaiton type.

     Sample code:     

**** Restricted the ouput entries y apllication type:              

     CALL METHOD ls_element->get_attribute

     EXPORTING

          name = ‘YYAPP_TYPE’

     IMPORTING

          value = lo_app_type.

     IF NOT lo_app_type IS INITIAL.

     LOOP AT mt_displayed_list ASSIGNING <fs> WHERE yapp_type NE lo_app_type.

     DELETE mt_displayed_list WHERE guid = <fs>-guid.

     ENDLOOP.

     ENDIF.

**** Code displeaed fro Error message :

     DESCRIBE TABLE mt_displayed_list LINES lv_elem.

     IF lv_elem = 0.

    MOVE ‘037’ TO ls_messages-msgno.

    MOVE ‘/SAPSRM/AO_SOCO’ TO ls_messages-msgid.

    MOVE ‘W’ TO ls_messages-msgty.

    CALL METHOD mo_cll_message_handler->add_message

      EXPORTING

        is_message = ls_messages.

    ENDIF.

Appreciate your queries and comments!

Thanks,

Eswari.         

Assigned tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Great Document ! I have the same issue recently and wrote a very simmilar doc

      Add custom field in SOCO ( SRM 7.02 )

      I think that both documents complement each other 🙂

      Best Regards!

      Celeste

      Author's profile photo muthuraman govindasamy
      muthuraman govindasamy

      Good one.

      Thank you for adding value to community

      Author's profile photo Former Member
      Former Member

      Thanks for the document! its really helpfull.

      I just need 1 input as I am not getting the result in the output table and as you suggest we need to write the code .

      Where exactly we need to write this code ( wddomodify or post exit of search method)as well as where exactly the final binding is done.

      Thanks

      Sandeep

      Author's profile photo Former Member
      Former Member

      I have similar requirement, but I need the check box only in Search Criteria.. but I have done the setting as explained but the field is not visible

      Additional Fields in SOCO Search Criteria – Urgent

      Author's profile photo Former Member
      Former Member

      I have similar requirement, but I need the check box only in Search Criteria.. but I have done the setting as explained but the field is not visible

      Additional Fields in SOCO Search Criteria – Urgent