Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Conditions on SAP scripts

Former Member
0 Likes
609

Hallo all,

Can any one tell me how to write conditions on windows to print data which is existing in internal table.

Regards,

Lisa

1 ACCEPTED SOLUTION
Read only

RichHeilman
Product and Topic Expert
Product and Topic Expert
0 Likes
590

Do you mean using IF statements? If so, you can use them like this.

/:  IF &FIELD& = 'X'
AS  Document Date,, &DOC_DATE&
/:  ENDIF

Regards,

Rich Heilman

Hallo all,

Can any one tell me how to write conditions on windows to print data which is existing in internal table.

Regards,

Lisa

3 REPLIES 3
Read only

RichHeilman
Product and Topic Expert
Product and Topic Expert
0 Likes
591

Do you mean using IF statements? If so, you can use them like this.

/:  IF &FIELD& = 'X'
AS  Document Date,, &DOC_DATE&
/:  ENDIF

Regards,

Rich Heilman

Read only

0 Likes
590

Hi rich,

I am beginner for sap scripts so i dont have idea how to put conditions there.is there any material available.

Regards,

Lisa

Read only

RichHeilman
Product and Topic Expert
Product and Topic Expert
0 Likes
590

When you are saying conditions, you are referring to an IF statement, right?

Here is some light reading material about sapscript.

http://help.sap.com/saphelp_46c/helpdata/en/d6/0db303494511d182b70000e829fbfe/frameset.htm

Regards,

Rich Heilman