cancel
Showing results for 
Search instead for 
Did you mean: 

Writing multiline records in task description

Former Member
0 Kudos

Hi All ,

I'm facing problem in writing multiline record in the task description . When I'm writing a single line record , it is appearing on the task description but when i m writing an internal table (Container element with multiline property) , it does not shows proper values.

I tried to sandwitch the elements between LOOP-ENDLOOP but its also not working . I was told by SAP-Script person that writing LOOP-ENDLOOP in print program will solve the problem but I'm not aware of such facility in workflow . Morever by what name it stores the sap script is also unknow .

I hope u all are getting , what m trying to explain .

Thanks ,

Sonu M.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi' Sonu,

If i understand you right, you have a multiline element, that you want to display all lines of in the workitem describtion. If that is correct when you add the multiline element to the description choose "all lines with break". Remenber to create the multiline element in your task, and bind it with the workflow multiline element.

If the problem is to get values from a table into the multiline element write again.

Hope it was a reply to your question, kind regards

Mikkel

Former Member
0 Kudos

Hello Mikkel ,

Thanks a lot for the answer . It nearly solved my problem .Now only problem left it , the data is shown as a single string , Can it be seperated ?? I mean a 'SPACE' after each field .

Can you help me out in this problem also ??

(Currently it is showing 40028990200145 , I want to display it as 400 2890 200145 ) .

pokrakam
Active Contributor
0 Kudos

Hi Sonu,

Actually Mikkel's answer DID solve your problem as you described it.

Separating fields is a different issue: an element will always be shown with whatever it contains - just the same as if you were using a write statement. What you need is a new element/attribute TXTLINES or whatever for your formatted output. e.g. I would have a multiline attribute ITEMTXTLINES on a document for outputting as task text.

And no, you cannot get columns to line up nicely.

Cheers

Mike

Former Member
0 Kudos

Hi,

for this type of problem I use a separate backgroundtask to prepare the workitem text. I put the structured table as the import parameter and the result is a simple string-table.

Then I use this flat-table for the workitem text.

With that you're more flexible with the output preparation.

You could also put some dummy-char1's into the structure (if appropriate).

Best wishes,

Florin

Former Member
0 Kudos

Hi Florin ,

Thanks a lot for the help .It solved my problem .

Thanks,

Sonu M.