Custom Parameter-id Creation

By Abhijit Daptary, Capgemini India

Step1: Creation of parameter ID. 

Parameter ID can be created in the table TPARA. Just enter the name of the parameter id in the table and that parameter ID will be created. 

 
 

Go to the table maintenance generator of the table TPARA and go to the Maintain button through the transaction SM30. 

Enter the table view name TPARA. 

 
 

Click on the maintain button. The following information will appear. Click on the Tick button or the ENTER button to go to the next screen. 

 
 

Enter the Set/Get parameter id as the parameter ID you want to create. Here, I will be creating the parameter Id as ZNAME_DATA1. Click on ENTER button. 

 
 

It will ask for the text of the parameter Id. Enter the text of the parameter ID and click on the Savebutton. 

 
 

 
 

Enter the Package and the transport number. 

The parameter id can be seen in the table TPARA

 
 

Step2: Using the parameter Id that you have created. 

Now go to the SE11 transaction for creating a data element and enter the parameter id at theFurther Characteristics tab at the parameter Id section. 

 
 

Activate the data element and use it with the program. It will act the same good as a standard one.

 
 

来自 <http://saptechnical.com/Tutorials/ABAP/ParameterID/custom.htm>

 
 

 
 

标准程序的Parameter id 并不一定准确

2014年12月30日

10:36

Exp.

 
 

Me39

F1 看到的是VRT

 
 

 
 

程序中:

根据不同的配置 id可能各不相同

MODULE d0205_get_parameter OUTPUT.

 
 

  DATA: gv_cc_flag TYPE c LENGTH 1.

 
 

* Belegnummer über Parameter-Id nur holen, wenn noch nicht anderweitig

* vorbelegt ist (z.B. in ME38-Aufruf aus ME57)

  CHECK rm06e-evrtn EQ space.                               "4.0B TK

  CASE t160-bstyp.

    WHEN bstyp-kont.

      GET PARAMETER ID 'CTR' FIELD rm06e-evrtn.

      GET PARAMETER ID 'CCNN' FIELD gv_cc_flag.

      IF gv_cc_flag IS NOT INITIAL.

        GET PARAMETER ID 'CCTR' FIELD rm06e-evrtn.          "CCM EhP4

        CLEAR gv_cc_flag.

        SET PARAMETER ID 'CCNN' FIELD gv_cc_flag.

      ENDIF.

    WHEN bstyp-lfpl.

      GET PARAMETER ID 'SAG' FIELD rm06e-evrtn.

    WHEN space.

      GET PARAMETER ID 'VRT' FIELD rm06e-evrtn.

  ENDCASE.

 
 

ENDMODULE.                 " D0205_GET_PARAMETER  OUTPUT

 
 

一个字段可能出现在多个场合

但是定义是不一样的

 
 

sap的标准程序可能都是用一个字段(同一个dataelemnt)

然后技术信息里面看到的parameter id 并不是程序中实际对应的id

导致跨程序调用传值失败

 
 

创建parameter id的更多相关文章

  1. IOS开发创建开发证书及发布App应用(三)——创建App ID

    3.创建App ID 继续上一篇所讲,今天写的这个是创建App ID 依然在个人中心创建证书这里, 如果不知道的,可以查看以前写的 点击左边的 Identifiers  下面的App IDs,如下图 ...

  2. navicat for oracle 创建表ID字段的自动递增

    Oracle数据库创建表ID字段的自动递增   将表t_uaer的字段ID设置为自增:(用序列sequence的方法来实现) ----创建表 Create table t_user( Id numbe ...

  3. Tomcat上java.lang.IllegalStateException: Optional int parameter 'id' is not present

    今日, 本人在tomcat+spring mvc平台的服务器上遇到java.lang.IllegalStateException: Optional int parameter 'id' is not ...

  4. 查找SAP 系统Parameter ID 4种方法

    转自 http://blog.csdn.net/jy00873757/article/details/8517426 ***程序RPR_ABAP_SOURCE_SCAN  一.用F1,直接可以看到这个 ...

  5. [Apple开发者帐户帮助]三、创建证书(2)创建开发者ID证书

    您可以使用开发人员帐户或Xcode 创建最多五个开发者ID应用程序证书和最多五个开发人员ID安装程序证书.(要在Xcode中创建开发者ID证书,请转到Xcode帮助中的管理签名证书.) 所需角色:帐户 ...

  6. 后台接收参数报错 Required String parameter 'id' is not present

    来自:https://blog.csdn.net/qq_15238647/article/details/81539287 关于ajax请求spring后台出现 Required String par ...

  7. mybatis 3 批量插入返回主键 Parameter 'id' not found

    @Insert("<script>INSERT INTO scp_activity_gift (activity_id,type,gift_id,status,limit_num ...

  8. 关于SET/GET PARAMETER ID的注意事项

    通常这两个语法配合 PARAMETER, select-options中的参数 memory id来使用. 如,选择屏幕定义 PARAMETER p1 TYPE c LENGTH 10 MEMORY  ...

  9. Oracle SQLserver数据库创建表ID字段的自动递增_序列

    Oracle 将表t_uaer的字段ID设置为自增:(用序列sequence的方法来实现) ----创建表 Create table t_user( Id ),userid ),loginpasswo ...

随机推荐

  1. ubuntu更换源后报错:W: GPG error: (转载)

    From:http://www.njava.com/njava-626.html 更换163源后,更新源时出现错误. # apt-get update W: GPG error: http://ext ...

  2. How To Easily Call WCF Services Properly z

    Please note: this article has been superceded by the documentation for the ChannelAdam WCF Library. ...

  3. 更新nvm

    在官方看到这个文档 ( cd "$NVM_DIR" git fetch origin git checkout `git describe --abbrev=0 --tags -- ...

  4. NLog文章系列——如何配置NLog(转)

    NLog使用方法 作者:Jaros?aw Kowalski <> 翻译:CrazyCoder(由衷感谢他的热心!!) 原文:http://www.nlog-project.org/conf ...

  5. SQL Server 2005中的分区表(六):将已分区表转换成普通表(转)

    我的俄罗斯名叫作“不折腾不舒服斯基”,所以,不将分区表好好折腾一下,我就是不舒服. 在前面,我们介绍过怎么样直接创建一个分区表,也介绍过怎么将一个普通表转换成一个分区表.那么,这两种方式创建的表有什么 ...

  6. 《一课经济学》书摘笔记II

    假设有位制衣商了解到,有种机器可以用以往一半的人力生产男式和女式大衣.于是,他购置了这种机器,并且裁掉了一半的员工.这位制衣商由于节省开支而获得了以前没有的利润.他从制衣工人直接工资那里节省下来的每一 ...

  7. mysql 基本使用教程(源于网络)

    http://dev.mysql.com/doc/refman/5.1/zh/index.html 3.1. 连接与断开服务器 3.2. 输入查询 3.3. 创建并使用数据库 3.3.1. 创建并选择 ...

  8. (转)C#操作PPT

    原文地址:http://blog.163.com/loveyingchun_1314/blog/static/2382425120124312627530/ 引用Microsoft.Office.Co ...

  9. 使用eclipse集成开发环境开发第一个嵌入式Linux驱动

    转载学习 http://blog.csdn.net/cp1300/article/details/8266806

  10. 对Native App与Web App的一些思考

    前言 Native App:C/S架构,使用原生技术(Java/Objective-C/Swift)实现. Web App:B/S架构,使用浏览器技术来实现,广义上也包括phoneGap以及DP正在尝 ...