‎2008 Jun 14 10:49 AM
Hi,
I get error message field itab unknown
CALL TRANSACTION 'SE38' USING ITAB MODE 'N'
MESSAGES INTO ITAB.
regards
sas
‎2008 Jun 14 11:17 AM
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
‎2008 Jun 14 10:52 AM
‎2008 Jun 14 11:17 AM
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
‎2008 Jun 14 11:39 AM
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
‎2008 Jun 14 11:56 AM
hi check this..
the itab contails the screen name ..
PROGRAM
DYNPRO
DYNBEGIN
FNAM
FVAL