Infotype MOD operation.
Hi all.
I am using HR_INFOTYPE_OPERATION to delimit the record in my infotype.. I want to modify the ENDDA = sy-datum - 1 in the existing record... But that FM is itself is not working.... is there any alternative to this FM?? Please reply me.. Its very urgent..
My code..
l_enddate = sy-datum - 1.
wa_read_pernr-endda = l_enddate.
CLEAR ls_return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '9035'
number = wa_read_pernr-pernr
subtype = wa_read_pernr-subty
objectid = wa_read_pernr-objps
lockindicator = wa_read_pernr-sprps
validityend = enddate
validitybegin = wa_read_pernr-begda
recordnumber = wa_read_pernr-seqnr
record = wa_read_pernr
operation = 'MOD'
tclas = 'A'
dialog_mode = dialog_mode
nocommit = space
IMPORTING
return = ls_return
key = wa_key.
Hi Elan,
1. When calling the FM, in the parameter enddate,
make sure you are passing the OLD/EXISTING value
(which is there in the PA table)
for the ENDDA field.
2. I also assume you are locking the employee before
calling this FM.
one sample code as below :
3.
Report abc.
*----------------- Data
DATA : P0015 LIKE P0015.
DATA : RETURN LIKE BAPIRETURN1.
DATA : KEY LIKE BAPIPAKEY.
DATA : RETURNE LIKE BAPIRETURN1 .
*------------- Values (Change as per Requirement)
P0015-PERNR = '1'.
P0015-BEGDA = '2061101'.
P0015-ENDDA = '2061101'.
P0015-LGART = '3075'.
P0015-PREAS = '01'.
P0015-WAERS = 'INR'.
P0015-BETRG = '2500'.
*----- First Enqu
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = p0015-pernr
IMPORTING
RETURN = RETURNE.
*------------- Update
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = P0015-PERNR
SUBTYPE = P0015-SUBTY
OBJECTID = P0015-OBJPS
LOCKINDICATOR = P0015-SPRPS
VALIDITYEND = P0015-ENDDA
VALIDITYBEGIN = P0015-BEGDA
RECORDNUMBER = P0015-SEQNR
RECORD = P0015
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.
IF RETURN IS NOT INITIAL.
WRITE :/ 'Error Occurred'.
ENDIF.
*--------- Dequeue
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = P0015-PERNR
regards,
amit m.
Similar Messages
-
2002 Updation using MOD -Operation.
when we try to update the 2002 infotype using HR_INFOTYPE_OPERATION
it is saving the STDAZ field value as 24
when I pass any value in STDAZ through my frontend?
is typing a message.
: for ex: 1,2,3,4,5,6,7, or 8
For Updation we are using MOD -Operation.Hi,
STDAZ is automatically calculated from the difference btw BEGUZ and ENDUZ fields.
If you donot fill these fields bur specify STDAZ instead, the system takes the attendance as 1 day and make STDAZ as 24 hours.
Pls use BEGUZ and ENDUZ fields instead of directly updating STDAZ.
Regards,
Dilek -
IDSM-2 Inline mode operation - cat6000 Hybrid
Hello, is the inline mode operation on the IDSM-2 IPS 5.1 only supported with catos 8.4(1)?
Thanks!I agree, the IPS 5.1 release notes http://www.cisco.com/en/US/customer/products/hw/vpndevc/ps4077/prod_release_note09186a0080574954.html#wp1068104 says it requires 8.5(1) go figure.
-
Voir variable en temps réel en mode operator
Bonsoir,
J'aimerai savoir comment récupérer la valeur des variables à chaque instant des étapes de mes séquences de tests lorsque je suis en mode operator et en mode pas à pas.
D'avance je vous remercie,
Cordialement,
NelsonDuplicate: http://forums.ni.com/ni/board/message?board.id=4170&message.id=32316
Aurélien J.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Du 30 juin au 25 août, embarquez pour 2 mois de vidéo-t'chat ! Prenez place pour un voyage au coe... -
Hi:
Could you tell me how the current through AI+ and AI-.There is also one biase resistor from AI- to AIGND.
Attached is the digram that I cut from ni site. The AI- input is also connected to my test fixture ground at the end. I could not see how to current flow. Could you please tell me?
I am in a very urgent. I really a quick reponse.
Regards.
John
Attachments:
Differential Mode Operation.doc 87 KBHi AnalogKid:
Thanks for your replying. You said current flows through the lump sum parameter RIN nodes (1) and (2) regardless if VS- terminal 0 is connected to ground or not.
Then what is Rin? Rin is the resistor inside the 6250 board or the bias resistors from AI- to ground? Could you please tell me?
Attached is my graph. I take VS as the voltage across 100ohm resistor. Is that correct? I would like to verify with you.
Attachments:
First Picture.JPG 33 KB -
Are there alternative solutions to disconnected mode operations?
Are there any 3rd party solutions for disconnected mode operations with Oracle databases? I've only been able to dig up Oracle Lite from searching on the web, but I'm interested in other approaches as well.
If anyone has done the research and is willing to share some competing technologies/vendors, I'd appreciate it.
ThanksDid the same research you did about a year and a half ago and Oracle Lite is best suited for replication with an Oracle Enterprise database. Biggest reason it is easy to build, on the surface anyway. It is scalable and reliable.
-
HR_INFOTYPE_OPERATION - 'MOD' Operation
I am using HR_INFOTYPE_OPERATION FM for changing a infotype depending on the user input.
This FM does not change the record with modify operation (MOD).
Error while trying modify operation is as shown below:
"Infotype does not exist"
The infotype does exist with a single record in the system and I am passing the whole key to the record. I am trying it with infotype 0077.
Any idea why it's not able to modify an existing infotype. If anyone of you have ever used this FM for modify operation then pls let me know.
Thanks!
RushHi Rishi,
I have done the same task which you are doing now that is IT0077 inserting and modifying operations.
Check the below parameters...
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = C_0077
NUMBER = WA_0077_FR-PERNR
SUBTYPE = WA_0077_FR-SUBTY
OBJECTID = WA_0077_FR-OBJPS
LOCKINDICATOR = WA_0077_FR-SPRPS
VALIDITYEND = WA_0077_FR-ENDDA
VALIDITYBEGIN = WA_0077_FR-BEGDA
RECORDNUMBER = WA_0077_FR-SEQNR
RECORD = WA_0077_FR
OPERATION = C_MOD
TCLAS = C_A
NOCOMMIT = C_X
IMPORTING
RETURN = R_OPER.
Reward if useful.
Thanks,
Anil.G -
Why mod operator is invalid in the loop
code :
TABLES spfli.
data c type i.
SELECT * FROM spfli.
c = ( sy-linno mod 2 ).
if c = 0.
format COLOR COL_TOTAL.
else.
format COLOR col_key.
endif.
WRITE : / sy-vline,(15) spfli-carrid,
sy-vline,(15)spfli-connid,
sy-vline.
ULINE AT /(37).
ENDSELECT.
Variable c is 0, never changed in the loop why ?Hi,
Use it this way:-
data : itab type standard table of spfli with header line.
select * from splfi into table itab.
loop at itab.
"write code here
endloop.
Hope this helps you.
Regards,
Tarun -
Help with wrt310n n mode operation
In n mode, i can connect to my laptop from the wireless router. However if I include wep or wpa-personal I cannot connect. the laptop is running vista. beacon int 75, DTIM 1, Frag 2306, RTS 2307
In G or mixed mode all works 54 mbps, but that defeats the purpose of N at 130mbps
I would really appreciate help.
(Mod note: Edited for guideline compliance.)
Message Edited by giantherockstar on 11-18-2008 01:03 PMDo you use N adapter on the other side.
-
Using delete/insert mode operator target in mapping
Hello Guys,
Can you help me please to resolve my problem. It's very urgent.
I use OWB 10gR2 and I create a mapping for loading data from table to table.
I got a source table A that I want to integrate into a table B.
I want to put my target table B on delete/insert mode to delete data from B where A.annee = B.annee
before inserting data from A.
How to configure this mapping.
Thanks in advance.
Regards.
fanfita.you dont have to do anything in particular:
on the target table propperties click on the load type as Delete/Insert and specify the column which you need to check while deleting this can be done by clicking on the column of target table in your mapping and setting the properties such as "load while insert/delete/update etc" , you got to check the delete option of the columns that you want to check while deleting.
If your target table has sequence then delete and insert will generate new sequence id and i am not sure if there is a Foregin key which needs to be considered here so it might be a better option to use update/insert
if there are no dependencies at all then you can go for delete/insert option.
Edited by: Darthvader-647181 on Feb 5, 2009 1:46 AM -
See the following code two different Result for the same thing
First Code with Output which is Wrong
System.out.println( "Mod of 015110 % 7 ===> " + ( 015110 % 7 ) );
Mod of 015110 % 7 ===> 1
Now look at this Code with Output which is Correct
System.out.println( "Mod of 15110 % 7 ===> " + ( 15110 % 7 ) );
Mod of 15110 % 7 ===> 4Can anyone explain why it is like this.....prometheuzz wrote:
DarrylBurke wrote:
prometheuzz wrote:
If you start an integer value with a zero, it gets interpreted in base 7Base 8 (octal), not?
dbThe horse is already dead Darryl! : )Surely, under the n-1 rules, it's merely dying -
Infotype Update Operation Control at Form Scenario Step
Hi All,
To start with, I created a P&F object with one scenario step. So with that, it is supposed to update the infotype data at this very stage. This works fine.
Now, I want to extend it with another step for HR admin to review before update. So now I have two scenario steps: FS1 (employee fills data and send which only saves the data in process object) and FS2(HR Admin reviews the data and sends which updates the database). I created a workflow with task TS33700021 for HR admin to process form. FS1 lies outside the workflow and FS2 becomes part of workflow. Now when I launch the process to fill the form and click on 'Send', though it does trigger the workflow to send the task to HR Admin but it also saves the data in infotype.
I know in the above process, I haven't done anything to stop the update in the first scenario step. But what exactly that 'something' is, which I have to do to stop the back end service from updating database.
Best Regards,
Bhaskar1. Transaction hrasr_dt under Settings for Start Step , ensure you have configured save configuration correctly.
2. In the workflow where second second step FS2 is used set &SEND_VARIATION& element as save to DB/Infotype.
Refer http://help.sap.com/erp_hcm_ias_2013_02/helpdata/en/42/f280b91e5132c3e10000000a1553f6/content.htm
Regards. -
There are four whole numbers below the number 14 that are multiples of either 4 or 7.
They are: 4, 7, 8 and 12
The sum of these numbers is 31
Write a C# program to find all the multiples of either 4 or 7 between, and including, 100 and 120.
Sum the found multiples and print the total out to the console.
For bonus points, also print out how long your program took to execute.Please help im a coldfusion developer and not exactly sure about this...Hi,
Firstly, like Kevin said,these forums are not used to show code that is for homework.
Then, I think this issue you could traversal all of number, and find numbers which match to the condition.Please refer to the link below:
#% Operator (C# Reference)
http://msdn.microsoft.com/en-us/library/0w4e0fzs.aspx
In addition, I think this issue is more related to C# forum ,Since this forum is discuss about Windows Forms Data Controls and Databinding .
@Cor ,Thank you for pointing out my mistake :).
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Dual updates during single MOD operation
Hi,
We have a requirement, where we would like LDAP to update the timestamp in a user defined attributes ( ie dataStatus ) whenever a specified attribute ( ie xyzSBU ) gets updated . Does anyone know how to accomplish with? Any plug-in available with 5.2 version.
Thanks.There are a several approaches you could take to this.
The first approach would be a plugin, which you would likely have to write yourself.
The second would be an LDAP trigger. This is probably the most flexible approach, particularly if you are going to get additional requirements similar to the current one. An LDAP trigger runs in an external application. The app makes a persistent search with entry notification to one or more Directory servers. When an entry in scope of the search changes, the entry is returned to the app by the server, and the app can take an action based on the event. I have implemented this kind of trigger with something as simple as a unix pipeline using ldapsearch, awk, and ldapmodify. You just need to make sure that, if you update an entry based on the trigger, your update does not cause a loop.
The third option would be to query the nscpentrywsi attribute whenever you want to know the last time a particular attribute was modified. The first 8 bytes of the CSN is a hexadecimal representation of the unix epoch timestamp of the modification. So if you wanted to know the last time a single-valued attribute changed, you could use search on the entry, ask for nscpentrywsi, filter out extranneous values (such as those that have been deleted), and then process the CSNs to find the timestamp.
This last only works if replication is enabled, though. -
Infotype Operation: Infotype with TABNR and HRT tables
Hi all,
Can anyone share the code for updating the infotypes and corresponding HRT tables having TABNR field for example infotype 1018 and HRT1018.
Thanks,
ShilpaHi,
Go through below code
The HR_INFOTYPE_OPERATION function module is used for the Maintenance of HR infotypes, such as inserting, changing, deleting data etc
Parameters Explained
Here is a list of the fm's parameters and how they are 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'
Example coding for MOD operation
CONSTANTS: change TYPE pspar-actio VALUE 'MOD'.
"This code is requred and locks the record ready for modification
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
EXPORTING
number = p_pernr.
"loop at p0071 into p_p0071. "added to put code in context
validitybegin = p_record-begda.
validityend = p_record-endda.
p_record-endda = pn-begda - 1.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0071'
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 = change
nocommit = nocommit
dialog_mode = '0'
IMPORTING
return = return_struct
key = personaldatakey
EXCEPTIONS
OTHERS = 0.
"endloop.
"unlock record after modification
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = p_pernr.
Example coding for INS operation
CONSTANTS: insert TYPE pspar-actio VALUE 'INS'.
"This code is requred and locks the record ready for modification
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
EXPORTING
number = p_pernr.
validitybegin = p_record-begda.
validityend = p_record-endda.
p_record-pernr = p_pernr
p_record-begda = pn-begda.
p_record-endda = validityend.
p_record-subty = p_SUBTY. "subtype of new entry
p_record-SCREF = p_SUBTY. "subtype of new entry
"plus populate any other fields you need to update
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0071'
subtype = p_record-subty
number = p_record-pernr "employeenumber
validityend = validityend
validitybegin = validitybegin
record = p_record
operation = insert
nocommit = nocommit
dialog_mode = '0'
IMPORTING
return = return_struct
key = personaldatakey
EXCEPTIONS
OTHERS = 0.
"unlock record after modification
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
number = p_pernr.
Thanks,
venkat
Maybe you are looking for
-
Mobile Application Development Installation failed. Error Code: U44M1P7
After install of DW CS5.5, I tried to update DW CS5.5 and received the following error message, does anyone know how to fix this? Mobile Application Development Installation failed. Error Code: U44M1P7
-
I cant open internet option in maps-tools-setting-...
i cant open internet option in maps-tools-setting-internet in nokia e71
-
ITS Problem of navigating to 2nd page
Hi All, Hi Experts, I am trying to access ITS standard service mobile00 & mobile01 and found that it is not foinf to the next navigation point. non of the button is heading to the next page. If it is a standard service it should work. The transaction
-
CreateConfirmationWindow() is deprecated
Hello, In SP11 I use com.sap.tc.webdynpro.services.session.api IWDWindowManager# createConfirmationWindow(java.lang.String confirmationText, IWDEventHandlerInfo eventHandler, java.lang.String label), but this method is deprecated in release 7.0.0. In
-
Performance Problems after Database Upgrade to 10.1.0.5
Has anyone else encountered Discoverer Query performance suffering drastically once upgraded their database from 10.1.0.4 to 10.1.0.5? It is almost 5 times as slow.