Doubt in Basic Bapi function
Hi experts,
I have a small doubt in BAPI, Actually i want to add the vendor price only in MEK1. For that am using BAPI to add the vendor price.
Can anyone tell where we need to write the source code? We need to write a report program? How it will trigger the particular transaction?
Can any one explain this?
Mohana
Hi Mohana,
for that you need to seacrh for the BADI or Userexit,...when ever any changes are maded in that transaction based one the situation your BADI or userexit will trigger and that will update to the data base...if you use that BAPI in that EXIT.....
if you are using separatly the program...every time you need to execute that program for updating that field in that transaction...
Thanks!
Similar Messages
-
What is the difference between the normal function module and bapi function
hi,
what is the difference between the normal function module and bapi function module.Hi
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
Regards
Anji -
How to define null or empty value in BAPI function modules?
Hi,
I have problem with BAPI functions, where some parameters are mandatory.
For example: when I try to use HR BAPI's(BAPI_PERSDATA_CHANGE, etc.) I have to insert parameters like SUBTYPE,OBJECTID,LOCKINDICATOR. The PA0002 table that is used from this BAPI doesn't have SUBTYPE, OBJECTID, LOCKINDICATOR, for any of the records that I would like to select.
So what I tried, was to put a ' ', to indicate that is empty. It returned an error message saying "Make an entry in all required fields". Next tried to put in some values for these fields -- and it returned an error message saying "No data selected from 0002 for this period".
I also tried to run BAPI_FAMILY_CHANGE that uses data from table PA0021. Here I found some records with SUBTYPE, OBJECTID fields that were not empty, but LOCKINDICATOR was still missing. So I tried to put LOCINDICATOR value directly in to database (with MS SQL Enterprise Manager). After that I was able to use BAPI_FAMILY_CHANGE.
I think that manually inserting data in database is not normal procedure.
Is there something that I have missed out?
I mean -- how can I get this to work without inserting data directly in database?
How can I define null or empty value in BAPI function modules?
Thank you in advance.
Best regards,
MihailDefining an empty value for a parm in a table is easy.
First get the function's definition from the SAP system
Second only populate the fields for which you have a value to set
Third execute the function.
The JCO takes care of the rest.
Enjoy -
HOw to find the BAPI function module
Hi all,
I have a field called IEVER in table EIKP.
How to find the related BAPI function module and BAPI structure for this filed.
Thanks in advance
KPHi KP,
can you tell us the name of the transaction in which you saw this field?
If it is in PO Creation or Change you can probably look at the bapis
BAPI_PO_CREATE or BAPI_PO_CHANGE
Regards,
Ravi -
Every time I try to upload a video to youtube or a pictures to a blog service, such as tumblr, I am unable to do so with the default uploading options (usually something that allows multiple uploads, etc). Instead, I can upload these media using their "basic upload" functions. Why and what can be done?
== URL of affected sites ==
http://www.youtube.com; http://www.tumblr.comPlease read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test. -
BAPI function module name and mandatory fields
Give the name of BAPI function module for pricing change into the transaction VA05 ?
What are the mandatory fields ?
Please give a exemple code to do this.Hi,
VA05 is for list of sales order. But if you want to change pricing of material stocks go for follwoing fn module.
BAPI_SALESORDSTCK_PRICE_CHANGE
If you want other BAPI for sales related, just go to SE37, give BAPISALE and press F4, you will get all the BAPI fn modules.
Rewards points if helpful.
Regards,
CS. -
Using BAPI functions BSP file upload
Hello,
Can anyone clarify me that ' can I upload a file form front end using BSP to the BP as backend to store e the image using the BAPI functions. All this is to get each BP photo in the Solution manager.
or I have use the datasets for the file upload. Please help me out.
With best regards,
SuneethaHi,
Uploading LOGO in SAP
http://www.sap-img.com/ts001.htm
Upload graphics on
The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.
<b>ws_upload</b>
Transfer files from the frontend to the application server.
Rgds,
Prakash -
BAPI Function taking too much time
Hi,
One BAPI function BAPI_INCOMINGINVOICE_CREATE
taking too much time to process the data. do we have any alternative to reduce the time taken by the BAPI function ?
like by using any SAP Notes or any other alternative function or by any other way.
Thanks and regards,
ShailendraHI,
Please apply the OSS Note 830717. I applied this note and ran transaction code FBZ0 and the "withholding tax code" changed from XX to 03.
Reward if helpful -
Is there a BAPI function module which reverses the sign of an integer
Hi Friends,
Could u plz tell me a BAPI function module which can reverse the
sign of an integer ?
For example:
if i get the integer value in work area as <number> <sign> , i need to change it to <sign><number>.
i.e if i get the integer value in work area as "248-" ("-" indicates minus sign) to " -248 ".
i.e if i get the sign after the value , my requirement is to get the sign before the value.
The actual ABAP query is:
data: QTY_1 TYPE CHAR10,
QTY_2 TYPE CHAR10,
WA_DISTK_PORTLET-QUANTITY TYPE INT4.
QTY_1 = WA_DISTK_PORTLET-QUANTITY.
SEARCH QTY_1 FOR '-'.
IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
SPLIT QTY_1 AT '-' INTO QTY_1 QTY_2.
CONDENSE QTY_1.
CONCATENATE '-' QTY_1 INTO QTY_1.
CONDENSE QTY_1.
ELSE.
CONDENSE QTY_1.
ENDIF.
CLEAR: WA_DISTK_PORTLET-QUANTITY.
MOVE : QTY_1 TO WA_DISTK_PORTLET-QUANTITY.
when i move this QTY_1 to work area quantity field The sign is coming after the numeric value.
Note: There is no possibility to change the datatype of quantity field.
I have tried my level best with 'CLOI_PUT_SIGN_IN_FRONT' function module.
I will assign full points to the correct function module.Hi Ram,
try this ang look into fields.
data: fields type table of SVAL with header line.
fields-tabname = 'MARA'. fields-fieldname = 'MATNR'. append fields.
fields-tabname = 'BKPF'. fields-fieldname = 'BUDAT'. append fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
POPUP_TITLE = 'Value Insert'
TABLES
FIELDS = fields.
Regards, Dieter -
BAPI Function required for Vendor clearing F-44
Dear all,
Do we have a BAPI Function for Posting entries for f-44
( Vendor Clearing ).
Regards,
Gaurav SoodHi gaurav
Check this out BAPI_AP_ACC_GETBALANCEDITEMS
<REMOVED BY MODERATOR>
with regards
Rohan Shetty
Edited by: Alvaro Tejada Galindo on Jun 9, 2008 3:22 PM -
LSMW or ABAP Program:- I need BAPI function module or Direct input program
hi experts,
I have to develop the program which uploads the transportation pricing data for freight cost management.
the transcation code is XK15 for the application A.
There is a program called RV14BTCI which will uploads for the application V or M not for A.
So i can use lsmw or direct input program in both lsmw and abap program so plz help me if there is any BAPI function module or Direct input program for Application A.
thank you,
waiting for u r reply.
Edited by: SANTOSH MARUPALLY on Jan 22, 2008 6:27 AMHi Santosh
Am not really sure if RV14BTCI can not be used for other applications apart from V and M.
You can try using BAPI: BAPI_PRICES_CONDITIONS. Over the forum you can find few example coding.
Regards
Eswar -
BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition
Dear All,
BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition in PO pricing. Please give me a right solution on this query.
Below I have given my code.
Thanks and Regards
Makarabd
poitem-po_item = '00010'.
poitem-net_price = '1060.00'.
poitem-period_ind_expiration_date = 'D'.
APPEND poitem.
poitemx-po_item = '00010'.
poitemx-po_itemx = 'X'.
poitemx-net_price = 'X'.
APPEND poitemx.
select single * from ekko where ebeln = po_no.
pocond-itm_number = '00010'.
pocond-cond_type = 'ZVCU'.
pocond-cond_value = 10.
pocond-currency = '%'.
pocond-STAT_CON = 'X'.
pocond-accruals = 'X'.
pocond-change_id = 'I'. " I - Add , U - Update , D - Delete
APPEND pocond.
pocondx-itm_number = '00010'.
pocondx-itm_numberx = 'X'.
pocondx-cond_type = 'X'.
pocondx-cond_value = 'X'.
pocondx-currency = 'X'.
pocondx-change_id = 'X'.
pocondx-STAT_CON = 'X'.
pocondx-accruals = 'X'.
APPEND pocondx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = po_no
TABLES
return = return
poitem = poitem
poitemx = poitemx
pocond = pocond
pocondx = pocondx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.Hi ,
Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
[http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
Thanks,
Anjaneya . -
BAPI functions for file upload
Hi All,
can anyone tell me Bapi functions for the file or image upload using?
With best regards,
SuneethaHi,
Uploading LOGO in SAP
http://www.sap-img.com/ts001.htm
Upload graphics on
The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.
<b>ws_upload</b>
Transfer files from the frontend to the application server.
Rgds,
Prakash -
Bapi Function call from Crystal reports 2008. import parameters syntax.
Dear,
I have an issue with calling a function directly from Crystal reports (2008) in the R3 system.
(if this belongs in another thread , please add the link if moved !)
I try to get data through function "BAPI_CLASS_GET_CLASSIFICATIONS".
Till now all possible input parameters have no data-result.
I already read other threads stating that 'for example' the Language key needs to be provided in a single character. 'E' in stead of 'EN'.
I also already created a Z-wrap-function that fills out all input parameters 'hardcoded'. This works.
clearly there are som syntax changes in passing the values to R3 when called from Crystal Reports.
Can someone state which syntax has to be followed for numeric fields, for datefields etc. (so when i make these dynamical, I know which syntax should be the outcome of the formula)
in my function that doesn't work I use these selections:
(this function is called in a standard report only calling this function)
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_ISO} = "E" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_INT} = "E" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSNUM} = "DSWTEST" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSTYPE} = "001" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_KEY_DATE} = Date (2011, 08, 05)
I already tried other languages or the 'EN' as input.
(I would like to know how the date is passed exaclty to R3.)
The function is of course RFC enabled.
when I call the my Z-function with predefined inputparameters in R3 it does give the wanted result.
FUNCTION ZBAPI_CLASS_GET_CLASSIFICATION.
""Local Interface:
*" TABLES
*" OBJECT_CLASSIFICATION STRUCTURE BAPI_OBJECT_VALUES
*" CLASS_OBJECTS STRUCTURE BAPI_CLASS_OBJECTS
data ZOBJECT_CLASSIFICATION type TABLE OF BAPI_OBJECT_VALUES.
data ZCLASS_OBJECTS type TABLE OF BAPI_CLASS_OBJECTS WITH HEADER LINE.
ZCLASS_OBJECTS-OBJECT_KEY = '000000000000000085'.
ZCLASS_OBJECTS-OBJECT_TYPE = 'MARA'.
Append ZCLASS_OBJECTS.
CALL FUNCTION 'BAPI_CLASS_GET_CLASSIFICATIONS'
EXPORTING
CLASSTYPE = '001'
CLASSNUM = 'DSWTEST'
* KEY_DATE = SY-DATUM
* LANGU_ISO =
* LANGU_INT =
* CHARACTS_OF_CLASS_ONLY =
* IMPORTING
* RETURN =
TABLES
OBJECT_CLASSIFICATION = ZOBJECT_CLASSIFICATION
CLASS_OBJECTS = ZCLASS_OBJECTS
OBJECT_CLASSIFICATION[] = ZOBJECT_CLASSIFICATION[].
ENDFUNCTION.
please advise.
once again if this should be moved to another forum , add the link please!Dear,
I just debugged my Z-function, after adding all input parameters as in the standard BAPI function.
All parameters seems to be passed correctly except from the table parameters from
CLASS_OBJECTS
So all I_parameters are passed :
{ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_INT} = "EN" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_ISO} = "EN" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_KEY_DATE} = Date (2011, 08, 05) and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSNUM} = "DSWTEST" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSTYPE} = "001" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_CHARACTS_OF_CLASS_ONLY.BAPIFLAG} = ""
but the table parameters aren't coming through:
{ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
{ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
these are 'blanco' in the function.
also after the function is executed and all data is retrieved, when passing the data back to Crystal reports, once again, the table result isn't passed to Crystal Reports.
please advise -
Bapis, Functions or Methods for Down Payment F-47
Hi masters
I am creating a webdynpro application to display, release and reject Down Payment like F-47 transactions.
Please give me the Bapis, Functions or Methods to display details of some document, release and reject.
No answers will be awarded.
Edited by: Rob Burbank on Oct 28, 2009 3:14 PMHi Raj,
Please check with your workflow consultant. Anyway, I'd like to share with you how to know whether there is a standard workflow for application component in question. T-Code SWDD -> Workflow -. Other Workflow/Version. Then drilldown on the task field. Then choose structure search. You will find the standard workflow for each of the component. Unfortunately, there is no standard workflow for downpayment but if you have workflow consultant, they may be able to help.
Regards
Fauzi
Maybe you are looking for
-
JV upload - AR multi document upload
Hi Can any body explain how to do the JV upload from excel format to SAP and Multi document upload (for AR). What is the T-code for it and steps to follow it. Appreciate any help. Thanks
-
API for access to the respondent data
Our firm (www.paiwhq.com) provides survey databasing and analysis software and we would like to support our customers that are collecting respondent data using the FormsCentral service. Does Adobe provide an API that would permit us to develop an ap
-
Iphone software update server cannot be contacted
think i posted this in the wrong place whoops! here we go again: I am trying to update my iphone software to 5.0.1, and everytime i do I get a message saying "Iphone software update server cannot be contacted -make sure your network settings are corr
-
Has anyone tried restoring after the Take 2 update? I would like to know if it reverts back to 1.0, or does the restore get an update too?
-
Disk cannot be partitioned because some files cannot be moved
my boot camp assistant says "The disk cannot be partitioned because some files cannot be moved. Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Restore your information to the disk and try using Boot