Output as required
Hi,
I have following tables in oracle 10g database,
tab1
U_ID CARD_NO NAME COMPANY DEPT SUB_DEPT
100 53071 AAA ORA IT SMT
101 53072 BBB ORA IT CS
102 53073 CCC ORA IT VS
103 53074 DDD ORA IT SMT
104 53075 EEE ORA IT VS
105 53076 FFF ORA IT CS
106 53077 GGG ORA IT CS
107 53078 HHH ORA IT SMT
108 53079 JJJ ORA IT NET
tab2
CH_NAME EVENT V_DATE FLOOR CARD_NO EMP_CODE
AAA Entry granted 01-JUN-12 01.26.35.000000 AM 5TH 100 53071
AAA Exit granted 01-JUN-12 01.26.45.000000 AM 5TH 100 53071
HHH Entry granted 01-JUN-12 05.58.43.000000 AM 5TH 107 53078
HHH Exit granted 01-JUN-12 05.58.56.000000 AM 5TH 107 53078
CCC Entry granted 01-JUN-12 08.55.07.000000 AM 5TH 102 53073
CCC Exit granted 01-JUN-12 08.55.59.000000 AM 5TH 102 53073
EEE Entry granted 01-JUN-12 09.07.09.000000 AM 5TH 104 53075
EEE Exit granted 01-JUN-12 09.07.26.000000 AM 5TH 104 53075
AAA Entry granted 01-JUN-12 11.34.47.000000 AM 5TH 100 53071
AAA Exit granted 01-JUN-12 11.35.03.000000 AM 5TH 100 53071
DDD Entry granted 01-JUN-12 11.35.35.000000 AM 5TH 103 53074
DDD Exit granted 01-JUN-12 11.36.12.000000 AM 5TH 103 53074
EEE Entry granted 01-JUN-12 11.49.43.000000 AM 5TH 104 53075
EEE Exit granted 01-JUN-12 11.50.10.000000 AM 5TH 104 53075
DDD Entry granted 01-JUN-12 12.45.12.000000 PM 5TH 103 53074
DDD Exit granted 01-JUN-12 12.50.45.000000 PM 5TH 103 53074
ABCD Entry granted 03-JUN-12 03.38.15.000000 PM 5TH 1014 55001
ABCD Exit granted 03-JUN-12 10.40.22.000000 PM 5TH 1014 55001
EFGH Entry granted 03-JUN-12 01.16.59.000000 PM 5TH 1421 55223
ABC Entry granted 04-JUN-12 09.15.56.000000 PM 5TH 1142 55421
ABC Exit granted 05-JUN-12 07.37.45.000000 AM 5TH 1142 55412
DEF Entry granted 06-JUN-12 08.07.41.000000 AM 5TH 6012 23564
DEF Exit granted 06-JUN-12 12.13.08.000000 PM 5TH 6012 23564
desired ouput is as follows:
MONTH NAME TOTAL_IN_TIME DEPT SUB_DEPT
JUN-2012 AAA 01:26 IT SMT
JUN-2012 CCC 0:52 IT VS
JUN-2012 DDD 0:27 IT SMT
JUN-2012 ABCD 07:02
JUN-2012 ABC 10:22
JUN-2012 DEF 04:06
I need output of all users wrt dept & subdept in HH & mins
Thanks.
i want the entries,where entry is not associated with exit or
exit is not associated with entry,Can you explain in detail about your expected output.
Following is your input
CH_NAME E_DESC V_DATE DOOR SITE CARD_NO EMP_CODE
MS (IT) Entry granted 08-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 08-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Exit granted 08-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Exit granted 08-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 08-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Exit granted 08-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 09-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Exit granted 09-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 09-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Exit granted 09-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 01-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 01-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 25-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Exit granted 25-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 25-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
MS (IT) Entry granted 25-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 13835 827651
A K Entry granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
S D Entry granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Entry granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Entry granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Entry granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 10-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
A K Entry granted 04-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 04-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 04-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 04-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 04-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 04-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 06-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 16-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Entry granted 17-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
A K Exit granted 17-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1132 CO836494
SINGH AJAY Entry granted 19-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Exit granted 19-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
S D Entry granted 21-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 21-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Entry granted 12-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 12-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
SINGH AJAY Entry granted 23-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Exit granted 23-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
S D Entry granted 25-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
S D Exit granted 25-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 1009 CO854556
SINGH AJAY Entry granted 27-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Exit granted 27-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Entry granted 27-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Exit granted 27-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Entry granted 29-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997
SINGH AJAY Exit granted 29-JUN-12 SERVER MAIN ENTRY (PRODUCTION) Root Site 612 CO878997 What is the output expected. Use {noformat}{noformat} tags to preserve your code and data format.
Similar Messages
-
Output ignored (requirement 107 not fulfilled)
Dear All,
We set up a new confirmation controll for purchase orders. In test (output of message AUFB) we receive the message is not processed and we have for this message type the following message (Analyse output):
AUFB 502 Output ignored (requirement 107 not fulfilled)
What is this routine 107 and what have we to do to resolve this problem?
Thank you for your help.
Best regards,
ThomasHi,
Goto SPRO > MM > Purchasing > Messages > Output Control > Message Determination Schemas > Define Message Schema for Purchase Order > Maintain Message Determination Schema: Purchase Order > Select Schema "RMBEF1" and double click on "Control data" in dialog structure, chcek for message tyep AUFB, requirement 107 i.e. Ord.Confirm.Dunning is assigned. -
Help viewing an output type requirement
We have a few custom output type requirements and I need to know how to view them. When I go to the "Control Data" overview (through SPRO) and click the dropdown for the output requirement the custom requirements do not show up. We are having a problem with an output type calling the wrong print program and we believe that it has to do with the requirement associated with that output type.
Regards,
DavisHi Davis,
Please try transaction NACE and VOFM to see the output type configuration and requirement.
Regards,
Ferry Lianto -
Output determination - Requirement
Hello Gurus
I have an output type which is always entered as manual only in the sale order. If the order is on credit hold then system should issue an error message when the user selects this message type. I have created a requirement for this and attached in the determination procedure. When the output type is entered manually system is issuing a message stating that for manually entered output types requirements won't be executed.So the requirement is not getting executed. Any other way to solve this?Hi There,
The solution for your problem is simple just setup the output type using automatic output determination instead of manual entry
Anyway, you can revamp the requirement, create another user exit to check the credit status against the output type on USEREXIT_SAVE_DOCUMENT_PREPARE in program MV45AFZZ.
Regards,
Gumanti -
Output type Requirement triggering
Hi,
In my project I have a requirement to stop triggering of an output type if all the items in the sales order have reason for rejection set.
I have done the condition check in a output requirement routine and if the condition fails then I set SY-SUBRC = 4.
Problem 1:
But when I am creating the sales order, the komkbv1 structure does not have the sales order no. (it has other fields) and kompbv1structure is not filled. Then how do I check if all the items have Reason for rejection set or not.
Problem 2:
For an existing sales order, I trigger the output type in Header-->Output... , this code is getting executed and sy-subrc is set to 4. But still the output is triggered.
Please let me know how do I proceed.
Code:
w_vbeln = komkbv1-vbeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = w_vbeln
IMPORTING
OUTPUT = w_vbeln .
Atleast one item of the Sales Order does not have
reason for rejection set.
select single * from VBAP
where vbeln = w_vbeln and
ABGRU eq space.
if sy-subrc ne 0.
sy-subrc = 4.
EXIT.
endif.
Thanks in advance,
Vishnu PriyaHi,
For the first problem,
Check the standard structures available, but not sure.
For the Second one,
You routine include should be included in the standard include RV61BNNN
for it to get triggered.
Your routine will not get executed if your routine is not included in this standard include.
Hope this helps. -
Hi,
We are trying to tag a requirement to all the PO output types to stop them from triggering when the PO is put on hold. I see the transaction NACE and find requirements already tagged to few of the output types. If I have to add our requirement for these output types, how this can be done. Moreover I would like to know the other fields (step, counter etc.) used in the transaction.
Thanks for your help,
AparnaHi Vivek
In the IMG, you should go to Logisitics Execution - Shipping - Basic Shipping Functions - Output Control - Output Determination - Maintain Output Determination for Outbound Deliveries - Maintain Output Determination Procedure. Highlight the output type you are using and click on "Control Data" - there is a requirement field there where you should assign your requirement 1 to the output type.
If it helps, please assign points.
Jon -
Check medium in output control requirement
Hello,
I have to check the medium (fax, email) in a requirement RV61BXXX (output control).
So when the medium is fax or email and some other checks are fullfilled, the output doesn't have to be processed.
When I debug this requirement I cann't find any field with the correct medium value. Isn't there any possibility to get the medium value with function modules or anything else?
As I can see, SAP gets the medium after the requirements have been processed.
Thanks,
Christine De JaegerHI,
If you chose other options, the driver program that you configure the SPRO or NACE, will get triggered.
In the driver program, logic must be written in order information is processed (It can be sent as Telex, Mail, Fax based on the SCOT settings and SAP Connect settings).
If the option you chose is Special function, the driver program may or may not send any mail/fax but you can do any processing . For example, if you want to update a Z Table on issuing the output, you can have that logicn in the Z program and have that attached to the output type in NACE transaction.
REgards,
Ravi -
Help required in Getting XML output as Required
Hi All,
I have below xml
INSERT INTO XMLTABLE VALUES (4,'<?xml version="1.0"?>
<Node_1 empID="202" empName="Pro1" oper="Update">
<Node_2 empID="20" empName="Pro2" oper="Update">
<Bode_3 empID="2" empName="Pro3" oper="Update">
<Bode_4 empID="22" empName="Pro4" oper="Update">
<Bode_5 empID="12" empName="Pro5" oper="Delete"/>
<Bode_6 empID="223" empName="Pro6" oper="Insert"/>
<Bode_7 empID="201" empName="Pro7" oper="All"/>
<Node_3 empID="21" empName="Pro71" oper="ll">
</Bode_4>
</Bode_3>
</Node_2>
</Node_1>');
I have a sequence seq_i
seq_i start with 1 increment by 1
am able to display output as below,
Node|EMPID|OPER|EMPNAME|MGRID
Node_1|202|Update|Pro1|Null
Node_2|20|Update|Pro2|Node_1
Bode_3|2|Update|Pro3|Node_2
Bode_4|22|Update|Pro4|Bode_3
Bode_5|12|Delete|Pro5|Bode_4
Bode_6|223|Insert|Pro6|Bode_4
Bode_7|201|All|Pro7|Bode_4
Node_3|21|ll|Pro71|Bode_4
Now I want below one as output
All nodes starting with Bode_, I need to replace that with sequence, seq_i
so for the seq_i (starting with i and incrementing by 1)
Please note when ever node changes to sequence, corresponding mgrid also changes,
Node|EMPID|OPER|EMPNAME|MGRID
Node_1|202|Update|Pro1|Null
Node_2|20|Update|Pro2|Node_1
1|2|Update|Pro3|Node_2
2|22|Update|Pro4|1
3|12|Delete|Pro5|2
4|223|Insert|Pro6|2
5|201|All|Pro7|2
Node_3|21|ll|Pro71|2
Please let me know your thoughts on this to acheive the same,
Thanks,Well you've already said you can get your XML into the initial flattened hierarchy structure, so you just need to manipulate that to assign a sequence (row number) as appropriate.
Something like...
SQL> ed
Wrote file afiedt.buf
1 with t as (
2 select 'Node_1' as node, 202 as empid, 'Update' as oper, 'Pro1' as empname, Null as mgrid from dual union all
3 select 'Node_2', 20, 'Update', 'Pro2', 'Node_1' from dual union all
4 select 'Bode_3', 2, 'Update', 'Pro3', 'Node_2' from dual union all
5 select 'Bode_4', 22, 'Update', 'Pro4', 'Bode_3' from dual union all
6 select 'Bode_5', 12, 'Delete', 'Pro5', 'Bode_4' from dual union all
7 select 'Bode_6', 223, 'Insert', 'Pro6', 'Bode_4' from dual union all
8 select 'Bode_7', 201, 'All', 'Pro7', 'Bode_4' from dual union all
9 select 'Node_3', 21, 'All', 'Pro71', 'Bode_4' from dual
10 )
11 -- end of test data obtained from flattening XML - just use query below against own data
12 select rpad(' ',(level-1)*2,' ')||coalesce(bode_no, node) as tree
13 ,coalesce(bode_no, node) as node
14 ,empid
15 ,oper
16 ,empname
17 ,case when bode_no is not null then prior coalesce(bode_no, node) else mgrid end as mgrid
18 from (
19 select node
20 ,case when node like 'Bode%' then
21 to_char(row_number() over (partition by case when node like 'Bode%' then 1 else 0 end order by node))
22 else null
23 end as bode_no
24 ,empid
25 ,oper
26 ,empname
27 ,mgrid
28 from t
29 )
30 connect by mgrid = prior node
31* start with mgrid is null
SQL> /
TREE NODE EMPID OPER EMPNA MGRID
Node_1 Node_1 202 Update Pro1
Node_2 Node_2 20 Update Pro2 Node_1
1 1 2 Update Pro3 Node_2
2 2 22 Update Pro4 1
Node_3 Node_3 21 All Pro71 Bode_4
3 3 12 Delete Pro5 2
4 4 223 Insert Pro6 2
5 5 201 All Pro7 2
8 rows selected. -
Triggering delivery output once requirement is fullfilled
Hello,
I have created a custom output type for delivery and mentioned the custom routine in the procedure (picking complete). The issue I have now is once Picking is complete the output is not getting triggered automatically untill I go into VL02N and change something on the delivery. I tried triggering it using VL71 but its not working. How do I make it work. I want as soon as the TO is confirmed for the delivery this output to be triggered.
Thank you
NagHi Nag,
Review VL10cuc and check the flag "no output determination" for profile 2000.
The flag must be clear for output determination.
Note 358634 describes in detail......
regards, david -
Problem is displaying the output in required format
Hi,
I have a structure defined in DDIC in which i have a field REMAIN -this fied is to show Remaining numbers in a range, I have given the type of the field as NUMC and I get the value caluclated in a field W_REM which is of type C,now I pass this W_REM to the DDIC struture and use ALV to display on screen, it gets displayed as 004879 but i want it to be displayed as 4,879 ..tried to give DEC in DDIC but it didnot work..what to give....Please help..its urgent!
Points will be awarded.
Thanks,
DeeptiHi,
i think this logic may help u:-
data V_val type p. or like curr
V_val = W_REM.
write V_val to <DDICstructurename> - REMAIN.
write : <DDICstructurename> - REMAIN.
or
at fieldcatalog
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-tabname = 'Net Price'.
fieldcatalog-datatype = 'CURR'
append fieldcatalog to fieldcatalog.
regards,
Mekala VIjay -
Very Important (Query to display the output in required format)
CREATE TABLE TEMP(X VARCHAR2(10),Y VARCHAR2(100));
INSERT INTO TEMP('RIDER1','2001-12;2002-32;2003-42');
INSERT INTO TEMP('RIDER2','2001-52;2003-72');
SELECT * FROM TEMP
Initial Out Put in 2 columns X/Y_
X Y
RIDER1 2001-12;2002-32;2003-42
RIDER2 2001-52;2003-72
Write a Query to display the above data in the format below in 3 columns A/B/C*
A B C
Rider1 2001 12
Rider1 2002 32
Rider1 2003 42
Rider2 2001 52
Rider2 2003 72So your old version doesn't support Regular expression. It will be very easy and efficient if you could use regular expression.
SQL> SELECT x,TRIM(REGEXP_SUBSTR(col2,'[^-]+', 1, 1)) col2,
2 TRIM(REGEXP_SUBSTR(col2,'[^-]+', 1, 2)) col3
3 FROM (
4 SELECT DISTINCT x,regexp_substr (y, '[^;]+', 1, level) col2
5 FROM temp
6 CONNECT BY LEVEL <= LENGTH (REGEXP_REPLACE (y, '[^;]+')) + 1
7 ORDER BY 1,2
8 );
X COL2
COL3
RIDER1 2001
12
RIDER1 2002
32
RIDER1 2003
42
X COL2
COL3
RIDER2 2001
52
RIDER2 2003
72But for your version you can use something like
SQL> /* By curtesy Frank Kulash */
SQL> SELECT x,SUBSTR(the_value,1,INSTR(the_value,'-',1)-1) col2,
2 SUBSTR(the_value,INSTR(the_value,'-',1)+1)col3
3 FROM (
4 SELECT DISTINCT x,SUBSTR(y,
5 DECODE(level,
6 1,
7 1,
8 INSTR(y, ';', 1, level - 1) + 1),
9 DECODE(INSTR(y, ';', 1, level),
10 0,
11 length(y),
12 instr(y, ';', 1, level) -
13 DECODE(level,
14 1,
15 0,
16 INSTR(y, ';', 1, level - 1)) - 1)) the_value
17 FROM temp
18 CONNECT BY level <=
19 LENGTH(y) - LENGTH(REPLACE(y, ';')) + 1
20 )
21 ORDER BY 1,2,3
22 ;
X COL2
COL3
RIDER1 2001
12
RIDER1 2002
32
RIDER1 2003
42
X COL2
COL3
RIDER2 2001
52
RIDER2 2003
72
SQL> -
Output Requirement not Fulfilled (But output generated anyway?)
Hello Gurus,
I am facing a very strange situation.
I have added a custom field to the field catalog for output determination.
The setup looks all good, the communication structure is populating the field just fine and the output gets triggered as expected.
However, when I go to the determination analysis (VF02 > Header > Output > Goto > Det. Analysis), it shows the infamous message: Output ignored (requirement 901 not fulfilled). I know you will all say that the requirements in 901 are custom and I should check with my developer, but let's skip that part:
From VOFM, my requirement 901 is a 'copy' of 062 and is as simple as below. In debug I could confirm that all checks pass.
FORM KOBED_901.
SY-SUBRC = 4.
1
check SY-TCODE = 'VF01'.
CHECK : KOMKBV3-UVALL CA ' C'.
CHECK : KOMKBV3-UVPRS CA ' C'.
CHECK : KOMKBV3-UVALS CA ' C'.
CHECK : KOMKBV3-RELIK EQ SPACE.
CHECK : KOMKBV3-RFBSK EQ 'C'.
SY-SUBRC = 0.
ENDFORM.
FORM KOBEV_901.
SY-SUBRC = 4.
1
check SY-TCODE = 'VF01'.
CHECK : KOMKBV3-UVALL CA ' C'.
CHECK : KOMKBV3-UVPRS CA ' C'.
CHECK : KOMKBV3-UVALS CA ' C'.
CHECK : KOMKBV3-RELIK EQ SPACE.
CHECK : KOMKBV3-RFBSK EQ 'C'.
SY-SUBRC = 0.
ENDFORM.
So the issue is more around: Why is the determination analysis showing me that the output was ignored due to requirement not fulfilled if the actual output was successfully determined and processed in the document?Hi Jelena,
Thank you for your reply.
Here you can see the details where the manual change flag can be seen (unticked).
Regarding the Requirement checks, when I say all checks passed, I mean that every single value in the code is equal to the value it is checking against, for example:
CHECK : KOMKBV3-UVALL CA ' C'. (value is initial = pass)
CHECK : KOMKBV3-UVPRS CA ' C'. (value is initial = pass)
CHECK : KOMKBV3-UVALS CA ' C'. (value is initial = pass)
CHECK : KOMKBV3-RELIK EQ SPACE. (value is initial = pass)
CHECK : KOMKBV3-RFBSK EQ 'C'. (value is 'C' = pass)
Therefore, SY-SUBRC = 0 and the output is determined.
The outcome is exactly the expected, the output is determined.
The issue is in the analysis screen that shows the requirement as not fulfilled even though the output was successfully determined and I cannot see the access sequence used to determine the output. -
Not getting required output from XML transform in servlet
I have an XML document and an XSL stylesheet that will produce the output I require when I use the Xalan in-line parser. However, I cannot manage to do the same in a servlet. I have trawled through loads of examples but can't find anything that works. It appears that the servlet is choking when I try to use:
Document document = builder.parse(datafile);
and the output in the browser is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
Which bears no resemblance to what I am expecting.
I can provide contents of servlet source and xml files if someone can help, please.Thanks for your comments.
I have tested the XML and XSL and they are OK but the servlet won't sned out the HTML as expected.
The servlet code is as follows (I haven't included the whole servlet - just the core of the body):
public class FormTwo extends HttpServlet {
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException, FileNotFoundException {
res.setContentType("text/html");
//PrintWriter out = res.getWriter();
PrintStream out = new PrintStream (res.getOutputStream());
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
TransformerFactory tFactory = TransformerFactory.newInstance();
try {
File stylesheet = new File("children.xsl");
File datafile = new File("children.xml");
int NumChildren = Integer.parseInt(req.getParameter("Numchildren"));
String fullname = req.getParameter("Title") + " " + req.getParameter("Lastname");
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(datafile);
// Use a Transformer for output
StreamSource stylesource = new StreamSource(stylesheet);
Transformer transformer = tFactory.newTransformer(stylesource);
DOMSource source = new DOMSource(document);
StreamResult result = new StreamResult(out);
transformer.transform(source, result);
}The XML is:
<?xml version="1.0"?>
<pagedef pagehead="Form two test page">
<bodydef bodytext=", could you please enter details of each child and indicate if they are currently at school">
<rows NumReq="3">
<cols type="text" size="25" name="firstname">First Name</cols>
<cols type="text" size="25" name="lastname">Last Name</cols>
<cols type="checkbox" name="atschool">At school?</cols>
</rows>
</bodydef>
</pagedef>The XSLT is:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.apache.org/xslt">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<html>
<head><title><xsl:value-of select="/pagedef/@pagehead"/></title></head>
<body bgcolor="#ffffcc" text="#0000ff">
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="bodydef">
<xsl:value-of select="@bodytext"/>
<form>
<table>
<xsl:apply-templates/>
</table>
</form>
</xsl:template>
<xsl:template match="rows">
<thead>
<xsl:for-each select="cols">
<td><xsl:value-of select="."/></td>
</xsl:for-each>
</thead>
<xsl:call-template name="output-row">
<xsl:with-param name="thisrow" select="0"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="output-row">
<xsl:param name="thisrow"/>
<xsl:choose>
<xsl:when test="number($thisrow) != number(/pagedef/bodydef/rows/@NumReq)">
<tr>
<xsl:for-each select="cols">
<td>
<input>
<xsl:copy-of select="@*"/>
</input>
</td>
</xsl:for-each>
</tr>
<xsl:call-template name="output-row">
<xsl:with-param name="thisrow" select="number($thisrow) + 1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>As a newbie to Java I am more confident about the XML and XSL than the servlet code. Any advice would be appreciated.
Thanks... -
Crystal Reports for SAP Print Output requirements like Sales Order O/P
Hello,
Has anybody used Crystal Reports for Sales Order or Invoice Print Output type requirements?
Typically these outputs get triggered via Output Management Configuration on Save of a Sales Order or Configuration.
Traditionally in the Output Management configuration of say Sales Order, we can specify the "Output Program" and the "Sapscript" or "Smart Form" or "Adobe Form".
How do we tell SAP t trigger a Crystal Report output if it is a feasible way to go?
Also can anybody tell what is SAP's strategic direction for Print Output requirements?
regards,
AtulHi Atul,
Do you have answers for your questions? If so, could you please share?
Thank you in advance,
Joã -
Outbound Order Confirmation - Output control for incomplete sales orders
Hi EDI Folks,
I have a simple question. I want to send EDI 855 for only the completed sales orders.
Whenever inbound sales order is processed and if the order is incomplete. I don't want to send the order confirmation for the order at that point of time. When that order is made complete, then only i want to send the order confirmation (EDI 855).
How can we do it??
What is the output determination requirement for this??
Right now i am using requirement '02' which proposes EDI output for both complete and incomplete sales orders.
Please respond to the above quesition.
Thanks and waiting for your reply,
Creasy MattMxG,
For both plant and pricing condition functional config was already done. If any of these two fields are missing, the status of sales order will be incomplete.For incomplete orders also, the EDI output is being proposed.
Now just tell me, in which SAP program, do i have to put the break point?
Where exactly ??
Thanks and kind regards,
Creasy Matt
Maybe you are looking for
-
Hello, I have a Cisco IPS4255 that will not boot an image. I'm seemingly successfully completing a TFTPDNLD each time, but it keeps rebooting with the cannot find image in \ error. Here is a detailed snap shot: /* Style Definitions */ table.MsoNorma
-
Printing the contents of word document in the smartform
Hi all, Can anyone help me out in solving my problem. Problem is that i need to read a MS word document from a specified location given on the selection and print it in the smart form with the exact formatting options as in the MS word. If possibl
-
Null pointer exception in DCIteratorBinding
When i am running me project the following error is shown in the log file: Caused by: java.lang.NullPointerException at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2160) at oracle.adf.model.binding
-
Android 2.1 Upgrade is a Downgrade
The Andorid 2.1 upgrade to my Verizon HTC Droid phone has rendered it barely usable. The worst problem is that after a full charge, my phone now will hold a charge only about 4 hours. If I use the phone at all, it's 2 hours. Before the upgrade, I
-
When I import photos, mostly the folowing error message appears. The volume for xxx.jpg was not found. Put in CD/DVD or connect to server-volume ans wait until it appears on desktop. (sorry for the translation ;-)) I have to klick the cancel button a