Modify Classification data for IL02
Hi,
I want to modify the classification data for Functional location.
Is there any function modules available to change. I know the functional module for Material classification, but Functional location its not working.
SO pls tell me the function modules or any other method is available.
I was unable to do to in BDC.
regards
Rajesh V
Hi,
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkeynew = lv_funcloc
objecttablenew = 'IFLOT'
classnumnew = lv_class
classtypenew = '010'
TABLES
allocvaluesnum = li_numc
allocvalueschar = li_char
allocvaluescurr = li_curr
return = li_return.
if not li_return[] is initial.
read table li_return into lwa_return with key TYPE = 'E'.
if sy-subrc ne 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
endif.
endif.
Fill the new characteristic values into table parameters li_numc, li_char, li_curr depending on the data type (field ATFOR) of the characteristic value.
Inside the FM it uses BAPI_OBJCL_GETDETAIL to get the old characteristic values and make comparision with table parameters li_numc, li_char, li_curr and updates the characteristic data for the functional location and class.
Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 10:49 AM
Similar Messages
-
Function Module for Creation of classification data for a Routing
Hi
Can you please let me know if there are any function modules/Bapi's to create Classification data for a Routing?
THanks
ShekarFor creating classification data, have a look at the function group CTMS and function module CTMS_DDB_SET_VALUE_INTERNAL.
Not sure what you mean by "Routing".
For BAPIs also look into the function group CLBPA, that sits in the same development package CLCL as the function group CTMS.
Hope this helps. -
How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?
Good afternoon !
I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
Thank you for your attention,
WilsonHi all !
I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
Thank you all for your attention !
Wilson -
Reading Classification data for material
Hi all
can anybody give me a FM or BAPI to read the classification data
for a particular material..
Kindly help . apt points will be rewarded
Regards
N manjrekarHi Nikhil
just copy paste this code to get the clasification of any material.
hope this will be helpful.
DATA: V_CLASS LIKE KLAH-CLASS VALUE 'MAT_SEL_CLASS_JASC',
V_CLASSTYPE LIKE KLAH-KLART VALUE '023',
V1_OBJECT LIKE AUSP-OBJEK,(nothing but material no)
V_OBJECTTABLE LIKE TCLA-OBTAB VALUE 'MARA',
V_LANGU LIKE SY-LANGU,
V_DATUM LIKE SY-DATUM.
V_LANGU = 'EN'.
V_DATUM = SY-DATUM.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASS = V_CLASS
CLASSTEXT = 'X'
CLASSTYPE = V_CLASSTYPE
CLINT = 0
FEATURES = 'X'
LANGUAGE = V_LANGU
OBJECT = V1_OBJECT
OBJECTTABLE = V_OBJECTTABLE
KEY_DATE = V_DATUM
INITIAL_CHARACT = 'X'
NO_VALUE_DESCRIPT =
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = ' '
CHANGE_NUMBER = ' '
TABLES
T_CLASS = T_CLASS
T_OBJECTDATA = T_CLOBJDAT
I_SEL_CHARACTERISTIC =
T_NO_AUTH_CHARACT =
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4 .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE T_CLOBJDAT INDEX 2. " KEY 'MAT_CHAR_THICKNESS'.
IF SY-SUBRC = 0.
T_OUTPUT1-THICK = T_CLOBJDAT-AUSP1.
ENDIF.
Please close the thread if your query in answered
Reward points if helpful.
Regards
Zarina -
Classification data for sold to party BP with BAPI_BUPA_CLASS_ADD
I need to add classification data for sold to party business partner that I created.
Business partner-->General Data->Classification-->
Classification -
> I need to check the check box for customer and also
Business partner--->General Data-> Classification----->R/3 integration---->Account Group I need to put 0001.
How should I do this? I am making use of the BAPI BAPI_BUPA_CLASS_ADD.
Here I need to pass values to CLASSIFICATION.
I donu2019t know what values I need to pass to this import parameter CLASSIFICATION.
When I go and see the structure of it, I find that the following fields are there.
CLASSCAT, CRIT1, CRIT2, CRIT3, CRIT4, CRIT5, ATTRID, VALUE.
What values should I pass so that I can add classification data to my sold to party business partner such that the Customer check box is checked and in R/3 integration- Account Group I put 0001.
I tried hard but unable to get information on how to put classification data in sold to party---> General Business Tab.
If some one encountered this earlier, please help me with some info on the same.
Regards,
Jessica Sam
Edited by: jessica sam on Nov 15, 2008 2:31 PMJessica,
Try looking at the following: BAPI_BUPA_FRG0040_CREATE
Note that if you already have maintained Sales Classifications then you'll have to use the _CHANGE version.
It has the importing structure of type BAPIBUS1006040_SALESCLASS and so you could for example populate it's fields as shown below and using the structure when calling the above BAPI:
DATA
IS_COMPETITOR
IS_PROSPECT
IS_CONSUMER
IS_CUSTOMER X
CUSTOMER_SINCE
IS_COD_CUSTOMER
INDUSTRY
IS_RENTED
ACCOUNT_GROUP 0001
NIELSEN_ID
CLASSIFIC
ATTRIBUTE
ATTRIB_2
ATTRIB_3
ATTRIB_4
ATTRIB_5
ATTRIB_6
ATTRIB_7
ATTRIB_8
ATTRIB_9
ATTRIB_10
Regards,
Brad -
To change the classification data for a material using BDC
I have to update clssification data for material in MM02 using BDC so when i record the transaction MM02 using SHDB i am not able to see the value assignment window which i a able to see when i am changing using MM02 transaction directly. So can anyone have an idea regarding this ?
I have even tried updating classification data using a BAPI BAPI_OBJCL_CHANGE but i am not getting desired results....can anyone suggest me what are the parameters need to be passed to the BAPI. Thanks in advance for your help....Hi Nagarjuna,
<b>BAPI_OBJCL_CHANGE</b> : 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.
The object key (OBJECTKEY) must be transferred in internal format. This means before conversion exits. For example, a material number must be transferred with leading zeros.
If the BAPI runs without errors, table Return contains no messages of type "E".
Assignment created: message CL735
Assignment changed: message CL737
Assignment not changed: message CL738
This BAPI only changes the parameters of an existing assignment (or creates a whole new assignment), but it does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read with BAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the new assignments must be created with BAPI_OBJCL_CREATE.
The information transferred by this BAPI replaces all old information. An empty field means "delete entry!", not "no change".
This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.
You can only use this BAPI for objects that are not classes!
This BAPI only processes assigned values for classification - not for configuration.
Reward points if helpful.
Regards,
Hemant -
Not able to modify the data for infotype 0008 using FM
Hi All ,
I have got a requirement for updating the infotype 0008 data using FM : HR_MAINTAIN_MASTER_DATA.
While trying to modify the wagetypes data which is of blank ..unable to upload the amount for that partcular field ..
For this am herewith the link of o/p :
http://i55.tinypic.com/28jfw2c.jpg for this am also posting the code...
Please suggest me furthur in what way i can upload..
SELECT * FROM pa0008 INTO TABLE itab_pa0008
FOR ALL ENTRIES IN itab
WHERE pernr = wa_data-pernr
AND begda = wa_data-begda_out
AND endda = wa_data-endda_out.
DESCRIBE TABLE itab_pa0008 LINES lin.
IF lin EQ 0.
c_action = 'INS'.
ELSE.
c_action = 'MOD'.
ENDIF.
LOOP AT itab INTO wa_itab WHERE pernr = wa_data-pernr.
CLEAR: wa_bapireturn, wa_bapireturn1, wa_hr_return.
REFRESH: it_pprop[],it_modified_keys[].
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFAR'. "1
it_pprop-fval = wa_itab-trfar.
APPEND it_pprop.
CLEAR it_pprop.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFGB'. "2
it_pprop-fval = wa_itab-trfgb.
APPEND it_pprop.
CLEAR it_pprop.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFGR'. "3
it_pprop-fval = wa_itab-trfgr.
APPEND it_pprop.
CLEAR it_pprop.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-TRFST'. "4
it_pprop-fval = wa_itab-trfst.
APPEND it_pprop.
CLEAR it_pprop.
flag = flag + 1.
*****************************************************************************************************5
BREAK-POINT.
IF NOT wa_itab-lga1 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA01'.
it_pprop-fval = wa_itab-lga1.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet1.
ENDIF.
IF NOT wa_itab-bet1 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET01'.
it_pprop-fval = wa_itab-bet1.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************6
IF NOT wa_itab-lga2 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA02'.
it_pprop-fval = wa_itab-lga2.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet2 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET02'.
it_pprop-fval = wa_itab-bet2.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************7
IF NOT wa_itab-lga3 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA03'.
it_pprop-fval = wa_itab-lga3.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet3 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET03'.
it_pprop-fval = wa_itab-bet3.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************8
IF NOT wa_itab-lga4 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA04'.
it_pprop-fval = wa_itab-lga4.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet4 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET04'.
it_pprop-fval = wa_itab-bet4.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************9
IF NOT wa_itab-lga5 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA05'.
it_pprop-fval = wa_itab-lga5.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet5 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET05'.
it_pprop-fval = wa_itab-bet5.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************10
IF NOT wa_itab-lga6 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA06'.
it_pprop-fval = wa_itab-lga6.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet6 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET06'.
it_pprop-fval = wa_itab-bet6.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************11
IF NOT wa_itab-lga7 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA07'.
it_pprop-fval = wa_itab-lga7.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet7 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET07'.
it_pprop-fval = wa_itab-bet7.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************12
IF NOT wa_itab-lga8 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA08'.
it_pprop-fval = wa_itab-lga8.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet8 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET08'.
it_pprop-fval = wa_itab-bet8.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************13
IF NOT wa_itab-lga9 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA09'.
it_pprop-fval = wa_itab-lga9.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet9 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET09'.
it_pprop-fval = wa_itab-bet9.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************14
IF NOT wa_itab-lga10 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA010'.
it_pprop-fval = wa_itab-lga10.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
ENDIF.
IF NOT wa_itab-bet10 IS INITIAL.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET010'.
it_pprop-fval = wa_itab-bet10.
APPEND it_pprop.
CLEAR it_pprop.
ENDIF.
*******************************************************************************************************15
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA11'.
it_pprop-fval = wa_itab-lga11.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET11'.
it_pprop-fval = wa_itab-bet11.
APPEND it_pprop.
CLEAR it_pprop.
********************************************************************************************************16
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA12'.
it_pprop-fval = wa_itab-lga12.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET12'.
it_pprop-fval = wa_itab-bet12.
APPEND it_pprop.
CLEAR it_pprop.
********************************************************************************************************17
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA13'.
it_pprop-fval = wa_itab-lga13.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET13'.
it_pprop-fval = wa_itab-bet13.
APPEND it_pprop.
CLEAR it_pprop.
********************************************************************************************************18
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-LGA14'.
it_pprop-fval = wa_itab-lga14.
APPEND it_pprop.
CLEAR it_pprop.
bet1 = wa_itab-bet2.
it_pprop-infty = '0008'.
it_pprop-fname = 'P0008-BET14'.
it_pprop-fval = wa_itab-bet14.
APPEND it_pprop.
CLEAR it_pprop.
BREAK-POINT.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = wa_itab-pernr
IMPORTING
return = wa_bapireturn1.
BREAK-POINT.
IF c_action = 'INS'.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = wa_itab-pernr
actio = 'INS'
tclas = 'A'
begda = wa_data-begda_out "'20110401'
endda = wa_data-endda_out "'99991231'
dialog_mode = '2'
luw_mode = '1'
IMPORTING
return = wa_bapireturn
return1 = wa_bapireturn1
hr_return = wa_hr_return
TABLES
proposed_values = it_pprop
modified_keys = it_modified_keys.
IF NOT wa_bapireturn IS INITIAL.
WRITE : / wa_bapireturn.
CLEAR : wa_itab , wa_bapireturn.
ENDIF.
ELSEIF c_action = 'MOD'.
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
infty = '0008'
pernr = wa_itab-pernr
actio = 'MOD'
begda = wa_data-begda_out "'20110401'
endda = wa_data-endda_out "'99991231'
record = p_record
recordnumber = wa_itab-SEQNR
operation = change
nocommit = nocommit
dialog_mode = '0'
IMPORTING
return = wa_bapireturn
return1 = wa_bapireturn1
hr_return = wa_hr_return
TABLES
proposed_values = it_pprop
modified_keys = it_modified_keys.
IF NOT wa_bapireturn IS INITIAL.
WRITE : / wa_bapireturn.
CLEAR : wa_itab , wa_bapireturn.
ENDIF.
ENDIF.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = wa_itab-pernr
IMPORTING
return = wa_bapireturn1.
ENDLOOP.
ENDLOOP.Here is a sampe, and the logic you are using for wages goes in the internal table for wages (you already have the enqueue & dequeue so you don't have to worry about that, so you only have to add the BAPI_TRANSACTION_COMMIT):
CALL FUNCTION 'BAPI_BASICPAY_CHANGE'
EXPORTING
employeenumber = pa0008-pernr
subtype = pa0008-subty
objectid = pa0008-objps
lockindicator = pa0008-sprps
validitybegin = pa0008-begda
validityend = pa0008-endda
recordnumber = pa0008-seqnr
payscaletype = pa0008-trfar
payscalearea = pa0008-trfgb
payscalegroup = pa0008-trfgr
payscalelevel = pa0008-trfst
* NEXTINCREASE =
* LOCALALLOWLEVEL =
* PARTNERSHIP =
* CURRENCY =
* COMPARISONPAYSCLTYPE =
* COMPARISONPAYSCLAREA =
* COMPARISONPAYSCLGRP =
* COMPARISONPAYSCLLVL =
* COMPNEXTINCREASE =
* CAPACITYUTILLEVEL =
* HOURSWORKEDPERPERIOD =
* ANNUALSALARY =
* CASEGROUPCATALOG =
* CASEGROUP =
* CURRENCYANNUALSALARY =
* REASON =
* NOCOMMIT =
* importing
* return =
TABLES
wagetypes = wages.
Regards,
Ryan Crosby -
Extracting material classification data for given sales order
Hi Experts,
Requirement is I Need to display a report with material and its characteristics values for given sales order. Please let me know if there is any FM/standard tables involved to display the below fields.
Sales order number, Sales order line item number , Material number , Characteristic Name(ATNAM),Characteristic description(ATBEZ),Characteristic Value(ATWRT),Characteristic value description(ATWTB).
Thanks & Regards,
Pavee.
Moderator message: "spec dumping", please work yourself first on your requirement.
Edited by: Thomas Zloch on Oct 14, 2011 1:30 PMHi Keshav,
Thanks for spending your precious time in replying to my thread.
I did a search before posting, I got an FM which is we cannot use due to performance issue.
Thanks for letting me know that sales order has material and material has characteristics,
But For each characteristics that material has we will have several values, you will be selecting whichever is appropriate based on the requirement.
If you know the answer pleases post. I have enough patience to wait for answers from other experts.
Thanks
Pavee. -
Modify Schedule Date for a Nomination
I tried both the Function Modules 'OIJ_NOM_MAINTAIN' & 'OIJ_MAINTAIN_NOMINATION'. But it is throwing a Dump.
Can anyone please help & let me know which is the actual Function Module to modify the nomination.
The input value is NOMTK (Nomination Key) and need to modify IDATE field value.
Thanks & Regards,
SowmyaIt worked using FM
RFC_TSW_NOM_CHANGEFROMDATA
Thanks!
Providing update indicator 'U' is important. And marking 'X' in the Checkbox as shown below:
l_t_headerdata-nominationnumber_ext = g_nomnr. "Nomination number
l_t_headerdata-nominationnumber_sap = g_nomtk. "Nomination technical Key
l_t_headerdatax-nominationnumber_sap = g_nomtk. "Nomination technical Key
l_t_headerdatax-updkz = 'U'. "Update indicator = 'U' indicates change
LOOP AT l_t_oijnomi INTO l_wa_oijnomi.
l_wa_itemx-nominationnumber_sap = g_nomtk.
l_wa_itemx-updkz = 'U'. "Update indicator = 'U' indicates change
l_wa_itemx-itemnumber = l_wa_oijnomi-nomit.
l_wa_itemx-scheduleddate = 'X'.
APPEND l_wa_itemx TO l_t_itemx.
CLEAR l_wa_itemx.
l_wa_nomi-nominationnumber_sap = l_wa_oijnomi-nomtk.
l_wa_nomi-itemnumber = l_wa_oijnomi-nomit.
l_wa_nomi-scheduleddate = l_wa_oijnomi-idate.
l_wa_nomi-itemtype = l_wa_oijnomi-sityp.
APPEND l_wa_nomi TO l_t_nomi.
CLEAR l_wa_nomi.
ENDLOOP.
CALL FUNCTION 'RFC_TSW_NOM_CHANGEFROMDATA'
EXPORTING
headerdata_in = l_t_headerdata
headerdata_inx = l_t_headerdatax
TABLES
nominationitem_in = l_t_nomi
nominationitem_inx = l_t_itemx
return = l_t_return.
IF sy-subrc EQ 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
Thanks & Regards,
Sowmya -
Basics for Batch Classification Data
Hello Experts ,
I have few queries for Batch Classification Data .
1. Which are the tables where Batch Classification Data for the batches is stored .
2.Which Function module is called once we do the Goods movement which determines the batch
classification data .
3.When we do stock transfer for batches , then the Batch classification will run in Issuing plant and
the batch classi. data will be copied in the receiving plant . Can you please tell me that which object
carries this data from issuing plant to receiving plant.
4.There is also a user exit with which we can play with Batch classification , can you please give some information on this .
Thank you very much for the help !
Regards
Shashank1. The table is AUSP - but why would you need to know that. There are good function modules to query, read, change classifications of batches - so why would you like to read directly from DB?
2. This depends on your release. Typicall in MIGO the module VB_CREATE_BATCH is called, the same one that is called within the BAPI to create batches.
3. See 2. When you create a batch with reference, you call the same module additionally with the key of the reference batch (this is the issueing batch).
Inside that module are loads of user exits for all kind of purposes.
Why not have a look yourself in Customizing at Logistics General -> Batch Management -> Batch Valuation.
There's the "customer exits for goods movements in inventory management" (this is called e.g. in the goodsmovement bapi and the old transactions) --> EXIT_SAPMM07M_004
and the "Valuation of Creation of New Batches Using Function Module" (this is called in the MSCxN and in MIGO) --> EXIT_SAPLV01Z_014 .
In Customizing there's also the documentation what you can achieve with the exits.
Hope this helps.
Stefan -
Table name of Classification Data in Material Master
Hi Experts,
Greetings to all...
I wish to ask one question.
I wanted to upload the initial data in material. in initial data I wanted to maintain the classification data for the batch management. Please tell me what is the name of table/field where the material and classification data is stored. I couldnt find anything in the table KLAH, AUSP, CABN, CAWN.
Thanking you in advance,
Regards,
UK.Dear UK,
If you using ALE:
Follow following sequence:
CHRMAS Characteristics that contain global and local object dependencies
KNOMAS (global object dependencies)
CHRMAS Characteristics that contain global and local object dependencies
CLSMAS Classes with characteristics and their overwritings, including object dependencies
The characteristics and characteristic values must be transferred second time
to create the assignment of the global object dependencies to the characteristics
and characteristic values.
BR,
ian Wong -
Hi Friends, need help on maintaining vendor classification data in MDG
Hi All,
I have a requirement to handle classification data for Vendor, How do I do that as MDG does not provide any standard way of handling that for Vendor.Can anyone please guide.Attached a file for your understanding.
Regards,
ArnMitz
javascript:;Hi Sanjay Sir,
Thanks for pateintly answering my queries.
last query:As you said on the first reply in MDG 7.0 SP2 it is possible. So I would like to know will this be part of standard content like how we have SAP Delivered model for suppliers? or we need to extend the data model like how we do it for extension of entity types or so?
Regards,
Arnmitz -
Upload Vendor Classification Data in R3
Hello Everyone,
I was trying to get my hand on a Function Module for uploading Vendor Master Classification data in R3. I came across CLFM_OBJECT_CLASSIFICATION. I do not know if this is the right one and also how it works.
If someone could just help me as to whether I have the right end of the stick and can also provide me with some documentation on it to get going, I would highly appreciate that.
Thanks & Rgds
SDRRob,
I highly appreciate and thank you for your prompt response and the update on using the Standard program that you had provided to upload classification data. However I dont know whether it suits my requirement though.
The situation is that a BAPI gets called from webmethod in real time passing data to it. This Bapi is then supposed to create classification data for the vendor in R3. I suppose the former approach by using the standard program requires a formatted file for input to carry out the necessary. I dont think I can have that luxury though. Can you think or suggest of a way to get around.
Thanks & Rgds
SDR -
Change or insert a vendor classification data.
Hi!
My english is not so good, let me try... I can change or insert a classification data for a vendor in the transaction XK01 and XK02, but I need do this by ABAP code. I tryed to find some functions... nothing! I tried to debugg the standard code of transaction XK02, but the functions what I found had not been useful.
Anyone knows any BAPI or function that can do this??
Tnx!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 -
hi guys,
on mm03 we can view classification data of a particular material. does anybody know a function module or bapi that can be used to retrieve classification data for any material?
thanks,
vitishHi,
Check this code
DATA: V_CLASS LIKE KLAH-CLASS VALUE 'MAT_SEL_CLASS_JASC',
V_CLASSTYPE LIKE KLAH-KLART VALUE '023',
V1_OBJECT LIKE AUSP-OBJEK,(nothing but material no)
V_OBJECTTABLE LIKE TCLA-OBTAB VALUE 'MARA',
V_LANGU LIKE SY-LANGU,
V_DATUM LIKE SY-DATUM.
V_LANGU = 'EN'.
V_DATUM = SY-DATUM.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASS = V_CLASS
CLASSTEXT = 'X'
CLASSTYPE = V_CLASSTYPE
CLINT = 0
FEATURES = 'X'
LANGUAGE = V_LANGU
OBJECT = V1_OBJECT
OBJECTTABLE = V_OBJECTTABLE
KEY_DATE = V_DATUM
INITIAL_CHARACT = 'X'
NO_VALUE_DESCRIPT =
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = ' '
CHANGE_NUMBER = ' '
TABLES
T_CLASS = T_CLASS
T_OBJECTDATA = T_CLOBJDAT
I_SEL_CHARACTERISTIC =
T_NO_AUTH_CHARACT =
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4 .
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE T_CLOBJDAT INDEX 2. " KEY 'MAT_CHAR_THICKNESS'.
IF SY-SUBRC = 0.
T_OUTPUT1-THICK = T_CLOBJDAT-AUSP1.
ENDIF.
You can also try this BAPI BAPI_OBJCL_GETDETAIL
Regards,
Satish
Maybe you are looking for
-
My Time Machine seems to be hanging up (stopping) beforew completion. I'm running Mountain Lion (OS X 10.8.2) on my iMac G5, and I already trouble-shot the external drive used for Time Machine by using Repair on Disk Utilities. So--what gives?
-
Erreur 1603 Installation Acrobat XI Pro
Bonsoir, Installation interrompue d'Acrobat XI Pro avec erreur 1603 de noter dans le journal d'installation. J'ai fais une mise à jour des pilotes, effectué une nouvelle installation de Seven 64 bits. Rien n'y fait; Pouvez-vous m'aider ? Dans l'atten
-
Don't know what happened, but every page I go to in iWeb gives me a pop-up about Helvetica is missing, and Helvetica LT will be used instead. My 'fonts' folder does show a Helvetica, though, so any idea what is going on? Thanks, John F
-
For some reason, when I log in as the account owner, and try to add numbers to the friends and family, they always end up as pending. Also there's only 5 slots even though I have a family plan with 2 phones. How do I activate it?
-
how to use RFC adapter asynchronous way.......jena