Skip to main content

Implement Search Help Exit

 Steps for implementing search help exit

  1. Create a function module copying "F4IF_SHLP_EXIT_EXAMPLE"
  2. Declare an internal table and work area which is same as search help structure
  3. Go to source code tab. Then go to  "IF CALLCONTROL-STEP 'SELECT'." section of the code
  4. Populate the internal table with required data
  5. Implement another function module "F4UT_PARAMETER_RESULTS_PUT"
Sample Code:

IF CALLCONTROL-STEP 'SELECT'.

SELECT FROM ZDISP_PENDING  INTO CORRESPONDING FIELDS OF TABLE @it. "Populating Internal Table

    DATA t_fields LIKE TABLE OF shlp_tab-fielddescr.
    DATA w_fields LIKE LINE OF shlp_tab-fielddescr.

    LOOP AT shlp_tab.
      LOOP AT shlp_tab-fielddescr INTO w_fields.

        DATA l_fname TYPE dfies-lfieldname.
        l_fname w_fields-fieldname.

        CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
          EXPORTING
            parameter               w_fields-fieldname
*           OFF_SOURCE              = 0
*           LEN_SOURCE              = 0
*           VALUE                   =
            FIELDNAME               l_fname
          tables
            shlp_tab                shlp_tab
            record_tab              record_tab
            SOURCE_TAB              it_disp    "Internal Table
          CHANGING
            shlp                    shlp
            callcontrol             callcontrol
*         EXCEPTIONS
*           PARAMETER_UNKNOWN       = 1
*           OTHERS                  = 2
                  .
        IF sy-subrc <> 0.
*     Implement suitable error handling here
        ENDIF.

      ENDLOOP.

    ENDLOOP.

  IF sy-subrc EQ 0.

      callcontrol-step 'DISP'.

    ELSE.

      callcontrol-step 'EXIT'.

    ENDIF.

    EXIT"Don't process STEP DISP additionally in this call.

  ENDIF.

Steps to assign this search help exit to the required search help
  1. Go to SE11
  2. Enter into the search help in change mode
  3. Assign the created function module in the search help exit field.

Comments

Popular posts from this blog

Adding New Input Fields to SAP Confirmations Screen (CO11N/COR6N) Without Coding

It is possible to add additional input fields in the SAP production order confirmation screen without coding. We can do this just adding fields to a structure which is included in AFRU table (Confirmation table). Process Steps Step 1:   Go to below customizing path. SIMG > Production > Shop Floor Control > Operations > Confirmation > Single Screen Entry > Define Single Screen Entry for Confirming Production Order Step 2:  Double click on the standard profile. Add "Customer Specific Fields of CI_AFRU" in the detail area. Step 3:  Go to default tab. Select an option from the "Customer Specific Fields" area. Then click on save button. Step 4:  Go to transaction code "SE11". Select database table and put "AFRU" and click on change button. Step 5:  Go to the include marked in the screenshot and double click on the data element of the include. Step 6:  Double click on "CI_AFRU". Step 7:  Click on "Yes" in the pop u...

SAP Production Order Confirmation Table List

SAP Production Order Confirmation is a process that enables companies to confirm the completion of production orders in the SAP system. The confirmation process allows companies to track and manage the progress of production orders, as well as record the actual quantities of materials used and the time taken to complete the production order. Production order confirmation tables are listed here. AFFW                     Goods Movements with Errors from Confirmation AFFWPRO           Log of deleted AFFW entries AFRC                     Incorrect cost calculations from confirmation AFRD                     Default values for collective confirmation AFRH                     Header information for confirmation pool AFRH_DEL ...

SAP Quality Management Transaction Codes

 SAP Quality Management transaction codes are listed here. Quality Management General Transaction Code List T-Codes Function Q000 Quality management QA00 Quality inspection QA01 Create Inspection Lot QA01A  Create Inspection Lot QA02 Change Inspection Lot QA02A  Change Inspection Lot QA03 Display inspection lot QA05 Job planning: Periodic inspection QA06 Job overview: Periodic inspection QA07 Trigger for recurring inspection QA07L  Deadline Monitoring Log QA08 Collective Processing of Insp. Setup QA09 No. range maintenance for insp.lots QA10 Trigger automatic usage decision QA10L  Log for Automatic Usage Decision QA11 Record usage decision QA12 Change usage decision with history QA13 Display usage decision QA14 Change UD witho...