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

Query on the changes in Smartforms

Former Member
0 Likes
408

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...

2 REPLIES 2
Read only

Former Member
0 Likes
358

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

Read only

0 Likes
358

This message was moderated.