Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with concatenate for an drop down input with search help

I have this drop down input field. My table has these columns : code, first name, last name and other not important.

I have a search help for code column that shows the first name.

I`ve been trying to make it to show the first name and last name both in one dropdown....but when I tried to add the last name in the search help it stopped working (the non recommended example from the link).

I also tried an select, loop at the itab and trying to concatenate those 2 columns in a new column of a second itab. It works but it shows only first name.

I`ve been using the recommended example for the drop down from here :

Let me know if you need to see the exact code I`m using.

Sure you guys can help me out....probably I`m missing something very simple.


Newbie Ilinca

Former Member
Former Member replied

I dont understand your logic in populating the contatenated value. The concatenated value is stored in ITAB_COD2-NUME but the ITAB_COD1 is appended ?

CONCATENATE itab_cod1-nume itab_cod1-prenume into itab_cod2-nume.
APPEND itab_cod1 to itab_cod2.   
* ?? itab_cod1-nume does not contain concatenated value 

Correct the Append and it should work.

APPEND itab_cod2.

Edited by: Suman Jagu on May 25, 2011 5:57 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question