2007 Jan 26 3:30 PM
Hello All,
i'm moving quantity field to a string .
But I want to move with reference unit also.
DATA: lv_del_qty TYPE string.
CLEAR lv_del_qty.
lv_del_qty = itab->del_quantity.
I want the unit referece also.
How to do this ?
Regards,
Deepu.K
2007 Jan 26 3:53 PM
Hi Deepu,
If you want to add the quantity fiels to a string then go for the concatenation of othe reference Unit and the quantity.
<b>Syntax is</b> .
DATA: lv_del_qty TYPE string.
CLEAR lv_del_qty.
Concatenate itab-quantity itab-refence_unit into lv_del_qty.
Write:/ lv_del_qty.<b>Output</b> will be 1222USD.
loop at itab into wa_itab.
concatenate itab-quantity itab-currency into v_string separated by space.
modify itab from wa_itab.
endloop.
Hi Deepu,
If you want to add the quantity fiels to a string then go for the concatenation of othe reference Unit and the quantity.
<b>Syntax is</b> .
DATA: lv_del_qty TYPE string.
CLEAR lv_del_qty.
Concatenate itab-quantity itab-refence_unit into lv_del_qty.
Write:/ lv_del_qty.<b>Output</b> will be 1222USD.
loop at itab into wa_itab.
concatenate itab-quantity itab-currency into v_string separated by space.
modify itab from wa_itab.
endloop.
2007 Jan 26 3:40 PM
2007 Jan 26 3:45 PM
Hello Heilman,
I didn't understand u. Can u explain ?
Regards,
Deepu.K
2007 Jan 26 3:48 PM
loop at itab into wa_itab.
concatenate itab-quantity itab-currency into v_string separated by space.
modify itab from wa_itab.
endloop.
2007 Jan 26 3:53 PM
Hi Deepu,
If you want to add the quantity fiels to a string then go for the concatenation of othe reference Unit and the quantity.
<b>Syntax is</b> .
DATA: lv_del_qty TYPE string.
CLEAR lv_del_qty.
Concatenate itab-quantity itab-refence_unit into lv_del_qty.
Write:/ lv_del_qty.<b>Output</b> will be 1222USD.
loop at itab into wa_itab.
concatenate itab-quantity itab-currency into v_string separated by space.
modify itab from wa_itab.
endloop.
2007 Jan 26 3:55 PM
Hello Friends,
I solved it.
I moved the qty to char and then to string.
DATA:lv_qty TYPE char20.
lv_del_qty TYPE string.
CLEAR :lv_qty,lv_del_qty.
WRITE itab->del_quantity TO lv_qty UNIT itab->units.
lv_del_qty = lv_qty.
Regards,
Deepu.K
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |