Skip to Content

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

DATASET

form dataset .

DATA:
  P_FILE(2000) TYPE C VALUE 'C:AJAY.TXT'.

 
OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE.
*--- Display error messages if any.
IF sy-subrc NE 0.
MESSAGE e001(YABC).
EXIT.
ELSE.
*---Data is downloaded to the application server file path
LOOP AT itab2.
TRANSFER itab2 TO P_FILE.
ENDLOOP.
ENDIF.

*Close the Application server file (Mandatory).
CLOSE DATASET P_FILE.

Here in this code neither the text file is getting created nor any record is getting transferred.Plz suggest,it,s urgent.Point will be given undoubtedly.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question