abap

Extracting Purchase Order texts in SAP

倾然丶 夕夏残阳落幕 提交于 2019-12-24 07:47:07
问题 Is there any way to view the details in Item Text tab in Purchase Order ME23N in a report form or table form? I have tried to search in many places but I couldn't find the table. Table EKKO/EKPO doesn't seem to help in this. 回答1: There are tables STXH (for header) and STXL (for lines) but they are not readable out-of-the-box. Usually reading texts is made by READ_TEXT FM: CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt id = 'F01' language = 'E' name = %PO_number% + %PO_pos% object =

Function modules to update table bsid (field: cession_kz)

女生的网名这么多〃 提交于 2019-12-24 07:46:42
问题 For a certain program I need to update table bsid. The field cession_kz needs to be updated. I've looked for many function modules but none of them fit my needs. Does someone know a best practice to solve this problem? 回答1: BSID is a secondary index for BSEG customer items, so updating it directly will lead to database inconsistencies and any update must go via BSEG. You can use a function module like FI_ITEMS_MASS_CHANGE . This FM updates BSEG by running a BDC for transaction FB02 (Change

How to Consume SAP Web Service in C#

元气小坏坏 提交于 2019-12-24 05:51:38
问题 I want to consume SAP web service into my c# application. For that i wrote one block of code given below. NetworkCredential ntobj = new NetworkCredential(); ZWEBSERVICE_INTERNAL_ORDER2 zClassobj = new ZWEBSERVICE_INTERNAL_ORDER2(); ZbapiFiCreateInternalOrder zMethodObj = new ZbapiFiCreateInternalOrder(); ZbapiFiCreateInternalOrderResponse zMethodResobj = new ZbapiFiCreateInternalOrderResponse(); ntobj.UserName = "alpldev"; ntobj.Password = "alpl123"; zClassobj.PreAuthenticate = true;

How to get programatically the file path from a directory parameter in abap?

时间秒杀一切 提交于 2019-12-24 01:03:21
问题 The transaction AL11 returns a mapping of "directory parameters" to file paths on the application server AFAIK. The trouble with transaction AL11 is that its program only calls c modules, there's almost no trace of select statements or function calls to analize there. I want the ability to do this dynamically, in my code, like for instance a function module that took "DATA_DIR" as input and "E:\usr\sap\IDS\DVEBMGS00\data" as output. This thread is about a similar topic, but it doesn't help.

abap method call as parameter in method call

让人想犯罪 __ 提交于 2019-12-23 20:08:05
问题 i'm new in abap (OO) but developed before in java and wrote a class abap "cl_caretaker" which should handle the operations on database table and the local copy (intern table) of it. I want to make the following method call: caretaker->show_table( caretaker->get_users( ) ) . with: caretaker = cl_caretaker=>get_instance( ). "singleton instance METHODS: "! get a list of all user which registrated for FCP "! "! @parameter rt_users | users which are registrated for FCP get_users RETURNING value(rt

After message type e, program doesn't return to selection-screen ABAP

江枫思渺然 提交于 2019-12-23 12:27:59
问题 I'm trying to use a message type E in my report. The thing is that when the message is triggered, the program doesn't return to the selection-screen. Can anyone help me? Here's the code I use to achieve this: IF rb_tri IS NOT INITIAL AND p_trim-low IS INITIAL. MESSAGE e038. ENDIF. Thanks :) 回答1: When I combine your question with your answer I offer another solution: Don't make your test after starting the process ( START-OF-SELECTION ) but on the selection screen: PARAMETER: p_test. AT

Why does nested LOOP AT SCREEN cause infinite loop/recursion?

情到浓时终转凉″ 提交于 2019-12-23 09:56:40
问题 Here is one for you. Although such a language construction does not make much sense I would like to know why the nested LOOP AT SCREEN cause infinite loop (recursion?). Let us take the following simple program. REPORT yyy. PARAMETERS: p_x1 TYPE abap_bool. AT SELECTION-SCREEN OUTPUT. LOOP AT SCREEN. BREAK-POINT. ENDLOOP. The BREAK-POINT statement will be executed only 4 times. This leads to an assumption that such a nested loop would run 16 times. Instead the below mentioned program runs

Send multiple files in HTTP response

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 05:30:34
问题 I have created an ICF handler class which sends files to the sender. The thing is, it works fine with single file where i am reading the data in binary format and attaching the same in body part using set_data . But when I try to add more than 1 file, I am unable to add 2 files separately. i am using IF_HTTP_EXTENSION and do not have NTW GATEWAY component yet. I am also using MULTIPART feature, but dont konw exactly on how to add 2 files separately. Can you please help me ? //file1 server-

abap选择屏幕

倾然丶 夕夏残阳落幕 提交于 2019-12-23 01:27:50
ABAP 选择屏幕一 用于不同程序之间的传值 REPORT ZPM05. ***********用于不同屏幕之间传值 DATA : lv_data1 TYPE char5. DATA : lv_data2 TYPE char5. DATA : lv_data3 TYPE char5 VALUE '54321' . DATA : lv_data4 TYPE char5. *PERFORM a. *PERFORM b. *PERFORM c. *PERFORM d. form a. ********************将12345赋值给P并保存在SAP内存中 SET PARAMETER ID 'P' FIELD '12345' . ENDFORM. form b. *******************将SAP内存中的P赋值给lv_data2 GET PARAMETER ID 'P' FIELD lv_data2. WRITE lv_data2. ENDFORM. ******************ABAP内存 FORM c. EXPORT lv_data3 TO MEMORY id 'P1' . ENDFORM. FORM d. IMPORT lv_data4 FROM MEMORY ID 'P1' ."结果输出为空,ABAP内存步能在2个程序之间使用

Pragma to Hide Warning: the field used in the where condition may contain null values

爷,独闯天下 提交于 2019-12-22 11:13:20
问题 I'm looking for a pragma I can use to hide the compiler warning generated when a field used in the WHERE condition of a select may contain NULL values in the database. Having read SAP note 1088403, I am aware of the possible issues here but I cannot apply the solutions suggested there since I'm using a range, not a single value in the WHERE clause. In either case this is legacy code that was never found to be defective (as far as we know) and will be replaced before long. However while I'm