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

Decimal remove in a smartforms report

In smart forms this is a common problem in our daily task.Here I am providing you my own experience.I am facing this problem and solve using below step.

First of all we remove decimal value for QUAN data type.
first one is simple, just using below format.

&work_area-field_name(C,0)&
Hope this will work.

Another way is we need to define variable in Smartforms>Global Definitions. Give a variable name, type and associated type like: XYZ  TYPE P decimals 0.
Also need to create a program logic following steps :right click > Create>Flow logic>Program logic.
In program logic page we provide our logic and assign variable in our required fields.
Clear: variable.
XYZ = wa_items-total_val.
Also need to assign Input & output parameters in General attributes.

Input Parameter                                                       Output parameter
wa_items-total_val                                                       XYZ

Lastly need to pass that variable in our cell,like : &XYZ(C)&
 
Also you can try below step:
Declare a variable like var type P Decimals 0.

Comments

Popular posts from this blog

New commodity code create in SAP S/4 Hana

Convert First character to Upper case in SAP ABAP