Skip to Content
0
Former Member
Dec 11, 2006 at 07:44 AM

about comma display

51 Views

Hi,

I have a question about sap scripts.

There're three fields in the form,devided with comma.

for example:

Location:&street&,&city&,&state&

but not every fields always have data, when &street& and &city& are empty,&state& = 'USA',result will be like this:

Location:,,USA

I want to hide the first two commas,how to deal with it.

a solution is:

If &street& = ' '

Location:&city&,&state&

endif

.

.

.

but if like that ,I must write many 'if' to shown different situation.A little prolixity.

Do you have some simple methods?

Message was edited by:

yang zou