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

2 comments:

  1. Thank you for article! Please check this link with 5 ways for removing leading zeros https://abap-blog.com/remove-leading-zeros-abap/

    ReplyDelete