Set Status on Header based on Item condition
Guru's
I have the following requirement:
If a certain filled date on an item is equal to the system date the status on the Header has to be automatically set to "Not Accepted".
An Action Profile and Definition is allready assigned to this Item Category. But what I want to know is if someone knows if there is a standard SAP Method that I can copy, change and use to get what I want.
I found "LEAS_STAT_LCID", but I'm not sure if it will do the above.
Hope you can help me.
Thanks in advance and I will reward points!
Joost
Function always returns true or false
Definitions below
create or replace
function CHECK_FLAG_F_officer (offid in number)
return BOOLEAN is
incStatus varchar2(10);
currentFacility off_profile.current_facility%type;
comStatus varchar2(10);
comRole off_profile.comm_staff_role%type;
comStaff off_profile.comm_staff_name%type;
comEmail varchar2(200);
begin
select decode(lu.active_flag,'Y','ACTIVE',null) INC, lu.current_facility,
decode(lu.community_active_flag,'Y','ACTIVE',NULL) COMM, lu.comm_staff_role,
lu.comm_staff_name, lu.comm_staff_email email
into
incStatus,
currentFacility,
comStatus,
comRole,
comStaff,
comEmail
from off_profile lu, sor_offender o
where o.doc_number = lu.doc_num
and (lu.active_flag = 'Y' or lu.community_active_flag = 'Y')
and o.offender_id = offid;
IF comStatus = 'ACTIVE' and comEmail is not null THEN RETURN(TRUE) ;
elsif comStatus = 'ACTIVE' and comEmail is null THEN RETURN(TRUE);
else
RETURN(FALSE);
END IF;
exception
when others then
RETURN(FALSE);
end;
Similar Messages
-
Display Image(which set as behind text) based on some condition.
hi all
I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
But i need to display the image based on some condition
for example i have a field as ORG_ID
if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
kindly help me
thanks for all in advance.that too not working because
on image am displaying some other fields.
see i think you didn't get my point.
in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
behind this data am displaying my company logo which will capture whole page size..
if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
or
help on this how to set a dynamic image as behind the text.
Edited by: maddy on Nov 28, 2012 7:32 AM
Edited by: maddy on Nov 28, 2012 7:35 AM -
Header vs. Item Conditions
Hi All,
What is the logic behind header conditions not having access sequences? Why is it a standard to have header conditions assigned manually upon sales order creation? Is there a great impact or issue if header condition records are determined automatically?
Thanks a lot guys!!
Regards,
OlynHi Olyn,
The header condition data may be applicable to frequent changes and it will applicable to whole document so standard system givenoption to enter manually.
If you want automatically you can define access sequence then assign that to header condition then you cam maintain the condition records for that the values will come automatically in the sale order.
For more details go through this link
http://help.sap.com/saphelp_47x200/helpdata/en/dd/561760545a11d1a7020000e829fd11/frameset.htm
I hope it will help you,
Regards,
Murali. -
Va21 and va22 need to display messages based on item condition
pls provide me the exit name or enhancement spot name where i can display the messages in tcode va21 and va22 with respect to line items.
there are komp-kzwi6 one field is there in this structure with respect to this field condition i need to populate the warning message.
pls provide me as soon as possible.
in MV45AFZZ i have tried. but for this exact field condition i am not getting
Edited by: Shantha Sheela on Apr 2, 2009 12:08 PMcould u pls explain more abt this since its holding only the below parameters.
not the komp structure.
IMPORTING
*" VALUE(I_VCSD_UPDATE_NEW) LIKE VCSD_UPDATE
*" STRUCTURE VCSD_UPDATE
*" VALUE(I_VCSD_UPDATE_OLD) LIKE VCSD_UPDATE
*" STRUCTURE VCSD_UPDATE
*" VALUE(I_VCSDPOS) LIKE VCSDPOS STRUCTURE VCSDPOS
*" VALUE(I_VBAP) LIKE VBAP STRUCTURE VBAP
*" VALUE(I_VBKD) LIKE VBKD STRUCTURE VBKD
*" VALUE(I_VBAK) LIKE VBAK STRUCTURE VBAK
*" EXPORTING
*" VALUE(E_VBAP) LIKE VBAP STRUCTURE VBAP
*" VALUE(E_VCSDPOS) LIKE VCSDPOS STRUCTURE VCSDPOS
*" VALUE(E_VALUES_CHANGED) -
Header and Item conditions in MIRO
Hi All,
There is a PO created with Import conditions .We have given some conditions in Header level (AED) and some conditions in Item level (Customs duty like SED..etc). We maintaind the vendor (customs-ABCD Vendor) in header conditions as well as Item level conditions.
As per the process, we are trying to create the Customs invoice(MIRO) for the PO.This vendor(ABCD Vendor) is FI vendor . While doing MIRO , same Vendor name is appearing two times for selection ."One" is for Item level Conditions and "another one" is for Header level conditions.
We can select only one vendor, either Item level vendor or Header level vendor . If I select "one" vendor , it will give the item level conditions only..(Here vendor is same for Item and Header level).We can only select and process Item level conditions for that vendor.
If I select "another one" vendor , it will give the header level conditions only..(Here vendor is same for Item and Header level).We can only select and process header level conditions for that vendor.
Is there any setting to be done to appear the header and item level conditions at a time in MIRO Vendor (if Vendor is same ) in commercial Invoice ?
Please provide SAP behaviour on these kind of scenerio...
ThanksHi,
Header conditions in PO does not exist !
You will have to develop it.
Then you will have to use ECS BBP_ECS_PO_OUT_BADI for modifying the data you send to ECC PO in order to not send the whole price calculated into SRM but dispatch on one side the price before condition and on the other side the different condition type.
The goal is that R/3 should be able to recalculate the final price based on the condition types you entered in SRM.
Kind regards,
Yann -
Header and Item Conditions in EBP PO
HI All,
I've just checked the pricing conditions in spro of SRM and as per my business requirement I need to maintain both header and item conditions and replicate the values back to r/3 in extended classic scenario like freight,surcharge,discounts e.t.c, with this functionality can we meet the requirement or any additional settings required,kindly advice me.
Thanks and Regards,
Sathya kumar.Hi,
Header conditions in PO does not exist !
You will have to develop it.
Then you will have to use ECS BBP_ECS_PO_OUT_BADI for modifying the data you send to ECC PO in order to not send the whole price calculated into SRM but dispatch on one side the price before condition and on the other side the different condition type.
The goal is that R/3 should be able to recalculate the final price based on the condition types you entered in SRM.
Kind regards,
Yann -
How to fetch the correct netprice based on contract item conditions
Hi,
When you display a contract using ME33K and you click on a item and view its conditions(shift+F6), there might be 2 validity periods for a given item.
and each period will have different netprice in it.
Let me describe the same.
Suppose the PO creation date is 04.07.2007
The conditions for an item in a contract for the PO are as follows;
1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
We need to always fetch the net price from the validity period which always matches with the PO creation date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
But the program is fetching the netprice 200.000 which belongs to the second validity period. That is because the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.The fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrieves the net price of current data in contract validity and not with respect to PO creation date.
This data is then used to fetch the get the netpr data from EKPO.
what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date..
Now I have the internal table which is having data retrieved from Ekko and EKPO table.
Now how do I retrive the correct price by using the condition tables KONV and KONP.
Can you pls give the code snippet..
Thanks in advance.Hi,
Please get the valid condition ( based on date ) from A016 (MK & LPA). With the appropriate KNUMH read the Condition header. You can access the different condition items viz., PB00, RA00 etc., for the values from table KONP. Further if you have Value scales / Quantity scales, you can read the data from KONM, KONW.
An additional tips: in KONP, if you have a condition like RA00 - Rebate, the value will be multiplied by 10 and saven in database to accomodate the discount to the third decimal.
I could not completely understand your requirements like nature of development ( Is it a Report / SAP Script ??) you are working etc., so that I could help you precisely.
Hope this helps,
Best Regards, Murugesh AS
Message was edited by:
Murugesh Arcot -
Carry over of item conditions to header conditions of an invoice
I am encountering a situation where the freight conditions at the item level do not carry over to the header in a consistent manner. However, if I look into the item condition and then revisit the header condition, the carried over value magically populates. I am however, unable to save the invoice with this setting. What could be driving this issue and more importantly, how do I fix it? We currently have many invoices in production that probably have the same issue. Please advice.
Hi,
go to V/06
select frieght condition and see whether you tickmark to HEADER CONDITION option.
Kapil -
RE: Header And Item Condition
Hi
How the system will put the value in my sales order if i select both Headre condition and item condition for one condition type in v/06. my question is for item condition we have to maintain condition record where in header we do not require.Will I have to enter the value manually in order or the system automatically determine it.
And for For which condition type we select both Header and item Condition
regards
debasishDear Stilianos,
You can maintain item level condition type only.
Henece you can maintain the values at item level based on your requirement.
I hope this will help you,
Regards,
Murali. -
Changing Header/Item condition after billing has been done
Hi,
I have an issue in which the sales order is incomplete but invoicing has been done. On seeing the change log I found that new condition type has been added after generation of invoice.
Now the user wants that entire header/item condition screen should be greyed out after creation of billing document. can it be done through config or user exit is the way,
My apologies if I posted at a wrong thread.
Thanks
SubhadeepHi,
There is no mechanism to find out if the billing document has been created and sales order will allow changes to pricing even after creation of invoice.
The point is that, it doesnt matter if the sales order is changed after the invoice has been created, since the values from SO has gone into billing.
However, if you still wish to lock changes to order once it is billed, kindly refer to some userexit like MV45AFZZ which works during sales order processing and you may get the billing status from VBUK and VBUP tables.
Regards,
Amit -
Diff. between header & item condition
Pls let me know the diff. between header & item condtion in SD.
How to define header & item sepratelyHi Prem,
You can make a Condition Type a Header Condition by checking the "Header Condition" check box in
SPRO -> Sales & Distribution -> Basic Functions -> Pricing -> Pricing Control -> Define Condition Types.
In turn, it can be made an Item Condition by checking the
"Item Condition" check box.
In an Sales Order doc you can assign a header condition by choosing the "Display document header details" button at the top right of the screen, then move to "Conditions" tab and Add the Header Condition type to the list of Conditions.
Similarly, item conditions can be set by selecting the line item and choosing the "Item Conditions" button and adding the Item Condition type.
Hope it answers your query completely.
regards,
Raj -
Changing the status of the sales order item based on reason for rejection
Hi All,
When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
Regards,
S.SubasreeHi subburamaiah
If you want the report you can create a separate SIS report . In that take the input field as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
Regards
Srinath -
Condition type in PO header can be divided in each PO item condition
Dear all,
I would like to do as below:
In PO:
Item detail:
Material A, Qty = 200
Material B, Qty = 300
Header:
Condition tab: Condition type = Z001 (Freight charge) = 15,000 $
After that the system auto calculate and update the condition type in Item Condition:
- Material A, Condition type = Z001 (Freight charge) = 15,000 / (200+300) * 200 = 6,000 $
- Material B, Condition type = Z001 (Freight charge) = 15,000 / (200+300) * 300 = 9,000 $
Can I do that?
How I can configure the system?
Thanks a lot for your support!
Rgds,
CHyes, this can be done.
http://help.sap.com/erp2005_ehp_05/helpdata/en/dd/56177a545a11d1a7020000e829fd11/frameset.htm -
Dear SAPers,
I would like to know which the use of header condition and item Condition boxes is in the condition type customizing.
Could someone explain me what are the effects of this boxes?
Are the boxes related to the calculation that the system does in the sales order?
I will reward if helpful.
Thanks in advance,
GasparHi emilo
As our friends said,already said , So Header condiition types apply for the entire document where as item condition applies to the particular line item i.e., material which you have entered in the line item.
coming to the point , i hope X means checked for that feild where as
" " means it is not checked .
JIAP condition type as you said it is allowed at header level as well as item level .If it doesnt has any access sequence , you can enter manually at either item level or header level .
But the JIAQ condition type is allowed only at header level and not at item level. so if you enter JIAQ condition type at item level in the sales order JIAQ condition type doesnt allow. it will throw an error message
Reward if useful
Regards
Srinath -
Item condition copies to Header condition.
Dear All,
As per my client scenario I create a BOM and explode at sales order level, and as per requirement I made all level "Main and Sub item" as relevant for price.
main item is one and have two sub item.
Create 2 condition type for two subitem, and maintain the record for both, each record cater one sub item.
Till now every thing is ok, and both subitem price is coming on the related sub item level.
Now I want that both items condition is copied at header level for pricing purpose ?
i cant create the condition record for header or main item because item is different.
Hope all of you understand the scenario... and assist me with your valueable feedback.
Regards,in progress..
maximum number reach, wants to post new query..
Maybe you are looking for
-
"cannot find file" after formatting and moving!!
Wanted to have iTunes library included in Time Capsule backup. So had to reformat external hardrives where all my songs are from Windows do OS. Copied everything on other HD, reformatted HD with OS, copied back all songs. HD still has same name "MUSI
-
Program to create Debit and Credit Memos
Hello everybody! I am new to SAP and I need to develop ABAP program to create Debit and Credit Memos... 1. Debit/Credit memos created with header (Higher level) item and sub item/s 2. One Debit/Credit memo created per customer 3. A part of informatio
-
HP Driver for P1015 Laser Printer
Wondering when HP will have a driver for System 10.5 so I can upgradef rom 10.3.9? [email protected]
-
Internal order and Budget fixing
Hi, The budget is allocated for year 200t against internal order in T code KO22. But while i am tring to create an asset PO its showing error that Budget exceeded in Fiscal year 2008. I think i need to fix budget for 2008. In KO22, in GOTO the Next f
-
Problem with the "check to see if you plugins are up to date" Link in the Add-ons Manager.
Whenever I try to follow the link I get to sent to https://www.mozilla.com/en/404 instead of https://www.mozilla.org/en-US/plugincheck/ I don't know why this started happening, I only noticed it several minutes ago but I wanted to report it.