cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with separated line in SAP Script

Former Member
0 Kudos

Dear Friends,

I am planning to print the separated line after each line in my scriptpage.

but after 7th record in first page the Uline should not come.

what i did is..I have taken a flag for 7th record and called that flag in my form window with page no.

But its not printing properly. still its printing the Uline.

The code is like this:

/: IF GV_FLAG = 'X' AND &PAGE& = '1'

/: ELSE

UN &sy-uline(151)&

/: ENDIF

could you pls suggest me how to do this?? is there any problem with my code?

Thanks,

Sridhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sridhar,

You shoub use & symbols before and after a field in the SAPSCRIPT.

[code]/: IF $GV_FLAG& = 'X' AND &PAGE& = '1'

/: ELSE

UN &sy-uline(151)&

/: ENDIF[/code]

Regards

Sudheer

Former Member
0 Kudos

Thanks Man....

I did a mistake..and ur help is solved my problem...

Thanks a lot for all ...

Thanks,

Sridhar

Answers (1)

Answers (1)

Former Member
0 Kudos

The code has to be:

/: IF <b>&GV_FLAG& </b>= 'X' AND &PAGE& = '1'

/: ELSE

UN &sy-uline(151)&

/: ENDIF

reward all helpful answers,

sai ramesh