Skip to Content
0
Former Member
Jun 15, 2006 at 03:24 PM

Save batch data to see it in sm35

44 Views

I want to save at runtime an internal table so I can see it in SM35 transaction...

REPORT zjmprueba MESSAGE-ID 56.

START-OF-SELECTION.

DATA: ibdc TYPE STANDARD TABLE OF bdcdata

WITH HEADER LINE.

CLEAR ibdc.

ibdc-program = 'ZPSPNM009'.

ibdc-dynpro = '100'.

ibdc-dynbegin = 'X'.

APPEND ibdc.

CALL FUNCTION 'BDC_OBJECT_CREATE'

EXPORTING

name = 'zpruebadata'

  • CLIENT = SY-MANDT

  • DATATYPE = '%BDC'

  • USER = SY-UNAME

  • HOLDDATE = ' '

  • KEEP = ' '

  • IMPORTING

  • KEY =

tables

dynprotab = ibdc

EXCEPTIONS

SYSTEM_FAILURE = 1

OTHERS = 2

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

It doesn't work and it doesn't send any message. Anyone has made something like this?