Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Date in XMLEditor (STRANS)

ricky_shaw
Contributor
0 Kudos
341

Hi Experts,

I need to show current system date among the string of hard coded elements in XML editor (tcode STRAN) as can be seen below(highlighted): The date should be replaced for 'creationdate' field.

Can i have something like sy-datum kind of

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
281

A transformation can't get directly ABAP system variables (like SY-DATUM or SY-DATLO for today date).

Two ways to get data from outside:

  1. A transformation declares parameters which you can fill from ABAP in CALL TRANSFORMATION ... SOURCE (roots) or PARAMETERS. In your case, you currently have only one which is REQUESTFILE, which you probably don't want to change (?) so you may add another parameter.
  2. Using an explicit ABAP call tt:call-method directly from your ST transformation (SAP language "Simple Transformation").

0 Kudos
281

Can you help me by elaborating more on #2?

0 Kudos
281

I guess you have read tt:call-method and practiced the examples. What is your question?