cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Address in Workflow's Word document template

Former Member
0 Kudos

Hi,

I have a word document template in my workflow. The workflow has container element of a BOR type named zWTY.

I have a BOR method that assigns the information to the container elements. These elements are used in my word document template.

I create an internal table type TLINE-TDLINE in BOR program to store 3 lines of addresses comprise of addr1, addr2 and addr3. I assign this internal table to the BOR container element which is a table container to store the address information.

The issue is, when I generate the word document, the addresses are printed in one single line instead of 3 different lines.

May I know what could be wrong with my program or workflow?

I truly appreciate your kind assistance.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Failure to print address after the code change.

Former Member
0 Kudos

Hi,

Append addr1,addr2,addr3 in 3 lines of the internal table type TLINE-TDLINE

or

Try adding '/' where the line break needs to be inserted in the doc in the TLINE-FORMAT.

There doesnt seem to a problem with the workflow.

Kindly close the query if answered. tks.

Former Member
0 Kudos

Hi Esha,

Thanks for your prompt reply.

I had done the necessary as advised but the address still fail to be displayed in multiple lines.

My internal table was declared as :

DATA: BEGIN OF i_address OCCURS 0,

vline LIKE TLINE-TDLINE,

END OF i_address.

The Attribute of Business Object type is setup with :-

Virtual, Multiline, Reference Type Area as ABAP Dictionary with TLINE and TDLINE as the data type.

the codes are as following :

data : addr1 like adrc-name1,

addr2 like adrc-name2,

addr3 like adrc-name3.

...

...

move addr1 to i_address-vline.

append i_address.

move addr2 to i_address-vline.

append i_address.

move addr3 to i_address-vline.

append i_address.

swc_set_table container <containername> i_address.

According to your advice, to add "/", may I know at which point of the code I should add the line breaks? As i believe the problem is due to line breaks.