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 .
Similar Messages
-
BAPI / Function Module for Sale order updation
Hi,
I need to update sale order details(Reason for rejection)..Can you please tell me any of the existing BAPI's / Function modules to do the same.hi,
try bapi_salesorder_change
<b>allocate points if useful</b>
regards,
pavan -
Bapi function module to update PRPS table
Hi ,
Presently i have a requirement which needs to update some data from ZIOS table into PRPS table. Can any one tell me what is the Bapi function module for updating data into PRPS table.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Thanks,
Satish Raju
Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:46 AMThese ZZ fields are specific to your application, use the EXTENSION parameters.
Look in BAPI_PS_INITIALIZATION documentation, there is an explanation how-to fill specific fields.
For the BAPIs used to create and change project definitions, WBS
elements, networks, activities, and activity elements, you can
automatically fill the fields of the tables PROJ, PRPS, AUFK, and AFVU
that have been defined for customer enhancements in the standard system.
For this purpose, help structures that contain the respective key
fields, as well as the CI include of the table are supplied. The BAPIs
contain the parameter ExtensionIN in which the enhancement fields can be
entered and also provide BAdIs in which the entered values can be
checked and, if required, processed further.
CI Include Help Structure Key
CI_PRPS BAPI_TE_WBS_ELEMENT WBS_ELEMENT
Procedure for Filling Standard Enhancements
Before you call the BAPI for each object that is to be created or
changed, for which you want to enter customer-specific table enhancemen
fields, add a data record to the container ExtensionIn:
o STRUCTURE: Name of the corresponding help structure
+o VALUEPART1: Key of the object + start of the data part+
o VALUEPART2-4: If required, the continuation of the data part
VALUPART1 to VALUPART4 are therefore filled consecutively, first with
the keys that identify the table rows and then with the values of the
customer-specific fields. By structuring the container in this way, it
is possible to transfer its content with one MOVE command to the
structure of the BAPI table extension.
Note that when objects are changed, all fields of the enhancements are
overwritten (as opposed to the standard fields, where only those fields
for which the respective update indicator is set are changed).
Therefore, even if you only want to change one field, all the fields
that you transfer in ExtensionIn must be filled.
You have to use these parameters in BAPI_BUS2054_GETDATA as well as in BAPI_BUS2054_CHANGE_MULTI.
Regards -
BAPI function module for FUNDS Update
Hi All,
Anybody can help us on BAPI function module for FUNDS Update in FI funds management module please.
Thanks & Regards
SriniHi,
We are writing a program to change / update the existing funds in table FMFINCODE funds master. Here we are using a function module called FM_FUND_CHANGE but we are not able to capture the return messages. So please suggest me any BAPI function module availble for the same. Tcode : FM5U
Regards
Srini -
Create Web Service Option not available for BAPI Functional Module
Hello Experts
I am trying to create a web service from a standard BAPI functional module referring following document
http://help.sap.com/saphelp_nw04/Helpdata/EN/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm
I am facing the same issue as mentioned in this thread (But for me answer is not OK)
Web Service Creation
When I click the FLIGHT Business Object and navigate to the Tools tab, I cannot see Create Web Service option.
Also when I try to start the web service wizard from (SE37 -> BAPI_FLIGHT_GETLIST) Utilities Menu, after specifying all the details, after clicking Finish, I get an error "Access Refused"
I verified the authorization to current user and gave him all the authorization required viz. (SAP_BC_WEBSERVICE_ADMIN, SAP_BC_WEBSERVICE_ADMIN_BIZ, SAP_BC_WEBSERVICE_CONSUMER etc) all 7 of them.
My system is ECC 6.0 700 Release
Thanks
PareshHello,
For creating Web service definition, you have to be a registered developer. In SAP Service Market place, you will get developer access key. This should be entered in DEVACCESS table by creating any development object.
Thanks,
Venu -
Any BAPI/Function Module for adding new record with dates in PA0027
Hi all,
I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
thanks for ur time.
MuraliHi Raj/Suresh thanks for ur answers.
but i am having a problem,i gave this values.
INFTY -
0027
NUMBER -
00000010
SUBTYPE -
010
OBJECTID
LOCKINDICATOR
VALIDITYEND -
03/12/2006
VALIDITYBEGIN -
03/01/2006
RECORDNUMBER -
000
RECORD -
P0027
OPERATION -
CHK
TCLAS -
A
DIALOG_MODE -
0
NOCOMMIT -
Y
VIEW_IDENTIFIER
SECONDARY_RECORD
i am getting short dump saying that
The source field is too short.
The current program, "SAPLHRMM", tried to assign a field to a field symbo
However, the field is shorter than the type of the field symbol, which
is not allowed.
The statement in question is in the form ASSIGN f TO <fs> CASTING or
ASSIGN f TO <fs> with a field symbol that was created using the
STRUCTURE addition.
I tried operation - Chage,Create (same thing for all inputs)
is this correct funtion moduel for my requirment?
what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
Thanks for ur time.
Murali. -
BAPI/Function module for FAIV06
Hi All,
I want post the debit/credit material document using transaction FAIV06.I searched for BAPI/function module but nothing found.
if you know any bapi/function module or is there any alternate method for posting the document.
please help.
Thanks.I think there is only a BAPI to get the details of a Info record BAPI_INFORECORD_GETLIST. For creagting / updating you will have to write a BDC.
regards,
Ravi
Note : Please mark the helpful answers -
Function module for quotation configuration update
Hi,
I am trying to update the configuration data for an item in quotation. This is a new item i am trying to insert in a quotation using BAPI 'BAPI_CUSTOMERQUOTATION_CHANGE' but not able to update/change the configuration data.
I am able to upload this data in quotation create, is there any specific value I am missing to pss to the above BAPI or is there any other FM to change/update the config data for item in a quotation?My first question to you is - Do you have a COMMIT WORK statement in your program after the BAPI is executed.
Second - the BAPI function module has a RETURN table. What values are returned ? -
Hi Experts,
Where can I find the Bapi Function Modules.
Can u provide me the coding part of how to use BAPI in our program .
Will be rewarded if helpful.
Regards.Hi Raj,
Foremost of all before you can search for a BAPI you should know the BAPI you are going to use depending on your need. Generally when you are in a project the Functional Consultant gives you the BAPI which you need to use unless you are developing your own BAPI.
By going to the Transaction BAPI, you can search for the BAPI you need. This transaction takes you to the BAPI Explorer where all the BAPIs are listed in two ways,
Alphabetical Order
Hierarchical Order
When the BAPI you need is found you can get all the details regarding all the parameters that are used in the BAPI and also as to how they are declared. DOCUMENTATION is provided for all the BAPI parameters describing them. In the DOCUMENTATION for the BAPI you fill find how a particular BAPI can be used to perform different operations. For ex: the BAPI called BAPI_PROJECT_MAINTAIN can be used perform UPDATE or RELEASE operations.
Some useful tips when using a Standard BAPI,
Go through all the data declarations of the BAPI parameters and check if any Conversion Rules are used. This is helpful as you will need to declare variables for every parameter in BAPI that you would be used by you. And all these variables should be declared of the same data type as the BAPI parameters.
Check to see if there any mandatory fields that need to be passed. Look for all the BAPI parameters that you would need and declare variables for them and map them correctly.
Though RETURN (generally a table) is may not be mandatory its useful to use it as any messages regarding success or error while processing the BAPI are populated in it. In some cases the RETURN may be a structure and in such a case there would another table where messages are populated. These are useful to be used in the program.
After processing BAPI, if successful then the Function Module BAPI_TRANSACTION_COMMIT is performed to save the changes. But if its not successful then the Function Module BAPI_TRANSACTION_ROLLBACK is performed to rollback any changes that would have occurred.
Sample Program,
Note: 1. Here the BAPI called BAPI_PROJECT_MAINTAIN is used. This BAPI is used to
Edit project including networks. It can be used perform operations like UPDATE
or RELEASE and others. Here its used to perform UPDATE operation (Here
ROFIT_CENTER is updated).
2. Here a Function Module called CONVERSION_EXIT_ALPHA_INPUT is used
to convert the profit center from the External Format(Format as in the program) to
Internal Format (Format in the BAPI).
(You can use this program to check out.)
DATA: wk_i_project_definition TYPE bapi_project_definition,
wa_i_method_project TYPE bapi_method_project,
wa_i_wbs_element_table TYPE bapi_wbs_element,
it_i_method_project TYPE STANDARD TABLE OF bapi_method_project,
it_i_wbs_element_table TYPE STANDARD TABLE OF bapi_wbs_element.
DATA: wk_i_project_definition_upd TYPE bapi_project_definition_up,
wk_return TYPE bapireturn1,
wa_i_wbs_element_table_update TYPE bapi_wbs_element_update,
wa_e_message_table TYPE bapi_meth_message,
it_i_wbs_element_table_update TYPE STANDARD TABLE OF bapi_wbs_element_update,
it_e_message_table TYPE STANDARD TABLE OF bapi_meth_message.
CONSTANTS: _index(6) TYPE c VALUE '000001',
_wbselement(11) TYPE c VALUE 'WBS-ELEMENT',
_update(6) TYPE c VALUE 'UPDATE',
_save(4) TYPE c VALUE 'SAVE'.
wk_i_project_definition-project_definition = 'M-1000000000'.
wk_i_project_definition_upd-project_definition = 'X'.
wa_i_method_project-refnumber = _index.
wa_i_method_project-objecttype = _wbselement.
wa_i_method_project-method = _update.
wa_i_method_project-objectkey = 'M-1000000000:00001-003'.
APPEND wa_i_method_project TO it_i_method_project.
CLEAR wa_i_method_project.
wa_i_method_project-method = _save.
APPEND wa_i_method_project TO it_i_method_project.
wa_i_wbs_element_table-wbs_element = 'M-1000000000:00001-003'.
wa_i_wbs_element_table-profit_ctr = '65576'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_i_wbs_element_table-profit_ctr
IMPORTING
output = wa_i_wbs_element_table-profit_ctr.
APPEND wa_i_wbs_element_table TO it_i_wbs_element_table.
wa_i_wbs_element_table_update-profit_ctr = 'X'.
APPEND wa_i_wbs_element_table_update TO it_i_wbs_element_table_update.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
EXPORTING
i_project_definition = wk_i_project_definition
i_project_definition_upd = wk_i_project_definition_upd
IMPORTING
return = wk_return
TABLES
i_method_project = it_i_method_project
i_wbs_element_table_update = it_i_wbs_element_table_update
i_wbs_element_table = it_i_wbs_element_table
I_WBS_MILESTONE_TABLE =
I_WBS_MILESTONE_TABLE_UPDATE =
I_WBS_HIERARCHIE_TABLE =
I_NETWORK =
I_NETWORK_UPDATE =
I_ACTIVITY =
I_ACTIVITY_UPDATE =
I_RELATION =
I_RELATION_UPDATE =
e_message_table = it_e_message_table
I_ACTIVITY_ELEMENT =
I_ACTIVITY_ELEMENT_UPDATE =
I_ACTIVITY_MILESTONE =
I_ACTIVITY_MILESTONE_UPDATE =
IF wk_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
LOOP AT it_e_message_table INTO wa_e_message_table.
WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
wa_e_message_table-message_type, wa_e_message_table-message_text.
ENDLOOP.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
RETURN =
LOOP AT it_e_message_table INTO wa_e_message_table.
WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
wa_e_message_table-message_type, wa_e_message_table-message_text.
ENDLOOP.
ENDIF.
Regards,
Raga Suman. -
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 -
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 -
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 for SCM APO Tcode /SAPAPO/AC42
Hi,
I want to know the BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
This BAPI FM should return the column values "Remaining Prod Alloc" and "Incoming Order Quantity" when we give
below details as inputs for the Tcode /SAPAPO/AC42
Product Allocation Group
Product
Allocation Procedure
prod Alloc step
Product Alloc Object (Characteristics of Product Alloc Group)
Plant (Characteristics of Product Alloc Group)
Customer Group 5 (Characteristics of Product Alloc Group)
Reward points if helpful.
Thanks,
MichHi,
You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
ProductAllocationAPO.DataInsert
Interface to Import Product Allocation Data Functionality
This method is used to adopt data from OLTP systems for product allocation in the global availability check.
You can do the following using the method:
Adopt new data
You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
Change existing data
You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
Prerequisite
To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
Regards
Vinod -
BAPI Function Module for SCM APO Trans code /SAPAPO/AC42
Hi,
Is there any BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
This BAPI FM should return the column values "Remaining Prod Alloc" and "Incoming Order Quantity" when we give
below details as inputs for the Tcode /SAPAPO/AC42
Product Allocation Group
Product
Allocation Procedure
prod Alloc step
Product Alloc Object (Characteristics of Product Alloc Group)
Plant (Characteristics of Product Alloc Group)
Customer Group 5 (Characteristics of Product Alloc Group)
Reward points if helpful.
Thanks,
MichHi,
You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
ProductAllocationAPO.DataInsert
Interface to Import Product Allocation Data Functionality
This method is used to adopt data from OLTP systems for product allocation in the global availability check.
You can do the following using the method:
Adopt new data
You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
Change existing data
You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
Prerequisite
To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
Regards
Vinod
Maybe you are looking for
-
Want to find out how a batch classification is used
Hello I have previously sent out a message and the idea given was not very helpful. Anyway, this is my question: I have found a class and its characteristic which was setup in the system and I would like to know how this classification` is being use
-
Business Activity Monitoring of ODI integration process.
Dear All, I would like to understand steps or methdology, to implement monitoring of Integration process in ODI 11g so that business users can monitor the success and failure of the scheduled process in production environment.. Thanks and Regards
-
Macbook pro has had many kernal panics now won't even start
I've read the phrases kernal panic and failing gpu. I stating getting these a few months back. They have been happening in clusters. Now after closing the book it won't start at all and it feels hot. Its gotten hop in the past when apparently it kept
-
Hyperion Essbase on 64-bit and Other application are on 32-bit
Hi I am going to Install Hyperion Essbase on AIX (Version: 6.1) on 64-bit and Other Hyperion application like EAS,EIS, calc manager, Foundation services, Financial report and planning on windows 2008 SP2 with 32-Bit. I future any connectivity issue w
-
Hello, I want to send a PDF to Lifecycle ES via a JavaScript-function inside this PDF (initiated by a button in PDF). This js-function calls a Lifecycle service via WebService. The following methods deliver the byte-code of the current PDF: var v_doc