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

error message field itab unknown

Former Member
0 Likes
1,160

Hi,

I get error message field itab unknown

CALL TRANSACTION 'SE38' USING ITAB MODE 'N'

MESSAGES INTO ITAB.

regards

sas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

Hi,

CALL TRANSACTION 'SE38' USING ITAB MODE 'N'

MESSAGES INTO ITAB.

In the above sentence, the 1st ITAB should be of type BDCDATA. Moreover, you cannot use the same internal table for the MESSAGES also. Declare a different internal table (say messtab) and it should be of type BDCMSGCOLL.

Hence, the correct coding sentence would be:

DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE,

messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.

CALL TRANSACTION 'SE38' USING bdcdata MODE 'N'

MESSAGES INTO messtab.

Here, I have used BDCDATA as the BDC internal table instead of ITAB because the name ITAB is generally used to

retrieve data from the Standard or Custom tables.

Award points if it is useful.

Regards,

Nadim

4 REPLIES 4
Read only

Former Member
0 Likes
741

Hi,

Have you decleared ITAB?

tHANKS

Vikrant

Read only

Former Member
0 Likes
742

Hi,

CALL TRANSACTION 'SE38' USING ITAB MODE 'N'

MESSAGES INTO ITAB.

In the above sentence, the 1st ITAB should be of type BDCDATA. Moreover, you cannot use the same internal table for the MESSAGES also. Declare a different internal table (say messtab) and it should be of type BDCMSGCOLL.

Hence, the correct coding sentence would be:

DATA: bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE,

messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.

CALL TRANSACTION 'SE38' USING bdcdata MODE 'N'

MESSAGES INTO messtab.

Here, I have used BDCDATA as the BDC internal table instead of ITAB because the name ITAB is generally used to

retrieve data from the Standard or Custom tables.

Award points if it is useful.

Regards,

Nadim

Read only

Clemenss
Active Contributor
0 Likes
741

Hi Ilhan,

try this, it will solve your problem and give you what you need.:


*----------------------------------------------------------------------
*       FORM  EDITOR
*----------------------------------------------------------------------
FORM EDITOR.

  DATA VL_DISPLAY.

  VG_REPORT_LINE = VG_REPORT_LINE / 10.

  IF SY-UCOMM = 'EDI'.
    VL_DISPLAY = ' '.
  ELSE.
    VL_DISPLAY = 'X'.
  ENDIF.

  CALL FUNCTION 'EDITOR_PROGRAM'
       EXPORTING
            DISPLAY = VL_DISPLAY
            PROGRAM = TRDIR-NAME
            LINE    = VG_REPORT_LINE.

ENDFORM.

Regards,

Clemens

Read only

Former Member
0 Likes
741

hi check this..

the itab contails the screen name ..

PROGRAM

DYNPRO

DYNBEGIN

FNAM

FVAL