1

Im trying to change some texts in SO10. I´d like to check a variable and (depending on the result) would like to use different lines of the text. Is it possible to use:

/: IF &variable& is initial.

** Text1

/: ELSE.

** Text2

/: ENDIF.

in SO10-texts? The Variable contains the users mobile number but isn´t filled for all users.

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
mxstml
  • 95
  • 2
  • 7
  • This should answer your question: [Reference documentation for IF in SAPscript](https://help.sap.com/viewer/59204ae5e0d745628df068a6ec7591b0/7.5.5/en-US/4e3407f763de02c2e10000000a15822b.html) – Sandra Rossi Dec 04 '18 at 08:22
  • Thanks. That helped for another problem i tried to solve, but im unable to check the value of my variable, if it isn´t filled. Thats what i was trying to do with the "is initial" statement. I´ve tried IF &VARIABLE& GT '0'. but the line of text was still printed. – mxstml Dec 04 '18 at 10:00
  • I was able to solve the problem by "escaping" the part of text i wanted to hide. By setting '& text 'VARIABLE& the part of the text is only displayed, if the variable is filled. I found this in another text a former colleague created. – mxstml Dec 04 '18 at 10:08

1 Answers1

0

I was able to solve the problem by "escaping" the part of text i wanted to hide. By setting '& text 'VARIABLE& the part of the text is only displayed, if the variable is filled.

mxstml
  • 95
  • 2
  • 7