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

READ_TEXT Function Module in SAP ABAP

 Use of FM 'READ_TEXT' to read the various text objects not only in sale order, any document in SAP. 

The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.

CALL FUNCTION 'READ_TEXT' 
EXPORTING 
ID = '0001' 
LANGUAGE = 'E' 
NAME = TDNAME
OBJECT = 'VBBK' 
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS 
ID = 1 
LANGUAGE = 2 
NAME = 3 
NOT_FOUND = 4 
OBJECT = 5 
REFERENCE_CHECK = 6.
 

 

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