`
jgtang82
  • 浏览: 405824 次
  • 性别: 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快捷键是SAP用户在使用SAP系统进行日常操作时,为了提高工作效率,通过键盘快速执行命令或访问功能的一组按键组合。与点击屏幕上的图标按钮不同,快捷键能够帮助用户在不离开键盘的情况下执行相应的操作。由于...

    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/...

    Shortcut for System VIew

    #### Ctrl and click the From and To tokens 连线 这是一种创建连接的方法。通过按住`Ctrl`键并点击“From”和“To”标记(通常指的是起点和终点),可以在两个元素之间建立连接。这种方法非常适合快速建立关系或...

    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.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

    shortcut

    "快捷方式"(Shortcut)是计算机操作系统中的一个重要概念,它为用户提供了一种简便的方法来访问常用的程序、文件或文件夹。在Windows系统中,快捷方式通常表现为一个小箭头标识的图标,用户可以通过创建快捷方式将...

    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 ...

    excel shortcut keys and tips

    - **插入函数参数名称和括号**:`Ctrl + Shift + A` —— 当输入有效的函数名后,自动插入参数名称和括号。 - **显示自动完成列表**:`Alt + Down Arrow` —— 显示可能的选项列表以供选择。 #### 数据格式化快捷键...

    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 ...

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

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

    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...

    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 ...

    [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页 [图书语言] ...

    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:此次主要修正桌面及开始菜单默认位置(此为程序编写时偷懒遗留问题,没能及时上传),感谢...

    Shortcutfix

    标题“Shortcutfix”指的是一个专为Windows 10设计的软件工具,其主要功能是处理快捷方式图标上的小箭头。在Windows系统中,快捷方式通常会显示一个小箭头来指示它并非实际的程序或文件,而只是一个指向其他位置的...

    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 ...

    markup+and+send.shortcut

    markup+and+send.shortcut

    Android中Shortcut的demo

    在Android系统中,快捷方式(Shortcut)是一种方便用户快速访问应用程序特定功能或活动的方式。它可以在主屏幕上显示,用户可以直接点击这些快捷方式来启动相应的功能,而无需打开整个应用。本教程将深入探讨如何在...

    103.深度卷积神经网络CNN中shortcut的使用 - 云+社区 - 腾讯云1

    此外,ResNet还采用了不同的shortcut连接方式,如在ResNet-34中使用连续的shortcut跨越两层,而在ResNet-50等更复杂的变体中使用更复杂的跳跃连接结构。这些改进使ResNet能够在更深的网络结构中保持较低的训练误差,...

    shortcut tag

    just a try, a shortcut for ultriudit, nothing else

Global site tag (gtag.js) - Google Analytics