Skip to Content
0
Former Member
Jan 20, 2012 at 12:41 PM

how to concatenate in se38 and smartforms.

168 Views

hi experts

i m new in sap, so please help me out from my query regarding concatenate.

I have written code in se 38 by concatenating 2 fields and i am getting output . But now when i am using smartforms with se38, i am not getting output.

I think there is some problem in smartforms , because my code is correct.

so please provide me procedure for smartform.

MY GOAL is that-- i want 2 print output using smartforms and se 38.

this is my code.

TABLES: PAYR.

DATA: RESULT TYPE STRING..

DATA: GT TYPE STANDARD TABLE OF ZCONC,

WA TYPE ZCONC.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS: V_BUKRS TYPE PAYR-ZBUKR.

PARAMETERS: YEAR TYPE PAYR-GJAHR.

SELECTION-SCREEN END OF BLOCK B1.

START-OF-SELECTION.

SELECT ZNME1

CHECT

INTO CORRESPONDING FIELDS OF TABLE GT

FROM PAYR

WHERE PAYR~ZBUKR = V_BUKRS

AND PAYR~GJAHR = YEAR.

loop at gt into wa.

concatenate wa-znme1 wa-chect into result.

write: / result.

endloop.