‎2008 Jan 24 5:52 AM
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.
‎2008 Jan 24 5:58 AM
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&
‎2008 Jan 24 6:03 AM
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
‎2008 Jan 24 6:06 AM
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
‎2008 Jan 24 6:09 AM
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.