Posts

Showing posts from April, 2020

Working With Enhanced Search Functionality

Image
You may have already noticed below Screen the new behaviour in standard transaction such as FV60  and  MIR7  while typing in the number of VENDOR. As a developer, you can now enhance the functionality of a search help object (F4 Help) with the  type-ahead  function and  Fuzzy Search  by just selecting the appropriate settings in the relevant search helps in the ABAP dictionary ( SE11 ). In the above enhanced search list I added new column (Tax Number 3)i.e GST Number. Below Steps need to Fallow. STEP1: Create a View in SE11 Like Below. STEP2: Create a Elementary Search help Like Below. STEP3: Click F1 on vendor Field and go to technical Information. STEP 4: Double Click on Search Help KRED. Below Screen will appear.and Double click on SRCH.HELP EXIT(KRED_F4IF_SHLP_EXIT). STEP5: In Function Module KRED_F4IF_SHLP_EXIT. Create a Implicit Enahancement. and Write Below Logic. IF  sy - tcode  eq  'MIRO'  OR  SY - TCODE  EQ  'MIR7'  OR  SY -

WORKING WITH BOM EXPLOSION FUNCTION MODULE(CS_BOM_EXPL_MAT_V2)

Here You will get the BOM(Bill of Material) details using Function Module. Function Module Name :  CS_BOM_EXPL_MAT_V2 Example: CALL  FUNCTION  'CS_BOM_EXPL_MAT_V2'        EXPORTING         AUSKZ                  =  'X'         CAPID                  =  'PP01'         DATUV                  =   SY - DATUM    "DATE         EHNDL                  =  '1'         EMENG                  = IM _ YIELD     "Pass Quantity         MKTLS                  =  'X'         MMORY                  =  '1'         MTNRV                  =  IM_MATERIAL  "Pass Material         STPST                  =  0         SVWVO                  =  'X'         WERKS                  = IM _ PLANT     "Pass Plant         VRSVO                  =  'X'        TABLES         STB                    =  EX_STB         MATCAT                 =  EX_MATCAT        EXCEPTIONS         ALT_NOT_FOUND          =  1         CALL_INVALID          

Working with batch Classification Change Function Module

Here I want to change the batch classification details through FUNCTION MODULE. Function Module Name : VB_CHANGE_BATCH. Example Code: DATA : YMCHA          TYPE  MCHA ,      CHAR_OF_BATCH  TYPE  TABLE  OF  CLBATCH ,      WA_OF_BATCH    TYPE  CLBATCH ,      CHANGED_BATCH  TYPE  TABLE  OF  MCHA ,      ZIMSEG         TYPE  TABLE  OF  IMSEG ,       RETURN         TYPE  TABLE  OF  BAPIRET2 . SELECT  SINGLE  MATNR ,               WERKS ,               CHARG  FROM  MSEG                INTO  @DATA ( WA_MSEG )                WHERE  MBLNR  =  '2020024858' . "give any other material document                                         "number in MSEG table which contain Batch IF  WA_MSEG  IS  NOT  INITIAL .   YMCHA - MATNR  =  WA_MSEG - MATNR .           "here i am passing material   YMCHA - WERKS  =  WA_MSEG - WERKS .           "plant   YMCHA - CHARG  =  WA_MSEG - CHARG .           "batch    CLEAR  WA_MSEG .   WA_OF_BATCH - ATNAM  =  'FB' .            

CS01 Enhancement for Custom fields in header

Image
Step1:         Added Append Structure in STKO with name (ZSTKO). Step2:       Created Project in CMOD Transaction With Enhancement name-PCSD0003 Step3: Double Click on screen exit number 1100. go to Layout and add fields like below. . Step4: add logic in STEP5: For CS03 Display Mode.Go to Flow Logic in Screen Number. STEP6 : Double Click on STATUS_1100 and write the given Logic in the Include:ZXCSAO01               Given Below Screen Shot.

Migo T-code item level after click of tree display Qty should become Display(MIGO-Enhancement)

Image
Step-1 : Go to SE38 and give Programme name - LMIGODO2. Step-2 : Create Implicit Enhancement Step-3 : Write Logic given Below Step-4 : if you want to do Quantity Tab Qty in unit of entry field also become non-Editable mode.               Do the Fallowing Steps. Step-5 : Go to se38 give include Name : LMIGOKL1 Step-6 : Create a Implicit Enhancement Write Logic given Below Step-7 : Test it.