Print Multiline item with carriage return in Workflow Word Doc Template

Heong Lian Ng HeongLian.Ng at axonglobal.com
Wed Oct 17 21:48:28 EDT 2007


 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20071018/ce800b3e/attachment.htm


More information about the SAP-WUG mailing list