Skip to Content
author's profile photo Former Member
Former Member

how to move a character field to quantity field

how to move a character field to quantity field

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 07:20 AM

    convert the character to amount then you can use the FM HRCM_STRING_TO_AMOUNT_CONVERT

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2007 at 07:21 AM

    hi,

    data: v_char_field(100),
    v_qty_num type rl03t-pickm.
    
    call function 'MOVE_CHAR_TO_NUM'
    exporting
    chr = v_char_field
    importing
    num = v_qty_num
    exceptions
    convt_no_number = 1
    convt_overflow = 2.
    
    if sy-subrc <> 0.
    "write/throw error message
    endif.
    
    
    2)QSS0_CHAR_FLTP_CONVERSION.

    Regards

    Anver

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 07:21 AM

    HI,

    data: quan like VBBE-VMENG

    data:char(16).

    char = quan.

    Move the quantity value into a variable of type Characrter.

    Regards,

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2007 at 07:37 AM

    Try this FM

    CONVERSION_EXIT_QUANT_OUTPUT

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.