Posts

Display text in dynamic in module pool Programming

Image
 dialog programming we cannot change the labels on the screen dynamically. Labels act as constants and their value cannot be changed at runtime. This article will show you trick to change such label text at runtime. a simple program to display text in dynamic  PROGRAM   sapmzrk_mpp8 . DATA :  ok_code  TYPE  sy - ucomm ,       t1       TYPE  char40 ,       t2       TYPE  char40 ,       t3       TYPE  char40 ,       t4       TYPE  char40 ,       t5       TYPE  char40 ,       t6       TYPE  char40 ,       textdisplay  TYPE...

Getting structure of any table in sap ABAP programming language dynamic table

in this programming language, some time requirement to getting table type run time below code help the getting the code dynamic table    DATA  :  lv_name    TYPE  char4 ,          comp_tab   TYPE  cl_abap_structdescr => component_table ,          itab_type  TYPE  REF  TO  cl_abap_tabledescr ,          dref       TYPE  REF  TO  data .    FIELD-SYMBOLS  :  <lt_outtab>  TYPE  ANY  TABLE ,                   <ls_outtab>  TYPE  any ,                   <l_fld>      TYPE  any .  lv_name  =...

Time zone in SAP

Some Time Requirement to Change time zone one place to another place so we can have some function module we can change according to your need well this scenario used by most to change time zone FUNCTION  ZTIMEZONES_ZONE . *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     REFERENCE(IM_TIME) TYPE  SY-TIMLO *"     REFERENCE(IM_DATE) TYPE  SY-DATLO *"     REFERENCE(IM_TZONE) TYPE  TZONREF-TZONE *"  EXPORTING *"     REFERENCE(EX_TIME) TYPE  SY-TIMLO *"     REFERENCE(EX_DATE) TYPE  SY-DATUM *"----------------------------------------------------------------------    DATA  :     timestamp  LIKE  tzonref - tstamps .    CALL...

Long Text example in sap abap

Image
Some time Requirement to give long text in sap abap programming so  we can add one container and behalf of container give long text below logic for long text in pbo include adding below logic top include  DATA :  line_length       TYPE  i  VALUE  254 ,        line              TYPE  i  VALUE  35 ,       editor_container  TYPE  REF  TO  cl_gui_custom_container ,       text_editor       TYPE  REF  TO  cl_gui_textedit ,       lv_length         TYPE  i ,        text              TYPE  string . in PB...

Paylode for Multiple data post

Here I can create association and navigation after that created mpc_Ext class and and dpc_ext deep inset payload like below   "Field2": "hvl2",   "Field3": "hvl3",   "ItemSet": [     {       "IFLD1": "rv11",       "IFLD2": "rv12",       "IFLD3": "rv13"     },     {       "IFLD1": "rv21",       "IFLD2": "rv22",       "IFLD3": "rv23"     }   ],     "NAVRESULT" : [      {       "MSG1": "rv21",       "MSG2": "rakesh"      },      {       "MSG1": "rv212",       "MSG2": "rakesh"      },              {       "MSG1": "rv2145",       "MSG2": "rakesh"      }   ] } 

Valu Request for file path

we can declare the in selection screen any string value like p_path string value and your class to selecting the path of the file  * Value Request for File Path.. AT  SELECTION-SCREEN  ON  VALUE-REQUEST  FOR  p_path .    CALL  METHOD  cl_gui_frontend_services => directory_browse *  EXPORTING *    window_title         = *    initial_folder       =      CHANGING       selected_folder       =  p_path      EXCEPTIONS       cntl_error            =  1       error_no_gui          =  2     ...

Docking Container example in and program how include and exlude the icon

REPORT   zsd_reports_docking_container  MESSAGE-ID  yxnmc . TABLES :  mara . *---------------------------------------------------------------------* *                        W O R K  A R E A S                           * *---------------------------------------------------------------------* DATA : *  Material Data    BEGIN  OF  wa_mara ,     matnr     TYPE    mara - matnr ,          " Material No.     mtart     TYPE    mara - mtart ,    ...