Questions tagged [bapi]
BAPIs (Business Application Programming Interface) are specific methods for SAP business objects, which are stored in the Business Object Repository (BOR) of the SAP system and are used for carrying out particular business tasks.
184
questions
0
votes
0
answers
21
views
Using JCO to connect to a SAP system
i'm a newbe of SAP systems. I have a requirement to read some data from a SAP server and bring them into my java application (using camel) . Actually the only information i have about the server is ...
-2
votes
0
answers
61
views
Need BADI/user exit to add/modify BSEG line when accounting document created via BAPI_INCOMINGINVOICE_CREATE1
We are using BAPI_INCOMINGINVOICE_CREATE1 to create Invoice in SAP. In this process, SAP standard also creates the Accounting document. Here we need to add an extra line in BSEG for the accounting ...
0
votes
1
answer
27
views
BAPI or FM for Promise to pay creation?
I'm working with Promises to pay in UDM_SUPERVISOR transaction and I need to upload Promise to pay data using BAPI/FM from an excel file.
There is a data migration template which will include all the ...
0
votes
1
answer
48
views
Any workflow assigned to 531 and 261 movement types?
Follow-up question of BAPI_GOODSMVT_CREATE in parallel mode causes "plant data of the material XXX is locked" error.
As I wrote in above question - I'm currently improving program by using ...
0
votes
0
answers
198
views
BAPI_GOODSMVT_CREATE in parallel mode causes "plant data of the material XXX is locked" error
Currently, We're developing mass GI posting by parallelism, to reduce work time dramatically, because we have to post GI item about 300k+ at one day.
Problem
I know there is a restraint about ...
1
vote
1
answer
111
views
Long texts are not changed via BAPI_MATERIAL_SAVEDATA?
I have a problem with my BAPI. I want to write a program to massively read out and change material long text in SAP, but somehow I cannot read out the table and change data.
As you see, I tried ...
1
vote
2
answers
232
views
BAPI_GOODSMVT_CREATE with multiple material numbers and same PP order?
As I know of, When you're using BAPI_GOODSMVT_CREATE at the same time(by loop or just coincidence), Using same material number puts you an error about locked object (Material XXXX is locked by USER ...
0
votes
0
answers
69
views
SYSTEM_FAILURE when updating PO through excel VBA
I am trying to update the date and quantity for a Purchase Order in SAP ERP (ME22N). The first line in the excel sheet gets updated, however, it does not work for the lines after that.
I get the error ...
1
vote
1
answer
102
views
How to update custom fields in PLM project definition?
I am required to create a custom report that bulk uploads the PROJ table, that has around 8 custom fields that have been created by a Fiori app, the data to be updated would be provided as a CSV file ...
0
votes
1
answer
204
views
error "object invoked has disconnected" in 7.70 64 bits (was working in 32 bits)
I have VBA in Excel 32 bits that can upload Sales Orders into SAP ERP software. In order to get the code to run on 64 bits Excel, I uninstalled current SAP GUI and installed SAP GUI 7.70. I now get ...
3
votes
1
answer
138
views
Call BAPI RFCs transactionally via JCo
First of all I'm not a SAP/BAPI developer.
We have a java application that is calling some BAPIs over RFCs using JCo library.
The question is whether there is any way to call several of those in a ...
1
vote
1
answer
3k
views
Update SD condition records using FM/BAPI
I am trying to update DATBI field of A* pricing condition tables using the data coming from excel file.I have tried below approaches but unable to update the entry as DATBI is key field. It creates ...
0
votes
1
answer
331
views
Serialized calls to BAPI_GOODSMVT_CREATE and roll area
TL;DR: If you use BAPI_GOODSMVT_CREATE to create multiple co-dependent movements and one of them is a transfer posting, then you need to use a wrapper - per SAP note 369518. If there's no transfer ...
1
vote
1
answer
55
views
Launching BAPI programmatically from R?
Basically I have 2 questions::
What are the differences between BAPI's and InfoQueries in SAP?
How would you launch and retrieve the results of BAPI's programmatically from outside of SAP?
I am ...
1
vote
1
answer
996
views
Set objBAPIControl = CreateObject("SAP.Functions")
At line Set objBAPIControl = CreateObject("SAP.Functions") I face the runtime error 429
ActiveX component can't create object.
The script was initially running in a 32 bit system now it is ...
0
votes
1
answer
361
views
BAPI_CONTRACT_CREATE error "Enter material number or account assignment category"
I am using the BAPI_CONTRACT_CREATE to upload the contract orders in ME31K.
For Testing purpose I maintained all the parameters which is relevant to above BAPI in SE37.
But system is showing the error ...
1
vote
1
answer
2k
views
Which BAPI to use to update ADRC table?
Is there any way to write or insert data into ADRC table by using BAPI from outside the SAP?
0
votes
0
answers
90
views
SAP Logic apps create creditor with input parameter
I try to create a creditor in SAP with logic apps using SAP BAPI.
I have a connection from Azure logic app to sap with the local Datagateway. But does I need also an RFC Connection in SAP and where I ...
1
vote
1
answer
274
views
BAPI to get customer company?
Customer company is stored in KNB1 table.
I tried with BAPI_CUSTOMER_GETDETAIL2, seems it does not expose company code. Instead of it, company code is the bapi input.
I am looking for a BAPI that can ...
0
votes
1
answer
375
views
How do I block storage bin for putaway in S4HANA?
I need to block a bin other than the bin determined during creation of the warehouse task - bin adjacent to the determined bin. I can manually block the storage bin for putaway via /SCWM/LS02 like ...
0
votes
1
answer
299
views
The string '0000-00-00' is not a valid AllXsd value
I am calling a SAP BAPI in the logic app. I have several date fields as input parameters which does not need a value to be passed. So all the date fields are being sent as blank (in postman).
When the ...
0
votes
1
answer
842
views
How to remove batch number on delivery?
I need to remove the batch number (LIPS-CHARG) on the delivery item and tried with BAPI_OUTB_DELIVERY_CHANGE without success.
I can change the delivery quantity (LIPS-LFIMG) correctly with this BAPI ...
1
vote
1
answer
689
views
Integration of SAP information with node.js
SAP offers a lot of ways to create API's with external systems. In my case I want to create an interface which allows me to access SAP information with a node.js application. I need preferably a real ...
0
votes
1
answer
353
views
BAPI_SALESORDER_CHANGE throws type exception
I'm having trouble using the FM BAPI_SALESORDER_CHANGE.
As soon as I execute my report, an exception is thrown by the FM. Following is the dump of the exception.
An exception occurred that is ...
1
vote
3
answers
5k
views
How to call BAPI_MATERIAL_SAVEDATA with custom fields from NCo?
In our current project we are using SAPNCO3 with RFC calls. The requirement is to create material with the function "BAPI_MATERIAL_SAVEDATA" and some custom fields (via EXTENSIONIN). The ...
1
vote
1
answer
584
views
BAPI/FM to search prod orders confirmations by workcenter and date?
I'm trying to figure out which BAPI/FM I could use to search amounts confirmed based on search criteria of date (+time if possible) and workcenter confirmed where was confirmed...
I would be using ...
1
vote
1
answer
417
views
How to call BAPI_PLANNEDORDER_GET_DETAIL from Excel?
I know there has been a few questions regarding this earlier. However none of which sufficiently have led me to a solution to the issue at hand.
Code so far
Sub GetPlannedOrderNums()
'--------
...
0
votes
2
answers
590
views
Optimization of code written using python and BAPI
I have a python code here which goes into SAP using BAPI RFC_READ_TABLE, queries USR02 table and bring back the results. The input is taken from an excel sheet A column and the output is pasted in B ...
0
votes
1
answer
2k
views
Mandatory parameters for BAPI_GOODSMVT_CREATE call?
After hours on hours of googling, I fail to find the solution to my problem.
Goal
Create a simple Excel application to post "return delivery" for multiple material documents in SAP.
My ...
0
votes
1
answer
435
views
Azure Logic Apps Function Call SAP By BAPI always give me wrong feedback
I'm using Azure Logic Apps call SAP template, I use call BAPI method to send message to SAP. But, I got error feedback every time, it tells me that The provided request payload storage blob URI 'cn01' ...
0
votes
2
answers
5k
views
How can I get all the messages from the return table after calling BAPI_USER_CHANGE?
I'm having an issue with an ABAP task which wants me to do the following:
Select all the active users from the system
Use bapi_user_get_detail in order to get some personal information about those ...
0
votes
1
answer
470
views
Is BAPI_MATERIAL_GET_ALL a BAPI, or just a RFC?
I am using SWO_QUERY_API_METHODS to get list of BAPIs in the SAP system. But I am not getting BAPI_MATERIAL_GET_ALL, CSEP_MAT_BOM_READ and potentially others in that list.
Is BAPI_MATERIAL_GET_ALL a ...
1
vote
1
answer
202
views
How to get data from another system
I need to get some data from one system to another.
So far, I used the function module (FM) RFC_READ_TABLE where I filled all required fields and got data that I needed from another system's table.
...
0
votes
1
answer
117
views
SAP Credit note - Item data texts (language issue)
In credit note, in item data section, there is a tab with Texts.
Those credit notes are created by report/application where you upload file, then hit simulation and release mode button. Those 2 ...
1
vote
2
answers
1k
views
How can I use a service principal in HTTP with Azure AD connector in logic apps
I add an action to my logic app with the HTTP with Azure AD connector. When adding the acito, I'm prompted to create a connection, however there is only "User based auth" available with a "sign in" ...
2
votes
2
answers
207
views
How to build a call graph for a function module?
A while ago during documenting legacy code I found out there is a tool for displaying call graph (call stack) of any standard program. Absurdly I wasn't aware of this tool for years :D
It gives fancy ...
1
vote
1
answer
491
views
SAP BW Data Extraction using pyRFC fails with character limitation on Command text
Environment: Windows
Programming language: Python
Package: pyRFC
SAP: SAP RFC SDK
I am trying to call the following method BAPI_MDDATASET_CREATE_OBJECT after connecting to the BW through the object ...
1
vote
2
answers
541
views
Define SCP destination for S4HANA BAPI call with Cloud SDK
I am looking for a way to call S4HANA on-premise BAPI locally and on SAP Cloud Platform with Cloud SDK. The problem is how to define RFC destinations just like HTTP ones.
I also encountered JCo ...
1
vote
1
answer
211
views
Call CJ20N transaction from C#
I would like to integrate the SAP transaction code CJ20N (Project Builder) for Project creation in .Net. Once we create this in SAP system we get a Charge Code (WBS Element) and Network ID.
Is it ...
1
vote
2
answers
1k
views
How to update email with BAPI_USER_CHANGE in pyrfc?
I was able to write the code to get the details from SAP thru BAPI_USER_GET_DETAIL, here is attached code to get the email from SAP backend:
import pyrfc
from pyrfc import Connection
setup= pyrfc....
1
vote
1
answer
249
views
RFC-enabled function module to update physical samples
I need to update some fields of Physical samples in SAP ERP:
List of columns which are in the table QPRS:
ABINF: Storage Information
ABDAT: Storage Deadline
ABORT: Storage Location
List of fields ...
1
vote
0
answers
127
views
Create note in MB51 with GOS objects programmatically
Im working on creating a material document movement (MB51 report) and then creating a note to it. So far Im finished with creating the document and returning the document number.
And now I need to ...
1
vote
1
answer
2k
views
Attach file in MB51 with GOS objects programmatically
Im working on creating a material document movement (MB51 report) and then attaching document to it.
So far Im finished with creating the document and returning the document number.
And now I need to ...
1
vote
1
answer
422
views
How to fetch work order data using Pyrfc?
I'm using pyrfc to connect to SAP. I need to download work order data and sales order data. I've been using the 'RFC_READ_TABLE' function, but I don't seem to be able to get what I need. Can someone ...
-3
votes
2
answers
902
views
How to reset a password via BAPI in a CUA environment?
I am currently developing a C# application with SAP NCo 3.
I am wondering if I could invoke BAPI into CUA and this BAPI would pass details to child system.
This field is available through Test ...
2
votes
1
answer
647
views
Calling BAPI from Java using SAP Cloud SDK version 3.0
I am working on a POC currently where I need to call a BAPI inside S/4HANA On-Premise from a cloud application using Java. For this I am using SAP Cloud SDK.
For initial setup I followed these steps:...
-2
votes
4
answers
338
views
BAPI_ACTTYPE_CHANGEMULTIPLE returns empty and doesn't change anything in the Database
I need some help to get my RFC call working. I've got my connection working properly and BAPI_ACTIVITYTYPE_GETLIST and BAPI_ACTIVITYTYPE_GETDETAIL are also working. But the following piece of code is ...
4
votes
1
answer
1k
views
Creating documentary batches programmatically with BAPI_GOODSMVT_CREATE?
Summary of the problem
Automatic Documentary Batch handling through custom ABAP code
My employer wishes to perform automatic documentary batch handling on some products from external vendors, and I'm ...
1
vote
1
answer
2k
views
PM Order change status to TECO - BAPI - VB ABAP
My code ends with the MsgBox "TECO FuBa Call false!".
The LogOn and Logout functions are working fine, and when I test the function module BAPI_ALM_ORDER_MAINTAIN via SAP GUI transaction code SE37, ...
0
votes
0
answers
92
views
How to link JS to SAP API development work
I would like to upload a document and create a DIR link to that document. I have created a website in JS where users can upload documents. I would like to pass the uploaded document as input to SAP ...