cancel
Showing results for 
Search instead for 
Did you mean: 

Rejection Reason in Purchase Order not getting Displayed Completely in "Send Email" step

arpita_churi3
Active Participant
0 Kudos

Hi All,

We have an issue , Rejection reason entered by user while rejectiong the Purchase order is not displaying completely.It is displying it in the single line and truncating the text.

We are using function module SAP_WAPI_READ_CONTAINER to read attachment text entered in rejection comments into workflow container EV_REASON of type SO_TEXT255 with multiline uncheked.

After geting data into EV_REASON we are sending email to user via SEND ITEM step of workflow builder.In Workflow log i can see EV_REASON is filled with entire rejection reason but in email user is able to see EV_REASON in only one line.

Thanks,

Arpita

Accepted Solutions (0)

Answers (3)

Answers (3)

anjan_paul
Active Contributor
0 Kudos

Hi,

you shared 'EV_REASON of type SO_TEXT255 with multiline uncheked'. Is it possible to check the Multiline and test again from scratch

pokrakam
Active Contributor
0 Kudos

If you use a long field (255) and then send out a short one (132), it will be truncated. This line length limit is well-documented.

One solution is to use a shorter field for input.

If it was me I would use a string field in a text box to make it nice and user-friendly and then format it into lines of length <=132 prior to emailing out. But that's more work.

former_member184495
Active Contributor
0 Kudos

Hi Arpita,

when you use your container inside your editor or sendmail step(which has rejection text), SAP gives you 3 options.

select "All lines with line break"

Hope it helps.

Aditya V

arpita_churi3
Active Participant
0 Kudos

Thanks Aditya..

I have made that EV_REASON as multiline and also selected "All lines with line break". It is taking multiple lines now.

but it is displaying 132 characters including spaces in 3 lines. It is not displaying characters beyond that.

Is there any limitation or space issue?

Thanks,

Arpita

former_member184495
Active Contributor
0 Kudos

Hi Arpita,

yes, I guess, may be try to create couple of multi-line containers and place them in one line below other

&value1&

&value2&

something like this..

Hope it helps.

Aditya V

arpita_churi3
Active Participant
0 Kudos

Thanks Aditya..

I am not able to do split of REASON as there is no fixed length and style of entering the reason.

Is it possible to give a popup message before sending mail if char length is more than 132 chars.

Actually rejection reason text box is configured on portal side not on ECC side.Is there any way to limit that text box length to 132 char on portal side.

Thanks,

Arpita