Introduction
Suppose
we have a table with 5 column and we want to change NETWR (Net Sales) from
Dollar to Euro For this scenario we will write procedure.
Creating Procedure in SAP HANA
Creating Procedure in SAP HANA
- Click
on your Package Right Click--> New-->Procedure
- Give
the name of Procedure and Description of Procedure
- After
this one more folder Procedure will create inside your package and a sample BEGIN
and END code will be Generated. You have to write your Logic here.
- Write
the code in between BEGIN and END and in the select statement
VBELN – Column name
ERDAT - Column name
KUNNAR- column name
NETWR- column name(Net revenue)
round(NETWR/1.240) as Euro – round value of column NETWR and column will show as Euro - Check
and Activate after that one procedure will be created in your package
- After
Activation one procedure will be created inside SYS_BIC Schema.
- For
calling the schema write SCHEMA schema Name
- last
Step is Run and check the output.
For more information send me mail on sandeepcts1989@gmail.com
No comments:
Post a Comment