cancel
Showing results for 
Search instead for 
Did you mean: 

stuck in condition

Former Member
0 Kudos

Hi experts,

ORDER/CONTRACT No. &aubel& / &aubel1& / &aubel2& / &aubel3&. 

this is my statement in a text in smartform. I want if first aubel is there there no hash should come, if aubel 1 is there then only hash should come and so on. I am not able to do. How to remove that particular hash?

Accepted Solutions (0)

Answers (2)

Answers (2)

vinoth_aruldass
Contributor
0 Kudos

hi,

you can write the condition like each and every line .

ORder/ Contact No &aubel&

if &aubel1& is not initial.

/ &aubel1&

endif.

if &aubel2& is not initial.

/ &aubel2&

endif.

if &aubel3& is not initial.

/ &aubel3&

endif.

you can acheive your requirement by the above lines .

but since all must be in the same line (use the classical editior to acheieve this)

hope it helps,

Vinoth.

Former Member
0 Kudos

The output is fine but the hash is coming. I want to remove the hash only. if only aubel1 is there 3 hashes are coming.

vinoth_aruldass
Contributor
0 Kudos

hi ,

the above code clearly explains if variable is there hash and value will come.

try that ,

ex .. if aubel1 is there / aubel1 will display.

Former Member
0 Kudos

Its not working. if i write

if &aubel1& is not initial.

/ &aubel1&

output - if 474 is not initial.

if i write

if aubel1 is not initial.

/ &aubel1&

output - if aubel is not initial.

and I wrote these in text in smartform. It changed my alignment as well

Former Member
0 Kudos

Hi Experts,

Please guide.

Rushikesh_Yeole
Contributor
0 Kudos

Take above value in variable in code lines.

Then check the last character in field and remove hash [Shift by 1 character]

e.g 10/20/30

Former Member
0 Kudos

can you pls elaborate.