smartforms-table use
SMART FORMS :
T.CODE: SMART FORMS
first create structure and table type
t.code: se11
structure: zmara_sl
table type:zmara_st
t.code: smartforms
form name is zcontrol_break
declare interface and global definition
logo upload

create table:
input parameter = sl
output parameters: sl
save and active
go to t.code : se 38
*&---------------------------------------------------------------------*
*& Report ZSMA_SMAPL
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZSMA_SMAPL.
TABLES: MARA.
DATA: IT_MAT TYPE ZMARA_ST,
WA_MAT TYPE ZMARA_SL.
SELECT-OPTIONS: S_MATNR FOR WA_MAT-MATNR.
SELECT MATNR
MBRSH
MTART
MEINS
FROM MARA
INTO TABLE IT_MAT
WHERE MATNR IN S_MATNR.
CALL FUNCTION '/1BCDWB/SF00000219'
* EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
IT_MAT = IT_MAT
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
* OTHERS = 5
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
save and activate and execute

give print preview:
Comments
Post a Comment