Using BAPI upload excel file for t-code AS02 in SAP

Using BAPI " BAPI_FIXEDASSET_CHANGE " create a zprogram to upload excel file for mass change fixed asset in SAP. REPORT  ZAS02_ASSET_CHANGE_UPLOAD . TYPE-POOLS :  truxs . " Structure for Excel data TYPES :  BEGIN  OF  ty_excel ,          anln1  TYPE  anln1 ,          bukrs  TYPE  bukrs ,          kostl  TYPE  kostl ,          werks  TYPE  werks ,          prctr  TYPE  prctr ,         END  OF  ty_excel . DATA :  lt_excel     TYPE  TABLE  OF  ty_excel ,       ls_excel     TYPE  ty_excel ,     ...

Smartforms formating related issues

In sap smartforms sometimes we faced different issues in our real life works.Sometimes we are unable to remove decimal places, omit leading sign, display sign to the left,display sign to the right and so many. In the below I give some defining style which help you a lot.

  • &work_area-field(C)& - compress space.
  • &work_area-field(Z)& - remove leading Zeros.
  • &work_area-field(S)& - remove leading sign.
  • &work_area-field(.N)& - Display upto N decimal.
  • &work_area-field(T)& - remove thousand separators.
  • &work_area-field(R)& -right justified.
  • &work_area-field(I)& - suppress output of the initial value.
  • &work_area-field(<)& - Display leading sign to the left.
  • &work_area-field(>)& - Display leading sign to the right.
  • &work_area-field(4ZC)& - if for 1 to 9  total page number shows * .
  • &work_area-field(C.0)& -remove decimal.

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

BAPI to Change STO PO/ PO Delivery date in SAP

Decimal remove in a smartforms report