Need help on BAPI - BAPI_ACC_BILLING_POST
Hi,
When I run the BAPI (BAPI_ACC_BILLING_POST), it gives an error "Item category 04000 not allowed in accounting transaction 0200/0001"
Please help me with the error. PLease tell me what that means and what needs to be done to corret it...
Thanks...
Uma.
What is the long text?
Rob
Similar Messages
-
Hi i need help on BAPI to Update the ADRT & ADR6 tables
hi,
i need help on BAPI to Update the ADRT & ADR6 tables
these are the fields to be updated
ADRT-Remark Table
ADR6-SMTP_ADDR
ADR6-DFT_RECEIV
Please guide me what parameters to be passed to update
ADR6 & ADRT tablesLook at this function Group
<b>BUBA_3 SAP BP: External BAPI Function Modules </b>
BAPI_BUPA_ADDRESS_ADD SAP BP, BAPI: Add Address
BAPI_BUPA_ADDRESS_CHANGE SAP BP, BAPI: Change Address
BAPI_BUPA_ADDRESS_GET_NUMBERS SAP BP, BAPI: Read Address Numbers
BAPI_BUPA_ADDRESS_GETDETAIL SAP BP, BAPI: Read Address
BAPI_BUPA_ADDRESS_REMOVE SAP BP, BAPI: Delete Address
BAPI_BUPA_ADDRESSES_GET SAP BP, BAPI: Determine All Addresses
BAPI_BUPR_CONTP_ADDR_ADD SAP BP, BAPI: Add Contact Person Relationship Address
BAPI_BUPR_CONTP_ADDR_CHANGE SAP BP, BAPI: Change Contact Person Relationship Address
BAPI_BUPR_CONTP_ADDR_GETDETAIL SAP BP, BAPI: Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_ADDR_REMOVE SAP BP, BAPI: Delete Contact Person Relationship Address
BAPI_BUPR_CONTP_ADDRESSES_GET SAP BP, BAPI: Read Contact Person Relationship Addresses
BAPI_BUPR_EMPLO_ADDR_ADD SAP BP, BAPI: Add Employee Relationship Address
BAPI_BUPR_EMPLO_ADDR_CHANGE SAP BP, BAPI: Change Employee Relationship Address
BAPI_BUPR_EMPLO_ADDR_GETDETAIL SAP BP, BAPI: Read Employee Relationship Address
BAPI_BUPR_EMPLO_ADDR_REMOVE SAP BP, BAPI: Delete Employee Relationship Address
BAPI_BUPR_EMPLO_ADDRESSES_GET SAP BP, BAPI: Read Contact Person Relationship Addresses
Look also at OSS <a href="https://service.sap.com/sap/support/notes/306275">Note 306275 - Transferring address data</a>
Regards -
hello everybody,
I have a BAPI called "CreateFromData" for business object called 'SalesOrder'.
i want to use this BAPI in Java(developer studio).
we can use this method to create sales orders.
A sales order contains information about prices, quantities and dates.
A sales order consists of several items that contain the quantity of the material or service specified for the order.
we have to enter item data required for using the above BAPI using ORDER_ITEMS_IN table(this is a parameter for the above mentioned method).
how to enter data into this parameter(table) from java...i know that we have to use Jco but how to use it i donot know....i mean how to give parameter values to these methods in java?
pls help me reagarding this problem...
thx in advance,
bye,
aj.Hi Ajay,
Yake this code to call your BAPI from your JAVA class.
This is the sample program for BAPI "BAPI_SALESORDER_GETLIST"
import com.sap.mw.jco.*;
public class Example2 {
// The MySAP.com system we gonna be using
static final String SID = "R3";
// The repository we will be using
IRepository repository;
public Example2()
try {
// Add a connection pool to the specified system
// The pool will be saved in the pool list to be used
// from other threads by JCO.getClient(SID).
// The pool must be explicitely removed by JCO.removeClientPool(SID)
JCO.addClientPool( SID, // Alias for this pool
10, // Max. number of connections
"000", // SAP client
"johndoe", // userid
"*****", // password
"EN", // language
"appserver", // host name
"00" );
// Create a new repository
// The repository caches the function and structure definitions
// to be used for all calls to the system SID. The creation of
// redundant instances cause performance and memory waste.
repository = JCO.createRepository("MYRepository", SID);
catch (JCO.Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// Retrieves and prints information about the remote system
public void systemInfo()
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("RFC_SYSTEM_INFO");
// if the function definition was found in backend system
if(ftemplate != null) {
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
// Get a client from the pool
JCO.Client client = JCO.getClient(SID);
// We can call 'RFC_SYSTEM_INFO' directly since it does not need any input parameters
client.execute(function);
// The export parameter 'RFCSI_EXPORT' contains a structure of type 'RFCSI'
JCO.Structure s = function.getExportParameterList().getStructure("RFCSI_EXPORT");
// Use enumeration to loop over all fields of the structure
System.out.println("System info for " + SID + ":\n" +
for (JCO.FieldIterator e = s.fields(); e.hasMoreElements(); ) {
JCO.Field field = e.nextField();
System.out.println(field.getName() + ":\t" + field.getString());
}//for
System.out.println("\n\n");
// Release the client into the pool
JCO.releaseClient(client);
else {
System.out.println("Function RFC_SYSTEM_INFO not found in backend system.");
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
// Retrieves and displays a sales order list
public void salesOrders()
JCO.Client client = null;
try {
// Get a function template from the repository
IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST");
// if the function definition was found in backend system
if(ftemplate != null) {
// Create a function from the template
JCO.Function function = ftemplate.getFunction();
// Get a client from the pool
client = JCO.getClient(SID);
// Fill in input parameters
JCO.ParameterList input = function.getImportParameterList();
input.setValue("0000001200", "CUSTOMER_NUMBER" );
input.setValue( "1000", "SALES_ORGANIZATION");
input.setValue( "0", "TRANSACTION_GROUP" );
// Call the remote system
client.execute(function);
// Print return message
JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
System.out.println("BAPI_SALES_ORDER_GETLIST RETURN: " + ret.getString("MESSAGE"));
// Get table containing the orders
JCO.Table sales_orders = function.getTableParameterList().getTable("SALES_ORDERS");
// Print results
if (sales_orders.getNumRows() > 0) {
// Loop over all rows
do {
System.out.println("----
// Loop over all columns in the current row
for (JCO.FieldIterator e = sales_orders.fields(); e.hasMoreElements(); ) {
JCO.Field field = e.nextField();
System.out.println(field.getName() + ":\t" + field.getString());
}//for
} while(sales_orders.nextRow());
else {
System.out.println("No results found");
}//if
else {
System.out.println("Function BAPI_SALESORDER_GETLIST not found in backend system.");
}//if
catch (Exception ex) {
System.out.println("Caught an exception: \n" + ex);
finally {
// Release the client to the pool
JCO.releaseClient(client);
protected void cleanUp() {
JCO.removeClientPool(SID);
public static void main(String[] argv)
Example2 e = new Example2();
e.systemInfo();
e.salesOrders();
e.cleanUp();
regards,
Bhavik -
1) can we use single used badi for multiple implementations?
2) How can we enhance sandard program?
3)define inbound idoc and outbound idoc?Yes, that is right. You can have more then one implementation for single use BAdIs. But if you have more than one implementation active than the GET BADI statement will raise cx_badi_multiply_implemented. And this means that you have to switch off one implementation if you want to use another implementation. Or am I wrong?
Reference: [Multiple Use|http://help.sap.com/saphelp_nw70/helpdata/EN/e4/5c3642eca5033be10000000a1550b0/frameset.htm]
Regards Rudi -
Need example for BAPI query. Please, help.
Hi,
badly need help on BAPI_ACC_ACTIVITY_ALLOC_POST.
Does anybody have some example code for jCO query?
Thanks.
VladimirHi,
Try this code...
package jco;
import com.sap.mw.jco.*;
public class jcosample
public static void main(String args[])
JCO.Client myConnection = null;
JCO.Repository mRepository = null;
JCO.Function myFunction = null;
try
myConnection = JCO.createClient("client","username","password" ,"language","ip address","system no");
myConnection.connect();
mRepository = new JCO.Repository("WIPRO",myConnection);
try
if (mRepository == null )
System.out.println("NuLL");
try
IFunctionTemplate ft=mRepository.getFunctionTemplate("BAPI_COMPANYCODE_GETLIST");
myFunction=ft.getFunction();
}catch (Exception ex)
throw new Exception(ex + "Problem retrieving JCO.Function object.");
if (myFunction == null)
System.exit(1);
myConnection.execute(myFunction);
}catch (Exception ex)
ex.printStackTrace();
System.exit(1);
myConnection.execute(myFunction);
JCO.Table codes = null;
codes =myFunction.getTableParameterList().getTable("COMPANYCODE_LIST");
int size;
size =codes.getNumRows();
if (size == 0)
System.out.println("No value matches the selection cretaria");
else
for (int i = 0;i<=size; i++)
codes.setRow(i); System.out.print(codes.getString("COMP_CODE")); System.out.println(codes.getString("COMP_NAME"));
}catch( Exception e)
e.printStackTrace();
Hope that helps...
Note: in case for the BAPI that inserts or modified data you must call the BAPI_TRANSACTION_COMMIT also for the changes to get reflected in the Database.
Please let me if that helps you.
Cheers
Kathir~ -
Need help with interface development
Hi i need help with requirement below with developing interface between or online order system and sap plz lemme know what is bapi i use for creating customer, update and assigining partner id to costumer.
SAP Development
1. Using standards SAP functional module (with BAPI), create interface that will create/change Ordering party customer in SAP. Following fields are mandatory for customer creation:
MANDT Client
VKORG Sales organization
VTWEG Distribution Channel
SPART Division
KDGRP Customer Group (= ZORP)
KUNNR Customer number
NAME1 Name 1
NAME 2 Name 2 (if required)
SORTL Search term (short description)
ZZALTKN Search term 2 (old customer number)
LAND1 Country
ORT01 City
PSTLZ Zip Code
REGIO Region (state in USA)
STRAS Street
TELF1 Primary telephone number
TELFX Primary Fax number
ZZPRPLANS Payment Plan
CCINS Payment card: Card type
CCNUM Payment cards: Card number
CCDEF Payment Card: Default Card Indicator
ZBDGID Customer Budget ID
ZHOLD Budget Hold indicator
ZZCOSTCENT Cost Center
2. Upon successful customer creation system will issues S (success) message that customer has been created.
3. New ordering party customer created in step ½, will have to be assigned as new partner to its belonging Sold-to/Ship-to customer. Use standard SAP customer functional module in order to perform this partner ID assignment. Partner ID for ordering party should be ZO.
1.7 Enhancement Functionality
Apart from creating a new interface to do the required functionality, the Order Create Interface also has to be changed to accommodate a field to pass the Ordering Party Number on the Order. The technicalities of how we are going to implement the interface will be laid out in the Tech Specs.
Thanks
in advanceYou have double posted, please mark this one as "solved on my own" and refer to this thread
need help with interface development
Regards,
Rich Heilman -
Need FM or BAPI to create Notification Order (Like TCode IW34)
Hi PLM Expert,
Can you give hints to create Notification Order (Like TCode IW34) from FM or BAPI?
Thanks in advance,
GilangHello Raj and other experts, I need help creating a a maint order referencing notification. I am using method CREATETONOTIF to create Order refer notification. I am successful in creating order however bapi is creating two orders. One without reference to notification and second one with reference to notification. Please note i have to use create header object type and method 'Create' as well.
If i get rid of first method below it_methods - Object id header & Method create so i only execute method called CREATETONOTIF , i get a error on "Enter another operation number" from bapi . Your help would be greatly appreciated. I am stuck on this error now. -
I need help to master ABAP.
Please email me....if u can help me : [email protected]
I am looking for help with IDOC, ALE, RFC and BAPI.
Please send me mail. We can talk more.Jeff, please ask specific questions here. The answer will come. Try to not ask for material to be sent directly to you. This is not in the community spirit as it will only benefit you. Also you might want to try the search functionality on this site. There is plenty of info out there.
Regards,
RIch HEilman -
I need Realtime scenarios bapi
hi
i need Realtime scenarios BAPI
anyone send links.
thanksHi,
Suppose a company has users who use VB to key in sales order and they dont have access to SAP.
This VB application must create sales order in SAP.
In such case, VB must call the BAPI to create sales order .
Reward if helpful. -
Need help to develop Pythagoras theorem-
Hi i need help to develop proofs 2,3,4
of pythagoras theorems in java as demonstrations
These are applets can anyone help me with it or give me an idea of how to go about developing it -
the site is the following
http://www.uni-koeln.de/ew-fak/Mathe/Projekte/VisuPro/pythagoras/pythagoras.html
then double click on the screen to make it startPardon my ASCII art, but I've always liked the following, simple, geometric proof:
a b
---------------------------------------+
| | |
a| I | II |
| | |
---------------------------------------+
| | |
| | |
| | |
| | |
| | |
b| IV | III |
| | |
| | |
| | |
| | |
| | |
| | |
---------------------------------------+It almost goes without saying that I+II+III+IV == (a+b)^2, and II == IV == a*b,
I == a*a and III == b*b, showing that (a+b)^2 == a^2+a*b+a*b+b^2.
I hope the following sketch makes sense, stand back, ASCII art alert again: a b
---------------------------------------+
| . VI |
| . . |a
| V . |
| +
| |
| . |
b| . |
| |
| IX |
| . |
| . |b
| |
+ |
| . |
a| . . VII |
| VIII . |
---------------------------------------+
a bThe total area equals (a+b)^2 again and equals the sum of the smaller areas:
(a+b)^2 == V+VI+VII+VIII+IX. Let area IX be c^2 for whatever c may be.
V+VII == VI+VIII == a*b, so a^2+b^2+2*ab= c^2+2*a*b; IOW a^2+b^2 == c^2
Given this fundamental result, the others can easily be derived from this one,
or did I answer a question you didn't ask?
kind regards,
Jos -
I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?
What file format did you export it to?
-
Need help to open audios attached in a PDF file
Hello
I just need help. I have ordered a reviewer online that has audios and texts in a pdf file. I was told to download the latest adobe reader on my computer. I have done the same thing on my ipad mini. I am not so technical with regards to these things. Therefore I need help. I can access the audios on my computer but not on my ipad.
I want to listen to audios with scripts or texts on them so i can listen to them when i am on the go. I was also informed that these files should work in any device. How come the audios doesnt work on my ipad.
Please help me on what to do.
ThanksAudio and video are not currently support on Adobe Reader. :-<
You need to buy a PDF reader that supports them. My suggestion is PDF Expert from Readdle ($US 9.99) -
Need help to open and look for file by name
Hi,
Im needing help to open a folder and look for a file (.txt) on this directory by his name ... The user ll type the partial name of file , and i need look for this file on the folder , and delete it ....
How can i look for the file by his name ?
Thx =)Hi ,
Sry ,, let me explain again ... I ll set the name of the files in the follow order ... Name_Serial_date_chanel.sxc ..
The user ll type the serial that he wants delete ...
I already figured out what i need guys .. thx for the help ^^
I used List Directory on advanced IO , to list all .. the Name is the same for all ... then i used Name_ concateneted with Serial(typed)* .. this command serial* ll list all serials equal the typed , in my case , ll exist only one , cuz its a count this serial .Then i pass the path to the delete , and its done !
Thx ^^ -
I need help, my ipod touch is not recognized by windows as a harddisk
i need help, my ipod touch is not recognized by windows like a memory card or a harddisk.
i would like to transfer the files from pc to my ipod touch without useing itunes.
as i see theres some people here that theires ipod touch are recongnzed as a digitl camra, mine is reconzied as nothing, some help plz.
Message was edited by: B0OmB0Om wrote:
ok but i still dont understed, only my itnes recongnize my ipod, when i go to " my cumputer, it dosent show up there, not even as a digital camra
Your Touch is working correctly. Currently, without unsupported third party hacks, the Touch has NO disc mode. It will only show up in iTunes.
how do i put programes and games in my ipod touch
Right now, you don't. The SDK is scheduled to be released in Feburary. Then developers will be able to write programs that will be loadable. -
Weird error message need help..
SO.. i havent updated my itunes in a while because i keep getting this weird message.. it comes up when im almost done installing the newest/newer versions of itunes. it says
"the feature you are trying to use is on a network resource that is unavailable" "click ok to try again or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"
now when ever i choose a file from the browse box it replies with this message "the file 'xxx' is not a valid installation package for the product iTunes. try to find the installation package iTunes.msi in a folder from which you can install iTunes."
no idea need help thanks
~~~lake
Message was edited by: DarkxFlamexCaster
Message was edited by: DarkxFlamexCaster+it comes up when im almost done installing the newest/newer versions of itunes. it says+ +"the feature you are trying to use is on a network resource that is unavailable" "click ok to try again or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"+
With that one, let's try the following procedure.
First, head into your Add/Remove programs and uninstall your QuickTime. If it goes, good. If it doesn't, we'll just attend to it when we attend to iTunes.
Next, download and install the Windows Installer CleanUp utility:
Description of the Windows Installer CleanUp Utility
Now launch Windows Installer CleanUp ("Start > All Programs > Windows Install Clean Up"), find any iTunes and/or QuickTime entries in the list of programs in CleanUp, select those entries, and click “remove”.
Next, we'll manually remove any leftover iTunes or QuickTime program files:
(1) Open Local Disk (C:) in Computer or whichever disk programs are installed on.
(2) Open the Program Files folder.
(3) Right-click the iTunes folder and select Delete and choose Yes when asked to confirm the deletion.
(4) Right-click the QuickTime folder and select Delete and choose Yes when asked to confirm the deletion. (Note: This folder may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
(5) Delete the QuickTime and QuicktimeVR files located in the C:\Windows\system32\ folder. Click Continue if Windows needs confirmation or permission to continue. (Note: These files may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
(6) Right-click on the Recycle Bin and on the shortcut menu, click Empty Recycle Bin.
(7) Restart your computer.
Now try another iTunes install. Does it go through properly now?
Maybe you are looking for
-
Viber can't access Push Notifications
I deleted Viber from my Iphone 4, after it duplicated and scrambled the Viber address book. Reinstalled the App, and now get a error message saying "Viber can't access Push Notifications". Checked Settings/Notifications, and Viber is "On". Tried the
-
How to add a PERCENTAGE sign to the formula
I was using %A in a fomula to calculate variance %age. Because %A is based on absolute value that eliminates the sign it wont work for us. I am planning to do direct calculation without %A to calculate pecent varaince but then I lose the % sign from
-
No taxes on sales/ purch. are allowed for account 50600000 , v0 is not al
Hi , While posting in MIRO , the below error message is coming. No taxes on sales/ purch. are allowed for account 50600000 , v0 is not allowed . this account is P& L statement account with Tax category blank in master data. please help me how to sol
-
Changing the G/L Account while Posting the Goods Receipts in MIGO
Hi All, I have requirement in which G/L Account needs to be changed based on some validation while Posting the Goods Receipt in MIGO. I have created exit in OBBH by copying the standard SAP Program RGGBS800 in view V_T80D. I changed following entry i
-
Nokia sync problems. E7.
I received the notification concerning the joining of Ovi sync with Nokia mail contacts so I signed up & tried synching my phone contacts with my Nokia email account, the problem is whenever I sync the contacts using the phone they don't update, all