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

check initial in SAPscript

Former Member
0 Likes
4,077

Hi,

IS it possible to check if the value is initial in SAPscript?

Regards

Gunjan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,518

Yes u can check like this.

IF &FILED& EQ ' '.
ENDIF.

Vasanth

3 REPLIES 3
Read only

Former Member
0 Likes
1,519

Yes u can check like this.

IF &FILED& EQ ' '.
ENDIF.

Vasanth

Read only

Former Member
0 Likes
1,518

Hi,

You cannot use IS INITIAL option..instead you have to check if the value = ' ' for character data type and change it according to the data type.

Otherwise..create a dummy variable of that data type in the print program..And then use that in your sapscript..

Ex..

<b>Print program.</b>

DATA: v_quan TYPE MENGE_D.

<b>Sap script</b>

/: IF &EKPO-MENGE& = &V_QUAN&

P1 <b>Initial</b>

/: ELSE.

P1 <b>Not initial</b>

/: ENDIF.

Thanks,

Naren

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,518

Sure, something like this.

/: IF &SOME_FIELD& = ' '.

/: ENDIF.

Regards,

RIch Heilman