`
jgtang82
  • 浏览: 395720 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Creating a SAP shortcut for any transaction and sending it by mail

    博客分类:
  • ABAP
 
阅读更多

Refer to SAP wiki: http://wiki.sdn.sap.com/wiki/display/Snippets/Creating+a+SAP+shortcut+for+any+transaction+and+sending+it+by+mail

 

Key Points:

1. Create the shortcut content for the required transaction
  CALL FUNCTION 'SWN_CREATE_SHORTCUT'
    EXPORTING
      i_transaction           = transaction
      i_parameter             = parameter
      i_sysid                 = sy-sysid
      i_client                = sy-mandt
      i_user                  = recipient_user_id
      i_language              = sy-langu
      i_windowsize            = 'Normal window'
    IMPORTING
      shortcut_string         = content
    EXCEPTIONS
      inconsistent_parameters = 1
      OTHERS                  = 2.

 

2. Sending the document to recipients with the shortcut attachment
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
  EXPORTING
    document_data              = doc_chng
    put_in_outbox              = 'X'
    commit_work                = 'X'
  TABLES
    packing_list               = it_objpack
    contents_bin               = it_objbin
    contents_txt               = it_objtxt
    receivers                  = it_reclist
  EXCEPTIONS
    too_many_receivers         = 1
    document_not_sent          = 2
    operation_no_authorization = 4
    OTHERS                     = 99.

 

Shortcut Example.

[System]
Name=QA1
Description=
Client=800
[User]
Name=
Language=EN
[Function]
Title=
Command=ZAPR
Type=Transaction
[Configuration]
GuiSize=Maximized
[Options]
Reuse=1

分享到:
评论

相关推荐

    SAP Shortcut_Keys.pdf

    SAP SCM

    excel shortcut keys and tips

    excel shortcut keys and tips

    Postman Desktop shortcut for Ubuntu 18

    Postman Desktop shortcut for Ubuntu 18, Postman version: Postman-linux-x64-7.0.7. To install, download Postman linux x64 7.0.7, modify the PATH_TO to Postman folder, copy the postman.desktop to /usr/...

    PowerCommands for Visual Studio 2008

    It is useful, for example, in removing or organizing the using statements generated by a wizard. This command can be executed from a solution node or a single project node. Extract Constant This ...

    Shortcut

    Shortcut

    ShortCut.exe_命令行创建快捷方式

    用过别人写的,总觉得不顺手(并非写得不好),所以自写一个。ShortCut.exe_命令行创建快捷方式...shortcut D:\Tencent\QQ\Bin\QQ.exe /a -win /d QQ /s 3 /h ctrl+F5 /i C:\WINDOWS\system32\shell32.dll,13 /ld c.lnk

    C.Programming.Step.By.Step.Beginners.To.Experts.Edition.B011EXMV7Q

    It start right now and by the time you finish and implement the steps here, you will have learned everything there is to know in less than a day! Steps covered to become proficient in C Programming ...

    The Haskell Road to Logic, Maths and Programming. Second Edition(英文第二版)

    Long ago, when Alexander the Great asked the mathematician Menaechmus for a crash course in geometry, he got the famous reply ``There is no royal road to mathematics.’’ Where there was no shortcut ...

    Excel.2013.Working.with.Data.Ranges.and.Tables

    identify multiple ways to define an Excel table using buttons on the HOME and INSERT tabs, the Quick Analysis feature, a keyboard shortcut and by formatting a data range as a table, and recognize ways...

    Visual Basic 6 Shortcut and Hotkeys

    Microsoft Visual Basic 6.0 IDE Shortcut and Hotkeys

    EasyNSE 0.2

    EasyNSE is a component package for Delphi 5-7 (BCB 5-6 coming soon) that takes the difficulty out of writing code to interact with Windows Explorer and the Shell.There are two basic levels of ...

    Shortcut.exe 命令行创建快捷方式1.0

    shortcut AppFile [/a Arguments] [/h HotKey] [/s ShowCmd] [/d Description][/i IconPath,IconIndex] [/l|/ld|/ll|/ls LinkFile] AppFile 你希望创建快捷方式的文件名。 /a 可选参数—用于执行文件名的额外辅助...

    [Google Glass] Google Glass 编程 (英文版)

    This is the book to read for a shortcut to this brave new world. ☆ 出版信息:☆ [作者信息] Eric Redmond [出版机构] Pragmatic Bookshelf [出版日期] 2013年12月23日 [图书页数] 136页 [图书语言] ...

    Folder2MyPC

    By help of this utility you can add any folders and programs in " My computer " and "Control panel" The basic opportunities: - Addition / change / removal of any folder and programs in a folder "My ...

    shortcut

    它可以给你方便的操作,可以帮你简化一些 不必要的操作。在第一功能项中,有简化的系统操作; 在第二功能项中,有你需要的快捷工具,相信对你会 有帮助的。

    markup+and+send.shortcut

    markup+and+send.shortcut

    ShortCut.exe_命令行创建快捷方式(2012.01.10默认位置修正)

    shortcut D:\Tencent\QQ\Bin\QQ.exe /a -win /d QQ /s 3 /h ctrl+F5 /i C:\WINDOWS\system32\shell32.dll,13 /ld c.lnk PS:此次主要修正桌面及开始菜单默认位置(此为程序编写时偷懒遗留问题,没能及时上传),感谢...

    shortcut tag

    just a try, a shortcut for ultriudit, nothing else

    VB编程资源大全(英文源码 控件)

    For creating new icons or editing existing ones, with color palettes(one for 16x16 icons specifically), a color mixer, a panel for lining up icons for edit, icon new/open/save functions, flip/rotate/...

    Bookmarks Shortcut for Google Chrome:trade_mark:-crx插件

    有关书签的一些信息:•键盘快捷方式◦显示/隐藏书签栏a。 Windows:Ctr + Shift + B b。 Mac :: + Shift + B◦显示书签管理器a。 Windows:Ctr + Shift + O b。 Mac:⌘+ Option + B◦在此页面上添加书签。 ...

Global site tag (gtag.js) - Google Analytics