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
503

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
Developer Advocate
Developer Advocate
0 Likes
484

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

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

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
485

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
484

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

0 Likes
484

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