How to Pass the Work flow container value to Standard Text

Mike Pokraka wug at workflowconnections.com
Wed Oct 5 11:07:19 EDT 2011


Hi Paul,

Yes you are technically right; and you can do many other things too if you
code them yourself :-)

The question was about dropping a standard text containing a variable
directly into a task text in PFTC - without code.
The answer is that SapScript isn't clever enough to replace variables
inside the standard text so it will always come out as "&CUSTOMER&".

A codeless workaround is to separate variables from standard texts and put
those directly into the task text. The variable parts will however always
be on a new line.

Cheers,
Mike


On Sun, October 2, 2011 11:17 pm, Paul.Bakker at osr.treasury.qld.gov.au wrote:
> Sure, you can use variables in standard texts.
>
> For example, let's say you have the standard text : 'Please call
> &CUSTOMER&'
> defined in SO10.
>
> In a workflow, after you read in this standard text, you can substitute
> the
> container value for CUSTOMER with the following call:
>
>   CALL FUNCTION 'SWU_TEXT_REPLACE'
>     EXPORTING
>       TEXTNAME                = me->ST_TEXT
>     TABLES
>       CONTAINER               = lt_swcont   <-- the wf container, which
> holds a value for CUSTOMER
>       TEXT_LINES              = lt_tlines   <-- the resulting text lines
>    EXCEPTIONS
>      OTHERS                  = 6
>
> Is this what you're asking?
>
> cheers
> Paul Bakker
>
>
>
> From:	"Mike Pokraka" <wug at workflowconnections.com>
> To:	"SAP Workflow Users' Group" <sap-wug at mit.edu>
> Date:	30/09/2011 02:51 AM
> Subject:	Re: How to Pass the Work flow container value to Standard Text
> Sent by:	sap-wug-bounces at mit.edu
>
>
>
> You can't use variables in Standard Texts.
>
> On Fri, September 30, 2011 5:16 am, Muralitharan.Chandrasekharan wrote:
>> Hello Guru's,
>>
>> I have created Standard text in SO10, after that this standard text is
>> incorporated into my email standard task(PFTC).
>>
>> The Issue is While we are executing the task, the static text which are
>> maintain in the Standard text(SO10) are appearing but the Dynamical
>> value are not coming from work flow to the variable defined in the
>> Standard text
>>
>> Please provide your valuable suggestion on how to resolve this problem.
>>
>> Thanks & regards,
>> Muralitharan C
>>
>>
>>
>> The information contained in this electronic message (email) and any
>> attachments to this email are intended for the exclusive use of the
>> addressee(s) and access to this email by any one else is unauthorised.
> The
>> email may contain proprietary, confidential or privileged information or
>> information relating to Reliance Group. If you are not the intended
>> recipient, please notify the sender by telephone, fax, or return email
> and
>> delete this communication and any attachments thereto, immediately from
>> your computer. Any dissemination, distribution, or copying of this
>> communication and the attachments thereto (in whole or part), in any
>> manner, is strictly prohibited and actionable at law. The recipient
>> acknowledges that emails are susceptible to alteration and their
> integrity
>> can not be guaranteed and that Company does not guarantee that any
>> e-mail
>> is virus-free and accept no liability for any damage caused by any virus
>> transmitted by this email.
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
>
> *********************************************************************************************
> Only an individual or entity who is intended to be a recipient of this
> e-mail may access or use the information contained in this e-mail or any
> of its attachments.  Opinions contained in this e-mail or any of its
> attachments do not necessarily reflect the opinions of Queensland
> Treasury.
>
> The contents of this e-mail and any attachments are confidential and may
> be legally privileged and the subject of copyright.  If you have received
> this e-mail in error, please notify Queensland Treasury immediately and
> erase all copies of the e-mail and the attachments.  Queensland Treasury
> uses virus scanning software.  However, it is not liable for viruses
> present in this e-mail or in any attachment.
> ***************************************************************************************************
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>





More information about the SAP-WUG mailing list