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

Smartforms

Former Member
0 Likes
462

Hi friends,

In smartforms, text editor i have text follwed by fields

like Vendor : &wa_likp-lifnr& PoNo : &ekpo-ebeln&

in the same line.

if the vendor No. is not available the PO Number is comes near to vendor. But i want to be in the same place where i write in text editor.

4 REPLIES 4
Read only

Former Member
0 Likes
437

Hi,

If no data exist, it will automatically condense the data and displays.

so try like this.

concatenate all these values into a string and display.

concatenation means dont use concatenate statement.

assign directly to field.

Ex:

Data: l_f_string type char30.

l_f_string = wa_likp-lifnr. (if lifnr is 10 digits)

l_f_string+10(10) = 'PoNo : '.

l_f_string+20(10) = ekpo-ebeln.

display l_f_string n the text editor as &l_f_string&

Read only

Former Member
0 Likes
437

Hi,

Use if statement like

if &wa_likp-lifnr& is initial.

Vendor : space(15) PoNo : &ekpo-ebeln&

else.

Vendor : &wa_likp-lifnr& PoNo : &ekpo-ebeln&

endif

reward me if useful.

L.Velu

Read only

Former Member
0 Likes
437

Hi,

You can use a template with 4 defined cells. The first and third cell can have the display text and second and fourth cell can contain the values.

This way the display text will be placed at the same position irrespective of the data values.

Hope this helps.

Reward points if helpful.

Shyam

Read only

Former Member
0 Likes
437

Hi...

Try to do this using Table painter. So, that you dont get such problems.In the table, you take 2 cells.In that cells give your field names as Text.

Select the table frame, which doesnt give border lines.

So that your rwquirement will be fulfilled.

I hope you understood.

Regards

Sandeep.