‎2009 Sep 25 2:28 AM
Hi
I have a statement like this is one of the old report:
WRITE: /06 33 v_rej1, 45 v_%rej2, 57 v_rej3.I getting the output:
35.42 90.00 100.00I had to place a gap of 12 in between... but I need the values side by side with my specific values spaces in between.
WRITE: /06 33 v_rej1, 38 v_%rej2, 43 v_rej3.the next value on right is closing the before value... I cannot convert the values to type c and display. Plz let me know some add on for write where I can have my values side by side.
‎2009 Sep 25 4:02 AM
Hi Ram Kumar,
Try this way.
Thanks
Venkat.O
REPORT ztest_notepad.
DATA:v_rej1 TYPE p DECIMALS 2 VALUE '35.42',
v_%rej2 TYPE p DECIMALS 2 VALUE '90.00',
v_rej3 TYPE p DECIMALS 2 VALUE '100.00'.
DATA:v_rej1_c(15) TYPE c,
v_%rej2_c(15) TYPE c,
v_rej3_c(15) TYPE c.
DATA :str TYPE string.
WRITE:v_rej1 to v_rej1_c LEFT-JUSTIFIED,
v_%rej2 to v_%rej2_c LEFT-JUSTIFIED,
v_rej3 to v_rej3_c LEFT-JUSTIFIED.
CONCATENATE v_rej1_c
v_%rej2_c
v_rej3_c INTO str SEPARATED BY space.
WRITE: / v_rej1,v_%rej2,v_rej3.
WRITE: / v_rej1_c,v_%rej2_c,v_rej3_c.
WRITE:/ str.
‎2009 Sep 25 4:02 AM
Hi Ram Kumar,
Try this way.
Thanks
Venkat.O
REPORT ztest_notepad.
DATA:v_rej1 TYPE p DECIMALS 2 VALUE '35.42',
v_%rej2 TYPE p DECIMALS 2 VALUE '90.00',
v_rej3 TYPE p DECIMALS 2 VALUE '100.00'.
DATA:v_rej1_c(15) TYPE c,
v_%rej2_c(15) TYPE c,
v_rej3_c(15) TYPE c.
DATA :str TYPE string.
WRITE:v_rej1 to v_rej1_c LEFT-JUSTIFIED,
v_%rej2 to v_%rej2_c LEFT-JUSTIFIED,
v_rej3 to v_rej3_c LEFT-JUSTIFIED.
CONCATENATE v_rej1_c
v_%rej2_c
v_rej3_c INTO str SEPARATED BY space.
WRITE: / v_rej1,v_%rej2,v_rej3.
WRITE: / v_rej1_c,v_%rej2_c,v_rej3_c.
WRITE:/ str.
‎2009 Sep 25 11:21 PM