cancel
Showing results for 
Search instead for 
Did you mean: 

sap script display of the delivery date

Former Member
0 Kudos

hi all,

i am using the code,

/: IF &VBDKA-DATBEZ& NE &SPACE&

IL DELIVERY DATE IS &'&VBDKA-DATBEZ& 'VBDKA-LFDAT&

/: ELSE.

/: &VBDKA-LFDAT&

/: ENDIF

IL Delivery date is &VBDPA-DATBEZ(C)& &VBDPA-LFDAT&

and there is value in field &VBDKA-DATBEZ& while debugging.

but its not coming in script form,m beginer please help me

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pawan,

Please check the size of the window. If too small, the value will nto be displayed even if the variable has a value. So, increase the window size.

Please re move the && sign.

Correct is this:

/: IF &VBDKA-DATBEZ& NE &SPACE&

IL DELIVERY DATE IS &VBDKA-DATBEZ& & VBDKA-LFDAT&

/: ELSE.

/: &VBDKA-LFDAT&

/: ENDIF

IL Delivery date is &VBDPA-DATBEZ(C)& &VBDPA-LFDAT&

Moderator message: Text deleted. Do not request points it is against forum rules

Blacky.

Former Member
0 Kudos

hi , still that is not coming, and more thing i observed that " * " is coming before " if " statement

as given below,

  • /: IF &VBDKA-DATBEZ& NE &SPACE&

IL DELIVERY DATE IS &'&VBDKA-DATBEZ& 'VBDKA-LFDAT&

/: ELSE.

/: &VBDKA-LFDAT&

/: ENDIF

IL Delivery date is &VBDPA-DATBEZ(C)& &VBDPA-LFDAT&

Answers (3)

Answers (3)

Former Member
0 Kudos

hay,

r u able to see the text DELIVERY DATE IS on ur display...?

inspite of &SAPCE& try to use ' '.

Former Member
0 Kudos

HI,

In your code you are trying to compare variable with &SPACE&. Space is a constant you needn't compare like a variable like &SPACE& you can directly compare with SPACE. May be this might be the problem for not executing that if command please check this once.

Hope this will give you some idea,

Regards,

Aswini.

Former Member
0 Kudos

Hi

Use following lines of code -

/: IF &VBDKA-DATBEZ& NE SPACE

IL &'DELIVERY DATE IS ' VBDKA-DATBEZ& &VBDKA-LFDAT&

/: ELSE.

/: &VBDKA-LFDAT&

/: ENDIF

IL Delivery date is &VBDPA-DATBEZ(C)& &VBDPA-LFDAT&

Regards

Harshada

Former Member
0 Kudos

Hi

Use following code

/: IF &VBDKA-DATBEZ& NE ' '

IL Delivery date is &VBDKA-DATBEZ& &VBDKA-LFDAT&

/: ELSE.

/: &VBDKA-LFDAT&

/: ENDIF

IL Delivery date is &VBDPA-DATBEZ(C)& &VBDPA-LFDAT&

Rewards if helpful

Thanks / regards

Manjula