Convert quantity field to char field

Hi folks ,
i have a requirement where i need to convert quantity field value to char field value so as to send in idoc.
plz help me .its urgent
regards,
chandra

data: f1(17).
f1 = qauntity_field.
lenth of the field f1 is the same or gr8 than quan_field also add one more place for decimal .
ex-
ur quan_filed like 13 and 3 decimal place than ur char field must be
13 + 3 + 1(for decimal) = 17

Similar Messages

  • Joining RAW field with CHAR field

    Hi fellows,
    I need to join two tables within one view. In table 1 there is a ID of RAW/16. The same value but in different type (char/70) is placed in table 2. How can I manage a join on that IDs with these tables? I tried to convert the types by using FM SCMS_TEXT_TO_BINARY. Unfortunatly this converts not only the type but also the value which has to be the exactly same after "type conversion".
    Any ideas?
    Many thanks in advance!
    Cheers
    Tobias

    Since the referring ID has to be the key field I am not able to use another one. Furthermore I cannot change the type of the RAW16 field as it is a SAP standard table.
    With which type do I fill RAW fields through Open SQL statements? Char / String doesn't work.
    Cheers
    Tobias

  • Convert quantity field

    Hi All,
    How would I convert quantity field thats coming into XI as 6.000 to 6?? On the receiving side quantity is of integer data type.

    use the standard function 'formatNum' to achieve this...
    the parameter of 'formatNum' should be set to '#'....
    Thanks,
    Renjith
    Message was edited by:
            Renjith Andrews

  • Quantity field fro char or date data type

    Hi,
    I am using DELVRY03 idoc type and some of the quantity fields are empty not being used, is it a good idea if I can use these quantity fields for Char type or datetype data.
    Regards
    Rinku

    Hi Rinku..
    Your question is not that clear.
    Let me give you some ideas.
    1. All Segment fields are store in CHAR Format in Database in EDID4-SDATA field
    2. If you want to add new fields it is better to Create a New Segment in WE31 And Create an Extended IDoc type in WE30.
    3. It is not advisable to use the existing fields for storing some other data.
    <b>Reward if Helpful.</b>

  • Converting from NUMC field in R/3 into  CHAR field on BW

    Hi all,
       We have a field (COST) which is defined as NUMC 6 with DECIMAL 2 like12.50 in R/3. I want to receive it into CHAR field on BW side.
      What is the simplest way to convert it, please. What should be the CHAR length in BW?
    Thanks in advance.
    Regards.

    Hi Venkat,
    I don't have any sample code for this. You will create one local variable in the trasnfer routine. Accept the NUMC value in that local variable and then assign that local variable to the final destination i.e. to CHAR InfoObject.
    PB

  • Converting DECIMAL field in R/3 into CHAR field on BW

    Hi all,
       We have a field in R/3 which is defined as :
          Data Type : Decimal
          Length      : 6
          Decimal Places : 2
         I want to receive it into CHAR field on BW side.
         How could I convert it, please. What should be length of this CHAR field in BW?
    Thanks in advance.

    Hi Venkat,
    Create a character infoobject of length 18. Include the infoobject in your data target and map the key figure value to the character infoobject by writting the following update routine for the character infoobject.
    Result = comm_structure-xxxxxx (xxxxxx = key figure infoobject you want to map for example say comm_structure-net_price if key figure is 0net_price)
    Please assign points if it helps,
    Neelima
    Message was edited by:
            Neelima Ravipati

  • Convertion To type x  to char field in unicode system......

    Hi all
    please refer the following code .i need to assign type xstructure to single char field where data are .........
    SRTFDHIGH =  xsrtfdhigh
    unicode system gives error to convertion
    DATA: BEGIN OF xsrtfdhigh,
              pernr LIKE pc2b0-pernr,
              restkey1(16) TYPE x VALUE 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF',
              restkey2(16) TYPE x VALUE 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF',
            END OF xsrtfdhigh.
       DATA: SRTFDHIGH LIKE PCL2-SRTFD VALUE                   
             '9999999999999999999999999999999999999999'.
    PCL2-SRTFD type char 40.
    pc2b0-pernr  type numc 8.
    is there any solution to convert this .....
    Edited by: Vikram  shirole on Feb 23, 2008 8:52 AM
    Edited by: Vikram  shirole on Feb 23, 2008 8:54 AM

    Read first some documentation like [Character String Processing|http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/frameset.htm], usually hexadecimal fields contain control characters (line feed, carriage return, tabulations and the like), so use constants of class [CL_ABAP_CHAR_UTILITIES|http://help.sap.com/abapdocu_70/en/ABENCL_ABAP_CHAR_UTILITIES.htm].
    Regards,
    Raymond

  • Can't format a char field as a date

    I have a char field coming in from a table that really is a date. I wanted to display the YYYYMMDD char field as MM/DD/YYYY.
    I could not get any conversion (CDate) to work and I can't figure out how to set field[0,4]  = year and so on, so I could come back and build the string.
    Can somebody help me?

    I have a field that should be a DATE type, but is instead a VARCHAR2(8).  The data in the VARCHAR2(8) field is displayed as what looks like a date -- EX:  09/18/09.  I need to be able to convert the VARCHAR2(8) field so that it brings back the spelled out month plus the numeric day and year -- EX: September 18, 2009.
    I've been able to successfully convert a DATE type to the needed format (September 18, 2009) using the following syntax line, but now need to convert the VARCHAR2(8):
              to_char(jud_report_hear_off_v.incdate,'fmMonth dd, yyyy,') as INCDATE
    Your help is appreciated!!!

  • HowTo turn off automatic trim for char fields

    I have a CHAR(1) field in the database containing a space. This is mapped to a char field in an entity Bean, but the space will not be loaded. Instead it is automatically trimmed to '', which leads to an exception when converting the char into an Enumeration. Does anyone knows a solution or a work around to turn of this automatic trimming? I can't change the values, so this would not be a solution.
    Greetings,
    Oliver
    Edited by: user11932222 on 23.09.2009 01:48
    Edited by: user11932222 on 23.09.2009 01:49

    You can disable trim of CHAR fields using a SessionCustomizer and setting setShouldTrimStrings(false) on the Session's DatabaseLogin.
    http://www.eclipse.org/eclipselink/api/1.1.2/org/eclipse/persistence/sessions/DatabaseLogin.html#setShouldTrimStrings(boolean)
    There is not currently a JPA persistence.xml property for this, please log a bug for this.
    James : http://www.eclipselink.org

  • 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

  • COPA structure cross 50  char-How to add more char fields in the sturcture

    Hi SAP CO Guru's,
    I am facing one problem in COPA characteristics, I have created the characteristics however in the KEA0 structure where we have already exhaused max limit of 50 char, hence system is not allowing to add these new fields in the structure.
    I need help for getting addition 2 fields into structure.
    I have one more option where few Char fields are not usable, can be remove from the structure if we can not increase the limit of 50 Char in the structure but system is not allowing me th remove the already selected Char fields.
    Thanks in Advance.
    Uday Suryawanshi
    SAP FICO consultant, Pune

    Hi Uday
    There is a way you can increase the limit.. refer the note given above
    However, SAP wont take the responsibility of any thing that happens later on.. It is completely your headache....
    So, better rename the Chars and use them....
    If you are still in DEV Client, delete COPA docs posted till now.. refer Note 21207... This helps you to delete a char if posted data exists
    I personally would prefer to rename and reuse.. After all, recycling is encouraged these days
    Br, Ajay M

  • How to  Place the Cursor at Specific Position with-in a Char Field ?

    Forms 4.5 ver.
    Sun Solaris / Citrix env.
    Char Field - Length 65434
    How Can I Place the Cursor at "Specific Location"
    with in a Field ?
    with GO_ITEM('field Name') I can place the Cursor at Specific Field.
    But, How Can I achieve to Place the Cursor at Specific
    Position within that Field ?
    I know, the starting position, length of string I want to hightlight with the Cursor.
    tried using :
    go_item('substr(field_name,position,length)') ;
    but didn't work !
    Is it possible ?
    Thanks, Peri

    The only cursor postion behavior that can be controled is the item property "Keep Position".
    The following is the text from the on-line help for item property "Keep Position"
    KEEP_POSITION Specifies whether the Keep Position property should be True or False. When Keep Position is True, the cursor returns to the same position it was in when it left the text item. When Keep Position is False, the cursor returns to the default position in the text item. Valid values are PROPERTY_TRUE and PROPERTY_FALSE.

  • 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

  • Converting field NAME1 to fields NAME_LAST and NAME_FIRST

    Hi to all of you,
    I have a question concerning to the next issue:
    When we run transaction JUCDCM (Convert customer and vendor masters to SAP Business Partner), the information contained in field NAME1 from customer/vendor master is migrated to field NAME_LAST of Business Partner. The issue here is that Business Partner has <i>two</i> fields to fill the first name and last name of the customer/vendor, these fields are: NAME_LAST and NAME_FIRST. So, after running transaction JUCDCM, we have the <i>complete</i> name of customer/vendor only in field NAME_LAST, and field NAME_FIRST remains empty.
    Do you know a report or something that we can use to cut the information from field NAME1 and distribute it into fields NAME_LAST and NAME_FIRST??
    Thanks in advanced for your help.
    Regards,
    Miyuki Quiroz.

    Hi Miyuki,
    the conversion calls the standard function module for the mapping of an organizational address (which the customer master has) to a personal address in case the business partner will be created as a person.
    In this mapping the field name2 is mapped to name_first.
    So either change your customer master to have the first name in the second name field or you have to change the report.
    There is no BADI here´.
    Regards,
      Carsten

  • Can sorting facilty in internal tables can be used on char fields?

    Can sorting facilty in internal tables can be used on char fields?

    there is no restriction to sort by any TYPE. u ve the freedom to sort on any TYPE of fields.
    sort itab by ascending / descending F1 F2 F2.
    abap doubts, i request you to try and practise your doubts befor posting here in forums. I can understand you are a buddy.Please remember, PRACTISE MAKES MAN PERFECT. Try to master on own and approch forum in worst case.
    Also award points to all helpful answers.
    All the Best
    Thanks & Best Regards
    Kiran

Maybe you are looking for

  • Creative Audigy 4 Probl

    Hi to all, i tried searching for a similar problem iam currently experiencing but couldn't find any. I have just installed a new Creative Audigy 4 sound card to replace my onboard AC'97 sound card. I have disabled the onboard sound card from the Bios

  • Audio driver HP Pavilion dv6 is not working, help!!

    Hi HP Support Forums. I'm writting from Perú. I have a  hp dv6-6b03es laptop with beats audio and the original software was Windows 7  Home Ultimate 64 bits.  However, I just formatted my laptop with Windows 7 Professional 32 bits. Now i have audio p

  • Why the checkmark in the Canvas window

    This will be, by far,the dumbest question you have ever seen but how do I get rid of the Green checkmark in the canvass window. Also, what does it mean? I'm at the bottom of the learning curve here. Please bear with me here and humour me.

  • ALV - Automatic Adjustable Columns (based on selection criteria)

    Hi, I am currently in the process of building a costing report for a number of materials. For the output, the columns will be the months, while the rows will pertain to the specific materials (1 or 2 columns for the material text and info). For examp

  • Why cant i type in the artist myself

    Can you tell me, where can i type in an album or Artist myself as a quick search?