Skip to main content

Posts

This is a test post

 Hi there this is a test post
Recent posts

SAP ABAP Useful tips and tricks

Here is a list of commonly used tips and tricks: http://www.erpgenie.com/general/tips.htm http://wiki.scn.sap.com/wiki/display/ABAP/ABAP+Tips+and+Tricks+Database http://wiki.scn.sap.com/wiki/display/ABAP/ABAP+-+Tips+and+Tricks+Channel http://scn.sap.com/community/abap/testing-and-troubleshooting/blog/2010/11/10/new-abap-debugger-tips-and-tricks

Uploading downloading and displaying the .csv file in ALV format

*&---------------------------------------------------------------------* *& Report  ZTEST_EXCEL *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* report  ztest_excel message-id ztest_excel_msg. type-pools:slis. types: begin of output,             field1      type    string,             field2      type    string,             field3      type    string,             field4      type    string,             field5 ...

sample driver program for smartforms

*&---------------------------------------------------------------------* *& Report  ZSF_INVOIOCE *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* report  zsf_invoioce. tables: vbak,vbap. types: begin of invoice,        vbeln  type  vbeln_va,        erdat  type  erdat,        auart  type  auart,        vkorg  type  vkorg,        vtweg  type  vtweg,        spart  type  spart,        vkgrp  type  vkgrp,        vkbur  type  vkbur,        posnr  type  posnr_va,       ...

sales order creation via bdc

*&---------------------------------------------------------------------* *& Report  ZSO_BSDC_TEST *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT  zso_bsdc_test. TYPES: BEGIN OF sodata,           soparty(15) TYPE c,           shparty(15) TYPE c,              material(15) TYPE c    ,           quantity(15) TYPE c,       END OF sodata,    BEGIN OF readfile,      field1(600) TYPE c,   END OF readfile. DATA : g_repid TYPE sy-repid,        g_file_name TYPE string,        wa_sodata TYPE sodata,      ...

Replacement of F.M. Upload

Old Code:   CALL FUNCTION 'UPLOAD'                                           EXPORTING              FILENAME        = P_FILPC              FILETYPE        = 'ASC'         TABLES              DATA_TAB        = gt_input         EXCEPTIONS              CONVERSION_ERROR              INVALID_TABLE_WIDTH   ...

Code page error replacement

Old Code: *      TRANSLATE it_ziqmel-text *                FROM CODE PAGE cpage_ibm *                TO CODE PAGE cpage_sap. ***************************************************** Replacement Code: DATA: codepage TYPE REF TO cl_abap_conv_obj. DATA: v_output TYPE string. DATA: v_oldcode TYPE tcp00-cpcodepage VALUE 1103. CREATE OBJECT codepage   EXPORTING     incode           = v_oldcode     outcode          = cpage_sap *    miss             = '.' *    broken           = '.' *    fill         ...