abap

Open SQL equivalent for ROW_NUMBER()

╄→гoц情女王★ 提交于 2019-12-31 02:25:27
问题 Is there an equivalent for the ROW_NUMBER() function for ABAP programs? This function is used as follows in SQL: SELECT ROW_NUMBER() OVER (ORDER BY SomeField) AS Row, * FROM SomeTable Where it should return the line number as the first column in the resulting rows (I'm unsure if it will be the line number in the result set or the line number in the source table). I've found that this statement can be used in SAP Business One but can't seem to find an Open SQL equivalent. Is there one or will

source code of a transaction in SAP

扶醉桌前 提交于 2019-12-31 01:48:38
问题 How can you look at the source code of a transaction in SAP? 回答1: You can go to System -> Status and see the program name there. After that you can go to Tcode SE38 or SE80 to view the coding. Alternatively, you could key in /h to activate the debugging mode before you run the transaction. 回答2: The exact answer to your question would be ?SYNTAX ERROR A transaction does not have source code to look at. Take a look at various transactions using the transaction SE93. A transaction may name a

How to search for available functions and tables on a SAP system

醉酒当歌 提交于 2019-12-30 09:49:10
问题 I've got to admit that I'm not an expert on SAP R/3 programming, so this is more of a basic question on that matter. Is there any way to get a list of accessible RFC modules and/or tables on a SAP system? On many examples on the internet I've found one RFC modul that seems to be available on every SAP system ("SD_RFC_CUSTOMER_GET") and I wonder if there are any more of these standard RFC modules that I can use. I can easily query the SAP system for all SAP-Queries that are available but I

ABAP宏的调试

北城余情 提交于 2019-12-30 04:34:59
我们都知道高级语言宏一般是无法调试的。但是ABAP的宏例外。 比如我写了下面一段宏,名为insert_table. 执行这段代码,调试器会在第23行停下来。 ABAP调试器里有个工具可以用于宏的调试,如下图: 双击之后,可看到如下调试界面: 按F5即可开始单步调试。 上图的22,23行STRLEN,IF,CHECK就对应了ABAP代码第15行:CHECK strlen(&1) >= 5. 这个例子的完整调试过程讲解,请参考我的SAP博客: https://blogs.sap.com/2013/11/17/single-step-debugging-on-macro/ 要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码: 来源: https://www.cnblogs.com/sap-jerry/p/8569447.html

类CL_ABAP_TYPEDESCR,动态取得运行时类型

可紊 提交于 2019-12-29 03:52:50
有时候我们要在程序运行的时候取得某个内表或者某个结构它的属性或者它的字段的属性,可能通过类CL_ABAP_TYPEDESCR和它的子类取得指定内表的属性。 类CL_ABAP_TYPEDESCR和它的子类的结构图 CL_ABAP_TYPEDESCR | |--CL_ABAP_DATADESCR | | | |--CL_ABAP_ELEMDESCR | |--CL_ABAP_REFDESCR | |--CL_ABAP_COMPLEXDESCR | | | |--CL_ABAP_STRUCTDESCR | |-- CL_ABAP_TABLEDESCR | |--CL_ABAP_OBJECTDESCR | |--CL_ABAP_CLASSDESCR |--CL_ABAP_INTFDESCR、 例1: REPORT ZTEST_UPEXCEL. DATA: name(10) TYPE c, *WA_DEPT TYPE TYP_DEPT, DESCR_REF TYPE REF TO CL_ABAP_TYPEDESCR. FIELD-SYMBOLS: <FS_DEPT> TYPE ABAP_COMPDESCR. ************************************************************************ * START-OF-SELECTION

SAP FI模块常用事务代码

风格不统一 提交于 2019-12-29 01:57:32
F.52 G/L: Acct Bal.Interest Calculation 总帐:计算科目余额利息 F-06 Post Incoming Payments 收款记帐 F-07 Post Outgoing Payments 付款记帐 FB1S Clear G/L Account 结算总分类帐科目 FB41 Post Tax Payable 应付税款记帐 FBB1 Post Foreign Currency Valuation 外币评估记帐 FBL3 Display G/L Account Line Items 显示总帐科目行项目 FBL4 Change G/L Account Line Items 更改总分类帐科目的行项目 FBX0 Change Documents for Ext.Documents 外部凭证的更改凭证 FBX1 Post External Documents Received 收到外部凭证记帐 FBX2 Change External Documents to be Sent 更改将送出的外部凭证 FBX3 Display Extern.Documents to be Sent 显示将送出的外部凭证 FBX4 Change External Documents Received 更改收到的外部凭证 FBX5 Display External Documents

ABAP-增强-层级BOM-AB件业务

旧巷老猫 提交于 2019-12-25 18:38:23
目前新需求:整车A下挂有委外总成件B,总成件B和子件E是层级BOM,且采购类型均为F,信息记录类型均为寄售,按照现在标准MRP逻辑,只能计算第一层级子件需求,无法运行出子件E的需求。 1.实现方式  1.1自定义表   ZTMM0093_MRP_WRK      ZTMM0010_MAT_INF:接口-物料主数据明细表  1.2增强点   在获取BOM子件中进行增强:函数 GET_STPO 行 311 增加隐式增强点 ZIMP_BADI_MRP_BOM_HIERARCHY      INCLUDE ZMMI0003_MRP_BOM_HIERARCHY程序代码: 1 *&---------------------------------------------------------------------* 2 *& Include ZMMI0003_MRP_BOM_HIERARCHY 3 *& 4 *&---------------------------------------------------------------------* 5 *& Program Name: MRP运行-BOM层级子件 6 *& Date written: 2018-10-29 7 *& Author's name: *** 8 *& Business design:*** 9 *& Last

SAP RFC Connection “Bad Variant Type”

核能气质少年 提交于 2019-12-25 07:23:50
问题 Well, 'm using SapConnector dll to make RFC from .Net to SAP. When I use dll in a Windows form application, everything is fine, but when I try to make connection in ASP.Net Web Site or Web Applcation a get an error; Bad Variant Type if (Connector.StartConnection()) { try { Connector.AddFunction("Z_SCL_SOMETHING"); Connector.AddFunctionInputParameter("WPERNR", "999999"); Connector.CallFunction(); } } I get the error in this line; Connector.AddFunction("Z_SCL_SOMETHING"); Another weird case is

Execute jQuery file from ABAP using CL_JAVA_SCRIPT

时间秒杀一切 提交于 2019-12-25 03:36:06
问题 I want to use CL_JAVA_SCRIPT in abap to execute a javascript file : jQuery.js which i get from url. And this is my code : REPORT ZCLIENT. DATA: LV_CLIENT TYPE REF TO IF_HTTP_CLIENT. DATA:lv_URL TYPE STRING . lv_URL = 'https://resources/jquery.js'. * Create client CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL EXPORTING URL = lv_URL IMPORTING CLIENT = LV_CLIENT EXCEPTIONS ARGUMENT_NOT_FOUND = 1 PLUGIN_NOT_ACTIVE = 2 INTERNAL_ERROR = 3 OTHERS = 4. IF SY-SUBRC NE 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY

Internal error - access to IXADRU

时间秒杀一切 提交于 2019-12-25 02:19:06
问题 I am trying to solve SAP NOTE 1158803 Note description: This is due to data inconsistency in the address communcation tables ADRU and respective Communication tables like ADR2, ADR3, ADR4, ADR5....ADR13 ADR2....ADR13: Stores communication data with the VALID_FROM &VALID_TO . ADRU: Stores the corresponding DEFAULT_FROM & DEFAULT_TO . This error happens when I go to a transaction Transaction Code XK02: Vendor: 22113 and mark "Adress" press ENTER Delete the Mobile Phone" and press ENTER, then