Application Development 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: 

check field symbols plzzz

Former Member
0 Kudos

hiii i'm new to field symbol . can you pleaseee look at the code below and advise if it's ok after append do i need to unassign field symbol like when using work area i need to clear after every append

note: the i_data_file will be use elsewhere

refresh i_data_file.

LOOP AT i_file_upload ASSIGNING <fs_upfile>.

  • Retrieving the first row of the excel file

IF v_firstrow IS INITIAL.

v_firstrow = <fs_upfile>-row.

ENDIF.

  • Reset the values for the next row

  • and inserting each record in table

IF <fs_upfile>-row NE v_firstrow.

APPEND <fs_datafile> TO i_data_file.

v_firstrow = <fs_upfile>-row.

ENDIF.

CASE <fs_upfile>-col.

WHEN 1.

<fs_datafile>-werks = <fs_upfile>-value. "Plant

WHEN 2.

<fs_datafile>-matnr = <fs_upfile>-value. "Company code

WHEN 3.

<fs_datafile>-bwdat = <fs_upfile>-value. "Date

WHEN 4.

<fs_datafile>-losgr = <fs_upfile>-value. "Qty

WHEN 5.

<fs_datafile>-kst003 = <fs_upfile>-value. "Price total

WHEN 6.

<fs_datafile>-kstar = <fs_upfile>-value. "Cost element

WHEN OTHERS.

ENDCASE.

ENDLOOP.

  • Inserting the last record of the excel file

APPEND <fs_datafile> TO i_data_file.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

check this link which ll give you detail idea about the field symbol,

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm

thanks

mrutyun^

4 REPLIES 4

Former Member
0 Kudos

hi

good

check this link which ll give you detail idea about the field symbol,

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm

thanks

mrutyun^

0 Kudos

can i put a

CLEAR <FS_DATAFILE>

after append ???

0 Kudos

Hi,

Yes u can put CLEAR <FS_DATAFILE> after append.

Regards

Kannaiah.

Former Member
0 Kudos

thk a lot point awarded