1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

(初)第七弾 ABAPー訓練「帳票」

Last updated at Posted at 2018-11-02

:writing_hand_tone1:第六弾
:writing_hand_tone1:SAP 訓練目次

Smartforms Tutorials
#1.SmartForms
##1.1Tr-Cd:SMARTFORMS
##1.2実装順序

  • スタイル〔書式設定〕⇒フォーム〔スタイル依頼〕⇒FORMID生成
  • レポート(Tr-Cd:SE38)

#2.業務ニーズ

  • 選択画面には学生番号を入力条件としてする
  • 学生毎に試験項目のポイントをリストする

#3.実装


* 制御構造
  DATA:
    LW_CONTROL_PARAMETERS     TYPE SSFCTRLOP.
* ①仮にフォーム〔ZSDFF0001〕のFORMID←汎用モジュール名〔/IBCDWB/SF00000001〕
* ②SmartformIDの取得
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME           = I_FORMNME   "フォーム名
    IMPORTING
      FM_NAME            = O_NAME      "SmartformID
    EXCEPTIONS
      NO_FORM            = 1
      NO_FUNCTION_MODULE = 2
      OTHERS             = 3.

* ③汎用モジュール名〔/IBCDWB/SF00000001〕をコールする
  CALL FUNCTION '/IBCDWB/SF00000001'
    EXPORTING
      CONTROL_PARAMETERS = I_CONTROL_PARAMETERS
      OUTPUT_OPTONS      = I_OUTPUT_OPTONS
      USER_SETTINGS      = CNS_FLG_OFF
    TABLES
      TD_DATA            = I_TBL
    EXCEPTIONS
      FORMATING_ERROR    = 1
      INTERNAL_ERROR     = 2
      SEND_ERROR         = 3
      USER_CANCELED      = 4
      OTHERS             = 5.
  IF SY-SUBRC <>0
  AND SY-SUBRC <> 4.
* 該当処理
  ENDIF.

#3.サンプル

Smartforms Tutorials

:writing_hand_tone1:第八弾
:writing_hand_tone1:SAP 訓練目次

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?