Skip to Content

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

APPEND command error

Hi All,

I am facing a strange situation where in the APPEND command work fine where I run my Interface in foreground but when I run the interface in background mode it doesnt APPEND the values to the select options.

I have coded the below code in INITIALIZATION.

                FROM ztsifoutdet
                INTO  gv_temp_nr
                WHERE sys_id EQ p_sysid.                    

  SELECT SINGLE run_date
                FROM ztsifoutdet
                INTO  gv_date
                WHERE sys_id EQ p_sysid
                AND run_nr EQ gv_temp_nr.     
  gv_temp_nr = gv_temp_nr + c_1.

  CLEAR s_bdter.
  s_bdter-sign = 'I'.
  s_bdter-option = 'BT'.
  s_bdter-low = gv_date.
  s_bdter-high = sy-datum.
  APPEND s_bdter.

Here the APPEND statement doesnt append values to S_BDTER when ran in background. ITs quite strange.

Please reply.



Former Member

As far as I know, INITIALIZATION is processed before values from selection variants are pulled in. Check that the variant that you use for processing the program in background contains the desired values.

Alternatively try filling the values in event AT SELECTION-SCREEN OUTPUT.


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