‎2005 Jun 30 4:52 PM
Hi all!
I'm developing a webdypro application that implements the functionalities of the transaction CAT2, for display, delete, change and insert working times i'm using the following bapis:
BAPI_CATIMESHEETMGR_INSERT
BAPI_CATIMESHEETMGR_DELETE
BAPI_CATIMESHEETMGR_CHANGE
BAPI_CATIMESHEETRECORD_GETLIST
And i want to use the BAPI_HELPVALUES_GET to gives all the matchcodes/valuehelps that the user have in the CAT2 transaction.
My question is: how should i use this bapi?
Which values should i set for the following input parameters:
OBJTYPE
OBJNAME
METHOD
PARAMETER
FIELD
EXPLICIT_SHLP
MAX_OF_ROWS
DESCRIPTIONONLY
I hope somebody can helps me.
Thx
Rgds
Gregory.
‎2005 Jun 30 5:06 PM
I found a call to this BAPI. Looks like it is strongly dependent on the BOR.
CALL FUNCTION 'BAPI_HELPVALUES_GET'
DESTINATION RFC_DEST
EXPORTING
* OBJTYPE = ' '
OBJNAME = 'EmployeeAbsence'
METHOD = 'CREATE'
PARAMETER = 'Absencetype'
FIELD = 'AWART'
* max_of_rows = 0
* descriptiononly = ' '
IMPORTING
RETURN = I_RETURN
TABLES
SELECTION_FOR_HELPVALUES = I_SEL_FOR_HELPVALUES
HELPVALUES = I_HELPVALUES
VALUES_FOR_FIELD = I_VAL_FOR_FIELD
DESCRIPTION_FOR_HELPVALUES = I_DSC_FOR_HELPVALUES.
Does this help you any?
Regards,
Rich Heilman
‎2005 Jun 30 5:13 PM
Thx Rich. It helps me to see how can it be called.
But i want to know, what values i have to use for the matchcodes in the CAT2 transaction. I mean what is the OBJECT that is used in the transaction CAT2, what METHOD, and the others values.
best rgds.
Gregory.
‎2005 Jun 30 6:18 PM
Gregory,
You can find this info in the BAPI Explorer (Txn BAPI). Locate the BO CATimeSheetManager (in the Alphabetical tab), highlight it. The Detail tab has the information needed. You can do this for each method and attibutes in the method.
Ramki Maley.
Message was edited by: Ramki Maley
‎2005 Jun 30 7:03 PM
Thx Ramki.
I think u dont understand me. I wanna know how to use the BAPI_HELPVALUES_GET for get the help values that appear in the CAT2 transaction.
best rgds
Gregory
‎2005 Jun 30 7:29 PM
Gregory,
I was trying to tell you how to look up the Object type, method, field etc in order to use the BAPI.
Unfortunately we do not use CATS at my installation and I do not know what fields are on the screen nor what search helps are used.
BAPI_HELPVALUES_GET is used in several standard SAP programs and you can do a Where Used for the function module and try to understand how it is used.
Regards,
Ramki Maley.
‎2005 Jul 01 2:21 PM