bapi

Error while creating sales order using JCO with BAPI_SALESORDER_CREATEFROMDAT2

我的梦境 提交于 2020-01-17 05:05:05
问题 I am trying to create a sales order using BAPI_SALESORDER_CREATEFROMDAT2 butI am getting error “No customer master record exists for customer 99” when I tried to create a sales order for customer 99(example) with the partner Role ‘AG’,’WE’ where both ‘sold-to-party and ship-to-party’ are mandatory fields. If I send “SP” it will ask me to define ‘sold-to-party and ship-to-party’ ,Please let me know if I have to send some different partner roles to be able to create a sales order. public static

Error while creating sales order using JCO with BAPI_SALESORDER_CREATEFROMDAT2

懵懂的女人 提交于 2020-01-17 05:04:11
问题 I am trying to create a sales order using BAPI_SALESORDER_CREATEFROMDAT2 butI am getting error “No customer master record exists for customer 99” when I tried to create a sales order for customer 99(example) with the partner Role ‘AG’,’WE’ where both ‘sold-to-party and ship-to-party’ are mandatory fields. If I send “SP” it will ask me to define ‘sold-to-party and ship-to-party’ ,Please let me know if I have to send some different partner roles to be able to create a sales order. public static

SAP and sapjco3 print a list of BAPIs in my java program

允我心安 提交于 2020-01-13 19:37:11
问题 I am a new comer to both SAP and JCo. I established connection to a SAP Server and I would like to print a list of BAPIs in my program . is there any way to do it?? I am using sapjco3.jar 回答1: As far as I know, there is no "BAPI to get a list of BAPIs", so this would be a non-trivial task. You could try to use RFC_FUNCTION_SEARCH to search for function modules named BAPI* , but that's not guaranteed to give you a) only official BAPIs and b) all of the official BAPIs... 回答2: You can also use

SAP and sapjco3 print a list of BAPIs in my java program

谁都会走 提交于 2020-01-13 19:36:10
问题 I am a new comer to both SAP and JCo. I established connection to a SAP Server and I would like to print a list of BAPIs in my program . is there any way to do it?? I am using sapjco3.jar 回答1: As far as I know, there is no "BAPI to get a list of BAPIs", so this would be a non-trivial task. You could try to use RFC_FUNCTION_SEARCH to search for function modules named BAPI* , but that's not guaranteed to give you a) only official BAPIs and b) all of the official BAPIs... 回答2: You can also use

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

PM Order change status to TECO

旧时模样 提交于 2019-12-24 22:14:07
问题 Hello I want to change the status of a PM order to TECO. For that I am using the BAPI BAPI_ALM_ORDER_MAINTAIN . This is my code, but it doesn't work. What am I doing wrong? DATA: lt_alm_order_method TYPE TABLE OF bapi_alm_order_method, ls_alm_order_method TYPE bapi_alm_order_method. ls_alm_order_method-refnumber = '00001'. ls_alm_order_method-objecttype = 'HEADER'. ls_alm_order_method-method = 'TECHNICALCOMPLETE'. ls_alm_order_method-objectkey = '000000900085'. APPEND ls_alm_order_method TO

Unable to call SAP BAPI function from VBA

那年仲夏 提交于 2019-12-13 19:08:37
问题 I'm trying to call SAP functions from an Excel macro, VBA. I can do the connection, but whenever the code reaches the line that calls a function, I get the error message "Run-time error '61704': Internal application error. My code is the following: Dim functionCtrl As Object Dim sapConnection As Object Dim theFunc As Object Dim PoNumber Set functionCtrl = CreateObject("SAP.Functions") Set sapConnection = functionCtrl.Connection sapConnection.System = "" sapConnection.Client = "" sapConnection

Creating Purchase Info Record in SAP

帅比萌擦擦* 提交于 2019-12-12 04:02:16
问题 I am trying to create a Purchase Info Record (ME11) in SAP using the below JCo code: It executes without fail and throws no error, but i am not able to get the newly created info record in SAP. In ME13 it says info record not found. Can i know what am i missing? IFunctionTemplate ft1 = mRepository.getFunctionTemplate("ZME_INITIALIZE_INFORECORD"); JCO.Function function1 = ft1.getFunction(); mConnection.execute(function1); IFunctionTemplate ft = mRepository.getFunctionTemplate("ZME_DIRECT_INPUT