Application Development and Automation 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: 
Read only

Data not getting updated in UPDATE TASK

rohit_trivedi
Product and Topic Expert
Product and Topic Expert
0 Likes
302

Hi,

I've a function mode defined as 'Update module' to start immediatly.


FUNCTION /SAPSLL/SPLAUDR_DB_DI_SAVE.
*"----------------------------------------------------------------------
*"*"Verbuchungsfunktionsbaustein:
*"
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(IT_SPLAUDR) TYPE  /SAPSLL/SPLAUDR_T
*"  EXCEPTIONS
*"      ERROR_WHILE_INSERT
*"----------------------------------------------------------------------

  IF NOT ( it_splaudr[] IS INITIAL ).
    INSERT /sapsll/splaudr FROM TABLE it_splaudr.
    IF sy-subrc <> 0.
      RAISE error_while_insert.
    ENDIF.
  ENDIF.



ENDFUNCTION.

Its being called inside a FM. I checked in debugging and the internal table lt_splaudr[] has records:


         CALL FUNCTION '/SAPSLL/SPLAUDR_DB_DI_SAVE' IN UPDATE TASK
            EXPORTING
              it_splaudk         = lt_splaudr[]
            EXCEPTIONS
              error_while_insert = 1
              OTHERS             = 2.

-


While doing debuggin for update task, there are no records passed to FM i.e. table it_splaudr is empty.

Let me know if i'm missing something here.

Regards

Rohit.

1 REPLY 1
Read only

rohit_trivedi
Product and Topic Expert
Product and Topic Expert
0 Likes
273

solved