BAPI require to update Batch charachteristics to AUSP table
Hi SAP Gurus,
I need a BAPI which can update my Batch Charachteristics data into AUSP table.
Could any one please provide. Its very urgent for me.
Thanks
Satish Raju
Hi Saish,
As wolfgang told you can use BAPI_OBJCL_CHANGE. Read this documentation.
This BAPI changes an existing classification, or creates the classification if it does not yet exist. The classification is defined by the required entry fields for the object key (ObjectKey), object table (ObjectTable), class name (AllocDetail-Class_Num), and class type (AllocDetail-Class_Type). The default value for the optional date field (KeyDate) is the system date, on which all classifications become valid. The new characteristics and/or values are transferred to different tables according to data type. Numeric, time, and date characteristics are transferred to table AllocValuesNumNew, character and boolean characteristics are transferred to table AllocValuesCharNew, and currency characteristics are transferred to AllocValuesCurrNew.
Regards,
Madhu.
Similar Messages
-
BAPI to update batch characteristics
Hi,
We have a requirement to update batch characteristics in SAP. I used the VB_BATCH_CHANGE to update the batch characteristics. Below is my code. After the call, I don't get any error from this BAPI/RFC, but batch chararacteristcis values are not updated. Any ideas?
FUNCTION Z_VB_CHANGE_BATCH.
*"*"Global Interface:
*" IMPORTING
*" VALUE(YMCHA) LIKE MCHA STRUCTURE MCHA
*" VALUE(YUPDMCHA) LIKE UPDMCHA STRUCTURE UPDMCHA OPTIONAL
*" VALUE(CHANGE_LGORT) LIKE MCHB-LGORT OPTIONAL
*" VALUE(BYPASS_LOCK) LIKE AM07M-XSELK DEFAULT SPACE
*" VALUE(BYPASS_POST) LIKE AM07M-XSELK DEFAULT SPACE
*" VALUE(X_BNCOM) LIKE BNCOM STRUCTURE BNCOM OPTIONAL
*" VALUE(KZCLA) LIKE T156-KZCLA OPTIONAL
*" VALUE(XKCFC) LIKE T156-XKCFC OPTIONAL
*" VALUE(CLASS) LIKE KLAH-CLASS OPTIONAL
*" VALUE(NO_CHECK_OF_QM_CHAR) LIKE AM07M-XSELK DEFAULT SPACE
*" VALUE(REF_MATNR) LIKE MCHA-MATNR OPTIONAL
*" VALUE(REF_CHARG) LIKE MCHA-CHARG OPTIONAL
*" VALUE(REF_WERKS) LIKE MCHA-WERKS OPTIONAL
*" VALUE(SET_OLD_BATCH) LIKE AM07M-XSELK DEFAULT 'X'
*" VALUE(BUFFER_REFRESH) LIKE AM07M-XSELK OPTIONAL
*" VALUE(NO_CHANGE_DOCUMENT) LIKE AM07M-XSELK DEFAULT SPACE
*" VALUE(GRUND) LIKE MSEG-GRUND DEFAULT SPACE
*" VALUE(NO_CFC_CALLS) LIKE AM07M-XSELK DEFAULT SPACE
*" VALUE(BATCH_DEL_FLAGS) LIKE BATCHDELFLG STRUCTURE BATCHDELFLG
*" DEFAULT SPACE
*" VALUE(SEND_SYS) TYPE LOGSYS DEFAULT SPACE
*" EXPORTING
*" VALUE(YMCHA) LIKE MCHA STRUCTURE MCHA
*" VALUE(EMKPF) LIKE EMKPF STRUCTURE EMKPF
*" TABLES
*" CHAR_OF_BATCH STRUCTURE CLBATCH OPTIONAL
*" CHANGED_BATCH STRUCTURE MCHA OPTIONAL
*" ZIMSEG STRUCTURE IMSEG OPTIONAL
*" RETURN STRUCTURE BAPIRET2 OPTIONAL
*" EXCEPTIONS
*" NO_MATERIAL
*" NO_BATCH
*" NO_PLANT
*" MATERIAL_NOT_FOUND
*" PLANT_NOT_FOUND
*" LOCK_ON_MATERIAL
*" LOCK_ON_PLANT
*" LOCK_ON_BATCH
*" LOCK_SYSTEM_ERROR
*" NO_AUTHORITY
*" BATCH_NOT_EXIST
*" NO_CLASS
*" ERROR_IN_CLASSIFICATION
*" ERROR_IN_VALUATION_CHANGE
DATA: F_TRANSACTION_ID LIKE ARFCTID.
CALL FUNCTION 'TRANSACTION_BEGIN'
IMPORTING
TRANSACTION_ID = F_TRANSACTION_ID.
CALL FUNCTION 'VB_CHANGE_BATCH'
EXPORTING
YMCHA = YMCHA
YUPDMCHA = YUPDMCHA
CHANGE_LGORT = CHANGE_LGORT
BYPASS_LOCK = BYPASS_LOCK
BYPASS_POST = BYPASS_POST
X_BNCOM = X_BNCOM
KZCLA = KZCLA
XKCFC = XKCFC
CLASS = CLASS
NO_CHECK_OF_QM_CHAR = NO_CHECK_OF_QM_CHAR
REF_MATNR = REF_MATNR
REF_CHARG = REF_CHARG
REF_WERKS = REF_WERKS
SET_OLD_BATCH = SET_OLD_BATCH
BUFFER_REFRESH = BUFFER_REFRESH
NO_CHANGE_DOCUMENT = NO_CHANGE_DOCUMENT
GRUND = GRUND
NO_CFC_CALLS = NO_CFC_CALLS
BATCH_DEL_FLAGS = BATCH_DEL_FLAGS
SEND_SYS = SEND_SYS
IMPORTING
YMCHA = YMCHA
EMKPF = EMKPF
TABLES
CHAR_OF_BATCH = CHAR_OF_BATCH
CHANGED_BATCH = CHANGED_BATCH
ZIMSEG = ZIMSEG
EXCEPTIONS
NO_MATERIAL = 1
NO_BATCH = 2
NO_PLANT = 3
MATERIAL_NOT_FOUND = 4
PLANT_NOT_FOUND = 5
LOCK_ON_MATERIAL = 6
LOCK_ON_PLANT = 7
LOCK_ON_BATCH = 8
LOCK_SYSTEM_ERROR = 9
NO_AUTHORITY = 10
BATCH_NOT_EXIST = 11
NO_CLASS = 12
ERROR_IN_CLASSIFICATION = 13
ERROR_IN_VALUATION_CHANGE = 14
OTHERS = 15.
IF SY-SUBRC IS INITIAL.
CALL FUNCTION 'TRANSACTION_END'
EXPORTING
TRANSACTION_ID = F_TRANSACTION_ID
EXCEPTIONS
OTHERS = 1.
ELSE.
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
TYPE = SY-MSGTY
CL = SY-MSGID
NUMBER = SY-MSGNO
PAR1 = SY-MSGV1
PAR2 = SY-MSGV2
PAR3 = SY-MSGV3
PAR4 = SY-MSGV4
IMPORTING
RETURN = RETURN.
APPEND RETURN.
CALL FUNCTION 'TRANSACTION_ABORT'
EXPORTING
TRANSACTION_ID = F_TRANSACTION_ID
EXCEPTIONS
OTHERS = 1.
EXIT.
ENDIF.
ENDFUNCTION.
Thanks,
SaraHi Subramani,
Thanks for your response.
BAPI_BATCH_CREATE will not work for us, because we are trying to update batch, not creating new batch.
Also, The function TRANSACTION_END, I am calling in the code is responsible for committing the transaction.
Thanks,
Sara -
Function Module to update Characteristic Value (AUSP table entry)
Looking for a function module/BAPI to update a characteristic value (AUSP table entry).
This is for a material master Material classification value, not a Variant Config value that I need to update.
Anybody have one? I have one that will find the value, but not change it.
Thanks.That wasn't it, but it gave me the one piece I was missing.
Answer is:
Function Module "CLAE_CLASSIFY_OBJECT"
In CHANGE_KSSK
M = 0
KLA = (Class Type)
OBJEK = (Material Number for the Material Characteristic being changed)
OBTAB = MARA
CLASS = (Class Name with Characteristic to be changed)
S = 1
S = (blank)
AENNR = (EC Change Number or Blank)
DATUV = (Today's Date or date for change)
C = "X"
In CHANGE_AUSP
OBJEK = (Material Number for the Material Characteristic being changed)
ATINN = (Chararacteristic to be changed)
M = 0
KLA = (Class Type)
ATWRT = (New Value for Characteristic)
C = X -
Vendor field not updated in CRM pricing condition table
Hi,
We have maintained condition table with Material and Vendor fields in ECC and table is active
After replicating this table from ECC to CRM, vendor field not updated in table and it is inactive.
There is any mapping settings required to update vendor field in CRM table from ECC.
Please help me out to solve this issue
Regards
kishore kumarhi, the data field of vendor is a standard one or custimizing one?
I remeber there is a data mapping setting in CRM, for condition field. If you want to mapping a ERP standard field to a CRM custmizing one, you need to setting your rule in it. Maybe you can find it in SM30 view.
I can't login a CRM system now, so sorry for not offer your the view name. -
Creating DATASOURCE on AUSP table in CTBW tcode..
Hi friends,
i have a requirement to create a datasource on AUSP table in CTBW tcode.....
i'm unable to to solve that so, can any one give me the procedure.. how can i create.. a datasorce throgh this CTBW.. ..
actuvally my requirement is i want to create a datasorce on AUSP table even i tryd in RSO2 also..when i'm creating generic datasource.. when i enetered this table means.. it was not accepting this table name..it pose some error..
so, can any one plz suggest me.. helpful answers will be highly appriciated..
regards
BabuHi,
well I don't know your view definition, but this message always appears if you are using structures, views, tables which contain fields that refer to other tables. You always have to embed the fields of that tables into your structure. So in your case, creating a view on ausp and t006, you need to add t006-msehi as a view field. Then it should work.
regards
Siggi -
Updating Infotype 0025 from acustom table....serious problem
Hi,
I'm having a requirement to update Infotype0025 from a custom table.
Does any REPORT exist already to update Infotype 25 or others from a custom table following time constraint 1 delimiting the older record and creating the new one from the Appraisal date to '12/31/9999'?
Or any such scenarios faced by experts ?
Regards,
JyotiHi,
You have to go for a Custom Z-report & use FM
<b>"HR_INFOTYPE_OPERATION'</b>.
Hope this helps.
Thanks,
Sarika. -
Bapi : BAPI_ALM_ORDER_MAINTAIN not updating table AFVU-USR08
Hi,
I have a requirement to update table AFVU-USR08.I am actualy dealing with tcode IW32/IW33 where in we need to update operation-->enhancement tab.I am using BAPI : BAPI_ALM_ORDER_MAINTAIN to do this.I am testing the BAPI directly( Not called in any program ),I can see a message like so and so order saved under notification,But there is no entry in table AFVU-USR08.
If any one have come across this prob. and got the sol. Pl. share it with me.
Your solution will be more helpful.
Thanks,
Bharani.Hi Ferry,
1. I have also tried ur given code before BAPI_TRANSACTION_COMMIT.
l_fname = 'SOBKZ'.
l_fvalue = 'U'.
CALL FUNCTION 'CO_BH_MOD_SINGLE_FIELDS'
EXPORTING
aufnr_imp = wa_meth-objectkey(12)
field1 = l_fname
value1 = l_fvalue.
but this program is giving dump for only this particular Value saying that This is PROTECTED field.
Can anyone help me out on How to Update Special Stock Indicator on Components Tab of Maintenance Order (IW32).
If anyone has faced such type of problem & solved it then please let me also.
2. Which BADI to use for Updating Special Stock Indicator when we press enter on Components tab in Transaction IW32 ?..
Thanks in advance,
Hope to get the solution soon from all SAP gurus.
and help will be appriciated .
Gaurav. -
BAPI for Inbound Delivery Batch Split
Hello Friends,
I need any BAPI/BADI to assign batch split items to inbound delivery. In out scenario, we generate transfer posting in MIGO with split batches and during inbound delivery generation in background, system generates seperate line items instead batch split items. Now we need any BAPI/BADI to assign the batch split items during inbound delivery creation/change.
Appreciate your support
Best Regards,
GouthamHi Goutham,
Please trt to use the BADI LE_SHP_DELIVERY_PROC - methods FILL_DELIVERY_ITEM and CHANGE_DELIVERY_ITEM when VB_CREATE_BATCH is called.
As per note 317531 it is not possible to create bacthes in an SAP standard system via VL31N. There's no update on table MCHA even if you enter a new batch in the inbound delivery.
I hope this information helps you.
Kind regards,
Fábio Almeida
MM Consultant -
Hi All,
I am looking for some standard FM's or BAPI's to update the tables rpm_bupa_locat & rpm_bupa_0000 in XRPM system.
Any pointers would be appreciated.
Thanks...Hi Jesus
we had similar requirement and we used the FM FI_ITEMS_MASS_CHANGE
I am not sure if it changes BSIS or not. But I am sure you are an expert and you can check that
Br, Ajay M -
Required information on Batch status updatings.
Hi,
I want to change batch status after creating the outbound delivery through inbound idoc, i was able to create delivery , but after creation, i should update the batch status using function module BAPI_BATCH_SAVE_REPLICA, but i was unable to execute this function module correctly,
Can any one provide details like what are minimum things that are required to update the batch status using this function module.
In my system batches are defined at plant level.
Please let me know the solution if any one knows this.
With regards.
P.Prasanth.Hi
By design scom object monitoring health state is aggregated as Availability, Configuration, Performance, Security and this is nothing to do with monitoring alerts.
you can place unit monitor under any of the above.refer below link for more information
http://technet.microsoft.com/en-us/library/hh457599.aspx
http://technet.microsoft.com/en-us/library/dd440880.aspx
if any monitor under Availability, Configuration, Performance, Security is Unmonitor indicated the monitor is not initialized and Availability, Configuration, Performance, Security will show unmonitor if there are no unit monitor under it.
Regards
sridhar v -
Production order, change/update batch
Hello,
I need to change the batch of a produciton order.
Is there a BAPI that can do the job?Hi,
try this way..
CALL FUNCTION BAPI_PRODORD_GET_DETAIL'
"is used to get the Production order detials later call the below fm to update the batch
w_poitem-po_item = '0001'.
CONCATENATE 'External Services - Batch-' w_e_7b1_view-batch_number INTO w_poitem-short_text. "here Update Batch
w_poitem-quantity = w_menge.
w_poitem-preq_no = w_banfn. "w_child-trans_doc_id .
w_poitem-preq_item = w_bnfpo. "w_child-trans_line_id.
APPEND w_poitem TO t_poitem.
* Do up to X times only when locking error
DO w_i_retry_count TIMES.
REFRESH t_po_return.
CALL FUNCTION BAPI_PRODORD_CHANGE'
EXPORTING
purchaseorder = w_expProductionOrder
TABLES
return = t_return
poitem = t_poitem
poitemx = t_poitemx.
prabhudas -
Hi All,
I wanted to have Batch execute in my java method.
There are few requirements of that
1. The data has to be inserted in 2 tables
2. The data has to be deleted from 2 tables
3. I have to use Statement for delete as the query uses in clause.
I have gone through http://web.umr.edu/~ora9i/java.901/a90211/oraperf.htm for Oracle Updating batches.As per the details given in above link, I have few doubts
1.Can I use 2 or more different Prepared Statements in same Batch?
For Example:
//Creating a prepared statement for first table
ps = conn.prepareStatement(INSERT_INTO_TABLE1);
((OraclePreparedStatement)ps).setExecuteBatch (30);
ps.setInt(1, 23);
ps.setString(2, "Sales");
ps.setString(3, "USA");
ps.executeUpdate(); //JDBC queues this for later execution
ps.setInt(1, 24);
ps.setString(2, "Blue Sky");
ps.setString(3, "Montana");
ps.executeUpdate(); //JDBC queues this for later execution
ps.setInt(1, 25);
ps.setString(2, "Applications");
ps.setString(3, "India");
ps.executeUpdate(); //The queue size equals the batch value of 3
//JDBC sends the requests to the database
ps.setInt(1, 26);
ps.setString(2, "HR");
ps.setString(3, "Mongolia");
ps.executeUpdate(); //JDBC queues this for later execution
//Creating a prepared statement for second table
ps = conn.prepareStatement(INSERT_INTO_TABLE2);
((OraclePreparedStatement)ps).setExecuteBatch (30);
ps.setInt(1, 23);
ps.setString(2, "Sales");
ps.setString(3, "USA");
ps.setInt(4,1);
ps.executeUpdate(); //JDBC queues this for later execution
ps.setInt(1, 24);
ps.setString(2, "Blue Sky");
ps.setString(3, "Montana");
ps.setInt(4,1);
ps.executeUpdate(); //JDBC queues this for later execution
ps.setInt(1, 25);
ps.setString(2, "Applications");
ps.setString(3, "India");
ps.setInt(4,1);
ps.executeUpdate(); //The queue size equals the batch value of 3
//JDBC sends the requests to the database
ps.setInt(1, 26);
ps.setString(2, "HR");
ps.setString(3, "Mongolia");
ps.executeUpdate(); //JDBC queues this for later execution
//Atlast calling send batch
((OraclePreparedStatement)ps).sendBatch();
2.Can I use the Oracle Updating Batches for Normal Statements? Can any one elaborate following points
Do not mix standard update batching syntax with Oracle update batching syntax in the same application. The JDBC driver will throw an exception when you mix these syntaxes
As per above statement, we cant have both type of updating in a method or in the whole application. Can any one elaborate this point, how its possible as every time we have to open a new connection object?
If we cant make use of both type of batching, then how to implement the Oracle Updating Batches for simple Statements.
The Oracle implementation of standard update batching does not implement true batching for generic statements and callable statements. Although Oracle JDBC supports the use of standard batching syntax for Statement and CallableStatement objects, you will see performance improvement for only PreparedStatement objects.
3. If first case is possible & if we can use the Oracle Updating Batches for simple Statements, then can we have all the statements in one Batch?
the query if run from PL/SQL will be like this and in same sequence
delete from table1 where country in ('USA','GERMANY')// multiple statement of this type
delete from table2 where country in ('USA','INDIA'))// multiple statement of this type
insert into table1 values(1,'SALES','USA'))// multiple statement of this type
insert into table2 values(1,'SALES,'Australia','1')// multiple statement of this typeDear Robert Richardson,
Unfortunately you can only access the Batch/Serial object by an document object.
If you want to update a Batch fields, then you need to get the document object first, then get its batch object as
Documents > Document_Lines > BatchNumbers.
Another thought is to update the field value by UI API when open the OIBT form if possible.
Best Regards
Jane Jing
SAP Business One Forums team -
Update Batch Classification for a Material
Hello friends,
I'm facing the following problem : A specific BTCI wich simulates MB01 was calling another program called SAPLCTMS to update Batch classification for a Material, this program (SAPLCTMS ) seems to be not necessary after the support package Level 57 (we just installed SAP4.6C). I didn't find any note on OSS for this...
Now i'm trying to use this BAPI instead of BTCI for the Material batch classification :
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = l_objnum
objecttable = 'MCH1'
classnum = 'ZGB_TIDCLASS'
classtype = '022'
status = '1'
keydate = sy-datum
TABLES
allocvaluesnumnew = t_valuesnum
allocvaluescharnew = t_valueschar
allocvaluescurrnew = t_valuescurr
return = t_return.
But its not working, it keeps asking for a batch number. I guess i'm not using the right FM ?
Any ideas about this ?
Thank you in advance for your help !
Best Regards.
Edited by: Soufiane FAYSSAL on Jun 18, 2009 11:42 AMHello,
I am Ashok Chelikani. I am working on the same Issue.
i am getting following message:
TYPE ID NUMBER MESSAGE
E |C1 |003 |Characteristic DIMENSIONSCOLOR not found or not valid
I |CL |736 |Assignment was not created
my procedure as follows:
CLEAR: lv_objnum.
lv_objnum = I_MSEG-MATNR.
**Get Object Details
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey = lv_objnum
objecttable = 'MARA'
classnum = 'Z_RMBCH1'
classtype = '001'
TABLES
allocvaluesnum = lt_alloc_num
allocvalueschar = lt_alloc_char
allocvaluescurr = lt_alloc_curr
return = lt_return.
IF NOT lt_return IS INITIAL.
CLEAR: lv_objnum.
lv_objnum(18) = I_MSEG-MATNR.
lv_objnum+18(10) = I_MSEG-CHARG.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = lV_objnum
objecttable = 'MCH1'
classnum = 'Z_RMBCH1'
classtype = '023'
tables
allocvaluesnumnew = lt_alloc_num
allocvaluescharnew = lt_alloc_char
allocvaluescurrnew = lt_alloc_curr
return = lt_return.
lt_return returing error message. Kindly help me. -
Creative Cloud is requiring an update. However, nothing is downloading.
Creative Cloud is requiring an update in order to download a trial version of Illustrator. However, nothing is downloading on the update.
Hi gcmonahan,
Kindly uninstall and re-install Creative Cloud app via: Creative Cloud Help | Install, update, or uninstall apps
Thanks,
Atul Saini -
Need BAPI Name for updation of Subcontracting scheduling line agreement
Hi All,
Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
Note: BAPI_PO_CHANGE is not useful for me.
Thanks and Regards,
Atul.Hi Muralidhara,
Can you please give some more details for this BAPI..
I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
with regards,
Kirti
Maybe you are looking for
-
OnRelease, loops, level10 v level10.button ???
After looking at some of the previous onRelease/for loop topics, I'm still stuck. I have 26 buttons for 26 letters in the alphabet. The buttons are defined on the stage already (they look like they're drawn in chalk, oh boy!). I'd like to do a loop t
-
Is there anyway to shutdown from Terminal
My aging G5 running Leopard is hanging up at random times. Up to now, I have had to shut down the machine by pushing and holding the power switch. I know this is a bad thing to do, but I do not know any other way. Is there any special set of keystrok
-
How do I add line numbers to the lines for each transaction on a journal entry report. In column C I want to add the line number for each line that has the same transaction number in column D. Then start a new set of line numbers for the next transac
-
What does "HTTP Error 400. The request is badly formed." mean?
Typed a web address and get above message. Another family member uses Firefox but does not get this error when entering the same address. Tried to restart with add-ons disabled but did not work.
-
Unable to Edit CSS style panel to change Wiget background colors
Hello my name is Gabriel and Im designing a website using the Sprymenu Bar: Menu Bar 1 that I found on the adobie free template 1. I was able to edit the spry menu bar to drop down sub menu's but I was curious hoy to bring up the CSS Style panel so I