Function module for retrieving values of the Characteristics?
Hi,
is there a function module for retrieving values of the Characteristics?
will reward,
regards,
M.
Hello,
Check this.
L_OBJECT = G_T_STPO-IDNRK.
*--- Merkmale incl. Bewertung zum Objekt/Klassenart lesen ----------*
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASSTEXT = 'X'
CLASSTYPE = '300'
FEATURES = 'X'
LANGUAGE = SY-LANGU
OBJECT = L_OBJECT
INITIAL_CHARACT = ' ' "keine unbewertete M.
OBJECTTABLE = 'MARA'
KEY_DATE = SY-DATUM
* NO_VALUE_DESCRIPT =
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = 'X'
TABLES
T_CLASS = H_CLASS
T_OBJECTDATA = H_CLOBJDAT
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4.
Regards,
Vasanth
Similar Messages
-
Function Modules for indirect values
What are the function modules for indirect values?
Hi,
The SAP function module for indirect valuation of wages is RP_FILL_WAGE_TYPE_TABLE_EXT.
Also, if indirect valuation is being used, the annual salary field ANSAL also may not be populated. Again, there are some SAP function modules to help us out:
RP_ANSAL_FROM_PERNR - Use this one if all you have is PERNR
RP_ANSAL_FROM_INFOTYPE - Good if you have already data for infotypes 0001 & 0008
RP_ANSAL_FROM_WAGETYPES - It requires a list of wage types used in 8 .
by
Prasad gvk. -
Function module to retrieve day of the week from a date.
Hi Experts,
i am looking for a function module to retrieve the day of the week from a specific date. For example, the date is 20070820. The day of this date is 'Monday'.
Please let me know how do i get the result i.e. 'Monday'.
thanks a lot for ur timely help.
Best regards,
AkshDATE_COMPUTE_DAY
Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_IN_FUTURE
Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DAY_ATTRIBUTES_GET
Return useful information about a day. Will tell you the day of the week as a word (Tuesday), the day of the week (2 would be Tuedsay), whether the day is a holiday, and more
regards,
srinivas -
ME_PRICING_INFORECORD Function Module for Past Values
Hello All,
I am developing a report to show the cost breakdown for Purchase Orders created for consignment inventory. The report displays fabircation costs and metal costs for consignment orders based on a withdrawal settlement material document. I pass the date of withdrawal (retrieved from RKWA table) and am expecting to get the condition values at a given time (withdrawal date) using the Function Module ME_PRICING_INFORECORD. When I get the results of the function module, I am getting the current metal condition values set up in the current validity period - as can be seen via MEK3 transaction (Vendor/Alloy-Specific Metal Prices option with condition group). I was hoping to get the condition values for any validity period, not just current. Any suggestions on how to resolve this issue?
Thanks in advance!I treid to create FM but no luck
Try with LSMW - Object 0060 - RM06IBI0( Program )
I did LSMW for Purchase info record long back..
Reward Points if it is helpful
Thanks
Seshu -
Function Module to retrieve Address from the table ADRC
Is there any function module available to retrieve data from ADRC by using the ADDRNUMBER as input
Try using FM: ADDR_GET
This has import parameter ADDRESS_SELECTION which contains ADDRNUMBER.
Hope this helps.
Please reward if it works.
Vallabh. -
Function Module for syntax check on the repository objects
Hi Experts,
Can anyone help me in finding out the function module used to do syntax check on Repository objects(PRograms/Smartforms/FUnction Modules...etc.,)
Dr. Arif ShaikHi,
Can you please check following function modules? But I am not sure that you can get it all in one.
EDITOR_SYNTAX_CHECK (For any report)
SSF_PREPARE_SYNTAX_CHECK (For any smarrt form)
RS_SYNTAX_CHECK ( ABAP Syntax Check with Dialog and Navigation)
CHECK_FORM_ITF_SYNTAX
RS_DISPLAY_SYNTAX_DIAGRAM
RS_CUA_INTERNAL_SYNTAX_CHECK
SEO_CLASS_CHECK_INCLUDE_SYNTAX
SEO_CLIF_GET_SYNTAX_INFO
C195_TEST_SYNTAX_CHECK
C1F0_PHRID_SYNTAX_CHECK
Pls let me know if anything is unclear.
Regards,
Lokesh.
Edited by: Lokesh Tarey on Apr 8, 2010 10:59 AM -
Function module for sales order VC characteristics
Hi All,
Is there any function module for fetching sales oder VC characteristics.
RegardsPlease use FM: VC_I_GET_CONFIGURATION.
Please pass "VBAP-CUOBJ" in the exporting parameter INSTANCE and it should return you configuration in the Table parameter 'CONFIGURATION'.
Let me know if this works.
Thanks,
Neeraj -
Is their any function module for deleting condition record i am trying
Hi Experts,
Is their any function module for deleting condition record i am trying this way.......
DATA: TABLE (4) TYPE C.
DATA: KNUM LIKE KONH-KNUMH
DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
DATA: T681_STR LIKE T681.
DATA: LV_NUM TYPE I.
GET PARAMETERS
PARAMETERS: TABNO LIKE T681-KOTABNR.
PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
REFRESH INT_KNUMH.
Select single * from T681 into T681_STR
where kvewe = K_VEWE AND
KOTABNR = TABNO.
IF SY-SUBRC NE 0.
WRITE: / 'No entry in T681 for number ', TABNO.
WRITE: / 'Check whether corresponding condition table exists.'.
EXIT.
ENDIF.
TABLE = T681_STR-KOTAB.
SELECT KNUMH FROM (TABLE) INTO KNUM.
SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
IF SY-SUBRC NE 0.
INT_KNUMH-KNUMH = KNUM.
COLLECT INT_KNUMH.
ENDIF.
ENDSELECT.
DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
IF LV_NUM EQ 0.
WRITE: / 'No inconsistent entries found.'.
WRITE: / 'Each record in the condition table has a corresponding.'.
WRITE: / 'entry in the KONH table.'.
EXIT.
ENDIF.
LOOP AT INT_KNUMH.
IF TESTMODE IS INITIAL.
DELETE FROM (TABLE) WHERE
KNUMH = INT_KNUMH-KNUMH.
IF SY-SUBRC = 0.
WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
ELSE.
WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
WRITE: INT_KNUMH-KNUMH(10).
ENDIF.
ELSE.
WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
ENDIF.
ENDLOOP.
is their any Standerd Function module for comparing tables if the condition record not exist in it has to exit if it is their then compare those two tables if not exist in one table also that has to be delete the condition record
Please let me know .....Hi,
You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
Regards
Kiran Sure -
Sales Order function module to retrieve the item availability values
Hi,
Is there any function module to retrieve the item availability schedule line values.
Navigation:->
Go to sales order (Change Mode) -> Schedule lines tab -> In application toolbar you can find Item availability icon.
When this is pressed, next screen you can find the split up of schedule line values. I am developing an ALV report and is required to retrieve the Split up of the schedule line values.
Is there any function module to retrieve the same.
BR/ JoshHI,
I have found one function module ATP_EXPLANATION. I am not able to figure out the parameters that needs to be inputted to this function module. If anyone has used this before, could you kindly help me out.
This function module returns the Split up for Schedule lines in the tablea 'MDVEX'.
BR/ Josh -
Function Module to Retrieve Characteristic Value
Hi,
Is there any function module to retrieve the characteristic value of a sales order item (in the item batch determination button)?
Thanks,
MawiThat 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 -
How to create the INBOUND Function Module for INBOUND IDOCs
Hi Friends,
Can any Suggest me How to proceed to Create an INBOUND Function Module for Processing the INBOUND IDOCS
which are recieved from XI Server ?
I am working in SAP-ISU
Here i will recieve the INBOUND IDOCs for the Meter Reading Orders.
We have a Standard INBOUND FUNCTION MODULE
IDOC_INPUT_ISU_MR_UPLOAD
which Uploads the Meter Reading Results.
I copied the Same function Module into ZIDOC_INPUT_
and working on it.
Can any one suggest me, whether i am going in correct way or not.
In IDOC_INPUT_ISU_MR_UPLOAD Inbound fun module,
BAPI_MTRREADDOC_UPLOAD is used to Update or Insert the Meter Reading Results,
My requirment is to Insert and Update the Meter Reading Orders which are Inbounded from XI.
Can I Use the Same BAPI
BAPI_MTRREADDOC_UPLOAD
to Update the below fields,
EABL-SERNR
EABL-ZWNUMMER
EABLG-ABLESGR
EABL-V_ZWSTAND
EABL-N_ZWSTAND
EABL-ABLHINW
EABL-ZSKIPC
EABL-ADAT
EABL-ATIMTATS
EABL-ADATTATS
EABL-ATIM
EABL-ZMESSAGE
EABL-ABLESER(Meter reader number)
Kindly Suggest me,
Thanks in Advance,
GaneshHello Ganesh
I think you are going completely astray with you z-function module for IDoc processing.
If you look at TABLES parameter METERREADINGRESULTS (type BAPIEABLU ) of BAPI_MTRREADDOC_UPLOAD you will find many of the requested fields already:
EABL-SERNR => BAPIEABLU-SERIALNO
EABL-ZWNUMMER =>REGISTER
EABLG-ABLESGR
EABL-V_ZWSTAND
EABL-N_ZWSTAND
EABL-ABLHINW
EABL-ZSKIPC
EABL-ADAT
EABL-ATIMTATS => ACTUALMRTIME
EABL-ADATTATS => ACTUALMRDATE
EABL-ATIM
EABL-ZMESSAGE
EABL-ABLESER(Meter reader number)
Field EABL-ZMESSAGE appears to be custom field (at least I cannot find it on ECC 6.0). If this field was added using include CI_EABL then you probably can get these values into the BAPI using the EXTENSIONIN parameter.
Check routine CHECK_UPLOADRECORDS in the BAPI which allows two extension structures:
- BAPI_TE_EABL
- BAPI_TE_EOSB
Not surprisingly BAPI_TE_EABL contains the include CI_EABL.
Regards
Uwe -
Creation of function module for updating the ztable
Hi,
I am sending the requirement for ceation of function module for updating the ztable.
Requirement----
Table Updation rule (New record)
While creating a new record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO-------> Sales Delivery no in case of sales orderShipment no in case of transfer order
UNAME----
> User ID
ZORDTYPE----
> SALEOR in case of sales orderTRANSF in case of transfer order
ZREFDOCNO----
>Sales Order no in case of sales orderPurchase Order no in case of transfer order
ZREFDOCNO1----
>Delivery no in case of transfer order
The table handling function will calculate the following fields
Table field Probable Values
ZREQNO----
>Running serial number (incremented by 1 for each new record)
ZREQDAT -
>System date
ZREQTIME----
> System time
ZSTATUS----
>OPEN (for all new records)
Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
Table Updation rule (Status Update)
While updating a record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO----
>Sales order no in case of sales orderShipment no in case of transfer order
ZSTATUS----
>CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
The table handling function will calculate the following fields
Table field Probable Values
ZSTATDAT----
>System date
ZSTATTIME----
> System timeDo you have to create/update new record in Ztable through Function Module ?
or you need to write FM only for validation?
Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
Let me know clearly what exactly u need ?
Regards,
Kiran -
Function module for getting month and year of the previous month (say -6)
Hi,
Is there a function module that will get you the month and year of say, a month before, and as far as 11 months ago.
For example, say today is 6/2007. I want 7 months ago.
How do i get this value?
What function module or method is available?
Points will be rewarded and responses will be appreciated.
Thank You,
JohnHi
lv_period gives the month and year which is two months earlier now as we have specified lv_months as -2.
DATA: LV_PERIOD LIKE S001-SPMON,
LV_MONTHS(2) TYPE C VALUE '2-',
LV_DATUM LIKE SY-DATUM,
LV_NEWDT LIKE SY-DATUM,
P_SPMON LIKE S001-SPMON VALUE '200601'.
CONCATENATE P_SPMON '01' INTO LV_DATUM.
LV_PERIOD = P_SPMON+0(6).
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
MONTHS = LV_MONTHS
OLDDATE = LV_DATUM
IMPORTING
NEWDATE = LV_NEWDT
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 0.
LV_PERIOD = LV_NEWDT+0(6).
ENDIF.
WRITE :/ LV_PERIOD.
OR
Use the following FM for getting the year and the month based on date
CACS_DATE_GET_YEAR_MONTH
or
Call Function 'CCM_GO_BACK_MONTHS '.
Funny module: 03/31/2002 - 1 month = 02/31/2002
OR
RE_ADD_MONTH_TO_DATE ( Add / substract month to/from date )
Need ur reward points.
Best regards,
Ravi -
Function module for assigning BP Number to the Postion ID in org model
Hi Experts,
Is there any function module for assigning BP Number to the Postion ID in organizational model.
The requirement is:
1)There are some employees which are reporting to a Manager who has a position ID.
2) Each of these employees should be assigned to the given position ID.
This can be done by First Locate the BP Record in SAP via the Vantive Person ID and retrieve the SAP BP Number.
<b>Then assign the SAP BP Number found to the Position ID.</b>
My question is <b>Is there any function module for assigning BP Number to the Postion ID .</b>
Looking forward for reply.
Thanks & Regards,
Renju.Hi,
Org. management uses API classe objects with static methods as APIs. You may be able to achieve this using
CL_CRM_ORGMAN_SERVICES->MAPPING_ORGUNIT_TO_BP
Reward if helpful!
Regards,
Sudipta. -
Function module to retrieve all the personnel numbers in the eval path
Hi all,
I want to retrieve all the personnel numbers that fall in the evaluation path.
Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
any help??
regards
Sam
regards
SamHi
U can use FM RH_STRUC_GET to get the pernr in the evaluation path
data : IT_RESULT_TAB TYPE STANDARD TABLE OF SWHACTOR .
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = C_OTYPE
ACT_OBJID = W_POSIT
ACT_WEGID = C_WEGID (relation B002 like )
ACT_BEGDA = W_BEGDA
ACT_ENDDA = W_BEGDA
ACT_TDEPTH = 1 ( depath 1, 2, etc )
TABLES
RESULT_TAB = IT_RESULT_TAB .
Nb : Give points if it worths
Maybe you are looking for
-
HP 2000 running Windows 7 bios shows no hard drive?
"Press ECS to boot" appears when turning on power. PXE-M0F error on HP 2000 appears upon boot. F1, shows "System Information," F2 runs memory, and hard drive test (and passes), F9 lists all but hard drive to boot (hard drive was replaced, and is 3 h
-
How can I turn off lots of failure popups when starting my mac?
Dear community! Everytime I change my network, I get failure popups caused by missing server connection. How can I turn these messages off? I know the reason: at work I have lots of connections to different server and of course I don't have them at h
-
I have CS3 which obviously includes InDesign 3 Someone from another company has sent me a document created in InDesign 4. I'm not able to open it, so I asked if it could be backsaved to InDesign 3. The person at the other end doesn't know how to do a
-
One of my iPhoto Books has appeared with missing images and one missing page. Can anyone tell me please how I replace the faulty Book with last weeks version from Time Machine?
-
How to make a contour of an object/face
Hi All, Okay, so I'm trying to make something like this: http://img5.imageshack.us/img5/8335/headfn.png I have a picture and just want to make a contour. But I have 2 problems: 1. I cannot make a smooth path 2. I cannot fill the path with gradient co