on 11-07-2006 1:51 PM
Hi All!
I want to write the next code in a SAPScript form and I receive the marked error.
/: IF ((&MSEG-XAUTO& NE 'X' AND &MSEG-BWART NE '309') OR
<b>AND, OR or end of condition expected </b>
= (&MSEG-XAUTO& EQ 'X' AND &MSEG-BWART EQ '309')) .
The tag column is the error?
Thank you for your answer.
Best regards,
Florina
Hi
/: IF ((&MSEG-XAUTO& NE 'X' AND &MSEG-BWART NE '309') OR
= (&MSEG-XAUTO& EQ 'X' AND &MSEG-BWART EQ '309')) .
Here u r keeping = ( extended line ) but it will not work if u r using IF statement.
Do like this , it solves u r problem
in menu bar of text elements click EDIT -> page left/right there u write this
(&MSEG-XAUTO& EQ 'X' AND &MSEG-BWART EQ '309')) .
then it will work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Still the control is not going inside the IF condition after changing the same.
find the below source code after correction.
Also i changed the L_CTR1 data type to N.
IF &L_CTR1& > 5 AND &L_CTR1& <= 10.
BOX XPOS '0' CM YPOS '8' LN WIDTH '1' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '1' CM YPOS '8' LN WIDTH '0.5' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '1.5' CM YPOS '8' LN WIDTH '2' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '3.5' CM YPOS '8' LN WIDTH '4.5' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '8' CM YPOS '8' LN WIDTH '1' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '9' CM YPOS '8' LN WIDTH '0.5' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '9.5' CM YPOS '8' LN WIDTH '2' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '11.5' CM YPOS '8' LN WIDTH '2' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '13.5' CM YPOS '8' LN WIDTH '3.5' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '17' CM YPOS '8' LN WIDTH '3' CM HEIGHT '10' LN FRAME 10 TW
BOX XPOS '20' CM YPOS '8' LN WIDTH '7' CM HEIGHT '10' LN FRAME 10 TW
,,Itm ,,PK,,Account,,Account Short text ,,BusA,,S,,Cost Ctr ,,Order,,
Assignment,,Amount,,Text
&SYST-ULINE(142)&
ENDIF.
Regards,
Satheesh
i think u forgot
/: endif.
santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Santosh.
I have the ENDIF. I copy all the code:
/: IF ((&MSEG-XAUTO& NE 'X' AND &MSEG-BWART NE '309') OR
= (&MSEG-XAUTO& EQ 'X' AND &MSEG-BWART EQ '309')) .
M
L &MSEG-MATNR&
M
L &MSEG-CHARG&
/: IF &MSEG-MATNR+4(7)& EQ '0000-00'.
M &EKPO-TXZ01& &MABDR-MAKTX(30)&
/: ELSE.
M &MABDR-MAKTX(30)&
/: ENDIF.
/* Boxã: &BOXA& / &GEST&
M
L &MSEG-LGORT&/&MABDR-LGPBE&
/*
/* &MABDR-LGPBE&
/: IF &MSEG-KDPOS& NE '000000'.
M &MSEG-KDAUF&/ &MSEG-KDPOS&
/: ENDIF.
/: IF &MSEG-LIFNR& EQ SPACE.
L &FURNIZOR&
/: ELSE.
M &mseg-lifnr&
/: ENDIF.
/* ECHIV.LA:
M &ECHIV&
/* &EINA-IDNLF&
/* &CODFRZ&
/: ENDIF.
Florina
Did you remove brackets ( ) from IF command also?
change the condition to:
/: IF &MSEG-XAUTO& NE 'X' AND &MSEG-BWART NE '309'
/: DEFINE &FLAG& = 'X'
/: ELSEIF &MSEG-XAUTO& EQ 'X' AND &MSEG-BWART EQ '309'
/: DEFINE &FLAG& = 'X'
/: ENDIF
/: IF &FLAG& = 'X'
..... Print the fields....
/: ENDIF
Regards
Sridhar
Message was edited by: Sridhar K
Sridhar,
I removed the brackets and the compilation of the texts and definitions for my form was executed successfully. The form is activated. But, when I want to print preview the form for a transfer with movement type 309, the pages are white...
May be that the records automatically generated in MSEG (XAUTO='X') can not be printed?
Florina
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.