How to convert values in tcode CA01 - while creation of Routing
Hi Group,
I have a requirement to load data for Routings using tcode 'CA01' using the LSMW with BAPI using idoc type 'ROUTING_CREATE01'.
the issue is while creating the Routing operations directly through tcode 'CA01', there were certain Unit of measures such as 'SETUP', 'Machine' and etc., for the value of hours when I input 1 and press enter, the value is getting changed to '1,0' and my legacy file will come with a value '1'(say) then the Idoc is failing. is there any function module which is doing this?
kindly provide your inputs.
Regards,
Vishnu
Hi Vishnu,
Please check the settings in user profile.
Regards,
Madhu.
Similar Messages
-
How to create a pop up window while creation of the delivery note.
Hello Experts
How to create a pop up window while creation of the delivery note.
As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
For e.g.
Str. Loc Qty UOM
DE01 100 KG
DE99 50 KGDear all,
i m having two document numbers for invoic of same types such as output type print program and smartform.
biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
Directly the cursor comes to initial stage of vf03.
suggest what to do
Thanks and regarnds
ravi -
How to convert varchar to date datatype while insert or update in table
Hai All
I need to convert to varchar to date.
I have two Tables T1,T2
T1 Structure
Code varchar
Time varchar
Date varchar
T2 Structure
Empname var
Empcode var
Intime date
Outtime date
Intrin date
Introut date
Att_date
Now i need to move Time form T1 to T2 Intime,outtime,intrin,introut according some condition
So now i need to convert Varchar to Date while insert or update
I have tried something
Insert into T1 (code,intime,att_date)values
(code,To_date(Date||time,'dd-mon-yyyy hh24mi'),att_date);
OR While update
Update T2 set Outtime=To_date(Date||time,'dd-mon-yyyy hh24mi') where...
I got an error Ora-01861
Regards
Srikkanth.MYou didn't show any example of your date or time values, butyou might need to add a space between them, like
To_date(Date || ' ' || time,'dd-mon-yyyy hh24mi') -
How to convert value from exp. value to double/float???
Hi all,
I am fetching values from database, which is of type double / float.
eg. values will be like -22,777,548 will be stored in database.
NOw if i use
float a= rs.getFloat(1);
out.println("a="+a);
I get output as a= -2.2777548E7
I want to remove "E" from out put value and display as it was given in DB.
How to solve this problem?
Please Help!
Regards
AshviniWhat do you mean - 'how does it work' ? All format classes (MessageFormat, DecimalFormat , SimpleDateFormat etc) are used to convert data from one form to other. Go through the java.text.* api. They work based on some pattern searches, pattern matches etc - dont know in detail :)
As for the other things, thanks :)
cheers,
ram. -
How does the values in tcode F.27is retrieved?
Hello,
I would like to ask how the value in F.27 is retrieved when I have filtered it base on the ff:
Company code
Account
Indicator in master record
Key dates for acct statement (i.e. dec 1, 2009 to Dec 31, 2009)
When I filtered it base on the above, I noticed that there is a discrepancy on the opening balance. Upon my investigation, I saw that the discrepancy was due to the previous open balance which was dated April 2004, that was added to the opening balance
that fall on the date i put as key dates for acct statement. Do you know as to why it has added the previous open balance which is outside the specified scope? If so, can you let me know how to correct it?
Thanks and your advice would be greatly appreciated.
Kindest regards,
LemHi Vishnu,
Please check the settings in user profile.
Regards,
Madhu. -
How to split Value in a field while importing
Hi,
I want to split Value in Field and map it 2 target Field.
Suppose Street field having values with House number and street name ,need to split at House Number and street name and map it 2 fields
EX : 1123 Dhuram Ave: Need to split 1123 and Dhuram Ave ,need to map it to 2 target field.
Here I don't have any delimeter in the field Value.
Please help on this.
Thanks,
Madhu
Edited by: Madhusudhan Honnappa on Nov 30, 2010 5:19 PMHello. I'm assuming this is a custom import as typically, standard extractors would have the house number and street already seperated into unique fields. Here is a quick routine I tried out that would split the field. Only thing I would add is that if writing this from scratch you would want to check that the first character is numeric and also that all characters before the space are numeric. This routine assumes that the field will be like xx yy where xx = house number and yy is the street. Mainly, it would assume anything before the first space is the house number and anything after is the street.
YLEN = STRLEN( YYINPUT ).
YTIMES = 0.
DO YLEN TIMES.
IF YYINPUT+YTIMES(1) = SPACE.
YOFFSET = YTIMES.
"House Number" = YYINPUT(YOFFSET).
YOFFSET = YTIMES + 1.
"Street" = YYINPUT+YOFFSET.
EXIT.
ENDIF.
YTIMES = YTIMES + 1.
ENDDO.
I'm sure there are many ways to go about this and may be some standard FMs you can call. I just like trying to write it first to get a better understanding. Not sure if this quick example will give you exactly what you need, but hopefully will at least give you a place to start.
Thanks -
Problem while creation of Routing using BAPI "BAPI_ROUTING_CREATE"
Hi.
I am trying to create routing using the BAPI "BAPI_ROUTING_CREATE", when I execute I get the group number and the group counter number in the Export parameters. But it is not saved in the database, when we look at CA03 using the group number system says routing not found.
I am passing "Space" to Bapiflag and i am passing input to tables TASK, MATERIAL ALLOCATON and OPERATION as follows:-
MATERIALTASKALLOCATION-MATERIAL
MATERIALTASKALLOCATION-PLANT
TASK-TASK_LIST_USAGE
TASK-PLANT
TASK-TASK_LIST_STATUS
TASK-TASK_MEASURE_UNIT
OPERATION-ACTIVITY
OPERATION-CONTROL_KEY
OPERATION-WORK_CNTR
OPERATION-PLANT
OPERATION-DESCRIPTION
OPERATION-NUMERATOR
OPERATION-DENOMENATOR
OPERATION-BASE_QUANTITY
OPERATION-STD_UNIT_01
OPERATION-STD_VALUE_01
OPERATION-STD_UNIT_02
OPERATION-STD_VALUE_02
OPERATION-STD_UNIT_03
OPERATION-STD_VALUE_03
OPERATION-STD_UNIT_04
OPERATION-STD_VALUE_04
OPERATION-STD_UNIT_05
OPERATION-STD_VALUE_05
OPERATION-STD_UNIT_06
OPERATION-STD_VALUE_06
Appreciate your replies.
Regards.
Anand Ghawade.Use BAPI_TRANSACTION_COMMIT after you call the BAPI_ROUTING_CREATE
-
Dear all,
Does anybody know how to convert value of pt to value of mm according to language and font? Thanks a lot!
Best regards,
Christo
Edited by: Christo Tan on Dec 22, 2011 5:51 AM
Edited by: Christo Tan on Dec 22, 2011 6:00 AMThe standard system (I am on ECC 6) doesn't come with a unit for Russian Point (Tochka in Russian). So we need to do the following to be able to convert from millimeter (mm) to Russian Point and vice versa. This is how we did it in our production system.
1. In transaction CUNI create a new unit RP with LENGTH dimension. In the drop down list besides "Units of Measurement" button, select LENGTH dimension and enter values like in the below picture
[Russian Point in transaction CUNI|http://img265.imagevenue.com/img.php?image=70210_UnitofMeasure_RussianPoint_122_100lo.jpg]
2. In your ABAP program you can call UNIT_CONVERSION_SIMPLE like below to convert from RP to MM.
DATA: lv_input TYPE I VALUE 1,
lv_output TYPE F.
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
input = lv_input
NO_TYPE_CHECK = 'X'
* ROUND_SIGN = ' '
UNIT_IN = 'RP'
UNIT_OUT = 'MM'
IMPORTING
* ADD_CONST =
* DECIMALS =
* DENOMINATOR =
* NUMERATOR =
OUTPUT = lv_output
* EXCEPTIONS
* CONVERSION_NOT_FOUND = 1
* DIVISION_BY_ZERO = 2
* INPUT_INVALID = 3
* OUTPUT_INVALID = 4
* OVERFLOW = 5
* TYPE_INVALID = 6
* UNITS_MISSING = 7
* UNIT_IN_NOT_FOUND = 8
* UNIT_OUT_NOT_FOUND = 9
* OTHERS = 10
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The above call converts 1 RP into 2.5400000000000000E-01 mm and puts it in lv_output (which is 0.254) -
How to convert hex into a string value
hei evryone!
can anyone please help me on how to convert a hex value into a string suppose.. Example i want to convert 4275646479 which is a hex value, into a string "BUDDY"? how will i do that???
Any suggestion, tutorial site would be appreciated?
Thx!something like this will convert string to byte[]
e.g.
you want to convert following.
656667 => ABC
String toConvert = "656667";
byte[] returnVal = String2byteArr (toConvert );
String FinalStr = new String(returnVal);
public static byte[] String2byteArr(String Result)
byte[] byteRet = new byte[Result.length()/2];
int k=0;
for (int j=0; j<(Result.length()); j+=2)
try
Integer I = new Integer (0);
I = I.decode ("0x"+Result.substring(j, j+2));
int i = I.intValue ();
if (i > 127)
i = i - 256;
byteRet[k++] = new Integer(i).byteValue();
catch(Exception e)
System.err.println(e);
return byteRet;
}// String2byteArr
Hope this will help you, So that i can get 3$ (:-)
Avi -
How to convert a string value to date
Dear All,
I am new to powershell script, i was trying to store a Ad user password set date to a variable add, add a number of days to get the expire date.
but when i try to convert the variable to date value, I am getting the error as below.
Please help me......
PS C:\script> $passwordSetDate = (get-aduser user1 -properties * | select PasswordLastSet)
PS C:\script> $passwordSetDate
PasswordLastSet
7/15/2014 8:17:24 PM
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
Cannot find an overload for "ParseExact" and the argument count: "3".
At line:1 char:1
+ $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)Dear All,
I am new to powershell script, i was trying to store a Ad user password set date to a variable add, add a number of days to get the expire date.
but when i try to convert the variable to date value, I am getting the error as below.
Please help me......
PS C:\script> $passwordSetDate = (get-aduser user1 -properties * | select PasswordLastSet)
PS C:\script> $passwordSetDate
PasswordLastSet
7/15/2014 8:17:24 PM
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
Cannot find an overload for "ParseExact" and the argument count: "3".
At line:1 char:1
+ $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
PS C:\script> $a = [datetime]::ParseExact($passwordSetDate,"MM/dd/yyyy HH:MM:SS", $null)
In your post you ask how to convert a string value to a date. The value returned from the Get-AdUser is already a date. It does not need to be converted.
Bill has sshown one way to convert a date to a string and there are other methods. You need to clarify your question.
If you are really trying ot convert strings to dates then you can start with this:
[datetime]'01/21/1965 13:33:23'
Most date strings aer autodetected by the class.
¯\_(ツ)_/¯ -
How to convert the character value to currency/numeric
Hi,
See the sample code here
data: v_qtr_field(7).
data: w_low_limit like glt0-kslvt,
w_amount like glt0-hslvt.
w_low_limit = 02.
w_max_period = 3.
concatenate 'HSL' w_low_limit into v_qtr_field.
*comment
*I am looking for a field formation thru above code like in GLT0 table like HSL02,HSL03 *etc based on the value user entered in the selection *screen
DO w_max_period TIMES
VARYING w_amount FROM v_qtr_field NEXT v_qtr_field + 1.
t_trans_values-dmbe2 = t_trans_values-dmbe2 + w_amount.
ENDDO.
I am facing problem in the Do loop as it wont allows multiple data types. can you suggest me how to convert the v_qtr_field whose data type is character to currency?Hi,
Please check this code .
PERFORM write_currency
USING buf_anla-urwrt t_dates-waers t_txw_anla-urwrt.
* FORM WRITE_CURRENCY *
* convert currency amount to string *
* - use decimal point *
* - remove separator characters *
* --> P_AMOUNT *
* --> P_CURRENCY_UNIT *
* --> P_STRING *
FORM WRITE_CURRENCY
USING P_AMOUNT TYPE P
P_CURRENCY_UNIT LIKE TCURC-WAERS
P_STRING TYPE C.
DATA: DEC2POINT(2) TYPE C VALUE ',.'.
* convert separator to decimal point
WRITE P_AMOUNT TO P_STRING CURRENCY P_CURRENCY_UNIT
NO-GROUPING
NO-SIGN
LEFT-JUSTIFIED.
TRANSLATE P_STRING USING DEC2POINT.
* put minus sign before number
IF p_amount < 0.
SHIFT P_STRING RIGHT.
P_STRING(1) = '-'.
ENDIF.
ENDFORM.
<i>Hope This Info Helps YOU.</i>
Regards,
Lakshmi -
How to change the Value of a Varible while debugging in ECC 6.0
Hi all,
How can i change and Save the Value of a varible while debugging a FM in ECC 6.0.
I can able to change the Value of a variable by clicking the Pencil Icon (Change icon) which is there next to that value
But i am not able to save that value
Please give the suggestions
Thanks in Advance
Regards
AjayAjay,
I think you are changing more than one variable value at a time...this things generally happen in this case.
Go step by step.....
Press on the pencil button
value filed becomes editable
change the value
and at once press the enter
the ediatble field automatically becomes non editable, and hence retain the changed value.
Pooja -
How to pass a value from inside a while loop outside the loop
Hello to everybody, I have been searching through the forum but I have not found a certain answer for my problem. I would try to explain my problem as breefly as posible:
I have to send by a BNC2120 two signals and acquire an other one thats comes from a preassure sensor. That part is done by introducing simulating and acquiring DAQmx inside while loops.It is sycronized by my self, proving such diferent values (is not the optimum, but is only the first prototype) and works as I expected. Well, then I want to sample some of the values of these signals, that is done with relays and local variables to get the value in the instant I want to sample. Here begin my problems: I want to extract the sample values out of the while loops without restarting them, I mean: I do not want to stop the while loops because the acquisition and the generation of the signal must be continuous, but I do not know if it is posible to put the while loops in "standby" until I operate with the values I have sampled and then the signal generator and the acquiere continues from when it has stoped before. Particulary I want to obtain the value of the top while loop (inside a case) when the counter arrives at 15.
I have proved to do with local variables, global variables, making a state machine, with event cases, with flat secuences...I have been reading about and proving diferent posible solutions for this week and the whole past week and I have not found the solution.
If any of you know how I can do this thing, I would be loved to listen your opinions. My proyect is above:
Thank you a lot in advance.
Sinceresly,
Miguel.
Attachments:
maq_estados_event_case.vi 239 KBIt definately sounds like what you really want is a Producer/Consumer. It is an architecture that uses Queues to pass data from a data generation loop (producter, your DAQ loop) and a data processor (consumer).
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to convert ResultSet's value to String
Dear JDC's
plz tell me how to convert ResultSet's value to String.
kashifI want to read a whole array from a table into a String[]
and then send it to another servlet before I forward it all to anther servlet with request.setParameter.....
Any ideas how to solve it....that is how far I got so far:
rs=pgresult("select count (answer) from answers where qid="+idnum);
numberofquestions = rs.getInt("mynumber");
rs=pgresult("SELECT answer FROM answers WHERE qgroup="+qgroup);
allanswers = new String[numberofquestions];
allanswers = (String[])rs.getArray(1).getArray();
req.setParameter("allanswers",allanswers);
RequestDispatcher dispatcher = req.getRequestDispatcher("editanswers");
dispatcher.forward(req,res);
Tobi -
Can u tell me how to convert int value in to string
hi to all, can u tell me how to convert int value in to string.
hi to all, can u tell me how to convert int value in
to string.Even this way:
int number = 155;
String mystring = ""+155;
[\code]
Maybe you are looking for
-
Itunes account over rode and erased when a second was downloaded. help!
I had one Itunes account downloaded on my windows used with my Itunes shuffle. I used it regularly. When a second Itunes account was downloaded for a nano, it over rode the first account. All my songs were erased, and now my Itunes won't recognize my
-
How do I change my security questions if I 4got them
i 4got my security questions and i dont know where to go to change them
-
can anyone suggest any standard report close to the following user requirements, To monitor open PO with ageing period - PO number/item/qty/value - Balance PO qty and value - PR number - cost object / requisitioner - last GR/SES - ageing, from PO rel
-
How to reach an Oracle BI Server (client 1) from another client (client 2)
Hi all, I'm new to the BI EE's world and I have a connection's problem. I have installed Oracle BI EE 10.1.3.3.2 (Complete installation - all component) & Oracle 10g DB on my pc (pc 1). The BI server is started. ..and then another colleague of mine i
-
Displaying Zero Value in a Chart if there exist no database record.
Hello All, I need to create a chart that displays the number of jobs per hour over a 24 hour period. I can determine the hour the job was created and I have no trouble making a chart with a count of jobs per hour. The problem is that I also want to d