Print Multiline item with carriage return in Workflow Word Doc Template
krishna mohan
geniuskittu at yahoo.com
Wed Oct 17 22:43:48 EDT 2007
Hi Lian,
For your question below
>> I inserted element zwav_Addr into word document
template, and it shows as {&zwty.zwav_Addr&} in the
doc template.
insert { zwty.zwav_Addr##} in the doc template and
see. Hope it works fine !!
Regards
Krishna Mohan Dubbaka
SAP Workflow Consulant
Satyam Computer Services Pvt Ltd
India,Contact: +91 99860 89908
--- Heong Lian Ng <HeongLian.Ng at axonglobal.com> wrote:
>
>
> Hi SAP-WUG,
>
>
>
> 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
>
>
>
>
>
>
>
> The content of this email is confidential and for
> the
> addressee only. If you are not the addressee of this
> email (or responsible for the delivery of this
> message
> to such person) you may not copy, forward, disclose
> or otherwise use it or any part of it in any form
> whatsoever. If you have received this email in error
> please email the sender by replying to this message
> and delete this message thereafter.
>
> Opinions, conclusions and other information in this
> message that do not relate to the official business
> of our Company shall be understood as neither
> given nor endorsed by it.
>
> Axon Solutions Limited
> Registered Office: Axon Centre, Church Road, Egham,
> Surrey, TW20 9QB, UK
> Registered in England & Wales under Company No.
> 2976395
> Axon Solutions Limited is a limited company.
>
> Axon Group plc
> Registered Office: Axon Centre, Church Road, Egham,
> Surrey, TW20 9QB, UK
> Registered in England & Wales under Company No.
> 3419641
>
> > _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the SAP-WUG
mailing list