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

Alignment problem in smartforms.

ashish_shah5
Participant
0 Likes
895

Hi,

I am getting the values of ECS, ECESS, SECESS, VAT etc. My requirement is If my ECS value is not there then it should be print next value.

Eg. I am printing

ECS - value 4

ECESS - value 1

SECESS -

VAT -

Discount - 10

In above case SECESS / VAT value is zero, In I/P to be print

ECS - value 4

ECESS - value 1

Discount - 10

Is it possible in Smartform??

If yes then please provide me the solution.

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
796

Hi,

In the text window you have a condition tab.

TEXTWINDOW -> CONDITIONS TAB

Give the condition saying

VAT <> ' '

while it is printing it will first check the condition and then print so that you'll get the exact value as you need.

If VAT is empty it will print the next item .

Thanks&Regards

Sarves

6 REPLIES 6
Read only

Former Member
0 Likes
796

hi,

yes it is possible ...

put a condition if value is not initial then print else dont.

thanks,

Read only

Former Member
0 Likes
797

Hi,

In the text window you have a condition tab.

TEXTWINDOW -> CONDITIONS TAB

Give the condition saying

VAT <> ' '

while it is printing it will first check the condition and then print so that you'll get the exact value as you need.

If VAT is empty it will print the next item .

Thanks&Regards

Sarves

Read only

0 Likes
796

thx for everone.

I used condition but it is leaving blank space.

I dont want to leave a blank space.

Regards,

Read only

0 Likes
796

Hi,

For this you need to take all the values

text 1
ECS - value 4 In the same text window condition tab give the condition not initial.
text 2
ECESS - value 1
text 3
SECESS -
text 4
VAT -
text 5
Discount - 10

you need to even give the constant value also in the same window, if not it will print the you the heading that is VAT and leaves the value as space.

Just check whether you have given the heading and the corresponding value in the same text window

Check these snapshots: [ConditionTab|https://wiki.sdn.sap.com/wiki/download/attachments/1710/untitled1.PNG]

[TextWindow|https://wiki.sdn.sap.com/wiki/download/attachments/1710/untitled.PNG]

Data i'm sending into the table

[Data to internal table|https://wiki.sdn.sap.com/wiki/download/attachments/1710/data.PNG]

Thanks&Regards

Sarves

Read only

RaymondGiuseppi
Active Contributor
0 Likes
796

Yes, you can put conditions in smartforms (look at sap documentation for [Determining Output Conditions|http://help.sap.com/saphelp_nw70/helpdata/EN/fa/0c1456d30111d3b568006094192fe3/frameset.htm])

Regards,

Raymond

Read only

Former Member
0 Likes
796

Hi Ashish,

It is possible in smartform.

Whatever tax element is there just put the condition value <> 0 in the conditions tab of text node.