cancel
Showing results for 
Search instead for 
Did you mean: 

Space in include text in smartforms

former_member208197
Participant
0 Kudos

Dear Experts,

In smartforms and in include texts , i have 3 words like below,

Telephone number : 989898

fax number : 78787

mail id :uwieuw@mail.com

Now,if fax number is initial ,how do i club telephone number and fax number, i mean like below

Telephone number : 989898

mail id :uwieuw@mail.com

Thanks advance,

Kartheek.

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

Just add a check in Conditions tab of each text element node. in node with &VALUE& field add a check VALUE is not initial (not equal space or zero depending on data type)

Regards,

Raymond

former_member208197
Participant
0 Kudos

Thanks a lot both for the quick answers , but can you please let me know what i need to do in the below case.

&G_TELE1&

&G_FAX1&

&GV_MAIL&

I have declared everything in a single include text.

Thanks,

Kartheek.

UweFetzer_se38
Active Contributor
0 Kudos

Split the include in separate texts (recommended) or:

*     &G_TELE1&
/:    IF &G_FAX1& <> ''
*     &G_FAX1&
/:    END
*     &GV_MAIL&

(please see docu)

raymond_giuseppi
Active Contributor
0 Kudos

Break your text node into 3 distinct nodes.

Regards,

Raymond

NB: Uwe, the title of the question ask for Smartforms, not Sap Script

UweFetzer_se38
Active Contributor
0 Kudos

uups, nevermind, you are right

Former Member
0 Kudos

Hi,

In condition tab, put the below condition:

&G_FAX1& # ' '  or '0' (depends on the data type of the G_FAX variable).

Hope this will help.

Regards,

Vijay.

Answers (1)

Answers (1)

UweFetzer_se38
Active Contributor
0 Kudos

You can use

  • SAPscript control commands ("/:" in format line) for the conditional output of the fax number
  • the flow logic "Alternative" in smartforms
  • (Edit: in this simple case -> use the solution mentioned below)