Monday, October 8, 2012

Add new Printer in SAP




.





1. Run tcode SPAD
2. Go to Utilities -- Device Type -- Import
3. Fill the data according ly


p/s if the import generate  "Object can only be created in SAP Package" error , please use SAP Package SPOO.







Wednesday, September 26, 2012

Hide Specefic ALV Field at First Run


Below is the syntax to hide ALV field during  program run. This setting need to be applied at fieldcatalog level, user can view the field by used the layout setting.



ta_fieldcatalog-no_out 'X'.

Tuesday, September 18, 2012

Delete leading zero ABAP



Coding:

*** Output format
    SHIFT wa_repdata-hkont LEFT DELETING LEADING '0'. "GL Account
    SHIFT wa_repdata-lkorr LEFT DELETING LEADING '0'. "Prov Account
    SHIFT wa_repdata-lifnr LEFT DELETING LEADING '0'. "Account No



Output:
       15201010  
       15203020
       6000002

Sunday, September 9, 2012

ALV total and sub total






  - To enable total and sub total in ALV Grid of the fieldcatalog should be in numerical format.

eg:


     valamt TYPE DECIMALS 2,"18.Value Amount
        amtpst TYPE DECIMALS 2,"19.Amt Posted
        sapostamt TYPE DECIMALS 5, "20.Amt Posted in SAP
  END OF ty_report.


  ta_fieldcatalog-fieldname 'AMTPST'.
  ta_fieldcatalog-seltext_l 'Amt Posted'.
  append ta_fieldcatalog to ta_fieldcatalog.
  clear ta_fieldcatalog.

  ta_fieldcatalog-fieldname 'SAPOSTAMT'.
  ta_fieldcatalog-seltext_l 'Amt Posted in SAP'.
  append ta_fieldcatalog to ta_fieldcatalog.
  clear ta_fieldcatalog. 

 

Tuesday, August 28, 2012

LSMW table List

Below is the list of LSMW table .


/SAPDMC/LISCREEN General (Screen Fields)
/SAPDMC/LSCDOCU Documentation Elements
/SAPDMC/LSCDOCUT Documentation Elements: Name
/SAPDMC/LSCPROGS Parameter Names of the BI/DI Program
/SAPDMC/LSCRULE Rule categories
/SAPDMC/LSCRULET Rule categories
/SAPDMC/LSCSTEPS Work Steps
/SAPDMC/LSCSTEPT Work Step: Name
/SAPDMC/LSCVERSN LSMW Version Number
/SAPDMC/LSGBDC BI Name: "Code"
/SAPDMC/LSGBDCA BI Name: Attributes
/SAPDMC/LSGBDCS BI Name: Structures (Name=PrefixRecordingHlevel)
/SAPDMC/LSGBDCT BI Recording: Name
/SAPDMC/LSGCUST Server-Dependent Settings
/SAPDMC/LSGPRO Projects
/SAPDMC/LSGPROT Project: Name
/SAPDMC/LSGSUB Subprojects
/SAPDMC/LSGSUBT Subproject: Name
/SAPDMC/LSGUSDFI LSMW Files Used
/SAPDMC/LSMCUST Client-Dependent Settings (IDoc Inbound Processing)
/SAPDMC/LSOALG Action Log
/SAPDMC/LSOATT Object Attributes
/SAPDMC/LSOCOD ABAP Code of Conversion Rules
/SAPDMC/LSODOC Documentation
/SAPDMC/LSOFIL File Paths and File Names
/SAPDMC/LSOFIS File Names per R/3 System
/SAPDMC/LSOFIW Files: Values for Wildcard '*'
/SAPDMC/LSOFLD Source Fields
/SAPDMC/LSOINF Legacy Data: Not Yet Used
/SAPDMC/LSOINP Legacy Data: Files
/SAPDMC/LSOINS Legacy Data: Assignment of Files to Source Structures
/SAPDMC/LSOLOG Log Info per Object and Work Step
/SAPDMC/LSOMAP Field Mapping
/SAPDMC/LSOPAR Diverse Parameters
/SAPDMC/LSOPRT Flow and Message Log
/SAPDMC/LSOREC Recordings per Object
/SAPDMC/LSOREL Structure Relationships
/SAPDMC/LSORUL Rule Category
/SAPDMC/LSOSTR Source Structures
/SAPDMC/LSOTXT Objects: Name
/SAPDMC/LSRATT Central Rules: Definition and Attributes
/SAPDMC/LSRCOD Central Rules: Code
/SAPDMC/LSRTXT Central Rules: Name
/SAPDMC/LSRVLI Central Rules: Interval Translation Values
/SAPDMC/LSRVLO Central Rules: 1:1 Translation Values
/SAPDMC/LSUCUST Personal settings
/SAPDMC/LSUMENU User Menu
/SAPDMC/LSUPROF User Profile