on 09-25-2009 6:17 AM
Hi,
I need to develop some custom applications using WDA in ESS for displaying and updating the employee;s infotype records (IT0581, IT0591) and I am new to WD ABAP.
I have completed the beginners tutorials available in sdn and planning to use service call functionality available with WD ABAP in order to display and uppdate infotype records. For this, we are developing some custom RFC;s display data of IT0581, IT0591. Can anybody guide me how to do this ?
Is there any documentation available for same ? What are the best practises or approaches to keep in mind while developing the content for ESS using WDA?
Regards,
Anil Kumar
Hi Anil,
Not all ESS applications are in WDA yet, but SAP is moving in that direction. Below is the link which gives you details about each of the ESS application as of EhP3.
http://help.sap.com/erp2005_ehp_03/helpdata/en/f6/263359f8c14ef98384ae7a2becd156/frameset.htm
refer the thread /message/5108275#5108275 [original link is broken]
regds,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amith,
Thank you for your inputs. I have problem in executing the function module from se37. It gives the short dump.
I have given the following inputs
Infotype : 0021
pernr number : 999
Record : 1
Operation : DIS
Initially, I am during the exercise to display the infotype records. And from se80, I have created a service call for the Webdynpro component. During the service call, I am taking the import parameter as pernr and infotype. But, not sure of export parameter which one to select.
Once this is successfully done, we can map the context of component controller with the view controller in order to get the data from BAPI.
Regards,
Anil Kumar
Hi Buddy
You are wrongly passing the parameters. Pass the parameters like this
data : ls_pa0006 TYPE pa0006.
data : ls_p0006 TYPE p0006.
DATA : IT_PA0006 TYPE PA0006 OCCURS 0 WITH HEADER LIN
DATA : RETURN LIKE BAPIRETURN1.
DATA : ERROR_TAB LIKE RETURN OCCURS 0 .
SELECT * FROM PA0006 INTO CORRESPONDING FIELDS OF TABLE IT_PA0006
WHERE ENDDA = '99991231' AND PERNR = PERNR .
SORT IT_PA0006 BY SUBTY.
LOOP AT IT_PA0006.
IF IT_PA0006-SUBTY = '1' .
move-corresponding it_pa0006 to ls_pa0006.
ls_pa0006-name2 = co.
ls_pa0006-stras = STREET1.
ls_pa0006-LOCAT = STREET2.
ls_pa0006-PSTLZ = POSTALCODE.
ls_pa0006-ORT01 = CITY.
ls_pa0006-ORT02 = REGION.
ls_pa0006-TELNR = TELEPHONENUMBER.
move-corresponding ls_pa0006 to ls_p0006.
ls_P0006-INFTY = '0006'.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0006'
NUMBER = PERNR
SUBTYPE = '1'
VALIDITYEND = IT_PA0006-ENDDA
VALIDITYBEGIN = IT_PA0006-BEGDA
RECORD = ls_p0006
OPERATION = 'MOD'
TCLAS = 'A'
IMPORTING
RETURN = RETURN.
I think OPERATION = DIS will not be the correct here. Change operation to insert that is correct. Cehck this code it will work.
Regards
vijay
Hi Anil
FYI, There is HR_INFOTYPE_OPERATION function module for the Maintenance of HR infotypes, such as inserting, changing, deleting data etc
following is a list of the fm's parameters and how they r used, obviously not all parameters will be used depending on what function you are performing i.e. insert, change, delet etc
infty - Infotype being updated
objectid - object id from infotype
number - Personnel number
validityend - validity end date
validitybegin - validity begin date
record - infotype record values to be updated, inserted etc (will be structure of infortyoe you are updating)
recordnumber - sequence nunber from infotype record you are updating
Operation - describes what operation is to be performed
COP = Copy
DEL = Delete
DIS = Display
EDQ = Lock/unlock
INS = Create
LIS9 = Delimit
MOD = Change
INSS = Create for Actions is not converted to Change
nocommit - commit yes('X') / no(' ')
dialog_mode - dialog mode or not, default is '0'
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.