Anyway to create a conditional output instruction in XSLT?
The doctype-system value in an output instruction in my XSLT has to vary depending on a value of a variable. However, choose and if cannot be used outside a template instruction. Is there any other way to put a conditional on an output instruction? Below is the code I tried, but is not valid. I'm hard coding the value of the variable named "short" to "1". It could also be set to zero.
<xsl:variable name="short" select="1"/>
<xsl:choose>
<xsl:when test="$short">
<xsl:output method="xml" version="1.0" indent="yes"
doctype-system="http://www.editeur.org/onix/2.0/short/onix-international.dtd"
encoding="ISO-8859-1"/>
</xsl:when>
<xsl:otherwise>
<xsl:output method="xml" version="1.0" indent="yes"
doctype-system="http://www.editeur.org/onix/2.0/reference/onix-international.dtd"
encoding="ISO-8859-1"/>
</xsl:otherwise>
</xsl:choose>
Refer:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/attaching-smartform-to-the-standard-transaction-2316027
Similar Messages
-
Error while creating Access Sequence (output)
Hi,
While creating Access sequence (for an output) i.e. Access Sequence - Accesses - Fields (at this point)
I am getting an error (I/O) in the field. The field value is WERKS and not able to go further.
I created a table for output billing and criteria fiels are sales area and plant.
Please guide me in this regard.
Thanks and regards,
RaoHi Praveen,
I created a condition Table xxx and selected fields (Sales Area, Plant). While creation of access sequences for an (output type) at the Fields level i am able to see all the 4 fields but with the field WERKS it is showing an error.
Regards,
Rao -
FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE
Hello vikas,
I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
Is there ay function module to update or create the condtion records,
if u have any example interface program to update conditions records please send me.
regards
ram.This must be your compiler output.
Basically, it is telling you two things that are wrong - in syntax.
1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines. -
Field avaialble in field catalog but not when I try to create the condition
Hi,
I wanted to add a new table to a delivery output. I need the fields delivery type/ship point and destination country. I could see that destination country (LAND1) is not available in the field catalog. I added it from the list of available fields (in KOMKBV2) and can see it in the field catalog but not when I try to create the condition table. What else do I need to get this field ?
Regards,
Hari.Also add your new field to structure KOMBZ
If you want to use a new field in the field catalog, you must add the field to KOMP or KOMK in the following INCLUDES:
- header data in INCLUDE KOMKAZ in KOMK
- item data in INCLUDE KOMPAZ in KOMP
When you use INCLUDES, the field is automatically added to KOMG and the field catalog.
The routines for assigning values to the new fields in order processing are found in member MV45AFZZ. Use the following user exits:
- USEREXIT_PRICING_PREPARE_TKOMK (header fields)
- USEREXIT_PRICING_PREPARE_TKOMP (item fields) -
Mandatory Condition Output Tax MWSI is missing
Hello Experts,
We have a situation where the access sequence MWST is using the customer specific tables A509, A902, A906, A908Hello Experts,
We have a situation where the leading system is ECC and the pricing
procedures, condition types and condition tables are downloaded to the CRM
system. The access sequence MWST used for the condition type MWSI in the
pricing procedure is using the customer specific tables A509, A902, A906, A908.
We got these tables developed in the CRM system as they did not existed
earlier using the below given SAP Notes and blogs:
514952
- Download of customer-specific tables
441083 - Transferring conditions for
material group MATKL to CRM
https://scn.sap.com/community/crm/master-data-and-middleware/blog/2014/02/11/condition-master-data--customizing-download
1070997 - Condition
download:Parameter BADI CND_MAP_CNV_FIELD .
As a result the customer specific condition tables are
created and filled in the CRM system after the downloads.
But, when we are creating an order, we are getting an error Mandatory
Condition Output Tax MWSI is missing and the tax is not determined
in the transaction.
Do we have to do some additional developments to get the
taxes determined in the CRM system.
Thanks,
Rishit -
How to create a Automatic OutPut type on a PO
Hello,
I have created an Output put type, But I have to manually select it in the messages on the PO.
I want it to automatically populate in the field. I have created the Conditions through NACE, but it is still not
populating in the Field. Can someone give me the step by step...
I dont know what I am missing.
any help would be helpful.
thanks
WalterHi,
Goto NACE. Select EF and click on Condition record. It will give you list of output types.
Select your output type and click condition record.
You will see the various combinations. Select on of the combination and enter.
Then maintain parameter values and execute. Here you need to maintain the required values of function (VN), medium, lang & then click on 'Communication' tab. Tip in all values there.
Now you will get output type at the time of PO creation.
Anand. -
WWI issue: function module with symbol doesn't work in conditional output
Hi,
I have created a function module to be used in combination with a symbol that represents the quantity of a composition item in a composition. In some cases a average quantity is not filled and the function module calculates the quantity based on the lower and upper limit of the composition item. This function works perfectly if managed in customising with a symbol or called with a symbol in WWI. When displaying the result of the symbol in a WWI word template it shows the expected value.
However when I use the symbol with a function module (or the customised symbol with function module) in a conditional output expression, the value it represents in the expression is always equal to zero. It seems that a symbol value that is calculated using a functional module is not calculated properly when used in a conditional output expression. Setting a break in the functional module always shows the correct value, but the value as I already told, is not seen by the conditional output expression. Within the expression the value is always equal to zero.
Does anyone know if this is a known issue in WWI? Is there any solution to handle this problem? I hope anyone can help.
Thanks,
PaulDear Paul,
only some add on high level ideas:
if you look at:
Example: Layout of an Abridged Material Safety Data Sheet - Basic Data and Tools (EHS-BD) - SAP Library
you find the standard example of SAP for master and slave group:
2 <11BRG003 (M,SAP_EHS_1012_004;*)> ¶
3 <03EHS_L_TEXT(CED
-SDB-01.002)> ¤
<03EHS_L_TEXT(CED-
SDB-02-07)> ¤
<03EHS_L_TEXT(CED-
SDB-02-05)> ¤
4 <11BRG002 (S:POS;*)> ¿
5 <01GESTRIDENT(I:NAM,
6 IUPAC,;*)> <11ERG002>¤
7
8
9
<11BRG002 (S:POS; *)> ¿
<01G1023001R2(C;*)
><11ERG002>¤
<11BRG002 (S:POS;*)> ¿
<01GESTVPRECL>
<01GESTVCOMPL(N:" ZZ9,9")>
<01GESTVCOMPE>
<11ERG002> ¤
10 <11ERG003>¶
The "issue" is that you need to analyse by "line" of POS group; or precisely: it is easy to print lower, upper and average value if it exists.
In conditional output this example is shown in SAP help:
<15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/TL)[D:Value]>
<15CIF001><03EHS_L_TEXT(CUST-100000000000031)[D:Density is less than 1]>
<15EIF001>
I believe you need a "clever" nesting together with your customer symbol
E.g. you need first "test" the contents of the three values and decide about result
The easiest way could be to use a "table" structure as above.
Just use column header "lower"; "average"; "upper" value. Then you need to ask your self in which situation what need to printed.
If you use the table structure and you print just what is there and leave simply lower / upper limit "field" empty if it does not exists (what is bad with this?) you need only this "conditional" output topic done for average value. You could check for: if value > 0.0001 then print the value (as then there is a value); if not use the report symbol in which you calculate something. In my opinion it is worth to try it.
It is known that you can check "numeric values by using conditional output. I belive tis cintional one des work as well with the "composition" values (lwoer, upper, average),
May be this approach might help.
The "stack" examples which are discussed in SAP help and in the links shown are related to "characteristic" values of classes and not for composition ones.
C.B.
PS: If this really works you can clearly extend your solution. E.g. if lower value is empty may be print "0", If upper valus is empty may be print "100" etc. (or prepare a further costumer symbol calculating something). -
Hi all,
I got schedule an auto PO job to run. I wished to set the condition output so that the PO will be sent to vendor automatically once it is created.
I've done whatever necessary including setting the condition output in MN05. All the PO document type are working fine except the one I newly entered. Anyone encountered this problem before? Am I missing anything? How should I overcome this problem?
Thanks and regards,
JTHi Kishore,
Thanks for your reply.
The document type was already config in the system.
(SPRO-> IMG-> Materials Management-> Purchasing-> Messages-> Output Control-> Message Types-> Define Message Types for Purchase Order-> Fine-Tuned Control: Purchase Order)
Can you lead me on how to check whether the message type included in the variant? As far as I'm concern, I didn't do anything specific to include the message type into the variant. May I know how to include the message type into the variant?
Thanks and regards,
JT -
Trying to create a condition on a BW Universe
Hi experts,
I'm trying to create a condition on a BW-Query Universe just like below:
<EXPRESSION> IIF([0HALFYEAR1].[LEVEL01].[[20HALFYEAR1]].[Value] = 1 , [Measures].[DAAP8LRPLLYPPU417LVN5XS2Z]-[Measures].[DAAP8LRPLLXY17S9W2G13IDT7] , [Measures].[DAAP8LRPLLYPPU417LVN5XS2Z]-[Measures].[DAAP8LRPLLXY17S9W2G13IDT7]) </EXPRESSION>
i've searched a lot till get this code, but it still giving me an error when I try to execute.
Does anyone can please help me?
Thanks,
Gui Boscolo from BRZ.Hi David,
Thanks for your answer, I've made the ajustments you have mention, but I'm still getting erros when i'm running a report with an object that contain this 'code':
<EXPRESSION> IIF(@Select(SemestreL01 Semestre Chave) = "1" , @Select(Variáveis de CálculoMontante Projetado Sem1) - @Select(ÍndicesSaldo Aplicado) , @Select(Variáveis de CálculoMontante Projetado Sem2) - @Select(ÍndicesSaldo Aplicado)) </EXPRESSION>
As you notice, now I'm using the @select function, the quotes are in the value of HALFYEAR01 ((@Select(SemestreL01 Semestre Chave) = "1") and removing the IFF function, the expression works.
The problem, is We need to have this IFF function at BO, because we're trying to complement a expression on BW that cannot be changed!! That's my problem at all!
Thanks again! -
How to create report condition based on "total"
Hello,
I have a Discoverer report that shows revenue by city and sub-totals revenue by state.
I need to modify this report so that only cities in states with revenue (sub-total) more than one million are pulled.
Example:
Pittsburgh - 100,000
Harrisburg - 200,000
Erie - 300,000
------State:PA 600,000
Los Angeles 500,000
San Fransisco 600,000
Oakland 200,000
-----State:CA 1,300,000
In this example, the report should show only the cities in California, as the revenue sum is over 1 million:
Los Angeles 500,000
San Fransisco 600,000
Oakland 200,000
---State:CA 1,300,000
Is this possible?
I'm using Discoverer version 10.1.2.2.
Thank you.
Edited by: [email protected] on Dec 11, 2009 3:03 PMHello
You need to do two things to solve this problem.
1. You need to create an analytic calculation that returns 1 when the sum of the revenue in all of the cities in a state is one million or more
2. You need to create a condition such that you only include states when the above is 1
Let's call the calculation, OneMillionStates and I will assume your fields are called State, City and Revenue
Here's the formula:
CASE WHEN SUM(REVENUE) OVER(PARTITION BY STATE) > 1000000 THEN 1 ELSE 0 END
Now your condition shoudl be: ONEMILLIONSTATE = 1
You don't even need to display the calculation on screen and notice how the city does not even come into the calculation.
Best wishes
Michael
URL: http://ascbi.com
Blog: http://learndiscoverer.blogspot.com -
How to create a condition based on a select that retrieve dynamically a LOV
Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
So, the condition have to be:
inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
Anybody has inplemented something similar ??
Thanks in advance
AlexHi alex,
SELECT incidents.INVENTORY_ITEM_ID,
pcodes.PROBLEM_NAME
FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
WHERE incidents.category_id IN (SELECT category_id
FROM mtl_categories_kfv
WHERE concatenated_segments = 'IPTV')
AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
But again your trying to select in the second query where you want "General_faults_iptv"
SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
SELECT incidents.INVENTORY_ITEM_ID,
pcodes.PROBLEM_NAME
FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
WHERE incidents.category_id IN (SELECT category_id
FROM mtl_categories_kfv
WHERE concatenated_segments = 'IPTV')
AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
Regards,
Kranthi. -
Is there a way to create multiple BQY output to one of the Job File ?
Hello,
I am using EPM11.1.2.3.501 version.
BQY report due to the large amount of data, it is difficult to use a WebClient.
So will share on a quarterly basis.
However,
If modifications are to occur,There are difficulties must modify each file.
For example,
Register 2014 1Q, 2014 2Q, 2014 3Q, 2014 4Q BQY Job file.
When you run the job, the output of the job file is created.
If the job file is changed, you must modify all four files.
This will be only grow ations.
Is there a way to create multiple BQY output to one of the Job File ??
Please help me.
ThanksIt is not possible to have multiple BQY outpu into a job file.
Thanks,
KK -
ERROR Message while creating Rebate condition record T code VBO1
Dear Experts,
I am getting error message while creating rebate condition record T code-VBO1-Error Msg-862 system cannot read the structure for table,because of this i could not create condition record.
Please give the solution to create condition record.
Regards
sivaHi,
You said you are trying to do this stuff in IDES right.
If you are using IDES provided by a company and where many people play on IDES, then you can get many such issues...
This is by our experience. Today you do something in IDES and tommorow that thing or config is screwed up by others.
If you have your own IDES, then check the suggestion given by the forum Guru's.
Regards,
SB -
How to create a condition in sap
Hi all,
How to create a condition in sap
i want to create a condition in sap quotation. how to solve this issue please give me idea step by step.
[http://www.4shared.com/document/MQiBd3bP/screenshot.html]
Thanks & Regards
Ambrish
Edited by: ambrish dwivedi on Feb 28, 2011 12:29 PM
Moderator message: not related to ABAP development, please do some research before asking.
Edited by: Thomas Zloch on Feb 28, 2011 9:21 AMHello Ambrish,
Which condition are you talking about ?
is it the calculation you want to do in ur driver program or kind of routines which are used in Pricing ? -
Creating a CSV output of just the rows of data.
Dear All,
I am trying to create a CSV output from SQL*Plus using the following method... All I need is the pure data, and nothing else.
set verify off
set feedback off
set termout off
set heading off
set echo off
spool <filename>
<my sql statement>
spool <off>
The problem is that the SQL statement is displayed in the output file.
Does anyone know how to switch this off, before I spool the file, or can I spool the file immediately after execution. I.e. Build this into the SQL statement (somehow)???
Thanks
David.If you want to handle 100% the output file you can use the package UTL_FILE but the file is going to be store in the server.
UTL_FILE
With the UTL_FILE package, your PL/SQL programs can read and write operating system text files. UTL_FILE provides a restricted version of operating system stream file I/O.
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_file.htm#ARPLS069
Joel Pérez
http://otn.oracle.com/experts
Maybe you are looking for
-
File History not Working in Windows 8.1
Ever since I upgraded from 8.0 to 8.1, File History has not worked. I've progressed from Event 202 to Event 204, but no resolution. Using an external Seagate backup drive - have scanned and reformatted that drive. Still no back ups. Seems File Histor
-
How to print headings in every page of smartforms.
Friends, we have a requirement to print hedaings in multiple pages. like if we have 100 line items those will accomidate more tahn one page , i need to print headings in each page. pls help me. Regards Jagadeeshwar.B
-
New Nikon D3100... Can't view NEF files in Bridge?!
Hi guys, I have just purchased a Nikon D3100, taken some snaps and tried to view them using Adobe Bridge. Unfortunately I only get the NEF icon and when I try to open in Photoshop the file is not recognised. I have attempted to follow numerous discus
-
How to transfer some tracks to OSX?
Yesterday I found music tracks on an iPod nano that belonged to my late sister. Tracks of music she composed and played by herself. I'd like to back up those as this is the only existing copy. What is the way to copy those tracks without any risk to
-
Laptop won't start after cover removal
Hi i was on my laptop when i heard the fan starting to get really loud. I thought the fan needed tp be cleaned so i shut it down unpluged the power cord and disconnected the battery. After that i started removing all of the screws for the covers and