当前位置:主页 > 云解析 > 正文

网站空间_全国高校数据库_优惠

时间:2021-07-22 21:06 来源:埃里克云 编辑:埃里克云

核心提示

Contents 1.1         Issue: 1.2         Example. 1.3         Resolution Approach: 2.1         Step 1: 2.2         Step 2: 2.3         Step 3: 2.4         Step 4: 2.5        ...

Contents

1.1         Issue:

1.2         Example.

1.3         Resolution Approach:

2.1         Step 1:

2.2         Step 2:

2.3         Step 3:

2.4         Step 4:

2.5         Step 5:

3.1         Step 1:

3.2         Step 2:

3.3         Step 3:

3.4         Step 4:

3.5         Step 5:

3.6         Step 6:

There is a requirement of attaching supporting documents whenever business users will create new credit-memo or debit memo request (Sales Order) in SAP system through the transaction VA01. While attaching those supporting documents following challenge must occur:

1.1  Issue:

SAP standard supports create/change/display/delete of attachments on VA02 and VA03 (change and display sales order respectively) transactions with the help of value ‘X’ on parameter ‘SD_SWU_ACTIVE’. There is no provision to attach/view attachment while credit memo requests are being created. Objective of this RICEF is to enable this attachment functionality for ‘create’ transactions also.

1.2  Example

For the Sales Order Creation screen (VA01), the GOS tool bar is not provided by standard SAP.

See screen shot below:

We will see below how we can activate the GOS toolbar using above class for transactions VA01/VA02/VA03

1.3  Resolution Approach:

To resolve the above issue, we can use a SAP provided toolbar "Generic Object services" or "GOS toolbar".

Following is the step by step instruction to use GOS Toolbar for resolving attachment issue.

2.1 Step 1: To activate it we need to do an enhancement in include ‘SAPMV45A’ inside form SP_TAGGING.

2.2 Step 2: Object key is required to activate the generic object services. Now object types for corresponding sales orders are as below:

Credit memo request (VA01/VA02/VA03) — BUS2094 Debit memo request (VA01/VA02/VA03) — BUS2096 Sales Order (VA01/VA02/VA03) — BUS2032

2.3 Step 3: The object key can be found out from the object type. Enter the object type in transaction ‘SWO1’

Click on display.

P.S: For above three Object types, object key is same and that is Sales Document.

2.4 Step 4:

CL_GOS_MANAGER is a standard SAP class available within R/3 SAP systems depending on the version and release level. It is useful to manage attachments on a report. It lets you upload and download files related any object inside your report. To activate CL_GOS_MANAGER, we need to create instance of the class first. This instance can be created by calling a constructor method. In the constructor method code, object type and object key need to be set as variable and passed through instance of the class. The code needs to be written either inside above implicit enhancement point

Following is the syntax:

DATA:   lr_gos_manager TYPE REF TO cl_gos_manager,              ls_borident    TYPE        borident.

STATICS lv_flag TYPE c.

IF sy-tcode = ‘VA01’ AND lv_flag  ‘X’.     CLEAR ls_borident.     CASE vbak-vbtyp.       WHEN ‘K’.                               "Credit memo request         ls_borident-objtype = ‘BUS2094’.       WHEN ‘L’.                               "Debit memo request         ls_borident-objtype = ‘BUS2096’.       WHEN ‘C’.                               "Orders         ls_borident-objtype = ‘BUS2032’.       WHEN OTHERS.         CLEAR ls_borident-objtype.     ENDCASE.

IF NOT ls_borident-objtype IS INITIAL.       CONCATENATE ‘ZGOSVA01’ sy-uname sy-datum sy-uzeit   INTO ls_borident-objkey.       EXPORT ls_borident-objkey TO MEMORY ID ‘ZGOSVA01’ .

CREATE OBJECT lr_gos_manager         EXPORTING           is_object        = ls_borident           ip_start_direct  = ‘ ‘           ip_no_commit     = ‘X’         EXCEPTIONS           object_invalid   = 1           callback_invalid = 2           OTHERS           = 3.       lv_flag = ‘X’.     ENDIF.

ENDIF.

[Here with the help of static variable (LV_FLAG), we are making sure that this piece of code will be triggered only once in an entire session of sales order creation. There was another challenge regarding object key. At this moment sales order number was not generated in SAP, so we have created a default unique key concatenating a text ‘ ZGOSVA01’ and username and date and time. We will use it later in our code]

2.5 Step 5: We have to attach that document to newly created sales order. So code needs to be added in user exit MV45AFZZ inside form USEREXIT_SAVE_DOCUMENT.

The Syntax is:

  • <strong>云存储_佛山顺德网站建设_超低折扣</strong> 云存储_佛山顺德网站建设_超低折扣

    您是否有过这样的问题:是否可以将事务FBL5N(客户行项目显示)移植到Webdynpro?不?你真幸运!重建FBL5N不是我最喜欢做的5件事,所以当我得到这个问题时,我很不愿意开始。幸运的...

  • <strong>云主机_获取服务器地址_促销</strong> 云主机_获取服务器地址_促销

    到目前为止,我们已经创建了两个应用程序。一个用于维护员工特定的奖金计划,另一个用于授予员工奖金。到目前为止,奖金仅取决于已完成销售订单的净额。 任务:在自定义业务...

  • <strong>天翼云_免费虚拟主机管理系统_免费6个月</strong> 天翼云_免费虚拟主机管理系统_免费6个月

    任务:在标准业务对象上创建自定义字段。 示例:要计算与产品相关的奖金,标准业务对象"产品"将获得奖金百分比的自定义字段 要能够打开并调整"管理产品主数据"应用程序的UI您的...

  • <strong>阿里云_美橙互联云主机_怎么样</strong> 阿里云_美橙互联云主机_怎么样

    任务:在标准业务对象上创建自定义字段。 示例:要计算与产品相关的奖金,标准业务对象"产品"将获得奖金有效期的自定义字段。 要适应"管理产品主数据"应用程序的UI,您的用户需...

  • <strong>香港服务器_数据库上机实验_速度快</strong> 香港服务器_数据库上机实验_速度快

    到目前为止,我们已经创建了两个应用程序。一个是维护员工特定的奖金计划,另一个是为员工发放奖金。到目前为止,奖金权利仅取决于已完成销售订单的净额,但在奖金计划中,...

  • <strong>域名备案_数据库文本类型_新注册优惠</strong> 域名备案_数据库文本类型_新注册优惠

    各位开发人员好, 这里我要写一个关于sapui5的有趣话题。根据状态更改sap.m.表的整行颜色。通常我们在状态字段中保留一个文本,并根据状态更改文本的颜色。但是,现在客户问这个...

  • <strong>专属服务器_数据库显示正在还原_企业级</strong> 专属服务器_数据库显示正在还原_企业级

    多年来,SAP客户一直有机会要求对SAP功能进行更改,并就所提供的软件解决方案提出改进建议。 以前我们有开发要求,如今,这已被客户的影响力所取代项目该项目的主要目的是收集...

  • <strong>CDN_合肥建设网站_新用户</strong> CDN_合肥建设网站_新用户

    我写这个博客是为了展示一个场景,向 添加一个自定义标题sap.ui.unified.Shell控件。 统一的Shell控件不直接提供标题财产。还有外壳被分成几个区域,比如左边的菜单按钮,搜索栏位于...

  • <strong>香港服务器_中国近代报刊数据库_安全稳</strong> 香港服务器_中国近代报刊数据库_安全稳

    大家好, 我正在使用企业门户7.5版。 在使用自定义splash映像时,我在使用显示规则中配置的AJAX框架页面登录门户时遇到了splash映像的外观问题。 在我的情况下,Splash图像垂直向下显...