‎2010 Jun 01 9:48 AM
Hi Folks,
Presently in my smartforms in the mail window Item text is getting displsyed as per the logic below:
Command LOGIC
IL &VBDPL-POSNR(6)&,,&VBDPL-MATNR(18)&,,&VBDPL-LFIMG(I13)& &VBDPL-VRKME&
GL &VBDPL-NTGEW(I13)&&VBDPL-GEWEI&
Now I have the requirement where on the basis of below logic I need to have the display only POSNR (Item text) not the handling unit details (starting from 9000001). I am putting the logic as:
command LOGIC
/: IF &ZBUKRS& EQ '3219' AND &VBDKL-KUNWE& EQ '0040000315'.
/: IF &VBDPL-POSNR(6)& LT 900001 AND &VBDKL-VSTEL& EQ 'NR11'.
IL &VBDPL-POSNR(6)&,,&VBDPL-MATNR(18)&,,&VBDPL-LFIMG(I13)& &VBDPL-VRKME&
GL &VBDPL-NTGEW(I13)&&VBDPL-GEWEI&
/: ELSE
IL &VBDPL-POSNR(6)&,,&VBDPL-MATNR(18)&,,&VBDPL-LFIMG(I13)& &VBDPL-VRKME&
GL &VBDPL-NTGEW(I13)&&VBDPL-GEWEI&
/: ENDIF.
But it seems not working. Please suggest...
‎2010 Jun 01 9:57 AM
Hi,
You seem to be mixing Smartform and SAPscript technology.
You need to use either an Alternative node or the Conditions tab on a text element. Putting the IF statement in the text element in Smartforms will not work.
You may also want to consider a Table node rather than using the SAPscript technique of tabs.
Regards,
Nick
P.S. There is a forum for Form Printing, this question does not belong in ABAP General
‎2011 Jan 07 1:48 PM