Posts

Showing posts from June, 2019

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

Use of Clear refresh free & Delete in sap ABAP

In my real life I am facing lots of problem without having knowledge of these concepts. Right now I am sharing these concept with you.Hope it'll help you a lot. When we define a variable or an internal table in a program after executing it processor allocate memory for that variable. Example: data: var_data type c. write : 'Memory allocation test.' Here processor allocate memory for that variable.When we write: Clear: Clear Var_data.   Its clear the allocate memory for that variable var_data. Free: Free Var_data:  The memory allocate free for that variable and can be used for others variable. Refresh internal_tab:  Refresh is used only for internal table.when we used refresh internal_table its clear all the entries from the internal table, but memory allocation is still in exist and we can use in within the program. Delete Var_data or itab_internaltable: Its delete the variable value or internal table value based on condition.  

Internal Table value pass to template in smartforms

Image
In smartforms we can pass internal table as well as work area. Literally we pass internal table in a smartforms table from Data tab we provide internal table name and work area name also declare in Global Declaration part. Suppose we used template in our smartforms and need to pass internal table. Right click on it and select create then Flow logic and finally select Loop. Then from Data tab click internal table and provide your internal table and work area.