Function Module required for getting Value Range data
I need a function module where in i can get the data from a value range in a domain.
Message was edited by:
Gurpreet Singh
Hi,
You can use this code to get the Doman's fixed values.
DATA: lt_fixed_values TYPE ddfixvalues,
CALL METHOD cl_abap_typedescr=>describe_by_name
EXPORTING
p_data = 'Domain_name' " Pass the domain name here
RECEIVING
p_descr_ref = lcl_abap_typedescr.
TRY.
lcl_abap_elemdescr ?= lcl_abap_typedescr.
CATCH cx_sy_move_cast_error.
ENDTRY.
IF lcl_abap_elemdescr IS BOUND.
CALL METHOD lcl_abap_elemdescr->get_ddic_fixed_values
EXPORTING
p_langu = sy-langu " Give the language
RECEIVING
p_fixed_values = lt_fixed_values " This table will have the fixed values
EXCEPTIONS
not_found = 1
no_ddic_type = 2
OTHERS = 3.
ENDIF.
Regards,
Sesh
Similar Messages
-
Functional Module required for getting list of successful jobs
Hi All,
There is one function module BP_JOB_SELECT which gives me name of unsuccessful job. Now I want to find the name of all successful job. Can anyone please tell me the function module name for that?
Thanks in advance,
Siddarth.You can use the same FM - BP_SELECT_JOB.
While filling structure JOBSEL_PARAM_IN, you can pass FINISHED = 'X' and
SCHEDUL = ' '
READY = ' '
RUNNING = ' '
ABORTED = ' '
Regards,
Mohaiyuddin -
Function Module require for Accounting Document
Hi All,
Is there any Function Module available for getting Accounting document no which is created after IR.
Regards,
ParasHi,
You can use BAPI_ACC_DOCUMENT_POST.
Regards,
Eli -
Function module expression for dynamic value for Cost center in BRF
Hello Experts,
We are in SRM 7.0 and our business object is shopping cart using BRF.
Right now we have Cost Center Approver and its evaluation id ()zev_sc_**_*) has expression zc_sc_*_** that checks whether overallvalue >= 5000. It initiates cost center approver only if value is greater than or equal to 5000. But this is static expression. We want it in a dynamic way so that we don't have to modify this value frequently. Therefore we have set approach to use an expression of Function Module BAdI as expression. We have a new z table which contains value field zval. Now I want to know how or what should be the process so that this FM knows the corresponding value from a z table that user might select in the SC.How it should be linked to this. I am using /SAPSRM/WF_BRF_0EXP000 function module. Please advise where should the code be written ? Any method ? And what should be the exporting and importing parameters for this ?
Right now I can see EV_VALUE, EV_TYPE, EV_CURRENCY etc as exporting paramters. Looking for your suggestions experts.
Thank you.
Best regards.Dear abhijeet,
just follow the steps.
i) I believe you have created the event as Zev_*** with implememt Class 0EVENT.
ii) copy the std fm /SAPSRM/WF_BRF_0EXP000 to z custom fm
iii) since you want to have an expression as function module procurement type create expression with
expression type 0CF001
result type B ( boolean)
Buffering as event-controlled buffering
and very important procurement type as function module.
iv) immediatly you may find written as AccessFM where pass your custom z function module.
v) finally link this expression to your event.
In the custom function module the exporting parameter EV_VALUE is solely responsible for identifieng the approval based upon the approval criteria. If the field EV_VALUE = 'X' this notify that the approval is required for current process level, otherwise if it is initial then it will skip the current level and continue with the next level.
whatever your coding should be written in FM.
just look into below code
DATA LO_WF_BRF_EVENT TYPE REF TO /SAPSRM/CL_WF_BRF_EVENT.
DATA LO_CONTEXT_PROVIDER TYPE REF TO /SAPSRM/IF_WF_CONTEXT_PROVIDER.
DATA: LV_HEADER LIKE BBP_PDS_SC_HEADER_D.
DATA: LT_ITEM TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D.
LO_WF_BRF_EVENT ?= IO_EVENT.
LO_CONTEXT_PROVIDER = LO_WF_BRF_EVENT->GET_CONTEXT_PROVIDER( ).
CALL METHOD LO_CONTEXT_PROVIDER->GET_DOCUMENT
IMPORTING
EV_DOCUMENT_GUID = LV_DOCUMENT_GUID
EV_DOCUMENT_TYPE = LV_DOCUMENT_TYPE.
pass this guid in the below function module in order to get the SC details.
GET SC DETAILS
CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
EXPORTING
I_GUID = LV_DOCUMENT_GUID
IMPORTING
E_HEADER = LV_HEADER
TABLES
E_ITEM = LT_ITEM
After that loop the internal table LT__ITEM and you decide based upon your approval criteria for each line item level wheather the gross price of line item is exceed 5000k or not.
you should decide the value for field EV_VALUE within the loop so that each line item will be verified for approval.
Pls contribute if this helpfull.
regards
sahil purushan -
Function module to convert float value to data type 'dec'
Hi experts,
In a report i need to convert float value to the data type 'DEC'. How to convert it. Is there any function module for this conversion.
Thanks and Regards,
Vaibhav Tiwari.Hi ..
We can do like this...
Data : V_float type F value '12345.67'.
Data: V_dec type P Decimals 2.
Write:/ V_float exponent 0. "This will display it like Type P
or
Write V_float to V_dec EXPONENT 0.
Write:/ V_dec.
reward if Helpful.
<b></b> -
Function Module Required for fetching contact details from BUT000
Hi Everybody.
I have created a contact using transaction BP.
these details according to me will get saved in standard table BUT000.
Now i need standard FM used for fetching all these Contact details.
Help me i am new to CRM.Hi Amit,
Please check the following:
Data Retrieval Function Modules:
Name Description
BAPI_BUPA_ADDRESSES_GET Determine All Addresses
BAPI_BUPA_ADDRESS_GETDETAIL Read Address
BAPI_BUPA_ADDRESS_GET_NUMBERS Read Address Numbers
BAPI_BUPA_BANKDETAILS_GET Determine All Bank Details
BAPI_BUPA_BANKDETAIL_GETDETAIL Read Bank Details
BAPI_BUPA_BANKDETAIL_NUMBERS Read Bank Details Numbers
BAPI_BUPA_CENTRAL_GETDETAIL Read Central Data
BAPI_BUPA_EXISTENCE_CHECK Check Existence of Business Partner
BAPI_BUPA_GET_NUMBERS Read Business Partner Numbers
BAPI_BUPA_RELATIONSHIPS_GET Determine All BP Relationships
BAPI_BUPA_ROLES_GET Determine All Roles
BAPI_BUPA_ROLE_EXISTENCE_CHECK Check Existence of Role
BAPI_BUPA_SEARCH Search Business Partner for Telephone, E-Mail, Address
BAPI_BUPA_STATUS_GETDETAIL Business Partner: Read Status
BAPI_BUPR_ACTIVITYP_EXISTCHECK Check Existence of Contact Partner Relationship
BAPI_BUPR_CONTP_ADDRESSES_GET Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_ADDR_GETDETAIL Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_GETDETAIL Read Contact Person Relationship
BAPI_BUPR_EMPLO_ADDRESSES_GET Read Contact Person Relationship Addresses
BAPI_BUPR_EMPLO_ADDR_GETDETAIL Read Employee Relationship Address
BAPI_BUPR_EMPLO_GETDETAIL Read Employee Relationship
BAPI_BUPR_RELATIONSHIP_GET Read General Relationship
BAPI_BUPR_RELSHIP_CHECKEXIST Check Existence of General Relationship
BAPI_BUPR_RELSHIP_GET_DETAIL Read General Relationship
BAPI_BUPR_RESP_EMPLO_CHEKEXIST Read Relationship of Employee Responsible
BUPA_PARTNER_CONTACT_SEARCH Searches business partners for telephone, E-Mail, address
CRM_ORDER_READ Get all the Service Contract details.
Hope this helps!
Regards,
Saumya -
Any function module available for updation of Configuration data
Hi experts,
i want to know the function module which updates the configuration data.Please help me regarding this,its very urgent..I have some configuration data which needs to be updated .This data is present in the item level configuration data..
Please help me ...
Regards,
NagarajHi Nagaraj
I assume that one of the Sales document(SO/DO/Billing/Shipping,etc) has this custom field YF_ZZZ_STATUS.
If so, this custom field would be available in any one of sales tables (VBAK/VBAP/VBRk/VBRP/LIKP/LIPS, etc)
You have to find out where exactly this field is existing.
If this field is avilable in sales document screen, simply you can write one BDC code to update this field at any one sales userexit.
For example if you want to update this field at the time of saving sales order, then use MV45AFZZ include..there you will find userexit_save_document (FM). There you can write simple BDC code OR direct update query to update particular table.
NOTE: YOU CAN NOT FIND OUT ANY FM TO UPDATE CUSTOM FIELDS (IN CONFIGURATION AND DEVELOPMENT)
Thanks
Bala -
Function module required for BOM Changes
Dear SAP Guru
I need the function module which gives me the details of changes done in the BOM.
Scenario: Need to develop the report which gives only the details of BOM changed on the given date. The BOM level might vary.
Regards
RahulDear
I think you should have ECM in place to have tracability for any changes carried out in BOM .
Refer earlier posting : Re: ECM ECR
If the ECM is in place , then you can see what changes has been done in CC02/03 Environmnet - > Reporting -> Bill of Material.
Otherwise please try the following Functinal Module : You can also try CEWB and CS80
1. CSAP_BOM_ITEM_MAINTAIN
2.CS_BOM_EXPL_MAT_V2
3.CHANGEDOCUMENT_READ and CDHDR
Refer : http://help.sap.com/saphelp_40b/helpdata/en/92/58b521417011d189ec0000e81ddfac/content.htm
Regards
JH -
RFC Function module needed for getting table details in APO from R/3
Hi,
I need a RFC function module where I can write a query from R/3 to access APO server database table and get the necessary records.
Regards
MacPossible ways
1. Call fm RFC_READ_TABLE and give destination and table name ( But i am not sure how it will work SCIF enviornment of APO)
or
2. Create a custom function module in APO side and call from R/3 side using destnation option
a® -
Process code's function module required for the IDOC Message type PROACT
Hi,
I am trying to trigger an IDOC from ME32K transaction which will carry my Contract agreement details to XI. The IDOC I am using for this purpose is PROACT.PROACT01. But I couldn't find the outbound process code / Function module for the process code associated to this IDOC message type.
Pls help me out....
Thanks,
Ram KalyanI checked table EDIFCT for the message type and found this:
Function module Function type Basic type Message Type
IDOC_INPUT_PROACT F PROACT01 PROACT
Oops...I think you are looking for outbound..Ignore -
Function module required for time stamp conversion into MST
Hello,
Please let me know if there is a SAP function module that can convert timestamp from GMT or provided timestamp into MST. I will need to use this function in BW transformation.
Thanks.Try this one: TZ_GLOBAL_TO_LOCAL.
Haven't used it myself yet, but it looks good.
Good luck!
Best regards,
Zhou -
Function Module required for IBASE component
Hi Experts,
Is there any FM which can get the warranty start date with IBASE component??
Warranty is assigned to IBASE component under relationship tab.
Points shall be rewarded for sure
Regards,
MadhuHi Madhu,
This the Table that is used to retrieve the Warranty Profile for the Installed Base. CDBD_IL_IBCWTY - Installed Base Components - Warranty Relationship. If you know the IBASE no and the corresponding COMP number then you can get the Warranty related details. Till now I was unable to find any FM that would do the same.
For the IBASE related details, you can have a look at the following Function Group. IB_CRM_API - IB: CRM APIs for IBase.
Thanks,
Samantak.
Rewards points for useful answers. -
Update Function Module Required for Deletion/Truncation of Open Hub Table
Hi All,
I need to delete/Truncate DB tables i.e. Ztables using Update FM
can anyone help me with few Update FM.
Regards,
NS.If you want to Delete Custom DB table then you can use FM RS_DD_DELETE.
You can delete, if the table is not used anywhere in SAP.
Close thread if you got a answer
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Mar 16, 2010 9:54 AM -
Function Module available to get Stock lying against a Sale-Order
Dear Sir,
We have function module "KPKA_UTILS_PROJECT_STOCK_CHECK" for getting Stock lying against a WBS (Project Stock) .
We are looking for a function module to get the Stock lying against a Sale-Order (Sale-Order plus it's Line Item) .
We request SAP experts to kindly guide us about the availability of such Function Module please .
We will award full points for the suggested solution pl .
Rgds
B MittalHi
table MSKA - Sales Order Stock is availble whcih will give the Stock pertainig to a sales Order & line item.
Hope this helps
Thanks & Regards
Kishore -
Function Module for getting Number ranges between two number
Hi guys,
Is there any Function module which provide us the number range between two numbers?
For Ex:If i give 1 and 10 to FM it must give me 1
2
3
4.....upto 10.
is there any FM for doing this,but i'm not able to find exact Fm for same.
I can write small piece of code for getting number ranges, but if i get FM it could save little work.Hi
But why do u need a fm, can't you do it by yourself?
DATA: FROM_NUMBER TYPE I VALUE 1,
TO_NUMBER TYPE I VALUE 15.
DATA: NUMBER TYPE I.
DATA: BEGIN OF T_NUMBER OCCURS 0,
NR TYPE I,
END OF T_NUMBER.
NUMBER = FROM_NUMBER.
DO.
IF NUMBER <= TO_NUMBER.
T_NUMBER-NR = NUMBER.
APPEND T_NUMBER.
ELSE.
EXIT.
ENDIF.
NUMBER = NUMBER + 1.
ENDDO.
LOOP AT T_NUMBER.
WRITE: / T_NUMBER-NR.
ENDLOOP.
Max
Maybe you are looking for
-
My FCP 10.1 is freezing at "Restore window layout" I am running on mavericks and the layout folder in not in library/applications support/ final cut pro... What do I do ???
-
Issue with using SHUTTLE in query where clause
Lets say we have a shuttle control on the page with the following 4 values: apple:orange:peach:berry Lets say I also have a simple SQL query report on the page and I want to use between 1 and 4 of the aforementioned values as part of an "*IN LIST*" s
-
I am not a developer, but a frond end designer who has been using CS3 for a while and now CS4. So please bare with me if this sounds like a stupid question, but I am stumped and needs help. I have created a Horizontal Navigation Bar using the Spry Me
-
I want to display totals in words
Hi Friends, I want to display sub-totals/totals in words also. If the total is 1,20,500, I want to display it one lakh twenty thousands five hundred. If I created a report, I want to display the total no.of pages at in the end-of-page event. ---End o
-
Spotlight search (search iphone) does note work half of the time.
When searching my iphone4s nothing show up half the time. (spotlight search) Sometimes it works fine and other times I type and it does not search or show anything. Powering down the phone did not fix. Just odd it works for a minute then seems to s