Hello Experts,
I'm trying to extract BSEG Entries into a Txt File in Application Server.
Getting Dump at this place:
IF NOT <fs> IS INITIAL.
CONCATENATE xout <fs> INTO xoutSEPARATED BY space.
ENDIF.
Error Analysis:
In statement
"CONCATENATE"
the argument "<FS>" can only take a character-type data object.
In this case, the operand "<FS>" has the non-character type "P".
When I debugged & checked, the value of <fs> was 100.00.
Code :
FIELD-SYMBOLS: <fs>.
DATA:
xout TYPE string.
LOOP AT g_t_bseg INTO g_wa_bseg.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE g_wa_bseg TO <fs>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF sy-index = 1.
xout = <fs> .
ELSE.
IF NOT <fs> IS INITIAL.
CONCATENATE xout <fs> INTO xout
SEPARATED BY space. "cl_abap_char_utilities=>horizontal_tab.
ENDIF.
ENDIF.
ENDDO.
w_count = w_count + 1.
TRANSFER xout TO p_ofile.
ENDLOOP.
Please advise on this.
Thanks & Regards,
Sowmya