BAPI for material storage location Add

 We can add material storage location plant wise using third party app or web. BAPI names : BAPI_MATERIAL_MAINTAINDATA_RT Import parameters: HEADDATA: Material Tables: STORAGELOCATIONDATA: Material: Plant: STGE_LOC:   STORAGELOCATIONDATAX: Material: Plant: STGE_LOC:   use below code after completing steps. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.        

Initial & Not initial concept in SAP ABAP

Initial & Not initial:

In SAP we use initial & not initial  keyword for internal table value check purpose.
Initial means there is no records in the internal table.
Like we  have an internal table as IT_Doc. so we use initial keyword as:
 
 if IT_doc is initial.

Give message " no record found".
endif.
 
Not initial:  At least one record is in there.
 
for similar internal table we can write :
 
If IT_Doc is not initial.
 
"then set logic to display the value".
 
endif. 

 

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

Convert First character to Upper case in SAP ABAP