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 ,     ...

Selection Screen Parameter in SAP ABAP

How to add an input field in selection screen & using parameters :

In Selection screen we can use Parameter for create a new selection screen.
Syntax like:

PARAMETERS: <FieldName> TYPE <Table-Field>.
  PARAMETERSmatnr TYPE makt-matnr.

 

Similarly using OBLIGATORY we can create a mandatory field.
 PARAMETERSmatnr TYPE makt-matnr oblicatory.

 

When we need to create a multiple range for input option then we use
below syntax:
SELECT-OPTIONSs_FieldName FOR <Table-Field>. 
SELECT-OPTIONSs_matnr FOR makt-matnr. 

 
Checkbox:

For create a checkbox we used below syntax:

Parameter: P_Field as checkbox.

 

Radio Button:
Syntax is: PARAMETER: P_BUTTON AS RADIOBUTTON GROUP xyz. 


 

   

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