I encounter problem in displaying multi-line item in my workflow word document.
The multi-line item, which is address information, is printed in a single line instead of 3 lines.
Following described is my workflow scenarios:-
I have a word document template in my workflow WS1.
The workflow has container of a BOR type zwty.
This container is where my multi-line element (a table container element) is created named zwav_Addr.
The element is created with virtual, multi-line type, where Abap Dict Reference to TLINE structure as data type.
I inserted element zwav_Addr into word document template, and it shows as {&zwty.zwav_Addr&} in the doc template.
In the BOR method that assigns value to container elements, the codes excerpt as shown:
GET_PROPERTY ZWAV_ADDR CHANGING CONTAINER.
DATA: BEGIN OF I_ADDR OCCURS 0,
VLINE LIKE TLINE-TDLINE,
END OF I_ADDR.
DATA: V_NAME1 LIKE ADRC-NAME1,
V_NAME2 LIKE ADRC-NAME2,
V_NAME3 LIKE ADRC-NAME3.
CLEAR I_ADDR.
REFRESH I_ADDR.
PERFORM ZGET_ADDR CHANGING V_NAME1
V_NAME2
V_NAME3.
MOVE V_NAME1 TO I_ADDR-VLINE.
APPEND I_ADDR.
CLEAR: I_ADDR.
MOVE V_NAME2 TO I_ADDR-VLINE.
APPEND I_ADDR.
CLEAR: I_ADDR.
MOVE V_NAME3 TO I_ADDR-VLINE.
APPEND I_ADDR.
CLEAR I_ADDR.
DELETE I_ADDR WHERE VLINE IS INITIAL. “REMOVE BLANK LINE
SWC_SET_TABLE CONTAINER 'zwav_Addr' I_ADDR.
END_PROPERTY.
May I know what could be wrong with my program or workflow?
I truly appreciate your kind assistance.
Thanks,
Lian
Software/Hardware used:
ASKED:
October 18, 2007 2:22 AM