Inventory based import cvd conditions
Dear SAP MM Cons,
I have created import pricing procedure , in that i created new conditions like ZCV1 for CVD , ZECV for education cess on CVD, and Z1CV for H ed cess and Z2DC for additional duty by copying existing conditions.
My requirement is that client want to add the cost of these conditions in the material cost. I created pricing procedure with this conditions without acct key, hence they are getting added to material cost. But During excise capturing(J1IEX), BED that means CVD is flowing in the capturing document also it flowing during the excise posting i.e account document get generated in excise for cenvat . But this is wrong .There should not BED amount flow in the excise.
Please suggest how to make this inventory based conditions in the import PP and to avoid any flow in the excise capturing.
Regards
Mahesh
Dear Venga,
Here clients are doing J1IEX first and then MIGO.
Actually these CVD conditions are created on inventory base i.e these should get add to material cost in the import procedure.Here I have just removed account key in the pricing procedure.
Still J1IEX capturing is happened and after posting part II i.e account document get generated.I want to avoid the part II.We dont have problem with Part I.
In domestinc purchase if we use JMIP inventroy based canditions and capture the excise invoice and post it only part I is generated not part II .This is okey.But in import this is not happening.
I think now u will get my question clearly.I want to avoid part II in import purchse.
Thanks
Mahesh
Similar Messages
-
CVD condition change in import PO
Dear Experts,
There is a requirement to change CVD condition percentage for lot of import PO's which have partial GR. If we change condition records thru MEK1 tcode it is not effective since we have to go & update each & every line item conditions by clicking update procedure. It is also practically difficult to do for lot of PO's. Please let me know what needs to be done.
Regards
Raghavendra MSi think manually also not posible if GR have been done aginst that PO line item. as those are time independent conditions
cond record will be effective for new po only
either u will have to shot close all the PO and creat new line ite in same po or creat new one.
or
Any ways value of CVD flows for MIRO it has nothing to do with PO value in CVD , so i think it will not make much diffrence.
hope this will help -
Is it possible to import data based on filter condition?
HI All,
Is it posisble to import data based on fillter condition? Suppose I have following data
Name,City
A,HYD
B,HYD
C,MUM
D,DEL,
E,DEL
F,HYD
Now I want to import only records where city is HYD, is it possible through import manager?
Thanks
RajeevHi Rajeev,
You can filter records during import if one of the Matching field is of type Lookup.
In your case if you create City as flat lookup table in MDM & maintain lookup values in DM(Just as an example), then you can import only records where city is HYD.
Map Name & City, Then in Match Records tab select both the fields (Combination)
then right click on it & select Filter.. option.
Now new pop up will open where you be able to see ur Lookup table values, from there select HYD and Add
Now in default Import Action, set Create Action for None/None (All other will be skip)
This way you will import only HYD records.
But this is possible only on Lookup fields & not foe Text fields
Hope this will help you
Thanks & Regards,
Mahi -
How to activate or deactivate a user-exit based a specific condition
hi all,
i want to activate or deactivate(make it trigger) a particular user-exit based in a condition.
can i do that. if yes please tell me how.
can we use COMMIT in user-exits or BADI's.
Thanks & Regards,
Saroja.Hello Saroja
The solution provided by Rich should be used for testing purposes only in the the reverted sense:
IF ( syst-uname ne '<specific user>' ).
RETURN.
ENDIF.
" Execute user-exit for specific user
However, for serious programming you should use a a better strategy. In principle, user-exits are either ON or OFF and, if they are ON, they are ON for <b>all </b>user which is usually not intended.
The following example shows a (possible) strategy how to execute user-exits based on specific conditions.
The SAP extension CATS0001 contains the component EXIT_SAPLCATS_001 with the following interface:
FUNCTION EXIT_SAPLCATS_001.
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(SAP_TCATS) LIKE TCATS STRUCTURE TCATS
*" VALUE(SAP_PERNR) LIKE CATSFIELDS-PERNR
*" VALUE(SAP_DATELEFT) LIKE CATSFIELDS-DATELEFT
*" VALUE(SAP_DATERIGHT) LIKE CATSFIELDS-DATERIGHT
*" VALUE(SAP_DATEFROM) LIKE CATSFIELDS-DATEFROM OPTIONAL
*" VALUE(SAP_DATETO) LIKE CATSFIELDS-DATETO OPTIONAL
*" TABLES
*" SAP_ICATSW STRUCTURE CATSW
*" SAP_ICATSW_FIX STRUCTURE CATSW OPTIONAL
INCLUDE ZXCATU01.
ENDFUNCTION.
The include ZXCATU01 contains only the following coding:
CALL FUNCTION 'Z_EXIT_SAPLCATS_001'
EXPORTING
sap_tcats = sap_tcats
sap_pernr = sap_pernr
sap_dateleft = sap_dateleft
sap_dateright = sap_dateright
SAP_DATEFROM = SAP_DATEFROM
SAP_DATETO = SAP_DATETO
tables
sap_icatsw = sap_icatsw
SAP_ICATSW_FIX = SAP_ICATSW_FIX.
This function module is just a copy of the exit function module in the customer namespace.
Let us assume that your condition at which the user-exit should be executed is that the employee (SAP_PERNR) belongs to a specific controlling area. Thus, we make another copy of the original exit function module and call this fm within the "general" customer-specific exit function module:
FUNCTION z_exit_saplcats_001.
*"*"Local Interface:
*" IMPORTING
*" VALUE(SAP_TCATS) LIKE TCATS STRUCTURE TCATS
*" VALUE(SAP_PERNR) LIKE CATSFIELDS-PERNR
*" VALUE(SAP_DATELEFT) LIKE CATSFIELDS-DATELEFT
*" VALUE(SAP_DATERIGHT) LIKE CATSFIELDS-DATERIGHT
*" VALUE(SAP_DATEFROM) LIKE CATSFIELDS-DATEFROM OPTIONAL
*" VALUE(SAP_DATETO) LIKE CATSFIELDS-DATETO OPTIONAL
*" TABLES
*" SAP_ICATSW STRUCTURE CATSW
*" SAP_ICATSW_FIX STRUCTURE CATSW OPTIONAL
" User-Exit specific for employees (SAP_PERNR)
" belonging to controlling area 1000
CALL FUNCTION 'Z_EXIT_SAPLCATS_001_1000'
EXPORTING
sap_tcats = sap_tcats
sap_pernr = sap_pernr
sap_dateleft = sap_dateleft
sap_dateright = sap_dateright
sap_datefrom = sap_datefrom
sap_dateto = sap_dateto
TABLES
sap_icatsw = sap_icatsw
sap_icatsw_fix = sap_icatsw_fix.
" User-Exit specific for employees (SAP_PERNR)
" belonging to controlling area 2000
CALL FUNCTION 'Z_EXIT_SAPLCATS_001_2000'
EXPORTING
sap_tcats = sap_tcats
sap_pernr = sap_pernr
sap_dateleft = sap_dateleft
sap_dateright = sap_dateright
sap_datefrom = sap_datefrom
sap_dateto = sap_dateto
TABLES
sap_icatsw = sap_icatsw
sap_icatsw_fix = sap_icatsw_fix.
ENDFUNCTION.
Finally, within the specific exit function module we define the condition when the exit should be executed:
FUNCTION z_exit_saplcats_001_1000.
*"*"Local Interface:
*" IMPORTING
*" VALUE(SAP_TCATS) LIKE TCATS STRUCTURE TCATS
*" VALUE(SAP_PERNR) LIKE CATSFIELDS-PERNR
*" VALUE(SAP_DATELEFT) LIKE CATSFIELDS-DATELEFT
*" VALUE(SAP_DATERIGHT) LIKE CATSFIELDS-DATERIGHT
*" VALUE(SAP_DATEFROM) LIKE CATSFIELDS-DATEFROM OPTIONAL
*" VALUE(SAP_DATETO) LIKE CATSFIELDS-DATETO OPTIONAL
*" TABLES
*" SAP_ICATSW STRUCTURE CATSW
*" SAP_ICATSW_FIX STRUCTURE CATSW OPTIONAL
IF ( <user BELONGS to CONTROLLING area 1000> ).
" execute user-exit
ELSE.
RETURN.
ENDIF.
ENDFUNCTION.
The alternative would be to place the entire coding including the conditions in the include ZXCATU01. However, in this case you can test the user exit <b>only in the context of the transaction</b> in which the user-exit is passed.
Using the strategy I have devised you are able to test the user-exit in general and the specific user-exits <b>independent </b>of the transaction. For example, if you are already working on 6.40 or higher then you could use ABAP Unit Testing for this purpose.
The same logic can be applied for BAdI where we can have only a single active implementation.
Finally, I hope to convince that it makes sense to spend some time into a reasonable strategy for implementing user-exits.
Regards
Uwe -
Using a import statement conditionally
How would I import a library statement based on a condition, in this example use the versioning of java JRE that the program needs is to run under the JRE? i.e:
import javax.swing.*; //This is the final package name.
//import com.sun.java.swing.*; //Used by JDK 1.2 Beta 4 and all
//Swing releases before Swing 1.1 Beta 3.
Thanks!
JohnSorry but that is not possible using pure java. Your best bet is to use a search engine such as google:
http://www.google.com/search?q=java+preprocessor -
How to add Import PO condition types in PO and Scheduling Agreements
Dear Friends,
Pl tell me the procedure of adding Import PO condition types in PO and Scheduling agreement as these are not visible in the condition drop down list in ME21N and ME31L transaction. In pricing procedure theses conditions are available.
Conditions are as follows:
JCDB IN Basic customs
JCV1 IN CVD
JECV Ed.Cess on CVD
J1CV H.Ed.Cess on CVD
JSDB Ecess on BCD
JEDB Sec Ecess on BCD
JADC Addl.Customs Duty 4%
Regards,
ASKHi
1) please maintain tax code 0 on invoice tab
2) check condition record for these condition through mek1/mek2
3) check your defaulit condition in taxinn
spro-logistic general-tax on good movement-india -basic setting-determination of excise duty-maintain excise defult
Regards
Kailas -
How to Override Cost Center in IT 1 based on certain conditions
Hi,
I have a pretty good understanding on how Cost Center gets defaulted based on Org Structure. The standard SAP solution for Cost Center will not work for my client and I need to determine the cost center based on certain conditions. I understand that I have to write custom code in some user exit or badi. I tried user exit EXIT_SAPFP50M_001, but it did not work.
Here is my code:
DATA: I0001 LIKE P0001.
CASE INNNN-INFTY.
WHEN '0001'.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING
PRELP = INNNN
IMPORTING
PNNNN = I0001.
This is just an example to test the concept
I0001-kostl = 'COST_CENTER'.
CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
EXPORTING
pnnnn = i0001
IMPORTING
prelp = innnn.
endcase.
When I change IT 1 record and hit enter, I can see that my code is being executed. I can see cost center being updated on the screen, but when I save it, its not able to retain that new cost center value. This might be because cost center is not an open field.
How can I change my code so it retains its value after saving?.
Thanks!Contd to manoj
Cost Center will be a Open feild when the value of the switch PLOGI ORGA should be balnk if it is haveing 1 than it will not default the value kindly check -
EDI Mapping based on a condition
Hi All,
Can we use some condition to differentiate different mappings based on the source feild?
My scenario is the invoice from R/3 is imported into XI and based on a feild Receiver company code&Company name , different mappings needs to be executed and please keep in mind (different mappings include include verisons like EDIFACT, TRADACOM etc)
Please guide me!!
Thanks,
SmithHi Peter,
Thanks for your reply. As per my understanding,
If we have 4 customers whom we need to send invoices based on the company code and description,
The following needs to be created:
one outbound interface in PI(Idoc from R/3 )
Four inbound interfaces from PI to EDI
Four different mappings
In receiver determination based on the condition the message mapping is selected and delivered .
Please confirm
Thanks,
Smith -
Import pricing Conditions JEDB,JSEC not appearing in M/06
Dear Friend,
Import pricing Conditions JEDB,JSEC not appearing in M/06. We need them for Cess & HEcess on Customs duty.
May I know how to create them or do we need to activate them?
Appreciate your early response.
KishoreHi,
You have to cretate following conditions & they are copied from as follows
Ref JCV1 IN CVD
From above condition create following two conditions:
JECV ECess on IN CVD
J1CV H&SECess on CVD
Ref JCDB IN Basic customs
From above condition create following two conditions:
JEDB ustoms Edu Cess
JSDB Custom H&SE ED Cess
JADC Add. Customs Duty
Maintain these conditions in MEK1
Through this way your problem is solved. -
Summary based on above condition
I have master and detailed blocks
In master block base table items -
1)total_import - stored summary of weight from details blocks based
2)total_export - stored summary of weight from details blocks based
In details block i have two base table colummn
1)transaction_type
2)weight
when user input the weights it will check the transaction_type
transaction_type=1 (ie import ) it should added with total_import
transaction_type=2 (ie export ) it should added with total_export
I want to make summary based on above condition
Help me this issue
thanks
rdkHello rdk
Pls in ur details block ....
1.*Create 2 non-db summary* column for both :total_import & :total_export
2.*Then Create When-Validate-Item Trigger* for the weights then write the following code...
IF :transaction_type=1 THEN
:total_import := NVL(:weights ,0) ; -- will assign all the import transactions or inputs...
ELIF transaction_type=2 THEN
:total_export := NVL( :weights ,0); -- will assign all the export transactions or inputs...
END IF;3.Then in PRE-INSERT & PRE-UPDATE Trigger assign the 2 non db items to it's equilavent db ones in the Master-Block
Hope it works just fine :)
Regards,
Abdetu...
Edited by: Abdetu on Feb 27, 2011 6:24 AM -
hi Guru
Can someone explain me what is z condition of cvd condition in imports pricing schema.........what is the effect of this.
regard
nabilHi
SAP suggest JCV1.Its adviceable to avoid the z condition types for taxation ,the reason being it might cause a problem in case your cleint wishes to go for an upgrade or in case the Govt decides to alter the taxation rules
Regards
Sandeep -
Can we take standard report for all sales orders based on the condition typ
Hi all,
Based on the condition type, we need to take a report for sales orders on the particular date.
Thanks and Regards.....VMHello again.
Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
You can list the information of logical database using the transaction SLDB.
In 'Logical Database' inform VAV.
Press F8 to list all the fields.
More information about logical database in:
Link: [SAP Logical Database|http://help.sap.com/saphelp_46C/helpdata/EN/9f/db9b5e35c111d1829f0000e829fbfe/content.htm] -
VT02N - do PGI and Invoice for certain deliveries either based on certain conditions
Hi Friends ,
We are using VT04 for creating shipments . While shipment completion stage in VT02N an activity profile has been maintained which does both the Goods issue and Invoice.
We have a business requirement , PGI and Invoice should be created only for specific set of deliveries based on certain conditions.
Is there any standard way to do this or by using user exits.
Please guide.
Thanks,
Nileshsa.what about adding a check in userexit RV60AFZZ, when the condition is not met during invoice creation, error out and disable the creation of the invoice document?
-
How to create a column based on a condition ?
Hi all,
I am trying to create a stored procedure that will return ID,Name and a column of type bit called called checked based on a condition
please review my code and tell me what is wrong with it
ALTER PROCEDURE [dbo].[SelectStoresNames]
AS
BEGIN
WITH locations_CTE ( ID, Name, Checked)
AS
select loc.ID,loc.Name,
(case when loc. ID in (select distinct a.StoreId
from mPromoteStores a
inner join mPromote b
on a.PromoteId=b.PromoteId
where b.promoId=144120) then 1 else 0 end as [Checked])
FROM [dbo].[mLocations] loc where SchedulePullEnabled=1 order by Name
Select *
from locations_CTE
ENDPlease post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You have no idea!
Temporal data should use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect.
This is minimal polite behavior on SQL forums.
>> I am trying to create a stored procedure that will return store_id, store_name and a column of type bit called “checked” based on a condition <<
I fixed the vague, useless, generic data elements, made wild guesses on the DDL you did not post and got rid of the assembly language bit flags (https://www.simple-talk.com/sql/t-sql-programming/bit-of-a-problem/)
1. IN (SELECT DISTINCT ..) is redundant
2. aliases in alphabetic order are no help for maintaining code
3. What is that “m” prefix? Better not be metadata...
4. We also do not use “-cte” postfixes; tell us what the table is and not how you got it. This is another version of the “vw-” or “Volkswagen” design flaw for views.
5. “promote” is a verb, so how can it have an identifier? Entities have identifiers. A set of “Promotions” could have a “promo_id”, but this might be a typo ..
6. Is “schedule_pull_enabled” another assembly language flag? I have the horrible feeling your unseen schema is not in 1NF ...
Since you did not post DDL here is as far as I can get ..
CREATE PROCEDURE Select_Stores_Names
AS
SELECT PS.store_id, PS.store_name
FROM Promote_Stores AS PS,
Promotes AS P
WHERE PS.promote_id = P.promote_id
AND P.promo_id = 144120 -- promo vs promote?
AND ???;
Want to follow the forum rules and try again?
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
How to secure access of Report based on a condition
Hello Experts,
My project requirement is to secure BW Reports based on a condition. For e.g a user should be authorized to access the Report if:
1. He is the WBS Manager of the selected WBS Element
OR
2. If he is authorized to access the Profit center Hierarchy Node which is the parent of the selected WBS Element.
I think this may be achieved by using a Customer exit in the Analysis authorization but i don't know how.
Do you have any idea, whether it is possible to achieve in BI7 Security Model? Any help will be highly appreciated.
Thanks
RajatHi Tomer,
There will be a selection variable for WBS in all BW reports. If the user selects a particular WBS Element then he can only see the result of the report if he fulfill EITHER of the following conditions:
1. If he is the WBS Manager of the selected WBS Element
OR
2. If he is authorized to access the Profit center Hierarchy Node which is the parent of the selected WBS Element.
WBS managers will keep on changing so it is not possible to maintain the users in one role.
Secondly, according to the second condition, even if the user is not WBS Manager but he is authorized to access Profit center Hierarchy Node, which is the parent of the selected WBS Element, he should view the report.
Please let me know if don't understand the question.
Thanks
Rajat
Maybe you are looking for
-
Number data-type saving problem through PL/SQL
hi, I am having a field in my table called "amount" with type number(17,3). I am facing some problem while saving the data through pl/sql developer. while i am inserting data like 123456789012.567 its working fine but when I am inserting 123456789012
-
Using my iMessage in diferent devices...
HI, when I use my iMessage in my iPad my iPhone receive all messages and make alerts, the same when I use my iPhone, what can I do for my devices work independent?
-
My iPod says that it is connected to my wireless broadband(sky) and there are full bars showing that I'm connected but when I go on an app which uses the internet it fails to work and says "unable to connect to the internet". My broadband is working
-
Automatically delete imported photos from memory card
I cant find this option anywhere, and with other photo management systems it's a fairly standard option, but how do you automatically delete the photos off the memory card once you have successfully imported them??
-
Dear Gentlemans, Do you know a sapnote or any source which recommends to add 2 or more data files (because of data load distribution)? I think adding only one data file when it is needed is not harmful and keeps costs low. for example: we have 33 dat