Mod Operator malfunctioning
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
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 -
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. -
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 -
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. -
Combine Operator malfunctioning
Hello
During VC development, I need to pass the output from 2 queries through 6 filters and then combine the output into 1 form for display. The issue arises when I try to combine 6 fields together (via the combine operator in VC); the last combine keeps picking up only 4 fields.
Please help. Thanks!
Best Regards,
Adeel HashmiHi ,
I checked in ur model .according to the functionality fo Combine it should display only four fields ntot 6 Fileds.
creation_date,
creation_date_2,
creation_date_2_2
+ creation_date
creation_date_2
creation_date, creation_date_2_2
creation_date_2, creation_date_2_2_2
creation_date_2_2
this is correct bhehaviour only
and as Luba Told you can achive the above model simply by adding the ports to the Combine opeartor
Just right click on it and select add port.
Regards,
Govindu -
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. -
Hr_infotype_operation for operation MOD
Hi,
There is a problem again using HR_INFOTYPE_OPERATION , while trying to create a new record it was successful, but when i tried to change a nonkey field the operation i have used is MOD, and it is not working.
i search for it but found problem with the same one.
can anyone please help me.
the message is: No data selected for the period.
Edited by: xxx xxx on Nov 18, 2010 10:17 PM
Edited by: xxx xxx on Nov 18, 2010 10:17 PMHi,
<li>Generally delimitation to ENDDA only. You get the correct record from the existing records, Change ENDDA, modified using the specified function module. Instead of 'LIS9' operation use 'MOD' operation only.
<li>Get the existing record.
CALL FUNCTION 'HR_INFOTYPE_GETDETAIL'
EXPORTING
INFTY = '9906'
NUMBER = EMPLOYEENUMBER
SUBTYPE = SUBTYPE
OBJECTID = OBJECTID
LOCKINDICATOR = LOCKINDICATOR
VALIDITYEND = VALIDITYEND
VALIDITYBEGIN = VALIDITYBEGIN
RECORDNUMBER = RECORDNUMBER
TCLAS = 'A'
IMPORTING
RETURN = RETURN
RECORD = P9906
EXCEPTIONS
OTHERS = 0.
<li>Change the ENDDA of P9906 record.
MOVE DELIMIT_DATE TO P9906-ENDDA .
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '9906'
NUMBER = EMPLOYEENUMBER
SUBTYPE = SUBTYPE
OBJECTID = OBJECTID
LOCKINDICATOR = LOCKINDICATOR
VALIDITYEND = VALIDITYEND
VALIDITYBEGIN = VALIDITYBEGIN
RECORDNUMBER = RECORDNUMBER
RECORD = P9906
OPERATION = CHANGE
NOCOMMIT = NOCOMMIT
IMPORTING
RETURN = RETURN
KEY = KEY
EXCEPTIONS
OTHERS = 0.
Regards,
Venkat.O
Maybe you are looking for
-
How to default Noted Items, etc. in FLB1N
When I run FBL1N, I want all the Types (Special G/L transactions, Noted Items, Parked items, Customer items) ) to be selected. After I log out of SAP and Log in again. The fields are unselected (except for Normal Items) again. I saved a variant, b
-
What do I set and where to open reader XI directly from WORD 2007
Since it is impossible to contact anyone directly but requires all this time to be spent rummaging around, my question is: How and where do I set what so that a pdf document located in a WORD 2007 folder will open to pdf on the "open" click? I have
-
Hi All, we are working on PI and Abap connectivity and its done but, when I execute SPROXY transaction in ECC, I see Service methods..I am not sure which method to use to write the ABAP code to push the data to PI server. Earlier In XI 3.0 I used exe
-
Help! I cannot delete or download any adobe programs!
The last time i tried to install a adobe program this error message came up. WARNING: DW065: Display requirements not met for {E8AD3069-9EB7-4BA8-8BFE-83F4E69355C0} CS6 Master Collection 6.0.0.0 WARNING: DW065: Display requirements not met for {A4ED5
-
Hi, I would like your assistance on a billing topic in CRM. System: CRM 5.0 and ECC6 Scenario: - Customer calls to purchase service - Once the price is given to the customer the customer decides not to purchase because it is too expensive to pay it u