EXIT_SAPMM06E_012 : Incoterms validation for header/item in a PO.
Hi,
I need to add validation to PO that :
The header level incoterm 1 and 2 and the items incoterm1 and 2 has to be populated by the user, for PO create(ME21n) and change (ME22n)
modes.
THe header level inocterm field validations were done in Change mode(ME22n) using the i_ekko in EXIT_SAPMM06E_012.
But i'm not able to do this, for the item level incorterms. I cant find which table holds the incoterm data for items.
Also, please let me know how to do it when the PO is in create mode. Can EXIT_SAPMM06E_012 be used?
and which internal table will have the inco terms for header and item data , when in create mode.
Thanks in advance ,
Shyam.
Hi
Try with BADI ME_PROCESS_PO_CUST method CHECK.
Regards
Eduardo
Similar Messages
-
Error in CNS0 :Sales unit is not valid for the item
Dear Team ,
we are using assembly process ,after creation of project from sales order ,requirments are pass to production planning (PP), Asign the bom to activites then we are going to delivery through project (cns0) at the time system shows error" sales unit is not valid for the item" we check the options in material master .please help me on this issue.
Thanks &Regards
R.B.RAOHave a look at the following note:-
Note 140551 - VL384 Stock transport order and batch selection
G. Lakshmipathi -
This action is not valid for this item
Hi all,
I am facing with "This action is not valid for this item" error, if I submit the items by using "Submit Decisions" button on UWL. Please find the uwl, below;
<ItemType name="uwl.task.webflow.decision.TS90100027" connector="WebFlowConnector" defaultView="DevamDevamsizlik" defaultAction="viewDetail" executionMode="pessimistic">
<ItemTypeCriteria externalType="TS90100027" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="session">
<Attribute name="Personel" type="string" displayName="Personel Adı"/>
<Attribute name="AttAbsText" type="string" displayName="Devam/Devamsızlık Tipi"/>
<Attribute name="BaslangicTarihi" type="date" displayName="Başlangıç Tarihi"/>
<Attribute name="BaslangicSaati" type="time" displayName="Başlangıç Saati"/>
<Attribute name="BitisSaati" type="time" displayName="Bitiş Saati"/>
<Attribute name="BitisTarihi" type="date" displayName="Bitiş Tarihi"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action name="Onayla" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="0001"/>
<Property name="UserDecisionTitle" value="Onayla"/>
</Properties>
<Descriptions default="Onayla"/>
</Action>
<Action name="Reddet" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="decisionKey" value="0002"/>
<Property name="UserDecisionTitle" value="Reddet"/>
<Property name="Application" value="zh12j010"/>
<Property name="PageId" value="rejectreason.htm"/>
<Property name="workitemId" value="${item.externalId}"/>
</Properties>
<Descriptions default="Reddet"/>
</Action>
<Action name="Detay" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="Application" value="zh12j010"/>
<Property name="PageId" value="detail.htm"/>
</Properties>
<Descriptions default="Detay"/>
</Action>
<Action name="Yazdir" groupAction="" handler="SAPBSPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="no">
<Properties>
<Property name="Application" value="zh12j010"/>
<Property name="PageId" value="print.htm"/>
</Properties>
<Descriptions default="Yazdır"/>
</Action>
<Action name="submitUserDecisions" groupAction="yes" handler="UIActionHandler" referenceBundle="submit" returnToDetailViewAllowed="no" launchInNewWindow="no"/>
</Actions>
</ItemType>
<View name="DevamDevamsizlik" selectionMode="MULTISELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS90100027" columnOrder="createdDate, Personel, AttAbsText, BaslangicTarihi, BitisTarihi, BaslangicSaati, BitisSaati, redCol, onayCol" sortby="createdDate" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="-1" dueDateSevere="0" dueDateWarning="0" emphasizedItems="new" displayOnlyDefinedAttributes="no" dynamicCreationAllowed="yes" actionPosition="bottom">
<Descriptions default="Devam/Devamsızlık Talepleri">
<ShortDescriptions>
<Description Language="en" Description="Devam/Devamsızlık Talebi Onay"/>
</ShortDescriptions>
</Descriptions>
<DisplayAttributes>
<DisplayAttribute name="onayCol" type="checkbox" width="" sortable="no" format="default" actionRef="0001" hAlign="CENTER" vAlign="TOP" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Onayla">
<ShortDescriptions>
<Description Language="en" Description="Onayla"/>
</ShortDescriptions>
</Descriptions>
</DisplayAttribute>
<DisplayAttribute name="Personel" type="string" width="30" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Personel"/>
</DisplayAttribute>
<DisplayAttribute name="AttAbsText" type="string" width="15" sortable="yes" format="default" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Devam/Devamsızlık Tipi"/>
</DisplayAttribute>
<DisplayAttribute name="BaslangicTarihi" type="date" width="" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Başlangıç Tarihi"/>
</DisplayAttribute>
<DisplayAttribute name="BaslangicSaati" type="time" width="" sortable="no" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Başlangıç Saati"/>
</DisplayAttribute>
<DisplayAttribute name="redCol" type="link" width="20" sortable="no" format="default" actionRef="Reddet" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Reddet">
<ShortDescriptions>
<Description Language="en" Description="Reddet"/>
</ShortDescriptions>
</Descriptions>
</DisplayAttribute>
<DisplayAttribute name="BitisSaati" type="time" width="" sortable="no" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Bitiş Saati"/>
</DisplayAttribute>
<DisplayAttribute name="BitisTarihi" type="date" width="" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
<Descriptions default="Bitiş Tarihi"/>
</DisplayAttribute>
</DisplayAttributes>
<Actions>
<Action reference="submitUserDecisions"/>
<Action reference="refresh"/>
<Action reference="forward"/>
</Actions>
</View>
Can anyone give a suggestion about it?
Thank youHi all,
I had the exact same error using a user decision configuration. Issue was that I was using a VIEW that did not exist:
ItemType name="uwl.task.webflow.TS90300005" connector="WebFlowConnector" defaultView="DefaultApprovalView">
DefaultApprovalView was not defined as a custom view.
SOLUTION: changed it to standard SAP com.sap.pct.erp.srvconfig.approvaloverview view and it worked!
ItemType name="uwl.task.webflow.TS90300005" connector="WebFlowConnector" defaultView="com.sap.pct.erp.srvconfig.approvaloverview">
This is normally by default defined in a standard portal system.
Edited by: David Pierre on Jan 13, 2010 3:15 PM
Edited by: David Pierre on Jan 13, 2010 3:16 PM
Edited by: David Pierre on Jan 13, 2010 3:19 PM -
Wrong Availability check for Header Item in Sales BOM after BOP
Hi Guys
I am stuck with a very weird problem. Request your advice:
I have a Sales BOM with one item Lets header is 'A' and Item 'B'. On creation of Sales Order ATP check is performed and both the line items (with A and B) the committed qty and committed date.
Now when BOP runs, it deletes the allocation of A and changes it to '0'
Details:
'A' is a non stockable product
Req:
1. I am not sure whether I should include A in BOP selection, however even running it only with B it deletes the allocation of A and the committed qty changes to '0'
Can you please suggest the solution or standard way of running BOP for Sales BOM
Thanks in advance
-RahulThanks for writing in Prasun
Yes I created a new Filter type however when you add a STO category and then you change the fields to include item category you will get the same error. I am also in V 5.0 of SCM
Normally we use SAP_NetChange filter type. So is it possible to restrict using item category for this filter some how!
On the otherhand I also wonder these should not ATP relevant as the header item is non stockable item! And I guess there should some catch to exclude if not item category as you mentioned!
So the order categories included are:
Customer Inquiry
Customer quotation
Sales Order
SD Scheduling Agreement
SD Scheduling agreement w/external
Contract
Delivery w/io charge
Independent requriement
Release from customer in plant
STO
Deplyometn release
TLB release for purc ord
Fields
Product
location
distribution centrer
MRP area
product Hierarchy
Location hierarchy
supplier location
These are std filter type and I cant be modified.. however we restrict our filter to location only!
Kindly advice!
Thanks in advance
-RK -
Defining complex validations for flex items
Hi,
We've defined a flex regions and a number of flex items. We would like to define more complex validation logic at the entity object level, whereby we'd like to reference both 'fixed' entity attribute values as well as values of the flex items.
Could you please indicate how this can be achieved in the validateEntity method of the EntityImpl.java class.
We know beforehand which flex items will be displayed based on the value of one of the fixed entity attributes (e.g. if the attribute request_type='assist' then display flex items A and B, if request_type='info' then display flex items D, E and F). We use flex items because the number of request_types and corresponding 'dynamic' attributes is too large (and subject to frequent additions, deletions or modifications) to incorporate in a fixed static db table structure.
If you can suggest alternatives to using JHeadstart flex items, these are more than welcome, of course.
Many thanks beforehand,
IbrahimDear Steven,
First of all many many thanks for your prompt reply. We can use JSF EL expressions to conditionally render flex items. I'd like to illustrate my question with a simple example:
We have three fixed entity attributes displayed:
RequestType
Birthday
Sex
and two flex items (rendered at runtime for a specific runtime value of RequestType):
Smoker (Y/N)
Weight
Before saving the record I'd like to check a number of validation business rules that depend on the fixed entity attributes as well as the two flex items being displayed.
Consequently, I'd need to be able to access the flex item values provided by the user, inside my validateEntity method (right ?).
I can define simple validations for the flex items, but I can only access the flex item value and possibly the DependsOnItemValue.
PS: When I define a flex item of type 'inputtext' and try to access its value using a bind variable in the validation query of the flex item e.g.
:ItemValue = 'blabla'
Suppose the user fills in the value Abracadabra, the validation logic substitutes as follows:
Abracadabra = 'blabla' (which generates an Oracle error). I'd expect the following substitution to take place:
'Abracadabra' = 'blabla' -
Validation for an item is not working
Hi All,
I have a validation for name field in my application to resist the names repeating while creating new USER
i tried Function returning error text.
declare
l_count number:=0;
begin
if :p102_username is not null and :REQUEST ='CREATE' then
select count(username) into l_count
from portal_login
where user_id =:p102_user_id;
if l_count > 0 then
return'This Username already exists. Please enter a new name.';
end if;
end if;
end;
But it is not working..
It gives error like
ORA-01403: no data found
Error unable to fetch row.
First it was working fine, after validation it started to give error.
So i removed that but also the condition is same..
Can any one help me?
Thanks,
AlkaYou are getting this error because your SELECT statement is not returning any rows. You need to do something like:
DECLARE
l_count number:=0;
CURSOR check_emp IS
SELECT COUNT(ename) cnt
FROM emp
WHERE ename = :p14_ename;
BEGIN
IF :p14_ename IS NOT NULL AND :REQUEST ='CREATE' THEN
OPEN check_emp;
FETCH check_emp INTO l_count;
IF (l_count > 0) THEN
CLOSE check_emp;
return l_count||' This employee name already exists. Please enter a new name.';
END IF;
CLOSE check_emp;
END IF;
END;Mike -
Jump to Function not working for header items
Hi Experts,
I have a query using jump to function to access R3 tranaction,
It has issue jump to transaction MB51
Item Data:Material, plant, ...
header data: posting date,...
All settings in RSBBS are correct, but the posting date is not passed onto R3 report.
I have tried similar transaction MR51and posting date can be passed to R3.
any idears?
FengThis is solution:
In ERP system.
Set MEMORYID in table MMIM_REP_CUST for fiekd BUDAT.
Value for MEMORYID have to be from TPRA table and value for DTG upper than current timestamp
After this recall mb51 and set this value in RSBBS assignment in BW system.
Thanks Nikolay Ryzhov for this solution. -
Validation for header condition in a Purchase Order in me21n
Hi Experts!, I need to validate that a header condition can't be repeated in a PO, when it's be creating..
I need your helps.. Thanks..
Message was edited by:
Gustavo GilHi.! Thanks everybody, I recomended this page
http://help.sap.com/saphelp_40b/helpdata/es/14/f62c7dd435d1118b3f0060b03ca329/content.htm
, It's so usefulI, here I found the program, subrutine, and a short description, I resolve the problem using the exit USEREXIT_XKOMV_BEWERTEN_INIT..
Regards,
Gustavo Gil.. -
How to create a single 'not null ' validation for all the items in a page ?
Hi everyone ,
how to create a single 'not null ' validation for all the items in a page ? I have many textfields . Instead of creating 'not null' validation for each item , I would like to create a a single validation control that will serve the purpose
Thanks & Regards
UmerNice1 wrote:
bob , as u said I have done the following :
1) under create button , there are 9 items and for each item I have set Required to 'Yes'
2) under delete button , there is 1 item and have set Required to 'Yes' for the item
3) defined page validation for 9 items under 'create ' button and have set it to fire when 'create ' button clicked
4) defined page validation for 1 item under 'delete ' button and have set it to fire when 'delete ' button clicked
now , when I click 'create' button it even shows for the item under 'Delete ' button that it is a required itemSorry, I didn't see this note. The required template won't work, there is no way to attach it to the button.
The best solution is as the reply a couple replies up
Create 2 page type validations as a PL/SQL with code
1st validation
:P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL include all 9 items
Set the When Button Pressed to the CREATE button
2nd validation
:P1_ITEM10 IS NOT NULL
Set the When Button Pressed to the DELETE buttonI think that's going to be the easiest way to do it.
Edited by: Bob37 on Apr 27, 2012 12:02 PM -
How to do the validation for a checklist item
I have a check item which is a date which should not allow future date. This check list item might be 1 st item or 10th or 3rd .. depending on the selection made in the previous page. How can i do validation for this item ?
thanks for your help.Hi, I am not sure of the table though for the budget, but I have one suggestion.. I'm not sure if you already know the F1-F9 button. Firstly, just put your cursor somewhere in the screen where the budget/field is located then press F1 and F9, you will see the table name, go to t-code SE11 and type in the table you've found, then go to attributes and copy the development class, open a new session using t-code SE80(Object navigator), pull down the arrow/F4 choose the development class and press the ENTER button, you will see all the related tables, function modules, transaction, programs, etc., that is related to that development class.
Hope this helps. =) -
Hi,
As the Vendor Inco terms in PO header is getting populated from the
vendor master...similarly Inco terms in PO Line item gets populated fromArticle PIR...If its blank then it doesnt get any value & if the same is maintain in PIR manually then Incoterms does reflects in the PO line item.
I have got couple of info which was quite relevantto my query i.e
(the incoterms at item level is item specific, U can mutually agree uponcertain incoterms with a vendor for some materials. But when u make a
single Po for many item (and there cud be items fr which the incoterms
are different and not yet settled with vendor ) - thus incoterms itemwise
cam also be maintained.) & (If you enter an Incoterm on header level,
this is valid for all items that do not explicitly have an Incoterm.If
you then enter an Incoterm on item level, this overwrites the Incoterm
entered on header level.)
But still need few more details...e.g when we create a PIR(with
combination of vendor,article & pur org thru ME11 @ that time why systemdoesn't picks up the Vendor Incoterms is there any setting which allows
the values to flow at the time of creation of PIR. Or it has some
specific reasons where its intentionally does not flow while creating PIR.
Coz i have checked manually entering Incoterms in ME11/ME12, then it
flows in the PO line item level directly.
Also how could we get the PO Header Incoterms & PO Line item incoterms
reflecting similar.
Need your help ASAP as this has an impact on the process mapped by
mapping ZOne wise Warehouse for bettercontrol which is critical.
Please help...
Thanx in advance..
Regards,
Sonal D
9322185889Hi Sonal ,
Even i hav the same requirement that Incoterm field in me21n while creating purchase order at Header level needs to get reflected at item level too.
Is it the development or Customisation?
Can u please explain me how did u go abt it? -
Retrieve partner for each item in VBPA
Hi everyone.
I have an issue due to the way SAP stores the data in VBPA.
I explain : for each different partner (at item level), they only store one item in VBPA. It compress the data like they say in OSS note 380507.
My problem is how can i retrieve all the items for a document ?
Is there any FM for that ?
exemple : in my diocument i have the following :
posnr -kunnr
1------ 123
2------ 123
In VBPA, i will only find the first line. I need a solution to retrieve the second one.
Thanks for your help.Hi
If a partner is valid for all items of the document u can see only one hit in VBPA where the item has the value of the header => 000000
Only if a partner is valid for a certain item you should find an hit for that item.
So if you need to get all partners:
TABLES VBAK.
PARAMETERS: P_VBELN TYPE VBAK-VBELN.
DATA: T_VBAP LIKE STANDARD TABLE OF VBAP WITH HEADER LINE,
T_VBPA LIKE STANDARD TABLE OF VBPA WITH HEADER LINE.
START-OF-SELECTION.
* Get Items
SELECT * FROM VBAP INTO TABLE T_VBAP WHERE VBELN = P_VBELN.
* Get partners
SELECT * FROM VBPA INTO TABLE T_VBPA WHERE VBELN = P_VBELN.
LOOP AT T_VBPA.
IF T_VBPA-POSNR = '000000'. "<--- It means is valid for all items
LOOP AT T_VBAP.
WRITE: / T_VBAP-POSNR, T_VBPA-PARVW, T_VBPA-KUNNR.
ENDLOOP.
ELSE. <--- It means is valid for only certain items
LOOP T_VBAP WHERE POSNR = T_VBPA-POSNR.
WRITE: / T_VBAP-POSNR, T_VBPA-PARVW, T_VBPA-KUNNR.
ENDLOOP.
ENDIF.
ENDLOOP.
Max -
Is there any report to get the header/item text at GR stage together?
Hi gurus,
Is there any report to get the header/item text at GR stage together with a date range?
at the point of goods receipt? Or a report that could be run to search for header/item text at GR stage together with a date range?
Text that was entered at the point of goods receipt?Hi
Check MB51 report with posting dates for materials/vendors and use the display variant document header text (which is GR header text). I hope this is the one you are looking for.
Thanks -
Hello,
I am trying to put a validation on an item.
I have two columns:
Ethics Status and Ethics Tracking Number
Ethics Status is required but Ethics Tracking Number is only Required if Ethics Status is Yes.
I am unsure how to go about doing this. Can anyone point me in the right direction?
Thanks,
JessicaI would create a Validation for the item Ethics Tracking Number that says it cannot be NULL, and then set the condition to "Value of Item In Expression 1 Is NOT NULL", and then in the Expression 1 box fill in the name of the page item for the Ethics Status field.
This way the validation is only applied when the condition evaluates to TRUE, which will only happen when Ethics Status is not null.
So if you had the item P1_ETHICS_STATUS, then put that in the Expression 1 box. -
Table for line item in F-47 Display Document - Down Payment
Hi,
Can anyone please tell me from which table can I pick the values for line items. I'm developing a report in smartforms for down payment request. For header items I found out that the values are stored in table - BKPF.
Please help..
Regards,
SriramHi,
Go to Logical database through SE36 and give KDF for vendor and DDF for customer. You will get the details of tables there.
Regards
shankar
Maybe you are looking for
-
Error messages in included facelets file?
I have a jsp page that includes a .xhtml facelets page. The facelets page has a form, when the form is submitted I look for errors and if I find any I return the user back to the containing jsp page. At which point none of the error messages I have s
-
Changing Resource Order in Provisioned Resource Page
Hi, Is is possible to change the order of the Resources which are getting displayed in Provisioned Resource Page.Let us say I have 2 resources A and B .I always wanted to A first and then B ,in the Provisioned resource page of that user.Any clue on h
-
I am having problems with my macbook pro and the dock. About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor. But the computer locks u
-
Can I access my old Pagemaker files with the current InDesign software?
Will the current InDesign software allow me to access my older Pagemaker files?
-
PLSQL - fail, cant get it work. PLEASE HELP
This is the sql: I am basically trying to loop through every table in a users schema and write a line in a file for all the columns it has: repheader off set echo off set feedback off set trimout on set trimspool on set verify off set serveroutput on