Need to add prefix Integer with zero's !
Hi
The length of the a number has to be 9 for if it is not then can any one suggest some code to prefix the incoming number with zero's to make it of length 9.
for example
number 1234 becomes 000001234
Convert it to string then check its length. add zeros times (9-current length). save again as string.
save it as string afterwards so when displayed will show all zeros as well but when to do calculations simpley Integer.parseInt it.
Hope it helps if you already have not worked it out.
AK
Similar Messages
-
Need to new dep. key with zero %
Hi,
I need to create a new dep. key with 0% and i want to assign this dep. key to my asset.
Guide me
SrinivasHello,
Thanks for your quick reply
The thing is that we assigned wrong dep key to one asset. now we need to replace new dep. key
for that with 0%.
After assigment of new dep. to asset, i will recaclculate the depreciation for this year only.
My problem will got resolved.
I dont find any zero % dep.key in afama.
How to do , guide me
srinivas -
Add prefix on IP GSM gateway call
Hi I have a problem with my dial plan
I have a call manager on Cisco 3745 and Cisco IP phone and call and call is OK
I also have an IP GSM gateway, and I need to add prefix on all outgoing GSM call
For example if GSM number is 9002256 or 6220088, I need user to dial 4049002256 or 4046220088, the CME remove the prefix and forwarded cal to IP GSM gateway only with the real phone number: 9002256 or 6220088
For GSM incoming call, all incoming call should be forwarded to the standard user
I tried this configuration
telephony-service
call-forward pattern 9......
call-forward pattern 6......
calling-number local
transfer-system full-consult
transfer-pattern 9......
transfer-pattern 6......
dial-peer voice 6000 voip
corlist outgoing call2
session protocol sipv2
session target ipv4:10.6.3.8
dtmf-relay sip-notify
destination-pattern 4046......
dial-peer voice 9000 voip
corlist outgoing call2
session protocol sipv2
session target ipv4:10.6.3.8
dtmf-relay sip-notify
destination-pattern 4049......
But it doesn't work.
How can I make sure that CME remove the prefix 404 and send only 9...... or 6...... when he forward call to the Ip GSM gateway?
Thanks in advance for your helpvoice translation-profile strip404
translate called 404
voice translation-rule 404
rule 1 /^404/ //
dial-peer voice 6000 voip
destination-pattern 404[69]......
translation-profile strip404 outgoing
no dial-peer voice 9000 voip -
Delete batches with zero stock from dropdown list
Hi All,
I have a requirement on batch stock materials.The exist program displaying multiple batches for material plant with stock and without stock in the drop down list for MCH1 table in the pop up window.
Now i would need to delete the batches with zero stock from drop down list.I could find the data for stock and non stock from MCHB table .
Any idea how to delete the entry of non stock batches from drop down list
Regards,
ReddyHi All,
The logic has already been implemented to for drop down list for all batches(with or without stock) for material plant.the follwing code has been written for the same.
Any idea how to delete the entry for non stck baches from the drop down list.
this is the code
SET PARAMETER ID 'MAT' FIELD help_lips-matnr.
SET PARAMETER ID 'WRK' FIELD help_lips-werks.
Export parameters to memory to enable search help via classes
CLEAR dseltab.
REFRESH dseltab.
dseltab-fldname = 'MANDT'.
MOVE sy-mandt TO dseltab-fldinh.
APPEND dseltab.
dseltab-fldname = 'MATNR'.
MOVE help_lips-matnr TO dseltab-fldinh.
APPEND dseltab.
dseltab-fldname = 'WERKS'.
MOVE help_lips-werks TO dseltab-fldinh.
APPEND dseltab.
dseltab-fldname = 'CHARG'.
MOVE help_lips-charg TO dseltab-fldinh.
APPEND dseltab.
EXPORT dseltab TO MEMORY ID 'DSELTAB'.
Get description for search help
mc_object = 'MCH1'.
lf_shlpname = mc_object.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = lf_shlpname
shlptype = 'SH'
IMPORTING
shlp = lx_shlp
EXCEPTIONS
OTHERS = 1.
Enable value copy from search help to dynpro field
READ TABLE lx_shlp-interface INTO ls_interface
WITH KEY shlpfield = 'CHARG'.
ls_interface-valfield = 'X'.
MODIFY lx_shlp-interface FROM ls_interface INDEX sy-tabix.
Start search help dialog
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = lx_shlp
TABLES
return_values = lt_retvalues
EXCEPTIONS
OTHERS = 1.
IF sy-subrc EQ 0.
READ TABLE lt_retvalues INTO ls_retvalue
WITH KEY fieldname = 'CHARG'.
IF sy-subrc EQ 0.
lips-charg = ls_retvalue-fieldval.
gs_lips-charg = ls_retvalue-fieldval.
ENDIF.
ENDIF.
Regards
Reddy -
How to change p.o with zero quantity
hi gurus
as per requirment i need to save p.o with zero quantity.but i can/t system wants me to enter quantity in quantity field.
i do;'t want this field to left blank in me21n but in me22n.
i wil use this p.o for spec messges.and to cancel the p.o quanitity should decrese to zero
thanks for you helpThanks Easwer for your help.
The info for getting status from function is very clear and I followed you instruction and completed the coding in BAdI and tested it successfully .... Thank you very much. I need to learn where I can see the system status of the template, i.e. I1034 (Order Template) or Order or Quotation .....? if I need to filter out Quotation, I can easily do it in the BAdI. Could you please provide me more details?
Thanks again, Jin
Thanks again, Jin -
How to add custom columns with BO data from GP to UWL
Hi
We have CE 7.1 in our project UWL taskitems only have GP workflow tasks.
In UWL we can see that by default there are standard columns but now we need to add custom columns with data from ours BO associated to process instance
For that we need to develop one custom connector for UWL where we can retrieve the values from custom conenctor to UWL.
Currently our NWDS 7.1 does not have plugins for UWL Connector can anybody tell me where can I download this plugins?
thanks in advance!
Regards
CristianHi,
plz refer the following link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ee5047-c7a0-2a10-70b7-9557e3e4d440
Regards
Manohar -
Assign hexadecimal value to an Integer variable preceding with zero
hi
i need to pass an hexadecimal value, preceding with zero (0).
like 0775
the above hexadecimal value should be assigned to an integer variable. While i am trying to assign it, the output could be truncate the preceding zero value. Is it possible to do my requirement without truncating the preceding zero.?
Edited by: sasi on Jul 23, 2012 7:09 PMI agree on that, this can not be carried out the way you explained.
Either you store the hexadecimal value as a string, and convert it before arithmetic operations:
int number = Integer.parseInt("0775", 16);
Or you store it as an integer (no leading zero) and convert it to string as you display it:
int number = 0x0775;
System.out.printf("%1$04x", number); -
How to add prefix zero to all matnr fields in itab
Hi,
I ve a internal table with following fields
Matnr bwkey
6 678
67 rty
678 78k
How to add prefix zero to all tha matnr fields.
like
matnr bwkey
00000000000000006 678
00000000000000067 rty
00000000000000678 78k
Thanks in advanceHi,
commonly used conversion routine is ALPHA.
It is conversion used to insert leading zero for document number.
For example, in sales order (VBAK-VBELN length 10),
when we key in order no, for example we key in '4302',
conversion routine input will automatically add leading zero,
so it will become '0000004302', this is real value stored in table VBAK.
On conversion routine output, it will delete leading zero
function CONVERSION_EXIT_ALPHA_INPUT, this will add leading zeros to a character based field of any length.
Ex:
data: lv_c(10) type c value '123'.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = lv_c
importing
output = lv_c.
write:/ lv_c.
Regards. -
Hi All,
Cani use "0" as a prefix for an ITF code? I tried transaction W4ES like nw said, but i can't see what should i configure to allow leading "0" as a prefix for ITF codes.
When ITF code is input with a 14 digit code input with zero, it ignores zero prefix to it and stores it as a 13 digit EAN number.
Regards,
DeepakITF code cannot be prefixed with zero. You need to have a character pre-fixed to distinguish between units of measure or packagings.
-
In Top 10 with two dimension i need to add others in my MDX query
Hi this is code working fine and return top 2 product in a state. i need to add other sales also how can we do
with set FIPS as [Geography].[State-Province].[State-Province]
set TCat as
Generate( {FIPS}, CrossJoin( {[Geography].[State-Province].CurrentMember},
TOPCount(
([Product].[Subcategory].[Subcategory]),
2,
[Measures].[Sales Amount]
SELECT { [Measures].[Sales Amount] } ON COLUMNS,
TCat ON ROWS
FROM [Adventure Works]
hi fond one code it is work for one dimension only, i need for two dimension
WITH
SET [TCat] AS
TopCount([Product].[Subcategory].[Subcategory],10,[Measures].[Sales Amount])
MEMBER [Product].[Subcategory].[Other] AS
Aggregate([Product].[Subcategory].[Subcategory] - TCat)
SELECT { [Measures].[Sales Amount] } ON COLUMNS,
TCat + [Other] ON ROWS
FROM [Adventure Works]Hi,
We will have to generate a set of tuples that includes both dimensions:
WITH
SET [Top2] AS
Generate
{[Customer].[State-Province].[State-Province].MEMBERS}
[Customer].[State-Province].CurrentMember
,TopCount
(EXISTING
[Product].[Subcategory].[Subcategory].MEMBERS)
,2
,[Measures].[Internet Sales Amount]
MEMBER [Product].[Subcategory].[All].[top2Aggr] AS
Aggregate((EXISTING [Top2]))
MEMBER [Product].[Subcategory].[All].[all Subcat] AS
[Product].[Subcategory].[All]
MEMBER [Product].[Subcategory].[All].[others] AS
Aggregate
(EXISTING
[Customer].[State-Province].CurrentMember
,[Product].[Subcategory].[Subcategory].MEMBERS
[Top2])
SELECT
{[Measures].[Internet Sales Amount]} ON COLUMNS
[Customer].[State-Province].[State-Province].MEMBERS
[Product].[Subcategory].[top2Aggr]
,[Product].[Subcategory].[others]
,[Product].[Subcategory].[all Subcat]
} ON ROWS
FROM [Adventure Works];
If you plan to tweek this solution, you may want to align the dimensionality of the [all Subcat] member with the others members by changing its definition:
MEMBER [Product].[Subcategory].[All].[all Subcat] AS
aggregate(EXISTING
[Customer].[State-Province].CurrentMember
,[Product].[Subcategory].[All]
The former defintion also works in our case because it's a singleton set and it is put in a tuple when crossjoined with the axis 1 giving it the right dimensionality.
Philip, -
Need to add text with box dynamically
Hello,
I need to add a standard text created in so10 with a box at the end of the purchase order.
This should trigger dynamically if the condition is correct.
For ex : PO created in plant = 100 then this text should be displayed at the end of the PO page with a box.
DO I have to create a Window and then include this text created in so10 and then give the conditions?
PLease suggest...
Have a great evening!
Regards,
KittuHi,
Simplest would be define a new element in the main window like:
E OTHER_TERMS
/: NEW-PAGE
/: INCLUDE ZPO_TERMS_AND_CONDITIONS OBJECT TEXT ID ST LANGUAGE EN
In the pgm check your condition if satisfied then use
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'OTHER_TERMS'
function = 'APPEND'
window = 'MAIN'
EXCEPTIONS
element = 1
function = 2
type = 3
window = 6
OTHERS = 8.
I hope this helps,
Regards
Raju Chitale -
I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year
Hi Arun ,
Can you explain little bit more ??
what is account doc no?
what are the transactions should be displayed in your output??
-Rajesh N -
Need to add contact with 2 email addresses
I have a contact in my address book for whom I need to add 2 email addresses in the same field. I know I can add multiple addresses, but that gets confusing for this contact, because I need to send every email to him at both addresses. I tried adding both addresses in the same field, separated by both a comma and a semicolon, and when I tried to sent the message Mail told me it was an invalid address. Is there any way to do this?
There is no reason why you should not be able to enter both addresses in the Address Book as two separate addresses on the same contact card (e.g. "home" and "work") and when typing in the To: field of a Mail message, start entering as one address at a time. If the addresses exist in Address Book or previous recipients list, each will "quick fill". After first is entered (as a "bubbled" address), enter a comma then start entering second address. If either address is not in Address Book or previous recipient list, separate each entry with comma and spacebar while typing.
If launching Address Book as a helper application from within the Mail application, single-click each email address (not the name) and either drag each, one at a time, to the To: field or click the To: button in Address book helper app. Repeat with other address. You can't snag 'em both at once.
I just tried all of the above so these methods work here. -
I previously downloaded CS6 Master Collection and selected Illustrator and Photoshop. Now I need to add InDesign. I called a while back and someone helped me download almost everything, I think. I just need help with the next phase. They said something about deleting my existing Master Collection and reinstalling it? HELP! Is there a phone number I can call?
you shouldn't need to uninstall anything (and do not delete any files).
just run the master collection installer and tick/select the programs you want to install. -
i need to add bpm to my songs but in some of them i just can't add/modify any info. it seems like it happens only with the verified songs (the ones i download from souncloud work for example) probably verified trough gracenote..is there anything i can do?
this is what happens when i try to add/modify the infos and it doesn't work, i'm even unable to click in the spaces
thanks for your attention,sorry for the bad englishRight-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and system full control to this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
tt2
Maybe you are looking for
-
Actually PRINT (i.e. spool to a printer) a PDF stored in the DB as a BLOB
Hi Folks. I have got APEX to generate PDF files for me based on a shared components query & report template. These are stored in the database as BLOB. Is there a way to send these BLOB PDF files directly to a printer? I don't want to have to export t
-
PI 7.0, SP 12, Communication Channel not available
Hi everyone, I have installed SP12. In Component monitoring, communication channle button is not there. Can anyone tell me why? What i have to do with this? Rgs Bala
-
Program wont close!?! HELP
ok please help.. i have a macbook, i used the handbrake thing and it was working fine but my dad screwed it up by just pulling the plug on my internet and the closing my laptop, now the DVD i have in the drive wont come out and handbrake wont close..
-
Oracle Problem using Interactive Report in Application Express 4
Hi All , I am using Interactive Report in Application Express 3.2.1.00.11 I have made report as editable by using following query Select ROWID, APEX_ITEM.CHECKBOX(1,IDSKILL,'UNCHECKED') "Mark", APEX_ITEM.TEXT(2,IDSKILL)"IDSKILL", APEX_ITEM.TEXT(3,SKI
-
Hi All, I am implementing an Inbound INVOIC02 IDoc for posting Credit Memo that references purchase order. But there is some unique thing. This IDoc is used to post only the SAC (D240 - Freight Allowance). Freight Allowance will come at Header level