Function module (FM) to read budget to be used in n-step approval badi
We have SRM 5.0 with ECC 6.0 (extended classic). For capital expenses we are going to have budget check in SRM based of account assignment internal orders in R/3. In shopping cart line item approval workflow, it is required to read the budget available for that internal order and compare with shopping cart value...what is the function module to read budget assigned to that internal order, that will used in n-step approval badi at every step??
Thanks,
Kim r.
Hi
<b>Please try the related SRM function modules, which will definitely help -></b>
B470_BUDGET_READ
BBP_PD_USER_BUDGET_AMOUNTSPENT
BBP_PD_USER_BUDGET_CHECK
BBP_PD_USER_BUDGET_DEFINED_GET
BBP_PD_USER_BUDGET_SAVE
BBP_PD_USER_BUDGET_SCVALUE_GET
BBP_REQREQ_CHECK_BUDGET
META_BUDGET_READ
META_BUDGET_READ Function module in turn calls RFC-enabled 'BBP_BUDGET_READ' Function module in the R/3 or the ECC System.
Hope this will definitely help.
Do let me know.
Regards
- Atul
Similar Messages
-
Function modules in CRM (read Business Partner attributes)
Hi,
I would like to print a document in wich will be Business Partner attributes and other crmdata. Does anybody know how I can read the Business Partner marketing attributes. Can I use for this some function modules or else?
Are there some documentations about all Function modules in CRM and what they do?
Thanks,
MalnorHi Malnor,
Marketing attributes of a BP can be found in table AUSP.
You can build your own custom function module to read marketing attributes.
Refer to the link below for sample code of a FM to read BP marketing attributes -
[Custom Function module to read BP marketing attributes|http://divulgesap.com/blog.php?p=NDg=]
Hope it helps.
Regards,
Ravi -
Function Module / method to read interface of a function module
Hi all,
Does anyone know a function module or a method of a class which reads the parameters and types of these parameters of a function module. Thanks in advance.
Kind Regards,
SükrüHi Suekrue,
You marked the question as answered, so please assign contributor points too. I did this time, but you can change them.
See: /people/mark.finnern/blog/2004/08/10/spread-the-love for directions.
Click on the yellow Star icon per reply. You can give:
1 - 10 pts (Which marks the question as answered)
2 - 6 pts (Very helpful)
Lots of 2 pts (Helpful)
It's just a little thank you for the responses.
Thanks!
Joan (and Mark Finnern) -
Function Modules for Actual, Plan, Budget Cost over internal orders
Dear All,
I need a function module for getting the Actual, Plan, Budget Costs for the internal orders assigned.
I want to fetch the cost related to internal order which is assigned to project C projects in PLM.hai tehre are no such funcion moduels
u have to select from bpge and bpja tables
and sum up them
afzal -
Function module to calculate available budget
Hi everyone
Is anybody aware if there is any function module which calculates the available budget from the report alr_87013558?
thanks and kind regardsthanks Paolo
yea, i tried to debug that report but in vain
is there any other way?
I could get the value assigned, the budget value but not the actual
So was wondering if anybody can help me
thanks for your help -
Function Module to obtain Initial Budget and Available Budget of WBS
Hi,
I need to calculate the value for Initial and Available budget for WBS which comes in the report S_ALR_87013558 or S_ALR_87013648.
Is there any FM to calculate for the particular WBS.
ThanksHi,
Try using KBPR_READ_DATA function module.
Regards,
Eli -
Need Appointment Function Module Name to Read any Opportunity No.
Hello Gurus
Can anyone tell me the Appointment type Function Module Name where Header_guid and Appt_type are to be supplied .
Means i want to only read(not to change or create) an opportunity no for a particular Appointment type(Date_type). I tried for the following FMs:
1.CRM_APPOINTMENT_READ_OW
2.CRM_APPOINTMENT_DETERMINE_OW
3.CRM_APPOINTMENT_CHECK_OW
thanks in advance
MadhusudanHello Madhusudan,
for the activities you can use the following coding (example):
-Beginn-
CALL FUNCTION 'BAPI_ACTIVITYCRM_GETDETAILMULT'
TABLES
guid = lt_guid
header = lt_header
date = lt_bapibus20001_app_dis.
CALL FUNCTION '/DKVES/SM_ACTIVITY_GETFROMBUPA'
EXPORTING
iv_partner = lv_partner
TABLES
et_contacts = lt_sm_activity_simple.
LOOP AT lt_sm_activity_simple INTO ls_sm_activity_simple.
CLEAR ls_bapibus20001_app_dis.
READ TABLE lt_bapibus20001_app_dis INTO ls_bapibus20001_app_dis
WITH KEY ref_guid = ls_sm_activity_simple-activity_guid appt_type = 'ORDERPLANNED'.
ls_order_aktiv-date_from = ls_bapibus20001_app_dis-date_from.
APPEND ls_order_aktiv TO lt_order_aktiv.
ENDLOOP.
-end-
If you want the other 'one order Objects' you can perhaps modify the selection.
I hope that helps
Torsten -
Function module needed to read all the BOM statuses
Dear Friends,
In a report we are using CS_BOM_EXPL_MAT_V2 function module to get the dispaly the BOMs. But it is displaying only the BOMs which are in Active stauts e.g 1 & 3.
My requirement is needs to read both active and inactive BOMs. Inactive BOM status is 2.
suggest me if there is any another FM or any another way to get all the BOM status materials.
Thanks for your help.
Srinivas.You need to supply another application for alternative determination (field CAPID). It should be possible to customize one for your needs using "Define Order of Priority for BOM Usages" and "Define Applications" under "Production->Basic Data->Bill of Material->Alternative Determination"
Edited by: Carsten Grafflage on Aug 5, 2010 1:44 PM: Corrected one string from customizing - sorry. -
Function module to find get the Fiscal period using date
Hi Experts,
I am need of getting fiscal period and year from the given date. Is there any function module exists. Please advise.
Thanks in advance,
VivenDATA: I_FYV1 LIKE T009-PERIV.
CALL FUNCTION 'CCODE_GET_FISCAL_YEAR_VARIANT'
EXPORTING
COMPANY_CODE = i_billno-bukrs
COMPANY_CODE = S_BUKRS-LOW
IMPORTING
FISCAL_YEAR_VARIANT = I_FYV1
EXCEPTIONS
COMPANY_CODE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'ME_DETERMINE_GJAHR'
EXPORTING
I_BSTYP =
I_BEDAT = P_DATE
I_PERIV = I_FYV1
IMPORTING
E_H_MONAT =
E_H_GJAHR = GJAHR1
E_H_DATUM = -
Function Module not released yet. Has anybody used them in their programs?
Hi
I am trying to use the barcode functionality during a goods movement 101 (using MIGO). As we donu2019t have any control of SAPu2019s barcode functionality thru configuration in MIGO I have developed a custom popup and I am calling this in a BADI implementation MB_MIGO_BADI. Once the user enters the barcode then I call Function module ARCHIV_BARCODE_GLOBAL to save the barcode to the standard tables.
This Function module is not released to the customers and it was last changed on 11/12/2004.
My question is should I be using this Function module in my BADI implementation even though it is not released (does not have a release date) ?. Has anyone of have used a unreleased Function module in your programs?.
Additionally I need this info
I am using ECC 5.0. If anyone of you is using ECC 6.0 or higher can you please check and let me know if this FM ARCHIV_BARCODE_GLOBAL is released or not or when was it last changed.
Please advice me at you earlist
Thanks of your time
SHrajHi,
We are not using the above FM. But I can give some Info from ECC 6.0.
In ECC 6.0 the above FM is realeased for customers.
Last changed on:28.12.2004 18:28:16.
You can use the same code in ur Z function module.
Thanks and Regards -
Hi,
We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include the logic(Abap Program) that is used for plant maintenance report in the function module? Please share your thoughts.
Thanks,
RaviHi,
Step1-Create a table structure which you need to create same as the fields you require in you data source.
Step 2-create a custom abap program and inside that call the Client abap program with the selections as required and save the result data in some table
Step 3-create infoset query.In the infoset query give your table structure name and program name which you developed.
Step4-create data source on top of that query -
Urgent: Function module for getting the input from user using a pop up
Hi all,
My requirement at user commmand a pop up should appear asking the user to enter the session name for the bdc session to be created.
My report allows the user to enter the session name of his choice.
I need the name of the function module which can do this.
Thanks
Pritishbetter to create one FM to pop-up.
check this :
function y_pop_up_get_distributor_time.
*"*"Local interface:
*" IMPORTING
*" REFERENCE(W_ROUTE) LIKE VBAP-ROUTE
*" REFERENCE(W_VBELN) LIKE VBAK-VBELN
*" REFERENCE(W_VGBEL) LIKE VBAK-VGBEL
*" REFERENCE(W_VSTEL) LIKE VBRP-VSTEL
*" REFERENCE(W_AUART) LIKE VBAK-AUART
*" EXPORTING
*" REFERENCE(W_FROM_DATE) TYPE SY-DATUM
*" REFERENCE(W_FROM_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TO_DATE) TYPE SY-DATUM
*" REFERENCE(W_TO_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TKNUM) TYPE VTTK-TKNUM
*" REFERENCE(W_RC) TYPE SY-SUBRC
*" REFERENCE(W_DEPT_DATE) TYPE SY-DATUM
*" REFERENCE(W_DEPT_TIME) TYPE SY-UZEIT
*" REFERENCE(W_REPO_DATE) TYPE SY-DATUM
*" REFERENCE(W_REPO_TIME) TYPE SY-UZEIT
*" REFERENCE(W_PLNT_DATE) TYPE SY-DATUM
*" REFERENCE(W_PLNT_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TRUCK_NO) TYPE YW2_TIMEENTRY-TRUCKNO
*" REFERENCE(W_LIFNRN) TYPE YW2_TIMEENTRY-LIFNR
* SET PF-STATUS 'STATUS_100' OF PROGRAM SAPLZ2SLS.
*CLEAR:W_DATE_FROM, W_DS_TIME_1, W_ADATE,
* W_ATIME,W_BDATE,W_BTIME, W_CDATE, W_CTIME.
clear : w_route1, w_vbeln1,w_vgbel1,
w_vstel1,w_auart1.
w_route1 = w_route.
w_vbeln1 = w_vbeln.
w_vgbel1 = w_vgbel.
w_vstel1 = w_vstel.
w_auart1 = w_auart.
clear: w_date_to, w_date_from, w_adate,w_atime,
w_ds_time_1, w_ds_time_2,
w_bdate, w_btime, w_cdate, w_ctime.
call screen 100 starting at 10 2 ending at 115 13.
if w_ok_code = 'SAVE'.
w_rc = 0.
w_from_date = w_date_from.
w_from_time = w_ds_time_1.
w_to_date = w_date_to.
w_to_time = w_ds_time_2.
w_tknum = w_tknum.
w_dept_date = w_adate.
w_dept_time = w_atime.
w_repo_date = w_bdate.
w_repo_time = w_btime.
w_plnt_date = w_cdate.
w_plnt_time = w_ctime.
w_truck_no = sg_truckno.
w_lifnrn = w_lifnr.
else.
w_rc = 1.
endif.
* IF w_ok_code = 'CANC'.
* W_rc = 1.
* ELSE.
* W_rc = 0.
* W_FROM_DATE = w_date_from.
* W_FROM_TIME = w_ds_time_1.
* W_TO_DATE = w_date_to.
* W_TO_TIME = w_ds_time_2.
* W_TKNUM = W_TKNUM.
* W_DEPT_DATE = W_ADATE.
* W_DEPT_TIME = W_ATIME.
* W_REPO_DATE = W_BDATE.
* W_REPO_TIME = W_BTIME.
* W_PLNT_DATE = W_CDATE.
* W_PLNT_TIME = W_CTIME.
* ENDIF.
clear w_ok_code.
endfunction.
Regards
Prabhu -
Function module for Budget check?
Hi,
I'm wondering if there is a BAPI/function module to check if budget is available on the WBS for a PO item whose price/quantity is changed through a custom transaction.
I've tried BAPI_ACC_PURCHASE_ORDER_CHECK, but it doesnt seem to work.
Thanks,
SudhaHi Aveek,
Method check of BUS6008 is BAPI_ACC_PURCHASE_ORDER_CHECK, the one I mention above. It seems to check all components of the PO, except for the WBS.
Thanks for your help.
Sudha -
Function module to read XML file in ABAP
Hey guys
is there any function module which can read an XML file into an ABAP code?
we are getting some file on the application server in XML format and we need to read this file in ABAP code,how can i achieve this ?
thanz
ahmadHi Ahmad,
These are few functions to work with XML in ABAP.
SDIXML_DATA_TO_DOM: Convert SAP data (elementary/structured/table types) into DOM (XML)
SDIXML_DOM_TO_XML: Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
SDIXML_DOM_TO_SCREEN: Display DOM (XML)
SDIXML_DOM_TO_DATA
Example of using these:
eport z.
data: it_table like t001 occurs 0.
data: l_dom TYPE REF TO IF_IXML_ELEMENT,
m_document TYPE REF TO IF_IXML_DOCUMENT,
g_ixml TYPE REF TO IF_IXML,
w_string TYPE XSTRING,
w_size TYPE I,
w_result TYPE I,
w_line TYPE STRING,
it_xml TYPE DCXMLLINES,
s_xml like line of it_xml,
w_rc like sy-subrc.
start-of-selection.
select * from t001 into table it_table.
end-of-selection.
initialize iXML-Framework ****
write: / 'initialiazing iXML:'.
class cl_ixml definition load.
g_ixml = cl_ixml=>create( ).
check not g_ixml is initial.
write: 'ok'.
create DOM from SAP data ****
write: / 'creating iXML doc:'.
m_document = g_ixml->create_document( ).
check not m_document is initial.
write: 'ok'.
write: / 'converting DATA TO DOM 1:'.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = 'IT_TABLE'
DATAOBJECT = it_table[]
IMPORTING
DATA_AS_DOM = l_dom
CHANGING
DOCUMENT = m_document
EXCEPTIONS
ILLEGAL_NAME = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
check not l_dom is initial.
write: / 'appending DOM to iXML doc:'.
w_rc = m_document->append_child( new_child = l_dom ).
if w_rc is initial. write 'ok'.
else. write: 'Err =', w_rc.
endif.
visualize iXML (DOM) ****
write: / 'displaying DOM:'.
CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
EXPORTING
DOCUMENT = m_document
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
convert DOM to XML doc (table) ****
write: / 'converting DOM TO XML:'.
CALL FUNCTION 'SDIXML_DOM_TO_XML'
EXPORTING
DOCUMENT = m_document
PRETTY_PRINT = ' '
IMPORTING
XML_AS_STRING = w_string
SIZE = w_size
TABLES
XML_AS_TABLE = it_xml
EXCEPTIONS
NO_DOCUMENT = 1
OTHERS = 2.
if sy-subrc = 0. write 'ok'.
else. write: 'Err =', sy-subrc.
endif.
write: / 'XML as string of size:', w_size, / w_string.
describe table it_xml lines w_result.
write: / 'XML as table of', w_result, 'lines:'..
loop at it_xml into s_xml.
write s_xml.
endloop.
write: / 'end of processing'.
end of code
Let me know if you have further questions..
BR
Rakesh -
Function Module to read records of MSEG
Hi Experts,
Is there any function module available to read the contents of MSEG table based on Purchase Order Number/Purchase Order Item combination alone?
I am facing a scenario where i need to read the records of MSEG table corresponding to a set of PO Number/PO Item combinations.
I guess the direct process of making a query on the MSEG table without any of the key fields will make the program slow.
So i am trying to see if there is any function module available for this purpose.
It will be very helpful if you could share any information on this.
Thanks in advance.
Regards,
KeerthiHi,
have alook to this two link,
Function Module for get data from mkpf mseg.
FM to read data from MSEG table
regards,
Archana
Maybe you are looking for
-
Outlook/iPhone Multiple calendar sync
Hi I have a work calendar in Outlook, driven from Exchange and a second personal calendar containing things that don't apply to work (birthdays, social events and so on). While both calendars appear in Outlook, I can't get the personal calendar to sy
-
Hey I have an issue and I'm hoping Java can help me. Currently at work we have a list of text files in a directory, I want java to be able to: open every file in the directory (file names can change daily) append every line beginning with a number to
-
Tv - iMac Which connector to use
I bought a new LED TV Hd etc etc the other day and i was going to hook it up to my Mac with a mini dvi to VGA then use a VGA cable to connect it, but while apple deliver it I've been checking out the other slots the TV has and one say's "PC DVI" next
-
CoreservicesUIagent Crashing, Games.
I'm trying to run two different video games. The first is Empire: Total War and the second Europa Universalis 3. I have a similar error report when I try to run either. The console logs are included below. I've repaired the disk permissions. I've tri
-
I called Dish so i could make my internet faster. They had me delete my history. My firefox homepage is gone. Can I get it back?