HR_INFOTYPE_OPERATION + Webdynpro
Hey Experts,
I am creating a portal app (Webdynpro for ABAP) that allows me to adjust timeinfotypes.
When using the functionmodule hr_infotype_operation, it somehow gives me shortdumps in the portal.
Errors like 'not enough quota' and 'collision detected' cannot be catched with a simple try-catch statement.
You guys have any idea how to catch every error this function module can return?
Then i am able to send those messages back to the frontend without crashing/shortdumping.
Greetings,
Mike
which infotype?
e.g. bapi_ptmgrattabs_mngchange can be used to change absences.
Similar Messages
-
Error in executing 'HR_INFOTYPE_OPERATION' from webdynpro application
Hi Experts,
I am using FM 'HR_INFOTYPE_OPERATION' for infotype PA0034 operations. I have written below code in assistant class.
when i execute the class method and pass the parameters this FM executing fine and creates record into pa0034. But when i execute the webdynpro application it is giving error "Invalid parameter EXCEPTION , value ". Please Help me in solving this issue
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0034'
NUMBER = lv_pernr
SUBTYPE = ls_p0034-subty
OBJECTID = ''
LOCKINDICATOR = ''
VALIDITYEND = ls_p0034-endda
VALIDITYBEGIN = ls_p0034-begda
RECORDNUMBER =
RECORD = ls_p0034
OPERATION = 'INS'
TCLAS = ' '
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = ls_return
KEY =
Thanks
VijayHi Vijay,
So you are passing the values from the screen. So you must have binded the screen fields with the attributes, just make sure that they are of the same type as the importing parameters of the FM
Regards
Arjun -
Hi can you any one explain the below question.
I was developed on application insted of pa40 in hr abap for rehire and new hire , for updating the data in respective infotypes using the hr_maintian_masterdata . but i want update the infotypes from screen fields using the macros and hr_maintain_masterdata. please any one help me on this ?
Edited by: bommisettyramu on Aug 31, 2011 7:20 AMhi ramu,
U want to update the infotype with data which is filled in webdynpro screen ? If yes, its simple just read the field values and declare work area of type infotype.
ex wa_pa0001 type p0001.
assign filed values to work area values. then use directly HR_infotype_operation for update or insert or modify.
let me know if you have any more quieries
Regards
Srinivas -
Calling HR infotype operation in a webdynpro ABAP application
Hi,
is it possible to call hr_infotype_operation on an infotype which has custom control to update the infotype.
Because i have observed that all the 9 series infotypes which have custom control in them are giving short dump when hr_infotype_operation is used on them.
Please reply
DivyaHi experts ,
I am trying to use FM HR_INFOTYPE_OPERATION to update infotype 9205,
for this i need to pass infotype as exporting parameter.
but i am not able to use INFOTYPES statement to declare
the infotype in the view method .
how can i use the FM now in my webdynpro application
points are sure.
Thanks,
Sushant -
How to round the fractional values in Abap webdynpro?
Hi Experts,
I have designed a screen in which I have a field called ANZHL(which is numberic field of infotype14) It is a fractional digits which needs to be rounded when it comes to display in my webdynpro application?
Here is my code .........
How to round the ANZHL field ?
**if start and end dates are changed then delete the old and insert the new else just mmodify the record
if ws_0014_temp-begda ne ws_edit-begda or ws_0014_temp-endda ne ws_edit-endda.
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0014'
number = wd_this->w_pernr
subtype = ws_0014_temp-subty
objectid = ws_0014_temp-objps
lockindicator = ws_0014_temp-sprps
validityend = ws_0014_temp-endda
validitybegin = ws_0014_temp-begda
recordnumber = ws_0014_temp-seqnr
record = ws_0014_temp
operation = 'DEL'
nocommit = 'X'
importing
return = w_bapireturn.
" key = w_bapireturn.
if w_bapireturn-type ca 'EA'.
r_bapireturn = w_bapireturn.
return.
endif.
ws_0014 = ws_0014_temp.
ws_0014-endda = ws_edit-endda.
ws_0014-begda = ws_edit-begda.
ws_0014-anzhl = ws_edit-anzhl.
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0014'
number = wd_this->w_pernr
subtype = ws_0014-subty
objectid = ws_0014-objps
lockindicator = ws_0014-sprps
validityend = ws_0014-endda
validitybegin = ws_0014-begda
recordnumber = ws_0014-seqnr
record = ws_0014
operation = 'INSS'
nocommit = 'X'
importing
return = w_bapireturn.
" key = w_bapireturn.
if w_bapireturn-type ca 'EA'.
r_bapireturn = w_bapireturn.
return.
endif.
else.
ws_0014 = ws_0014_temp.
ws_0014-anzhl = ws_edit-anzhl.
Edited by: Dharani us on Oct 8, 2009 10:15 AMHi,
For that attribute, you want to display the decimal values or what.
Regards,
Lekha. -
HR_INFOTYPE_OPERATION in WD4A
Hi all,
My requirement is to update or create a new record in custom infotype.For that I'm using the function module HR_INFOTYPE_OPERATION in the eventhandler for SAVE button in the view .but when I click the button SAVE, the infotype is not getting updated.But if I write an SQL update statement, it's working.But I want to use the function module.When I used the Function module in a report program,just to test it, by passing the same parameters, the Function module is working correctly.Also no messages are coming into the return parameter. I want to know if we can't use the function module in the Webdynpro.If so what's the solution to my problemHi,
Before we update any record then we need to explicitly sue the FM reated to Locks.
In SE37 check the related FM
or try this
CALL FUNCTION 'ENQUEUE_EPPRELE' " lock
CALL FUNCTION 'HR_INFOTYPE_OPERATION' " Make changes
CALL FUNCTION 'DEQUEUE_EPPRELE' " Remove lock
Regards
Lekha. -
Check before an infotype operation (PA) / HR_INFOTYPE_OPERATION
Hi,
In my latest project there is a requirement to simulate the HR_INFOTYPE_OPERATION (or other possibilities to update the PA* infotypes). The main meaning of the project is in robust customer customization, which translates to dynamic abap webdynpro views with data from the infotypes. Person fills those forms and sends the "personal document" for processing (creating entries in customer Z* namespace). Just after that a different user can pick the "personal document" and can process it - that is the part where it comes to the infotypes filling (HR_INFOTYPE_OPERATION, batch-inputs, direct updates etc.).
Now requirement is to implement checks also in the creating of the "personal document" itself, before saving it into customer (Z*) tables. How could that be achieved? One way would be using HR_INFOTYPE_OPERATION with nocommit = 'X' and after all operations call of ROLLBACK WORK, initializing buffers etc. However whole concept of using HR_INFOTYPE_OPERATION is in locking the personal number before the call. User which only creates the "personal document" should not lock the personal number - as this part should be independent on other processes, taken in SAP standard HR tables / transactions themselfs.
I did not find any kind of checking mechanism ignoring the person-locking concept, but with full logic that the corresponding infotype expects. There should be are all kind of operations supported (insert, copy, delimit...).
I underline that the customer is at a low support package (< EH5) and the decoupling infotypes concept is useless here.
Thanks for any advice.Hi Surya,
Enhancement project PBAS0001which contains those includes is obsolete in terms of detached infotype framework.
The following enhancements will work for a decoupled infotype:
BAdIs:
HRPAD00INFTYBL Enhancement of Business Logic of Standard Infotypes (this is the direct replacement for the enhancement project PBAS0001)
HRPAD00INFTYDB Performing actions after updating (this is the direct replacement for the BAdI HRPAD00INFTY)
HRPAD00INFTYUI BAdI: UI Logic Enhancement
More information you may find here:
IMG Personnel Management->Personnel Administration->Customizing Procedures->Infotypes->Infotypes in Detached Infotype Framework
Under the following IMG nodes:
Enhancements to Business Logic and Updating
Enhancements to UI Logic
Regarding to your questions:
1. If the infotype is decoupled, even the HR_INFOTYPE_OPERATION will call these business checks and time constraint checks. Right ? So, what is the major advantage of moving to HR_ECM_INSERT_INFOTYPE ?
I suppose it has been done to follow the same logic as SAP does in PA-EC component
For example to adjust a salary in ECM SAP uses FM HR_ECM_ACTIVATE_SAL_ADJUSTMENT meanwhile it uses FM HR_ECM_INSERT_INFOTYPE to update IT0008
2. Is there some trick to enable HR_ECM_INSERT_INFOTYPE call the user exits of the Infotype ?
I think there is no standard way to do so...
It is a good idea to follow the standard enhancement concept for decoupled infotypes, at least I see no problems in moving the old enhancement to a new one.
Kind regards,
Sergey -
Uncaught exception in HR_INFOTYPE_OPERATION
Hi,
I'm trying to change an infotype via RFC.
I'm using this RFC in a Java WebDynpro.
The webdynpro is getting the information of the existing infotypes.
When I change the hours in the infotype and click the save button, I get a runtime error.
When I click the save button again, everything works fine...
this is a piece of code out of the RFC.
DATA: ls_2001_old TYPE p2001,
ls_2001_new TYPE p2001,
return1 TYPE bapireturn1,
key type BAPIPAKEY.
/* fill ls_2001_old ls_2001_new */
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = ls_2001_old-pernr.
/* this function results in a short dump, all parameters are correct! */
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '2001'
number = pernr
subtype = ls_2001_old-subty
objectid = ls_2001_old-objps
lockindicator = ls_2001_old-sprps
validityend = ls_2001_old-endda
validitybegin = ls_2001_old-begda
recordnumber = ls_2001_old-seqnr
record = ls_2001_new
operation = 'MOD'
* TCLAS = 'A'
dialog_mode = '0'
nocommit = ' '
* VIEW_IDENTIFIER =
* SECONDARY_RECORD =
IMPORTING
return = return1
KEY = key
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = ls_2001_old-pernr.
The problem is in the method set_framework of the class CL_HRPA_MASTERDATA_FACTORY class.
a_is_initialized = true. I checked note 493984 and it is implemented in our system.
METHOD set_framework.
IF a_is_initialized = true.
* This indicates some complex problem which often can be easily
* fixed. For details see NOTE 493984 (2003).
RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.
ELSE.
CALL METHOD delayed_constructor
EXPORTING
read_infotype = read_infotype
masterdata_buffer = masterdata_buffer
additional_buffer = additional_buffer
legacy_mode = legacy_mode.
ENDIF.
ENDMETHOD.
Any suggestions?
Any idea's of what is going wrong here? Tips?
thanks,
JoachimHello,
I added this to the constructor of the class where I read and write this infotype.
Writing works now, but reading dumps on this functionmodule:
CALL FUNCTION 'HR_ECM_READ_TEXT_INFOTYPE'
EXPORTING
pernr = wa_pa2001-pernr
infty = '2001'
subty = wa_pa2001-subty
begda = wa_pa2001-begda
endda = wa_pa2001-endda
message_handler = r_msghandler
IMPORTING
text_tab = lt_text
is_ok = lv_ok.
IF sy-subrc = 0.
READ TABLE lt_text INTO wa_attest-motivatie INDEX 1.
ENDIF.
Can someone explain me this strange behavior?
kr,
Joachim -
Hai All,
I am currently working on HR req.
I hav to upload my data form my webdynpro screen to Infotype 267.
Can I use BDC recording and program to upload it to the infotype???
Please give ur suggestions....
Thanks in advance.
Nalla.BNalla ,
You can use standard FM to upload data to infotype . get the attributes from webdynpro applicattion . pass it to the below FM in a action tigger .
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0267' " pass infotype
subtype = p_record-subty
objectid = P_record-objps
number = p_record-pernr "employeenumber
validityend = validityend
validitybegin = validitybegin
record = p_record
recordnumber = p_record-SEQNR
operation = INS "insert
nocommit = nocommit
dialog_mode = '0'
IMPORTING
return = return_struct
key = personaldatakey
EXCEPTIONS
OTHERS = 0.
regards
chinnaiya
Edited by: chinnaiya pandiyan on May 24, 2011 4:42 PM -
BAPI: IT2006, IT0014 in Webdynpro leave request scenario
Hope someone can help me with our new WEBDYNPRO leave request scenario where we want to create via workflow in our back-end R/3 system:
Infotype 2006 absence quotas.
Infotype 0014 recurring payments/deductions.
Does anyone know if there are any standard BAPI's / object type methods available to create the above infotypes?
If not available hope someone can tell me if it is a real challenge to create such a BAPI from scratch on for a medior ABAP programmer? Myself i am a functional HR consultant with little ABAP skills who likes to know how much ABAP days i need for my client in this last "from scratch on" case.
Thanks for reading and maybe replying,
Robbert Bastiaans>> if it is a real challenge to create such a BAPI from scratch on for a medior ABAP programmer?
Not really.. you can use HR_INFOTYPE_OPERATION to create the infotypes.. but this function module is not RFC enabled.. what you will have to do is create a custom RFC & wrap it around the above function module..
~Suresh -
Hello,
I have a program in R/3 that is based on a logical database. I don't want to have to write the program all over again in Webdynpro.
Is there a way to use the logical database in Webdynpro for ABAP.Basically WDA calls a FM and then the following help is a good starting point:
"Calling a Logical Database Using a Function Module"
http://help.sap.com/saphelp_nw04/helpdata/en/64/237f8cd43711d1950b0000e8353423/content.htm
Kindly close the thread and award appropriate a points to the answer given.
Sergio -
Filename in Webdynpro for a PDF created with Smartform
Hi,
I created a PDF with Smartform in my Webdynpro-Application.
When I click the save button there is a default filename f.pdf .
How can I change the filename?
Regards
Marcus SchugHi Experts,
any update on this?
I am facing the same problem with ESS payslip (smartform/Hrform): my customer wants to have custom file name for download salery statements from the portal. Do you know how to change the default form name unknown.pdf to e.g.. "payslip_month_year"?
I spent a lot of time to find any possibility to get and change the file name but without success till now.
Please respond.
Regards,
Zdzislaw Kaczmarczyk
Edited by: Zdzislaw Kaczmarczyk on Jun 14, 2010 4:41 PM -
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input
Dear Friends,
We are facing a serious problem for debugging. Expecting valuable input for the same.
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
1st ] Within R/3
Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
2nd ] From webpage to R/3
Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
In Prod. Server the 1st case above is working but the 2nd case is not working.
In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
The setting which are done in Prod. server are,
1] RZ10 in parameters are set for port and host name.
2.1] In SMICM check for ICM.
2.2] Host file updated in Windows-System 32.
3] In SICF following services are active,
3.1] default_host/sap/bc/webdynpro
3.2] default_host/sap/public/bc
3.3] default_host/sap/public/bc/webdynpro/viewdesigner
3.4] default_host/sap/bc/wdvd
3.5] default_host/sap/public/icman
3.6] default_host/sap/bc/gui/sap/its/webgui
3.7] default_host/sap/public/ping
3.8] default_host/sap/bc/error
3.9] default_host/sap/bc/echo
4] In SE80
4.1] Internet services-System-are published
4.2] Internet services-WEBGUI-are published
4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
5] In Su01 for user profiles sap_all & sap_new is assigned and role SAP_BC_WEBSERVICE_DEBUGGER is assigned.
6] The support packages are also updated to latest level.
7] Gone through following links but not getting any clues.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
Thanks in Advance.
Best Regards,
Abhijit.No cross posting
Read the "Rules of Engagament"
Regards
Juan -
IE Script error when double clicking on a view in Abap Webdynpro component
Hello experts,
I am running mini SAP trial version 2004 with Internet explorer 7.0 and also installed gui patch 23.
I am making a sample application in SE80 and when double clicking on a view in Abap Webdynpro component I get following error:
<b>Internet Explorer Script Error</b>
An error has occured in the script on this page.
Line: 1
Char: 1
Error: 'wdp_show_menu' is undefined
Code: 0
URL: http://satellite5200:8000/sap/bc/wdvd/painting.html?_vdrespkey=EOJ6V1JQMX0VLTQ7AP6DQM64Y&_vdframe=painting&sap-client=000
Do you want to continue running scripts on this page?
Thanks in advance.
BhupendraHi Bhupendra,
If you are seeing this error in the Se 80 editor , i guess you can ignoire that ...While running the application it will not show any error.
Thanks
Anzy -
Hiding a subview called in a main view in WEBDYNPRO Application
Hello Experts,
I have a scenario in which i am calling a subview inside a main view. I have created a main view in which:-
1. List of reportee to the manager logged in is getting displayed in the form of a table.
2. When we select any row of this table ( means selection of any reportee row) and click on a button 'Get Details', then it should display the detailed personal data of that reportee.
I have successfully called an already created personal data view inside this main view to display the detailed personal data of any selected reportee. But the issue is in the main view:-
1. This view has table containing the list of reportee getting displayed.
2. This view simultaneously also displays the default first row detailed data of the table of reportee.
Our requirement is:-
1. To display only table containing the list of reportee in the first load of main view.
2. Then when any row of this table is selected, then only the detailed data specific to that row should be displayed.
My approach till now is:-
1. I have removed the default first row lead selection for the table of reportee.
2. I have created a node VISIBILITY_DET_DATA and then an attribute IS_VISI BLE under that node of type WDUI_VISIBILITY.
3. In the layout section i have created a group GROUP_DETAIL_DATA and a view container UI element under that to call the detailed data view when any row of table containing the list of reportee is selected.
4. I have created a binding for the VISIBLE property of the group GROUP_DETAIL_DATA to the attribute IS_VISI BLE created in the context of the component contoller.
5. I have then used the method WDDOINIT of the main view to write code to hide the detailed data view by setting the IS_VISIBLE flag to '02' i.e. NONE.
But this is causing the entire view to be coming as blank view.
I am not sure why this is happening, Can any of you suggest if i am missing anything important which is cauing this analomy.
RupeshHi ,
This is a Webdynpro related question. you would have got many repsonses if you posted in webdynpro forum.
i) I would want to know how to hide Image object or the transparent container which holds the IMAGE object, dynamically through the code inside the MODIFYVIEW method of the view
You can do a post_exit enhancement in the MODIFYVIEW method. Get the UI element object from view and There are methods to set the visibility at runtime.
Is there an option to dynamically specify diffent image based on the login language with the IMage container?
i think yes, same procedure as first question's answer. Based on condition you can change the source path of the mime object .
Maybe you are looking for
-
Apparently I am in the extreme minority, but I really do miss the save dialog box when saving attachments in Mail. Is there anyway to kill off the automatic saving to the Downloads folder? And no I am not interested in merely moving the default from
-
Result row display in a Bex query in BW
Hi , I have a problem where the result rows are not getting displayed for row where only one line is getting displayed. Basically, in column i have a 2 columns one is a normal characteristic for customer and another is a hierarchy field (Product Hi
-
Hi All, We are working on a 10g Application Server to Oracle Fusion Middleware upgrade project. We currently have more than one application in the 10gAS and the upgrade to OFM is being done one at a time. So, until all the applications gets upgraded
-
Hi, I need to accomplish the following: I need to create a formula that says if it was a good or bad quarter: If number of products sold was less than x i need to display the value "bad" in the respective column otherwise display "good". Using the IF
-
Basics...
Hi gurus - I have a long chain of questions.. (possibly dumb ones. But please clariy for me.. q1. I am trying to set-up a bw sandbox. The basis team says they have established all the RFCs for bw and r/3 and settings for the flat-files from pc too. I