Budget exceed mail
Hi Friends,
My requirement is ..When a budget exceed the system should trigger a mail to corresponding person.For this I got a customer exit EXIT_SAPLBPFC_001.When budget exceeds for any WBS of a project this exit is triggered.I have a ztable where i have maintained all wbs , userid and email.So I get the data of userid , email of the wbs.After that i am calling function module SO_NEW_DOCUMENT_SEND_API1.After passing all details to the function module....But system is going shortdump...Plz Help me...If u want i can send the code..
.Thanx in advance
Bibekananda
Hi Madhu,
In the function module SO_NEW_DOCUMENT_SEND_API1 , SAP provides a an example.I copied the example and there I change the ,mail id .Now I do the ME51n and exceeds the budget for that. Now It is triggering the exit and every value is passing to the variable correctly.After some operation , System shows some information message UPDATE WAS TERMINATED.
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Creating the document to be sent
DOC_CHNG-OBJ_NAME = 'OFFER'.
DOC_CHNG-OBJ_DESCR = 'Auction of a Picasso jr'.
OBJTXT = 'Reserve price : $250000'.
APPEND OBJTXT.
OBJTXT = 'A reproduction of the painting to be auctioned'.
APPEND OBJTXT.
OBJTXT = 'is enclosed as an attachment.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creating the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creating the document attachment
(Assume the data in OBJBIN are given in BMP format)
OBJBIN = ' \O/ '. APPEND OBJBIN.
OBJBIN = ' | '. APPEND OBJBIN.
OBJBIN = ' / \ '. APPEND OBJBIN.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'picasso.bmp'. APPEND OBJHEAD.
Creating the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'BMP'.
OBJPACK-OBJ_NAME = 'ATTACHMENT'.
OBJPACK-OBJ_DESCR = 'Reproduction object 138'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK..
Entering names in the distribution list
RECLIST-RECEIVER = 'email address'. " plz put a email id
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
*RECLIST-RECEIVER = ''.
*RECLIST-REC_TYPE = 'U'.
*APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC .
WHEN 0.
MESSAGE s000(ymail) WITH 'Mail has been sent successfully'.
WHEN OTHERS.
MESSAGE E000(Ymail) WITH 'Problem in sending the mail'.
ENDCASE.
*call function 'BAPI_TRANSACTION_COMMIT'.
endif.
Similar Messages
-
FM BCS - Budget Exceed mail alters to External mail Box
Dear Experts
We are going to implement FM BCS module to my client. My client is asking Budget exceed mail alerts will trigger to external mail box. But as per my observation Budget exceeding mail alerts are triggering to Supervisor and user SAP Inbox. But my client is asking mail alters should trigger to supervisor external mail box only.
Please suggest on this.
Thanks in advance
Raomethod IF_EX_FMAVC_EVENT~MODIFY_MAIL_RECIPIENTS.
TYPES: BEGIN OF TY_ITAB,
w_email type ADR6-SMTP_ADDR,
END OF ty_itab.
DATA: l_f_receiver LIKE LINE OF c_t_receivers,
ITAB TYPE TABLE OF TY_ITAB,
WA_ITAB type TY_ITAB,
w_bname type XUBNAME,
w_email type ADR6-SMTP_ADDR,
adrn type USR21-ADDRNUMBER,
pers type USR21-PERSNUMBER.
READ TABLE c_t_receivers INDEX 1 INTO l_f_receiver.
w_bname = l_f_receiver-receiver.
select single ADDRNUMBER from USR21 into ADRN where BNAME = w_bname.
select single PERSNUMBER from USR21 into PERS where BNAME = w_bname.
select single SMTP_ADDR from ADR6 into w_email where PERSNUMBER = PERS and ADDRNUMBER = ADRN.
l_f_receiver-receiver = w_email.
l_f_receiver-rec_type = 'U'.
append l_f_receiver to c_t_receivers.
endmethod.
Try this now the system will trigger external mail.
PS: Email should be maintained for the user who is responsible for Fund center. -
Budget exceeding Mail assigned in 0k14.
Hi frds,
Maintained one Budget Manager based on internal order .Budget exceeding Mail user name assigned in Tcode-0k14.
But my customer is asking while creating the internal order in Tcode- Ko01 . I will assign the user name in internal order Tcode- Ko01. The mail has to trigger the particular user created username in Tcode- Ko01.
How to achieve these . please help me out friends.
Regards,
KabilPlease check include LKWEB_BUDGF01 of function group KWEB_BUDG. This calls FM " BP_ORDER_BUDGET_MANAGER " to read budget manager entered via OK14. You can either enhance the include or FM to send email to desired user.
Regards -
Mail to the User - Budget Exceeded
Hi,
I have done necessary settings for Internal Order Budgets & availability control. While doing PO with account assginment category A (Internal order also assigned), system giving message Budget Exceeded. Up to this everything is OK for me. I have maintained Budget Manager also for my order type, Object class Overhead cost etc., But still system is not sending any message to the particular user which I have assigned the user name(other username) in my budget manager. It is showing error message only at my user id. "Any help from the forum is appreciated.
Regards,
rajeswariBudget request (Scenario SR61)
The form is sent to a processor who makes the budget change.
The processor executes the budget transaction in the SAP system.
Budget request requiring approval (Scenario SR62)
The form is sent to someone for approval. This person must approve the request.
The system forwards the request via workflow to the processor (determined by the role). This person changes the budget in the SAP system.
The approving manager can also execute the budget transaction.
The above are texts from the same path you mentioned:
I understood that
You need to have a workflow for SR62
In addition, this going to intranet, meaning that you should have your SCOT configured by basis administrators and your gateway must have been opened.
Then only these scenarios are going to work.
Regards,
Ravi -
Budget exceeded even if enough budget available
Hi,
When we are trying to post document to a particular cost center its giving an error message saying tht payment budget exceeded. But actually there's no budget object selected for tht commitment item, So it should pull the budget from the parent item which has enough budget. Can any one help to find out why is this happening.
thanks,
SravanthiKindly check this thread
Re: Budget Mail Alert
If you have maintained the activity group "++" in the tolerence limit for the AVAC.
then the PO value is also included in addition to PR.
There are two options:
1. Either increase the budget or
2. Note: 955107
Go to OPS9 In the Budget profile which u assigned to ur project, Check for Availabilty control parameters over there Overall Paramaters should be ticked. If not then make it selected.And reconstruct availabilty control thru CJBN then try out ur posting
check this Sap Note: 178837
Hope this will solve ur issue
Regards,
ANSAR -
Budget exceed even if Budget is available
Hi,
I am facing typical problem. Against the WBS budget report is showing the budet available, but when creating PO system is throwing erroe "budget exceeded". I checked PO value which less than available budget.
I run CJBN, CJEN but after that also same error,
Kindly provide your valuable suggestion.Kindly check this thread
Re: Budget Mail Alert
If you have maintained the activity group "++" in the tolerence limit for the AVAC.
then the PO value is also included in addition to PR.
There are two options:
1. Either increase the budget or
2. Note: 955107
Go to OPS9 In the Budget profile which u assigned to ur project, Check for Availabilty control parameters over there Overall Paramaters should be ticked. If not then make it selected.And reconstruct availabilty control thru CJBN then try out ur posting
check this Sap Note: 178837
Hope this will solve ur issue
Regards,
ANSAR -
Budget Exceeded but no Error message Assign more than allocated
Hi Gurus,
I am stuck in a situation where the Error Message BP603 while creating a PO for a wbs at level 2.
IN cj30 , i found out that Budget = 69500000 and assigned = 69950772
if i create a PO OF even .30 (thirty paisa) the budget exceeded amount = 450772.35, which is actually the diffrecene betweenn assigned and Budgeted values.
Now we are not able to raise any PO
Below is tolerance limit
please key in your valuable inputs.
Regards
RohitHi Rohit,
In Budget report, Assigned value = Actual + Commitment
If your assigned value is great than Budget, then you will get Budget exceeded error when you try to do any further posting against specific WBS element.
So, you will need to supplement Budget to cover shortfall.
You can also refer following SAP note which shows how assigned value is calculated.
178837 - Availability control: Incorrect assigned value?
There are lot of threads already discussed in this forum for error message you are mentioning.
Please search them.
Regards
Tushar -
Budget Exceed Issue in work Order (P.O) in Production Server.
Hi Friends,
I am getting different type of budget exceed issue, that to only in Production server.
Here the issue is when I am creating the work order P.O (Acc.As. Cat.P, Itm Cat. D) with different service line items with respective WBSe with in the budget limit, then I am doing SES for some quantity, now when I am changing (I am decreasing not increasing) the same P.O line item available quantity and creating the new version now system is calculating the old version line item quantity + new version quantity (nothing but double) then giving budget exceed error.
One more strange thing is, if I change quantity for one line item then system is giving budget exceed error for another line item which is having the different WBSe which was saved with out giving any error at the time of P.O creation.
This issue is happening only in Production server ....same scenario I have run with the same values in both Dev. and Qau. (Where the config. is same in all 3 clients) but in both the clients it is working fine...but in production why the system is behaving in such a way I am not getting.
In the below I have given the test scenario...
Service P.O Creation
Line Item
P.O Quanity
Value
WBS
Budget
Commitment
SES. Quatity
Actual cost
1
10
100
WBS 1
2000
1000
5
500
2
20
200
Wbs 2
4000
2000
10.00
1000
3
30
300
WBS 3
6000
3000
15
1500
4
40
400
Wbs 4
8000
4000
20.00
2000
Service P.O change with new version
Line Item
P.O Quanity
Value
WBS
Budget
Commitment
SES. Quatity
Actual cost
1
6
100
WBS 1
1000
1000
5
500
2
20
200
Wbs 2
2000
2000
10.00
1000
Budget exceed with the double value
3
30
300
WBS 3
3000
3000
15
1500
4
40
400
Wbs 4
4000
4000
20.00
2000
If any one has come across with this type of issue and solved ...please suggest me ..
Regards,
SrikanthHi,
I have face similar issue in deleting PO line items.
Even though I delete items, system check budget for deleted qty with the currency conversion + value & gives budget exceed error.
In some cases we have asked user to deactivated AVAC asked to do the transaction, which is not recommended.
You can try running CJBN & CJBV in sequence for affected WBS.
Thanks & reg,
Sam -
Error: Order 300401 Budget Exceeded while doing PO w.r.t PR
Hi Experts,
We are getting error, Order 300401 budget exceeded while doing service PO
In budget shows exceeded in making the P.O of approx amount Rs 411,500. While in the below PO Value, it is clear that the indent still has the amount of RS 1,760,737.
Indent No. 1000031924 Total Value = 3,230,000
Sr No. P.O Value
1 3900006041 456,774
2 3900006146 Line item 1 101,467
Line item 2 266,414
3 3900006184 326,158
4 3900006188 318,450
Total P.O's Value 1,469,263
Total value of Indent 3,230,000
Total P.O value in the Indent 1,469,263
Balance Amount in the Indent 1,760,737
Regards,
ManjunathHi,
Budget is exceeded w.r.t to maintained Internal Order in PR /PO ,Use below options.
1 ) Re-construct Budget-KO31 or
2 )Either de-activate budget-KO32 or
3) Maintain budget for IO-KO22 .
This will resolve your issue.
Thanks & Regards,
Sandesh Sawant -
Budget Exceed Error during creating of Purchase order in reference to PR
Hi,
I am getting the subject error (Budget Exceed Error) every time when I want to create a purchase order related to purchase requisition of my project.
Issue is that after release the project when the purchase requisition has created for non stock item under activity I found in transaction CJ31 the assign value has already updated.
Let say my budget is 400 US$, and the purchase requisition has created for 380 US$. Now when I check with CJ31I found the assigned value is 380. Now If I create a purchase order it throws an error that budget exceed.
The tolerance limits are following:
SA ZSA01 Budget Profile Overall AVAC ++ 1 90,00
SA ZSA01 Budget Profile Overall AVAC ++ 3 100,00
SA ZSA01 Budget Profile Overall AVAC 01 1 90,00
SA ZSA01 Budget Profile Overall AVAC 01 3 100,00
Please advice what will be the proposed solution for the above issue.
Thanks in advance.
With Regards,Your budget is 400$ and PR value is 380$ but you have not mentiond what is the tax value ?
when u r creating PO at that time system will check the budget against PO value considering taxes also.
eg. 380$+tax value.
after considering taxes your total PO value imay be getting updated more that 400$.
Explre you error by clicking on error information you get the exact diffrence in budget and PO value.
Hope this will sove your problem, reply after doing this. -
Error in PO "IO Budget exceeded"
Hi All,
I am working with extended classic scenario , I am facing a problem while changing the PO.
When I try to add or delete any line item in the PO it throws error of "Budget Exceeded for the IO XXXX" for 1st line item or any other line among the PO for which the PO is ordered and Budget is available.
e.g.
1) PO is created with one IO 1P , its in ordered status . after that I try to add 2nd line item in the same PO with IO 2P, that time it throws error " Line item 1 Budget exceeded for IO 1P "
2) Po created with 8 line items with different IOs.. When I try to delete 6 line item , it throws Budget exceeded error for other line item.
Its working fine in Test system, I tried to replicate the same scenario in ET2 ( Test system ) but I didn't get any error there, so its really very difficult to analyse exactly whats happening in production system.
Please help me out to resolve this issue
Regards,
SheetalHi CS,
I have tried all sceanrios before reporting this problem .I had created PO in R/3 and deleted , added line item in the same PO.. There is no any error in R/3 system.
Its working fine. Only problem in the SRM side. That day I received one more same problem with another PO.& IO.. User was trying to delete the PO line item , he wasn't able to delete it that day. But next day, he could able to delete the line item. & nothing was changed in that one day... This is really inconsistency of the system.. I don't know whats happening in the system and how to rectify this error. As I said, I had tried to replicate the scenarion in SRM test system . In my first atttempt , i could able replicate the same error, but when I tried next day there was no any error in the PO...... After that I tried many POs but not able to replicate the same error. I have raised OSS for this , but side by side I am trying to fix this problem from side, as many problems are reporting from the user side..
Also I would like to share one more imp thing, that this problem is only one specific conutry.. We are supporting Globally, but not other than Thailand reported this problem and its nos are also increasing day by day.
Is there FI-CO related check setting there in SRM & R/ 3?
I have checked the R/3 Co setting for IO, so will the Tolerance limit setting affect in this case?
Please let me know
Sheetal -
Hello Friends
I created the project and allocated the budget in 2009,
I created PR in Feb 2010, but the problem is while i am changing the quantities in ME52N.
I am getting the error message :item XXX WBS element budget exceeded
Even i carry forwarded the budget from 2009(CJC0) to 2010.still the same problem exists.
Regards
KiranHi,
Check the delivery date in the PR. If the delivery date is for next year
2011 system displays the error message.
If problem still persists then reply the thread with error message number.
Regards, -
Hi:
I am posting in FI with wbs,the system gives me the following error message:
Item 001 WBS element ******** budget exceeded
Message no. BP604
Diagnosis
In document item 001 WBS element ***, budget for WBS element *******for fiscal year 2008 was exceeded by 320.00 CNY.
but there is stilll enought available budget in wbs(48,200.00 CNY), i confirm in report S_ALR_87013558 the budget is 48200 cny,the actual cost and commitment is zero ; the system should not issue error message, I am so confused!
Regards in advance.
thanks.
Edited by: junzhi wang on Aug 26, 2008 8:11 AMAvailability control against overall value
Indicator which controls whether availability checks are conducted against the overall value or against annual ones.
Use
In the project budget profile, the "Overall" indicator, used in conjunction with the "Releases" indicator, has the following effect:
Ind. 'Overall' Ind. 'Releases' Avail. control against ...
X - Overall budget
- - Annual budget
X X Overall budget released
- X Annual budget released
X = Indicator is set, in other words, checkbox was checked.
if Ind. 'Overall' Ind. 'Releases' are both not ticked,it's Annual budget ;we have done the Annual budget and Overall budget already.and some WBS with the same budget profile have no problem when posting. -
Budget exceeded BP604 (when create Invoice)
Hi All,
User got an error message budget exceeded BP604 when create invoice. How can i know what the configuration to check why system check budget( Investment management). I tried to check the configuration in SPRO (Define tolerance limit for availability control) shows that budget profile use ++ which are : (no invoice checking) but in actual it checks budget.
++ All activity groups
00 Purchase requisition
01 Purchase order
02 Orders for project
03 Goods issue
04 Financial accounting document
05 CO document
06 Budgeting
07 Funds reservation
08 Fixed prices in project
09 Payroll
Many thanks in advance.
NiesBusiness transaction group 04 (Financial accounting document) contains below transactions:
G/L account posting
FI invoice parking
Invoice verification
Goods receipt for the order
Cash budget management
Payment transfer
Down payment posting
Inventory difference
Regards
Sreenivas -
Error : Annual budget exceeded (FMAVC005)
Dear guru,
I want to create PR (ME51N), the net total amount is 50.000. But the error message shows :
Annual budget exceeded by 11.812.000 IDR (FM PB Availability Control) for document item 00010
Message no. FMAVC005
Diagnosis
The annual budget is exceeded by 11.812.000 IDR (FM PB Availability Control) for the document item 00010. Budget control on outgoing amounts ( ceiling type Expenditures) raised this message for the following combination of availability control ledger, fiscal year (and if applicable, year of cash effectivity) and control object:
9H/2011/DUMMY/EXPENSE1
FYI,
Consumable Budget : 35.700.000
Consumed Amount : 650.000
Available Amount : 35.050.000
The error message says it's exceed 11.812.000, it seem Available Amount for budget is - 11.762.000 (50.000 - 11.812.000)
It's strange...
Please tell me how to solve this...
Thank you..It's solved with logout from system and then log in again
It's a very stange thing...
Dear Alex,
Thanks anyway
Maybe you are looking for
-
How to know when an object is deleted?
Hi, In Java, instances of classes are eliminate by garbage collector and programmers have no chance to do it. I need to do something, when the instance of a class ends its cycle-life . How do I know when an object is going to be deleted, in order to
-
Address book keeps a name I delete
I keep deleting the name of the person in a company card, and every time address book restores it. I don't want it, the person doesn't work there anymore, I need to delete it, I tried evrything, even deleting the card and making it new. Plus, I can't
-
When should a DSO be used?
When should a DSO be used?
-
hi all, at present iam working in jdev 11.1.1.3 i write one method in application module,add to the client interface also and when i click one button in my page(.jspx)that method is exectuted automatically ,how to navigation to the button and my code
-
Help on CL_GUI_TOOLBAR
Hi, could someone give me an example of CL_GUI_TOOLBAR and its event handling example? Thanks a lot