Converting Normal field into amount field

Hello Gurus,
I need urgent help.
I want to conver the Normal field into Amount filed.
DATA : AMOUNT(13),
DATA : WRBTR LIKE BSEG-WRBTR.
So I want TO Convert Normal field into amount field.
This is urgent. please help me.
Thanks in advance.
Best Regards,
zubera

Hi,
Use FM HRCM_STRING_TO_AMOUNT_CONVERT
pass the char(amount) and decimal separator, thousand separator.
you get the char converted to amount/currency
Regards,
Satish

Similar Messages

  • How to convert the text field into currency field

    Hi,
    I have an requirement to converting the text field into currency.
    If I convert directly it gives dump.
    If I convert this to Numeric means it takes the decimals also as whole value.
    Is there any FM to convert the text field into Currency field.
    Please advice me.
    Thanks in advance.

    Hi,
    I am on an SRM sytem, which unfortunately does not have th FM: PSSV_TEXT_INTO_FIELD_CURRENCY.
    But I also need to transfer a string value like '12,99' to a field with type curr.
    Can i Do that manually, or is there another FM?
    I have already checked code with write to or pack/unpack.
    But without success yet.
    Something like this:
    DATA: g_str(11) type c.
    DATA: g_p type p.
    WRITE '12,99' TO g_str CURRENCY 'EUR'.
    is no use for me. Finally I need to move g_str to my curr-field, which causes st22.
    also: PACK g_str to <curr-field or g_p> dumps.
    Help appreciated.
    regards, matthias

  • How to Split field  into multiple fields in  Import Manager without  delem

    Hi
      Is there any method to Split a record in MDM without using delimitter?
    I dont want to use any delemitter  My field content in Source is  PRODLABELPACK and I want to split it into 3 fields in destination  Field1= PROD
    Field2=LABEL   Field3=PACK
    I know how to split it if the content is PROD_LABEL_PACK .But we dont want to use delimiter in the firld and want to use some substring function
    Regards
    Prashant

    You Can use below FM  SWA_STRING_SPLIT -
    First Use READ_TEXT FM.
    then loop into
    loop at tline.
    Here use 'SWA_STRING_SPLIT' -> Pass tdline and append the text into other internal table.
    endloop
    Thank you
    Seshu

  • Get value of two fields into one field

    Hellou,
    i need little help with javascript again
    Currently i'm using code below to get value from one field to other:
    getField("Text35").value = getField("Text1").valueAsString;
    Now i'm wondering how to change this code, so i could get values from two fields into one. For example i have field "firstname" and field "lastname", now i want to show this in field "name".
    Example, if field firstname have value John and field lastname value is Doe, i want to show it in field name like "John Doe".
    I hope that u understood what i want
    Thanks for helping me!

    getField("Text35").value = getField("Text1").valueAsString + " " +
    getField("Text2").valueAsString;

  • Putting 7 table fields into one field with line breakes included!

    Hi People
    I Need to assamble 7 fields from a view, into one field with some line brakes in Reports, how do I do that???
    E.g :
    Field names : Name, Collection1, StreetName, StreetNo, ExtraCity, ZipCode, City
    Should be put into one field called address and be displayed like this
    Name
    Collection1
    StreetName StreetNo
    ExtraCity
    ZipCode City
    I hope someone can help me *S
    /Stig :-)

    The following should give you some idea. It might depend if you run your report on Windows or Unix.
    select
    Name        || decode(Name, null, null, chr(13)||chr(10))||
    Collection1 || decode(Collection1, null, null, chr(13)||chr(10))||
    StreetName  || decode(StreetName, null, null, ' '||StreetNo||chr(13)||chr(10))||
    ExtraCity   || decode(ExtraCity, null, null, chr(13)||chr(10))||
    ZipCode     || decode(ZipCode, null, null, ' '||City )
    from MyView

  • Splitting up a date field into two fields on display

    I have a form that is based on a table which contains two date fields. To populate these date fields I have one date picker using a format of DD-MON-YYYY and two "time" fields that are just based on static LOV select lists. I build the date by piecing together these fields to get my two different dates and save it to the database just fine (using a process on submit, before validation).
    My problem comes when I want to edit the existing records. I am unable to figure out how to populate those fields from the dates. I thought I could do it during the page reduring process but everything I try gives me a format error. I can assign the date to the date picker field no problem but cannot get it to display without the date format, regardless of setting the format or not on the item. I can't get the time off into my time fields at all.
    An example of setting my start time field (select list of times only)
    BEGIN
    :P10_START_TIME := TO_CHAR(:P10_DTE_START,'HH24:MI');
    END;
    Error I get is ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    I've tried a few different formats and I think I am just missing something really easy. My static pick list in this case is just the display would be say 1:00 PM but the other value is 13:00.
    The other one I am trying is for the actual date picker itself.
    BEGIN
    :P10_COURSE_DATE := TO_DATE(:P10_DTE_START, 'DD-MON-YYYY');
    END;
    Gives me ORA-01830: date format picture ends before converting entire input string.
    The format of :P10_DTE_START is DD-MON-YYYY HH24:MI (it is a hidden field) and :P10_COURSE_DATE is DD-MON-YYYY.
    Colour me confused...

    Thanks for the reply...I got this error for the last name piece "A subscript must be between 1 and the size of the array.
    ". I was able to put in
    split({Usr.Nam}, " ")[-1]
    and that seemed to pull  the last name piece of the field.
    Thanks Again,
    Reid

  • Crystal report - how to split a field into more fields

    Hello,
    I`m new to Crystal reports and I`ve got a trouble. I have field which contains an address - street, city, zip code. The example is:
    STEHLIKOVA 977 165 00 PRAHA 620 - SUCHDOL 165 00.
    What I need to achieve is to split this string into three separated fields. I`ve trouhg a couple of forums but haven`t been able to find a proper answer. The problem is that the addresses differ so I can`t use an absolute defining of a start position. Looking at the DB (HEXA code) the parts in the string are divided by two dots:
    STEHLIKOVA 977..165 00 PRAHA 620 - SUCHDOL..165 00
    I`ve been able to work out this solution:
    stringVar array x := split({cparty.STREET_ADD},"..");
    Local numberVar i;
    Local stringVar outputString := "";
    For i:=1 to Count(x) do
    outputString := outputString + x[i] + Chr(10)
    outputString;
    It splits the string into three rows:
    STEHLIKOVA 977
    165 00 PRAHA 620 - SUCHDOL
    165 00
    And I don`t know how to find the end of each row so to be able to separate the strings and report them as three different fields.
    Would be anyone so kind and help me out with this?
    Thank you.
    Petr

    Hi
    Actually using a for loop is not necessary here. All you need to do is to add several formula fields: one for street, one for city and one for zipcode. In @street field you add formula:
    stringVar array x := split({cparty.STREET_ADD},Chr(13));
    x[1];
    Then you drag such formula field to details section of your report and watch preview to check if everything looks alright. Repeat for every formula field that you'd like see in your report.
    In @city you add almost identical formula but you change index, i. e. instead of x[1] you need to use x[2]. Then for @zip x[3].
    You may need to check if your address has all three parts - for example if you want to use formula in the second part of your address field you may need check first if there are at least two parts after split:
    stringVar array := split({cparty.STREET_ADD},Chr(13));
    numbervar c; 
    c := count(x); 
    if 2 <= c then 
    x[c]; 
    Var 'c' is used to store the number of elements in array after split. Then I'd like to check if the part (second) actually exists. So I try to check if number of part that I want to refer to is not bigger than the number of elements in array after split (here stored in var 'c').
    Actually the code presented above is not enough since you have no guarantee that you'll always get address structured in the very same way. For example in demo PL database I have zip code and city in the same row after split with Chr(13) as delimiter.
    You'll need to experiment or ask someone to prepare correctly structured data coming from B1 to your report.
    Kind regards,
    Radek

  • Joining Two Fields Into One Field for a View

    I am trying to create a view based off of multiple tables.
    I have all of the joins and everything done nicely and working properly.
    However, when I get to this one step, that's when I start running into problems.
    I just want to join (or concatenate) two fields together with a period character in between them.
    For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
    When I try to join them together, the problem comes up with the period character.
    A sample code of what I have done is here:
    BEGIN
    EXECUTE IMMEDIATE 'create view VIEW_LALALA
    as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
    FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
    END;

    832667 wrote:
    I am trying to create a view based off of multiple tables.
    I have all of the joins and everything done nicely and working properly.
    However, when I get to this one step, that's when I start running into problems.
    I just want to join (or concatenate) two fields together with a period character in between them.
    For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
    When I try to join them together, the problem comes up with the period character.
    A sample code of what I have done is here:
    BEGIN
    EXECUTE IMMEDIATE 'create view VIEW_LALALA
    as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
    FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
    END;to concatenate two string together do not use "+", but "||"
    SELECT FIRST_NAME||'.'||LAST_NAME FROM EMP;

  • Can we split data in field into 2 fields?

    Have 'city, state' in 1 column, and would like to move the city to the previous column, remove the comma-space and leave the state in the original column. About 50% of the data in the column in question has this error.
    Any ideas?

    Yes. For this example you will put the city in one column and the state in another. The logic is that you find in the city, state field the position of the comma-space string with the function =FIND(", ",citystatecell). You combine that function with the LEFT function to return the string with the characters in the citystatecell up to the comma. =LEFT(citystatecell,FIND(", ",citystatecell)-1).
    If Memphis, TN is the value being evaluated, Find will return 8, the position of the comma- subtract one to get the end of the city string. The LEFT and FIND combo will return the first 7 characters of the string- Memphis. The state can be extracted with similar logic.
    If there is no comma-space, the FIND will error. To trap that you check for an error with the ISERROR function and IF function. If it is an error, then it must be a city without state, so return the string being evaluated.
    Here is the formula I came up with for the city portion
    IF(ISERROR(FIND(", ",citystate)),citystate,LEFT(citystate,(FIND(", ",citystate)-1)))
    and the state portion will leave the state cell blank-
    =IF(ISERROR(FIND(", ",citystate)),"",RIGHT(citystate,(LEN(citystate)-(FIND(", ",citystate)+1))))
    The state formula does not assume the state is a 2 letter abbreviation.
    HTH
    Craig Sutherland

  • Adding value of one field into another field and should  display it

    Hai Experts,
    i have problem try help me plz,
    my problem is:
    i have some fields like A,B,C,D,E.in my ddic table and i designed a screen with same fields
    so here i want have values on gallons
    ex : think
    E = order value
    C = gallons
    and when i enter each value in order value it should go sum with gallons and should display on screen ,it should not save in table,when i open screen next time it should not show any values

    Hi  ,
    U Can try the   UserEXIT  PBAS0001 component  EXIT_SAPFP50M_001 . The code in the Include Program  ZXPADU01  looks  something  like  this .
    DATA: I0002 TYPE P0002.
      CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.
      CASE INNNN-INFTY.
        WHEN '0002'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING
              PRELP = INNNN
            IMPORTING
              PNNNN = I0002.
          MOVE I0002-VORNA  TO I0002-RUFNM.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
            EXPORTING
              PNNNN = I0002
            IMPORTING
              PRELP = INNNN.
      ENDCASE.
    U can also  implement  the  same in the BADI  HRPAD00INFTY   method  BEFORE_OUTPUT . The  same   code  should  work

  • Can I combine the out put of TWO FIELDs into One fields  in BW query

    Hi,
    For example, I have two fields ‘FIRST name’ and ‘last Name’ in the info provider and in theBW query these two are displayed in two separate field with independent drill down capability, Can I combine those and show as a single field with a single drill down capability.
    Thanks

    Hi Arunava,
    Combination of two fields can be done at Excel level where we will not get the drill down. We can rather use use an object which is compunded for the two names and then add them in the cube. we can achieve the functionality of drill down on the report level.
    Hope this will help you in resolve the issue.
    Regards,
    Phani.

  • Populate Combo Box field into another field

    I've got a form (form1) based off a table (table1).  In the form I have a field from table1 called
    bagtype that is a combobox type field with a row source from another table with two fields that show up in the drop down box when selected.  When I select a field from the dropdown box only the first field populates the actual form field
    (and underlying table) which is what I want.  What I'd also like to happen is the second field of the combo box that doesn't populate the bagtype field is for it to populate another field (from table1) on the same form and store that
    value in the underlying table as well.  The other field in the form is called
    AStd.   
    TAK

    Hi,
    you need 1 line of VBA code in the AfterUpdate event of the combo box:
    Me!NameOfTheTargetFieldOrControl = Me!BagType.Column(1)
    The column index is zero based i.e. 0 = first column of the combo box, 1 = second column etc.
    cu
    Karl
    Access FAQ (de/it): donkarl.com
    Access Lobby: AccessDevelopers.org

  • Concatination of Different Fields into one field

    Dear Experts,
    We have a requirement as follows:
         Our client need the Merchandise Category which is a collection of different objects which is likeu2026
    First 2 letters of Category [ total 2 Letters up to here]
    Next 2 Letters of Sub Category [ total 4 Letters up to here (Category2+Subcategory 2)]
    Next 3 Letters of Product Hierarchy [ total 7 Letters up to here (Category2Subcategory 2Prod Hier3)]
    And Next 2 Letter of Article Group [ total 9 Letters up to here (Category2Subcategory 2Prod Hier3+Article Group 2)]
    So above Total 9 Character Object is called as Merchandise Category, and this Object has to come as Master Data and Transaction Data Level as well.
    Please give a perfect solution how to accomplish this. Step by Step is preferable.
    Regards,
    Sai Phani.

    Hello Sai,
    Map all these Category, Subcategory, Prod Hier, Article Group to the target infoobject Merchandise Category in transformations, and write a routine.
    CONCATENATE Cateogory+0(2) SubCategory+0(2) ProductHierarchy+0(3) Articlegroup+0(2) INTO MerchandizeCategory.
    write appropriate io names as I ahev just used names above.
    Also to load this as masterdata from source will be a big task. so better we use routines to generate this filed.
    Regards
    Pratap
    Edited by: Pratap Sone on Oct 12, 2009 9:15 AM

  • Combining 2 fields into 1 field

    field1 field2 field3
    AA 1234
    BB 2345
    CC 3456
    output
    field3
    AA1234
    BB1234
    CC3456
    thx!

    Re: can you build this query for my requirement, Urgent

  • Acrobat form broke field into 2 separate fields and tabbed it wrong

    I created a pdf form from a word doc.  The form looks great with a couple of exceptions.  One of the fields had four buttons.  Adobe split that field into two fields and tabbed it wrong.  It has tabbed it 4,4 and 5,5, instead of 4, 5, 6, 7, as it sees it as two different fields.  I have tried to move the tabs up on the right (edit) side of the screen but they will not move.  I don't know if this is because they are two fields now.  I have tried everything I can think of and nothing works.  I am new to this and scrambling to get this form turned around to my boss.
    Any help would be greatly appreciated.
    Deb

    Thank you...I have been sitting here all morning working on it again and realized there was a way to do it manually that didn't require dragging and dropping the tabs....which it will not do.  Yikes!  Thank you for your response.
    Now I have realized there is a problem with the word doc in another field.  The spacing for a telephone number is wrong.  Is there anyway to change it in the form or do I have to go back to the word doc, fix it, then re-import it?  My desire to not do this is because I have to take it back to the original word doc and then when I re-import it, it obviously won't have all these changes I have just made.
    Deb

Maybe you are looking for