‎2010 Aug 25 7:50 AM
Hi All,
I want to make a function module for trip expance and time sheet data which can show the info like
1> for Trip EXPENSE:
Total amount
location
currency
date
project code
per nr
for trip info that i found in table catsdb that uses lot of structure but i want only these fields for some structure. can i create new structure by taking filed form these structure. In Fm my input is workitem id.
Similar is the case for time please suggest some standard that may contain the value for both requirement.
Then in both f i have to use 'SAP_WAPI_CREATE_WORKLIST', 'SAP_WAPI_OBJECTS_IN_WORKITEM' to create worklist and workitem.
2>for TIME:
total time
cost center/SO
attendance type
activity type
personell number
Thanks And Regards
Ranjeet Singh
‎2010 Aug 25 1:45 PM
Ranjeeth,
In this forum now will explain you the whole process. If you are facing any issues witin the FM you can use the forum.
Yes, indeed you can create your own strucutres with require fields and use them in the Function module. Please refer the link below.
Link:[http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm]
Be more clear on what you are trying to say.
‎2010 Aug 25 1:45 PM
Ranjeeth,
In this forum now will explain you the whole process. If you are facing any issues witin the FM you can use the forum.
Yes, indeed you can create your own strucutres with require fields and use them in the Function module. Please refer the link below.
Link:[http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm]
Be more clear on what you are trying to say.
‎2010 Aug 25 3:04 PM
Hi Ranjeet,
So, as per my understanding you are trying to develop some reusable unit of Function Module which will deal with these functionality of For Trip Expense and Time Capture. But what exactly are you trying to do with these list of fields that you have mentioned. What kind of parameters are they? Is there any kind of user interface involved in the Function Modules?
Yes, you can create a new structure dynamically by taking info from those fields. Once you are done with you logic you are calling the standard SAP Modules. It would be great if you can share some more information regarding the logic that you have thought and intend to develop.
This is a very helpful class which will provide you with all the information for the structure from the DDIC Table. cl_abap_structdescr.
Refer to this links for more information on how to initialize and use dynamically defined structures.
http://www.sapdev.co.uk/tips/dynamic-structure.htm
http://www.sap-basis-abap.com/sapab037.htm
http://www.erpgenie.com/sap/abap/code/abap40.htm
Hope this will help.
Thanks and Regards,
Samantak.
‎2010 Nov 18 4:57 AM
Hi,
I solve this problem even the post are also helpful in some manner.
Regards
Ranjeet Singh
Edited by: Ranjeet Singh 007 on Nov 18, 2010 5:59 AM
‎2010 Nov 18 4:58 AM