Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 03, 2017 at 10:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • May 31, 2017 at 11:31 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 01, 2017 at 08:55 AM

    Hi,

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

    Add comment
    10|10000 characters needed characters exceeded