Posts

Showing posts from October, 2017

Date caculating functin module

FUNCTION  ZRKCALCUALTING_DATE1. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     REFERENCE(P_DATE) TYPE  SY-DATUM *"     VALUE(P_DAYS) TYPE  T5A4A-DLYDY OPTIONAL *"     VALUE(P_MONTH) TYPE  T5A4A-DLYMO OPTIONAL *"     VALUE(P_YEAR) TYPE  T5A4A-DLYYR OPTIONAL *"     VALUE(SIGN) TYPE  T5A4A-SPLIT DEFAULT '+ ' *"  EXPORTING *"     VALUE(CALC_DATE) LIKE  SY-DATUM *"---------------------------------------------------------------------- *  DATA: calc_date TYPE sy-datum,     DATA:    days TYPE t5a4a-dlydy,       ...

send stmartforms as pdf attahaments

         REPORT  ztest_nreddy_pdf_mail. * Internal Table declarations           DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,                 i_tline TYPE TABLE OF tline WITH HEADER LINE,                 i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,                 i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE, * Objects to send mail.                 i_objpack LIKE sopcklsti1 OCC...

Open smartforms as PDF OUTPUT

*&---------------------------------------------------------------------* *& Report  ZOPEN_SMARTFORMS_PDF *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT  ZOPEN_SMARTFORMS_PDF. DATA: ls_control_param      TYPE ssfctrlop. DATA: ls_composer_param     TYPE ssfcompop. ls_control_param-device = space. ls_control_param-getotf = 'X'. ls_control_param-no_dialog = 'X'. DATA: l_document_output_info TYPE ssfcrespd,       l_job_output_info TYPE ssfcrescl,       l_job_output_options TYPE ssfcresop. * Subsitute your smartform name below: CALL FUNCTION  '/1BCDWB/SF00000825'"'/1...

get dyanamic page change in smartforms

   DESCRIBE  TABLE  gt_vbak_vbap  LINES  lv_lines.    CLEAR  gs_vbak_vbap.    LOOP  AT   gt_vbak_vbap  INTO  gs_vbak_vbap.     lv_tabix = sy-tabix.      IF  s_vbeln-high  IS  NOT  INITIAL  .        CASE  lv_tabix.          WHEN   1.           control-no_open = space.           control-no_close =  'X' .          WHEN  lv_lines.           control-no_open =  'X' .           control-no_close = space.          WHEN  O...

DATE St Nd Th formates in sap abap

FUNCTION  zrk_fm. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     VALUE(P_DATE) TYPE  DATS OPTIONAL *"  EXPORTING *"     VALUE(P_YEAR1) TYPE  ARKTX *"     VALUE(P_YEAR2) TYPE  ARKTX *"     VALUE(P_YEAR3) TYPE  ARKTX *"     VALUE(F_YEAR) TYPE  PSTYV *"----------------------------------------------------------------------   DATA: d_month TYPE dats,         d_month1(10) TYPE c,         d_day(4) TYPE c,         d_year(15) TYPE c,         d_year1(15) TYPE c,...

GET ITEM DATA IN SAP ABAP

FUNCTION  zrk_sales_header. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     VALUE(S_VBELN) TYPE  VBELN *"  TABLES *"      GT_VBAK STRUCTURE  ZRKFM_TABLE123 OPTIONAL *"  EXCEPTIONS *"      ERROR *"---------------------------------------------------------------------- * here we used table  we can also used types and data types for this purpose *  TYPES: BEGIN OF ty_vbak, *  vbeln    TYPE  vbeln_va, *  erdat     TYPE  erdat, *  erzet     TYPE  erzet, *  ernam     TYPE  ernam,...

Date caculation using FM GET DATE MONTH YEAR

    DATA:    days  TYPE  t5a4a-dlydy,              months  TYPE  t5a4a-dlymo,              years  TYPE  t5a4a-dlyyr.    CALL  FUNCTION  'RP_CALC_DATE_IN_INTERVAL'    EXPORTING      date       = p_date     days      = p_days     months    = p_month     signum    =  sign     years     = p_year    IMPORTING     calc_date = calc_date.

Get ficial year in sap abap using funcation modules

hello abpers we writing code get ficial year FUNCTION  zdate_formates. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     VALUE(P_DATE) TYPE  DATS OPTIONAL *"  EXPORTING *"     VALUE(P_YEAR1) TYPE  ARKTX *"     VALUE(P_YEAR2) TYPE  ARKTX *"     VALUE(P_YEAR3) TYPE  ARKTX *"     VALUE(F_YEAR) TYPE  PSTYV *"----------------------------------------------------------------------   DATA: d_month TYPE dats,         d_month1(10) TYPE c,         d_day(4) TYPE c,         d_year(15) TYPE c,    ...

Get Ficial year in sap abap

dear abapers we write code get ficial year and month name without using any funcation moudle  may be this code help you FUNCTION  ZRK_FM. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     VALUE(P_DATE) TYPE  DATS OPTIONAL *"  EXPORTING *"     VALUE(P_YEAR1) TYPE  ARKTX *"     VALUE(P_YEAR2) TYPE  ARKTX *"     VALUE(P_YEAR3) TYPE  ARKTX *"     VALUE(F_YEAR) TYPE  PSTYV *"----------------------------------------------------------------------   DATA: d_month TYPE dats,         d_month1(10) TYPE c,         d_day(4) TYPE c,     ...