BAPI to change Specification in EH&S
Hi Andreas
I want to know is there any difference in using C1F2_SUBSTANCES_READ_WITH_REF to read out property data and
BAPI_BUS1077_GETDETAIL
Also I came across the following 2 Bapi's an alternative for C1F2_SUBSTANCE_UPDATE
BAPI_BUS1077_CREATE : To create any new value for the Property
BAPI_BUS1077_CHANGE : To change any existing value for the property
Had anyone tried this.. Please let me know some tips about this Bapi.
Appreciate your help
David
Hi David,
there is not much difference in the use of the C1F2 APIs and the BAPIs. Just the interfaces are different. Internally in the BAPI is calling the C1F2 APIs.
Maybe the use of the BAPIs is a bit easier, because the documentation is better.
Regards,
Andreas
Similar Messages
-
BAPI to change Billing document for output type
Hi Gurus,
I need to know if there is a BAPI to change a Billing document SD to add a new output type.
Thanks in advance.
Mariano.Hi all,
To be more specific, my requirement is determinate a new output type in the billing document if other output type already was printed, so as I can't determinate automaticaly the output type by standard I need to create a program to insert an output type in the billing document if other one was printed; for that I need to know if there is a BAPI to change the billing document to insert this new output type.
Thanks,
Mariano. -
BAPI to change a BOM copmonent
Hi gurus,
I am using a BAPI named by BAPI_BOM_UPLOAD_SAVE.
With this BAPI i could create a new BOM. But i am not able to change a specific component in the BOM. Is there any indicators to imply the change or is there any BAPI to change the existing BOM component without having the whole structure to be used.
Regards,
Nehru.FU CSAP_MAT_BOM_MAINTAIN
Functionality
You can use function module CSAP_MAT_BOM_MAINTAIN to process simple material BOMs.
This function module is intended mainly as a tool for changing BOMs. However, it can also be used to create BOMs.
If you only want to create BOMs, use function module CSAP_MAT_BOM_CREATE.
To change BOMs, you can also use the following function modules:
CSAP_MAT_BOM_OPEN
CSAP_BOM_ITEM_MAINTAIN
CSAP_MAT_BOM_CLOSE
For more information and examples, see the documentation of the individual function modules.
Restrictions:
To date, you can only process one alternative or variant with this function module. This means that, if you do not enter an alternative for function module CSAP_MAT_BOM_MAINTAIN, the system assumes that you want to process alternative 01.
To date, changes to the BOM header are not yet supported.
Please note:
The item to be changed can be identified in two ways:
via the fields item category, item number, sort string, and object (depending on the item category, this can be material, document data, or class data).
The names of these identifying fields begin with 'ID_' and are contained in structure CSIDENT_02. Structure CSIDENT_02 is part of structure STPO_API03.
You can use any combination of these fields to identify the item, provided the fields identify the item uniquely. Otherwise you see the error message 'Item cannot be identified uniquely'.
via the BOM node and BOM item counter
These fields are only known to the system if you have read the BOM before. If you identify the item in this way, you should therefore use function modules CSAP_MAT_BOM_OPEN, CSAP_BOM_ITEM_MAINTAIN, or CSAP_MAT_BOM_CLOSE to change the BOM.
If the error message 'Item cannot be changed' appears in the log, this can be for the following reasons:
- The item is not valid on the valid-from date - it becomes valid at a
later date.
- The item has already been changed on the same valid-from date
with a different change number.
You cannot change the item category of an item that exists already in the system.
To delete an item, you must identify it as described above for the change function and set the deletion indicator.
FL_BOM_CREATE (default ' ')
If you set this indicator to 'X', the system creates a new BOM if it cannot find the BOM you want to change and there is no other error.
Items can only be created if sufficient data exists to do this.
The system ignores items with a deletion indicator when creating a BOM.
FL_NEW_ITEM (default ' ')
If you set this indicator to 'X', the system creates a new item if it cannot find the item with the identification entered.
The system ignores items with a deletion indicator.
Example
*---- BOM header data structure
data: begin of tstk2.
include structure stko_api02.
data: end of tstk2.
*---- BOM items table
data: begin of tstp3 occurs 0.
include structure stpo_api03.
data: end of tstp3.
*---- Object dependencies table
* Basis data
data: begin of tdep2_data occurs 0.
include structure dep_data.
data: end of tdep2_data.
* Description
data: begin of tdep2_descr occurs 0.
include structure dep_descr.
data: end of tdep2_descr.
* Source
data: begin of tdep2_source occurs 0.
include structure dep_source.
data: end of tdep2_source.
* Sequence
data: begin of tdep2_order occurs 0.
include structure dep_order.
data: end of tdep2_order.
* Documentation
data: begin of tdep2_doc occurs 0.
include structure dep_doc.
data: end of tdep2_doc.
data: flg_warning like capiflag-warning.
*- Initialize database log
call function 'CALO_INIT_API'
exceptions
log_object_not_found = 1
log_sub_object_not_found = 2
other_error = 3
others = 4.
*- Fill item data
* Exception: items that can be identified uniquely via their item
* number
* 1. Item 0010: change quantity
clear tstp3.
tstp3-id_item_no = '0010'. "Item identification
tstp3-comp_qty = '5.000'.
append tstp3.
* 2. Item 0020: delete
clear tstp3.
tstp3-id_item_no = '0020'. "Item identification.
tstp3-fldelete = 'X'.
append tstp3.
*- 3. New item 0030 (stock material)
* For new items, the ID_ fields, BOM nodes, and BOM item counters are
* initial unless they use
* FLG_NEW_ITEM
clear tstp3.
tstp3-item_no = '0030'.
tstp3-component = 'MAT200'.
tstp3-item_categ = 'L'.
tstp3-comp_qty = '1'.
tstp3-rel_prod = 'X'.
tstp3-sortstring = 'A1'.
append tstp3.
* 3. Item 0040: change component
clear tstp3.
tstp3-id_item_no = '0040'. "Item identification
tstp3-component = 'MAT500'.
append tstp3.
*- Change BOM
call function 'CSAP_MAT_BOM_MAINTAIN'
exporting
material = 'MAT100'
plant = '0001'
bom_usage = '1'
valid_from = '14.10.1996'
fl_bom_create = ' '
fl_new_item = ' '
i_stko = tstko
importing
fl_warning = flg_warning
o_stko = tstk2
tables
t_stpo = tstp3
exceptions
others = 1.
if sy-subrc eq 1.
*---- Error
* Please see log
endif.
if flg_warning eq 'X'.
*---- Please see log for information, warning messages, and success
* messages.
Endif.
Parameters
MATERIAL
PLANT
BOM_USAGE
ALTERNATIVE
VALID_FROM
CHANGE_NO
REVISION_LEVEL
I_STKO
FL_NO_CHANGE_DOC
FL_COMMIT_AND_WAIT
FL_CAD
FL_BOM_CREATE
FL_NEW_ITEM
FL_COMPLETE
FL_DEFAULT_VALUES
FL_IDENTIFY_BY_GUID
FL_WARNING
O_STKO
T_STPO
T_DEP_DATA
T_DEP_DESCR
T_DEP_ORDER
T_DEP_SOURCE
T_DEP_DOC
T_DOC_LINK
T_DMU_TMX
T_LTX_LINE
T_STPU
Exceptions
ERROR
Function Group
CSAP -
BAPI for changing delivery date and delivery time fields in LIKP table
Hi All,
Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
Please tell me experts if exists.
Thank you,
Raghu.try these:
BAPI/FM to update LIKP and VTTK tables
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800 -
Error in bapi while changing and add items in transparant table
data : t_poitems type standard table of bapimepoitem,
t_poitemx type standard table of bapimepoitemx,
w_poitems type bapimepoitem,
w_poitemx type bapimepoitemx,
t_return type standard table of bapiret2,
w_return type bapiret2.
loop at t_modify_detail into w_modify_detail-ebeln. * populating changing data
*--&modifying fields
w_poitems-po_item = w_modify_detail-ebelp.
w_poitems-material = w_modify_detail-matnr.
append w_poitems to t_poitems.
w_poitemx-po_item = w_modify_detail-ebelp.
w_poitemx-po_itemx = 'X'.
w_poitems-material = 'X'.
append w_poitemx to t_poitemx.
endloop.
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = w_header-ebeln
POHEADER =
POHEADERX =
POADDRV
tables
return = t_return
poitem = t_poitems
poitemx = t_poitemx
POADDRDELIVERY =
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT
ERROR IS:
giving error : cl_po_item_handle_mm.................cp
function in which error showing: mepo docitem_getCheck this sample code
http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
BAPI PO CHANGE with MENGE
Hope it helps to identify your requirement and fix accordingly.
ashish -
Can u tell me any predefined BAPI for change and creation of Material
Hi,
Can anybody tell me predefined BAPI for change and creation of Materialmasterand Pricing?
Thanks & regards,
Gopianne.you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
When changing material master data, you need enter only the material
number.
In the header data, you must select at least one view for which data is
to be created. Depending on the view selected, you must maintain other
required parameters. If you do not enter values for all of the required
parameters, the method is ended with an error message.
The corresponding fields in the tables (such as CLIENTDATA) must first
be supplied with data by the calling program. An indicator must also be
set for each of these fields so that the data is written to the database
by the method. This requires the calling program to supply the
corresponding field with the indicator in a checkbox table (for example,
CLIENTDATAX). Checkbox tables exist for tables that do not contain any
language-dependent texts (MAKT, MLTX), International Article Numbers
(MEAN), or tax classifications (MLAN). Several data records for a
material can be created in these tables.
regards
vivek
reward points if it helps -
Function Module or BAPI for Change Customer Master in Background
Hi,
I would like to ask is there any Function Module or BAPI to change the Customer Master in the Background
Thanks.Hi
Please check the following link
[FM|http://help.sap.com/saphelp_nw04/helpdata/EN/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm]
[FM for BAPI|Is there a BAPI or Function module can create a Customer Master record?]
Hope this link helps you
Regards,
Rajani -
FM or BAPI to change Operation data
Hi,
Is there any BAPI to change operation data? BAPI_ALM_ORDER_MAINTAIN is not useful in my case. I want to use IBAPI_ORDER_OPERATION_CHANGE but not able to get proper documentation for same.Can anyone give me a sample code about how to use IBAPI_ORDER_OPERATION_CHANGE?
My requirement is to tick check box 'Required Splitting' in operation if some conditions are met. I am planning to do this using cuatomer exit. Everything is working fine only i need to know how to use above BAPI. If this doesn't work then as a last option i will go with BDC.
Regards,
KamalHi Kamal,
Unfortunately I can not see any BAPI which changes operation data of a production order.
BAPI_PRODORD_CHANGE is available only for changing header details.
BAPI_ALM_ORDER_MAINTAIN and IBAPI_ORDER_OPERATION_CHANGE are used for changing maintenance or service orders, and not production orders, most probablty this won't work or cause issues.
I'm afraid BDC is the only option in this case.
Regards,
Marcelo Pacheco -
Bapi to change travel expense report
Hi,
I am working on an program to create a travel expense report using the 'BAPI_TRIP_CREATE_FROM_DATA' FM and it is working fine.However,i am unable to change the trip created using this FM.When i use the SAP transaction TRIP,i am able to change the travel expense report created.I am passing the status approved as '3' and account as '1' in the BAPI.Is there any bapi's available to change the travel expense report created?I would appreciate any assistance.
Regards,
Rajiv CDear there is no standard Bapi to change the same, However there is one to delete the same( <b>BAPI_TRIP_DELETE</b>) and then you can create the same.
Why you not trying to write a new BApi to change the Trip ( as standard is not available).
See other reply there is step by step process to write a custom bapi.
Just start you will find it intersting.
rewardif useful.
Amit Singla -
BAPI to change the posting data of invoice document
Hello All,
I need a BAPI to change the posting date of the invoice document (Type : RE, Generated from MIRA transaction). Do let me know if you can across a BAPI to do it.
Thanks,
Siva.BAPI_INCOMINGINVOICE_CHANGE
-
Suggest BAPI for change notification IW52
Hi,
Kindly suggest BAPI for change notification IW52.
Regards,
TanayaHow to find function module or Bapi for particular transaction in sap?
If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use.
Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
1. Find out the package of the transaction.
Start Va01 go to system --> status.
Double click on transaction
Package is VA
Open this package in SE80
Open business engineering-->Business object types
Find the BO which sounds the most appropriate
I would suggest BUS2032 Sales Order
Double click.
Open methods.
Find the released method with from data or something similar in the name
, Createfromdat2
Position the cursor in it and click the program button
Scroll down to find the bapi used in this method
With this way you can also find out programs and FM's
2. Start va01 go to system-->status
Double click transaction VA01
Double click on package
Read the application component. (this is SD-SLS Sales)
Then open the transaction BAPI
Sales and distribution>Sales>sales order
createfromdat2
Answer: This is the BAPI for your mentioned transaction code BAPI_GOODSMVT_CREATE.
thanks,
Sankar M -
Bapi for change work center data
HIi All
I need BAPI to change work center data for all categories and work center change transactions .....IR02 ,CNR2,CR02.
Thanks in advance .Hai,
Try the fm CRAP_WORKCENTER_CREATE
BAPI_BUS2054_CHANGE_MULTI
CRAP_WORKCENTER_CREATE
Regards,
Venkat -
Hi Experts,
We have a requirement to change the details of a customer. We are using BAPI, "BAPI_CUSTOMER_CHANGEFROMDATA". Change is happening when we try to change details like name, But when we try to change 'country' field, we are getting error saying "Personal address diffrent from comapany address; change not allowed"..... Can anybody help me with this,,, or can somebody suggest any other BAPI for change customer....
Thanks and regards,
Mahendra RHi Mahendra,
CHek the link below[using BAPI_CUSTOMER_CHANGEFROMDATA1; -
BAPI for change documents like FB09
Hi
I need to change the Assignment Number (ZUONR) Field for several document positions just like FB09 ,
Does somebody knows a BAPI for change document positions (BSEG) ?
Regards
FrankHi,
Please see this link, It may help you.
Add documents to materials via BAPI
Regards,
Shamma -
BAPI for "Change Base Planning Object"
Hi
Is there any BAPI for "Change Base Planning Object" ( TC KKE2).
I need to change the Price of a Resource in the Cost Items for a Base Planning Object.
So if any one know the BAPI for this topic please let me know, and if possible send me your code also it will be really help full.
RegardsI didn't find a BAPI to do this. I had to do it by a Batch Input.
Maybe you are looking for
-
Using Flash MX, ActionScript 2: I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jump
-
ISE - EAP-TLS authentication with multi-tier PKI
Hi Cisco Support Community, and again I'm struggling with my ISE understanding. It's kind of frustrating - daily more and more questions arise :) Here's the thing and I hope some of the ISE experts here know the answer: I want to authenticate my wire
-
IMovie '11 pointer has no transparency
Thanks to Karsten I successfully inserted several pointers in an iMovie 11 sports video. However my second video was not successful. Every time I insert a pointer I get a black box on the preview screen. Also sometimes the pointer type/color is ch
-
What is solaris 10 kernel file name ?
doing report on solaris 10 need the kernel file name
-
I am unable to activate my CS5 suite due to the second activation being on a machine where the hard drive failed. I need to get Adobe to clear that older activation which would allow the new activation to work when you I try it again. But I can't get