on 08-25-2016 10:39 AM
Hi EWM experts,
Without using select queries can I fetch data from the standard/custom tables in SAP EWM ? I mean is there any methods or class or any FM's to fetch data from DB tables??
Kindly reply ASAP.... Thanks!
Well,
there are differences if you read directly from DB tables vs. use dedicated functions or methods.
1.) Performance
often data access methods have buffers which avoid direct reading from DB e.g. in case if you access the same object multiple times in your program
2.) Transient data
Some "objects" have calculated data which is not stored in DB tables but are calculated on the fly. These information you will not have if you only read from the DB
3.) transient data in case of changes
If you read from the DB you will only get data that is saved yet to the DB. So if you are working with coding that changes data and the data is not "committed" to the database you will not see these changes on the DB. But I assume that you are currently only talking about read only scenarios.
4.) Robustness in case of Database changes
In case the underlying data model is changed you have a problem if you access directly the database. Then usually the access functions/methods are adjusted from the old to the new data model. But if you access the DB directly you then have to adjust your coding.
5.) Complexity
If a "object" consists out of many DB tables it may be complex for you to decide in which DB table which data is stored. Access methods/functions often hide the complexity and make it easier to access the data
Of course a direct DB access may sometimes be faster and easier but then the points listed before should also be taken into consideration.
There is also a book available which may also be of help
Best regards
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
An short reading sample of the book can also be found here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Zayidu,
I think i have given you the RF Cook Book . Since the process of creation of RF screen is long and i cannot explain it here. But if you can check the RF Cook book and start the step by step process you can get it easily.
You can let me know once you were stuck somewhere in that .
Thanks
Hi Zayidu,
We can find many function modules in EWM to fetch the data from the tables. most of the FMs are starting with /SCWM/*.
You can find those with the transaction SE37.
BR,
C K Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.