How to use break&skip to skip in certain condition?
Hi there,
I have a question as following.
drop table tbl;
create table tbl (
field1 varchar2(10),
field2 varchar2(10),
field3 number,
field4 varchar2(10),
field5 varchar2(10)
insert into tbl values('1','aaa','111','AAA','!!!!');
insert into tbl values('2','bbb','222','BBB','@@@@');
insert into tbl values('3','ccc','333','CCC','####');
insert into tbl values('4','ddd','444','DDD','$$$$');
insert into tbl values('5','eee','555','EEE','%%%%');
commit;
--@&title
spool 1.lst
break on field1 skip 2 on report
compute sum of field3 on report
compute count of field2 field3 on field1 report
--compute count of field3 on field1 report
select * from tbl;
spool off
ed 1.lst
RESULT:
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5
1 aaa 111 AAA !!!!
count 1 1
2 bbb 222 BBB @@@@
count 1 1
3 ccc 333 CCC ####
count 1 1
4 ddd 444 DDD $$$$
count 1 1
5 eee 555 EEE %%%%
count 1 1
count 5 5
My question is if we want to add 3 empty lines between record 3 and record 4, how can I do it?
Thanks in advance.
Phil
kumar0828 wrote:
<font color="#FF0000"> ... </font>
REPLACE (agx_drug.medicinalproduct, '''', '''') AS "MEDICINALPRODUCT",
<font color="#FF0000"> ... </font> <pre>
REPLACE (agx_drug.medicinalproduct, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
With the above statement you are replacing single quote with another single quote
(which is nonsense).
<font color="#FF0000"> ... </font>
AND agx_drug.medicinalproduct = REPLACE ('*-qVAGX_DRUG.MEDICINALPRODUCT*', '''', '''')
In the above query last line '-qVAGX_DRUG.MEDICINALPRODUCT' is a dynamic variable which may or may not contain the single quotes.This is not a dynamic variable but a string value:
<pre>
AND agx_drug.medicinalproduct =
REPLACE (<font style="background-color: #FF3D55">'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
*-qVAGX_DRUG.MEDICINALPRODUCT* <pre>
AND agx_drug.medicinalproduct =
REPLACE (<font style="background-color: #FF3D55">q'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
-qVAGX_DRUG.MEDICINALPRODUCT q'[a]' => a
q'[a']' => a'
q'[a'']' => a''
q'*a*' => a
q'*a'*' => a'
q'*a''*' => a''
A variable also cannot contain a dot (.):
<pre>VAGX_DRUG<font style="background-color: #FF3D55">.</font>MEDICINALPRODUCT</pre>
Ex: ABC's or just ABC.
The query has to support both single quote and without quote in it.
I wanted everything to be done in the sinlq query on not a PL/SQL Block.
Please help me ASAPTry this:
<pre>
AND agx_drug.medicinalproduct = MY_VARIABLE
</pre>
Similar Messages
-
How to use break point in workflow to check
hi there,
how to use break point to check the values in debug mode.
if i keep one break point in method..can the conttrol will be stop there?
when work flow triggered??hi nag,
thanks for ur fast responce.
this FM will check very begining of the work flow..then it goes to aprover..then status will be updated to active.(for first time mm01 will not allow them to create mat in active status..as i configured user exit..after approving only these mat get active status). but in the case of extending materials they can create the views in active mode itself. after they r saving the material getting inactiv status in db tables...
if u want i can provide the code where mat status is updating to active for new materials.
My Q: i want to exit wf from where fm finds that the material is extending
code is:(checking for both sales and pur views--i guess!)
SELECT * INTO TABLE t_marc
FROM marc
WHERE matnr EQ objkey.
DESCRIBE TABLE t_marc LINES records.
IF records GT 1. "CHECK FOR MATERIAL EXTENSION
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 010 RAISING
check_failed.
ELSE.
LOOP AT t_marc.
IF t_marc-mmsta EQ 'G5'. "CHECK PURCHASING BLOCK
SELECT * FROM moff INTO TABLE t_moff
WHERE matnr EQ objkey AND
( werks EQ plant OR
bwkey EQ plant ).
DESCRIBE TABLE t_moff LINES records.
IF records GT 0.
SELECT SINGLE * FROM zam_mat_wf_conf
WHERE mtart EQ t_mara-mtart.
IF sy-subrc EQ 0.
LOOP AT t_moff.
FIND t_moff-statm IN zam_mat_wf_conf-pstat.
IF sy-subrc EQ 0.
DELETE t_moff.
ENDIF.
ENDLOOP.
DESCRIBE TABLE t_moff LINES records.
IF records GT 0.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 009 RAISING
check_failed.
ENDIF.
ENDIF.
ENDIF.
ELSE.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 013 RAISING
check_failed.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ELSEIF mstatus EQ 'V'. "FOR SALES VIEW
SELECT SINGLE * FROM tvko
WHERE vkorg EQ salesorg AND bukrs IN r_bukrs .
IF sy-subrc NE 0. "CHECK SALES ORG CONFIGURED FOR WORKFLOW
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 005 RAISING
check_failed.
ELSE.
SELECT * INTO TABLE t_mvke
FROM mvke
WHERE matnr EQ objkey.
DESCRIBE TABLE t_mvke LINES records.
IF records GT 1.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 012 RAISING
check_failed.
ELSE.
LOOP AT t_mvke.
IF t_mvke-vmsta EQ '10'.
ELSE.
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 014 RAISING
check_failed.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ELSE. "NO SALES or PURCHASE RELATED VIEW'S CREATED
MESSAGE ID 'ZAM_MWF' TYPE 'E' NUMBER 003 RAISING
check_failed.
ENDIF. -
Am I using the break statment and the corrosponding
peranthesis in a way that is causing a logic error.
* Return true if this set and the parameter contain
* exactly the same elements
public boolean equals(SetADT setADT)
boolean result=true;
if(this.size()!=setADT.size())
result= false;
Iterator scan=setADT.iterator();
while(scan.hasNext())
if(!(this.contains(scan.next())))
result= false;
break;
return result;
}If you write the method and indent the code you'll see that the break is outside of the if statement. The code will always hit the break statement on the first pass through the while loop and exit the loop.
Instead of a break you may want to put a return statement just after setting result to false.
public boolean equals(SetADT setADT)
boolean result=true;
if(this.size()!=setADT.size()) { result= false; }
Iterator scan=setADT.iterator();
while(scan.hasNext()) {
if(!(this.contains(scan.next()))) {
result= false; }
break; //Will always hit this line and exit while loop
}//End While
return result;
} -
How to use Applescript to print out a certain calendar at 7am every morning?
Hey guys,
I am trying to use AppleScript to print out one of my calendars each day at 7am every morning.
I have come up with this so far:
tell application "Calendar"
view calendar "My Appointments" at (my (current date))
switch view to day view
activate
tell application "System Events"
keystroke "p" using command down
delay 1 -- (seconds)
tell process "Calendar"
tell window "Print"
if value of checkbox "Calendar Keys" is not 0 then
click checkbox "Calendar Keys"
end if
end tell
end tell
end tell
end tell
The problem with this is that it will print out whatever calendars are currently viewable. I can't figure out how to tell it to deselect other calendars and just select the one I want. I also want to tell it to print this out at 7am every morning.
Any help would be very appreciated!If you wanted to do the printout over multiple days, you would be best to loop through each day's events in the way the current script does, but to put a new loop around it that gets each new day's data:
--opens a temporary file
set fileRef to open for access ((path to desktop) as string) & "meetings.txt" with write permission
--effectively empties the file
set eof fileRef to 0
tell application "Calendar"
set dayCount to 9 --this will be the number of days to look forward (not including today)
repeat with currentDay from 0 to dayCount
set startList to {}
--get's today's date
--set startRange to ((current date) + 12 * days) -- I used this for testing, to point to a day that had many appointments. I've left it so you can use it, too.
set startRange to ((current date) + (currentDay * days))
--set the start of the range to previous midnight
set hours of startRange to 0
set minutes of startRange to 0
set seconds of startRange to 0
--set end of the range to next midnight
set endRange to (startRange + 1 * days)
--get today's events
set todaysEvents to get (events of calendar "My Appointments" whose (start date is greater than startRange) and (end date is less than endRange))
--make a new list with start time of the event for sort purposes
repeat with theEvent in todaysEvents
set end of startList to {startdate:start date of theEvent, eventID:theEvent}
end repeat
--sort using a bubble sort (suitable for short lists)
repeat with i from 1 to (count of startList) - 1
repeat with j from i + 1 to count of startList
if startdate of item j of startList < startdate of item i of startList then
set temp to item i of startList
set item i of startList to item j of startList
set item j of startList to temp
end if
end repeat
end repeat
--empty the original list
set todaysEvents to {}
--repopulate the list in correct chronological order
repeat with theEvent in startList
set end of todaysEvents to eventID of theEvent
end repeat
--write today's date to the file
write (date string of startRange & return & return) to fileRef
--if there are no events, write this to the file as well
if length of todaysEvents is 0 then
write "No events" & return & return to fileRef
else
--process each event into format: hh:mm-hh:mm/new line/event summary
repeat with theEvent in todaysEvents
set startdate to start date of theEvent
set enddate to end date of theEvent
set startHours to hours of startdate as string
if length of startHours is 1 then set startHours to "0" & startHours
set startMins to minutes of startdate as string
if length of startMins is 1 then set startMins to "0" & startMins
set starttime to startHours & ":" & startMins
set endHours to hours of enddate as string
if length of endHours is 1 then set endHours to "0" & endHours
set endMins to minutes of enddate as string
if length of endMins is 1 then set endMins to "0" & endMins
set endTime to endHours & ":" & endMins
--write the event to the file
set theSummary to (starttime & "-" & endTime & return & summary of theEvent & return & return) as string
write theSummary to fileRef
end repeat
end if
write return to fileRef
end repeat
end tell
--close the file
close access fileRef
--print the file
set theFile to (((path to desktop) as text) & "meetings.txt") as alias
tell application "TextEdit"
print theFile without print dialog
end tell -
How to use custom authority object to execute certain code?
Hi Gurus,
I'm trying to use an authority-check just to execute certain ABAP code for some roles only, but I don't get to make it work as every user gets to exectute the code. I'm also not sure of which field(s) I should add to my authorization object when I'm checking it.
Does anyone know if there's a way of making it? Thanks in advance.
Edited by: Jorge Gonzalez on Jun 25, 2010 11:42 AMHi.
If the authority object is already created then you can view in transaction SU21, Select the custom object and double click on it.
You can see the Authorization fields that need to be passed to the authorization object while using.
For eg: If you see BUKRS, then you need to pass the company codes relevant so the authority check is performed
All Authority object has activity which informs the operation to be performed. for eg:
ACTVT: Activities.
01 = Create
02 = Change
03 = Display
06 = Delete
07 = Activate
10 = Post
Also check for documentation if it is available, if so it makes life easy.
Hope this helps
Regards
Shiva -
How to use color labels in Bridge to inform conditional treatment in PS?
I'm trying to find a way of using the color labels in Bridge ('select', etc.) to allow conditional use in Photoshop javascript.
So, for example, all the images tagged with red will be sized to 600px, while those tagged with green will be sized to 400px.
Any ideas?
IanA search of the forum for ExternalObject should find you plenty of reference…?
You just need to load library…
Retrieve your value…
Do your Photoshop process ( use switch or if/else )
Unload the library
Done…
If you struggle post back I may be able to help… -
How to use a single quote string in where condition
Hi,
I have one problem in building a query.
SELECT agx_drug_indication.record_id, agx_drug_indication.fk_ad_rec_id,
agx_drug_indication.drugindicationmeddraver, agx_drug.record_id,
agx_drug.fk_apat_rec_id,
REPLACE (agx_drug.medicinalproduct, '''', '''') AS "MEDICINALPRODUCT",
pack_imp_objects.fn_get_arisg_code
(147,
agx_drug_indication.drugindicationmeddraver
) AS "DRUGINDICATIONMEDDRAVER",
agx_drug.drugindication,
NVL (agx_drug.drugcharacterization, 1) AS "DRUGCHARACTERIZATION",
agx_safety_report.record_id, agx_safety_report.case_identifier_no,
agx_safety_report.fk_apat_rec_id,
pack_imp_objects.fn_meddra_llt_matching
(agx_drug_indication.drugindication,
agx_drug_indication.drugindication,
agx_drug_indication.drugindicationmeddraver,
1
) AS "LLT_CODE",
pack_imp_objects.fn_meddra_soccode_matching
(agx_drug_indication.drugindication,
agx_drug_indication.drugindicationmeddraver
) AS "PRIMARY_SOC_CODE",
pack_imp_objects.fn_meddra_soccode_matching
(agx_drug_indication.drugindication,
agx_drug_indication.drugindicationmeddraver
) AS "CASE_SOC_CODE",
pack_imp_objects.fn_meddra_pt_matching
(agx_drug_indication.drugindication,
agx_drug_indication.drugindication,
agx_drug_indication.drugindicationmeddraver
) AS "PT_CODE",
pack_imp_objects.fn_get_aer_id (11) AS "AER_ID"
FROM agx_drug_indication,
agx_drug,
agx_safety_report
WHERE agx_drug_indication.fk_ad_rec_id = agx_drug.record_id
AND agx_drug.fk_apat_rec_id = agx_safety_report.fk_apat_rec_id
AND agx_safety_report.case_identifier_no IS NOT NULL
AND agx_drug_indication.drugindication IS NOT NULL
AND agx_drug.medicinalproduct =
REPLACE ('*-qVAGX_DRUG.MEDICINALPRODUCT*', '''', '''')
In the above query last line '-qVAGX_DRUG.MEDICINALPRODUCT' is a dynamic variable which may or may not contain the single quotes.
Ex: ABC's or just ABC.
The query has to support both single quote and without quote in it.
I wanted everything to be done in the sinlq query on not a PL/SQL Block.
Please help me ASAPkumar0828 wrote:
<font color="#FF0000"> ... </font>
REPLACE (agx_drug.medicinalproduct, '''', '''') AS "MEDICINALPRODUCT",
<font color="#FF0000"> ... </font> <pre>
REPLACE (agx_drug.medicinalproduct, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
With the above statement you are replacing single quote with another single quote
(which is nonsense).
<font color="#FF0000"> ... </font>
AND agx_drug.medicinalproduct = REPLACE ('*-qVAGX_DRUG.MEDICINALPRODUCT*', '''', '''')
In the above query last line '-qVAGX_DRUG.MEDICINALPRODUCT' is a dynamic variable which may or may not contain the single quotes.This is not a dynamic variable but a string value:
<pre>
AND agx_drug.medicinalproduct =
REPLACE (<font style="background-color: #FF3D55">'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
*-qVAGX_DRUG.MEDICINALPRODUCT* <pre>
AND agx_drug.medicinalproduct =
REPLACE (<font style="background-color: #FF3D55">q'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
</pre>
-qVAGX_DRUG.MEDICINALPRODUCT q'[a]' => a
q'[a']' => a'
q'[a'']' => a''
q'*a*' => a
q'*a'*' => a'
q'*a''*' => a''
A variable also cannot contain a dot (.):
<pre>VAGX_DRUG<font style="background-color: #FF3D55">.</font>MEDICINALPRODUCT</pre>
Ex: ABC's or just ABC.
The query has to support both single quote and without quote in it.
I wanted everything to be done in the sinlq query on not a PL/SQL Block.
Please help me ASAPTry this:
<pre>
AND agx_drug.medicinalproduct = MY_VARIABLE
</pre> -
How to make a file explorer work under certain conditions
Good afternoon,
I have built a VI that is basically a file explorer that lets you import data to another application, when a button is clicked, you can navigate throught the directories of your pc searching for a txt file to import and plot some ghraphs. I used the property node "Visible" to show up this file explorer as a window, so every time i click the button, it shows up, but I realize it is processing even if its not being used, like a process running in second plan, thats why I want to make it different, I want to make it run only when the button aforementioned is on true, and to make it I have tried stuff like wiring the button to the loop condition, using a case structure with the button wired and nothing seems to work. How could I do that?
I appreciate your help,
Lucas Faquim
Attachments:
Temperatura.vi 337 KBFaquim wrote:
First of all, thank you for your answer, Hooovahh. I am not an expert programmer, I really dont know the problems around the infinite loop, and dont know what are the issues around thhe abort execution, could you tell me?
To understand this idea, think of yourself as a VI. You're sent to cook a full meal in the kitchen. This meal is complex enough it'll require several burners, the sink, a cutting board, and trips to the fridge and cupboards. I tell you to start cooking and you go about your business getting things going. At some point, I come in and drag you out of the kitchen and don't allow you to go back. What state is the kitchen in? Is the fridge open? Is the freezer open? Are the burners on? Is the oven on? Is the oven closed? Will things on the stove boil over creating a mess and potentially a fire? Who knows? You're creating the same mess when you hit the abort button. You're forcing yourself into an uncertain situation that may cause more problems than taking the thirty seconds it'd take to turn your burners off, turn off the oven, and close the fridge door. You WANT to have a cleanup routine in case things need to stop similar to getting the kitcen into a safe state before leaving.
With an embedded system, there isn't the typical user interface so if it stops, it's likely stopped for a LONG time. These typically run infinitely until something goes wrong and they shut themselves down. When you can put a stop button on the front panel and use that, it makes worlds more sense than leaving the kitchen in disarray. -
How to stop form processing in script at certain condition
Hi,
I need to stop sap script form processing at a certain conditon. E.g., if there are 3 or less items to be printed it should not print the form at all. Since im using standard print pgm i can make changes only in form. Is there any command in (like stop or exit) script to do so? please let me know.
Rgds
sudhanshuYou can create a output control requirement in the transaction VOFM and attach the requirement to the condition type in an output procedure or to an individual access in an access sequence.
What you can do in this requirement routine is set sy-subrc to 4 if the condition is not met and 0 otherwise.
Your functional consultant should be able to help you with this.
regards,
Advait -
Use Applescript to find files with certain conditions
I am using a tool to batch convert audio files in APE format to MP3. I have thousands of files located in hundreds of folders and subfolders in my hard drive so I searched for all APE/FLAC files and then dragged and dropped them in the tool for conversion. The problem is I was not able to convert all the files successfully for a variety of reasons (original APE files are corrupt, etc.), as a result I was left with a situation where some of the folders have files convernted (both APE and MP3 in that folder) whereas others don't (APE only). Instead of manually go to each folder and subfolder to find which ones need me to convert is there an Applescript I can use to quickly list the APE files that have not been converted?
Hello
You may try the following shell script. Please specify DIR as the root directory to start searching. It will create output list named no_mp3_list.txt on desktop.
#!/bin/bash
# list every *.ape file which has no corresponding *.mp3 file in the same directory
# * name matching is done in case-insensitive fashion
DIR=~/Desktop/test # root directory to start scanning
OUT=~/Desktop/no_mp3_list.txt # output file
shopt -s nocasematch
while read -d $'\0' f
do
[[ -e "${f:0:${#f}-3}mp3" ]] || echo "$f" >> "$OUT"
done < <(find "$DIR" -iname '*.ape' -print0)
And in case, here's a simple AppleScript wrapper for the above, which lets you choose the root directory.
set f to (choose folder with prompt "choose root folder to start searching")'s POSIX path
if f ends with "/" then set f to f's text 1 thru -2
do shell script "/bin/bash -s <<'EOF' -- " & f's quoted form & "
# list every *.ape file which has no corresponding *.mp3 file in the same directory
# * name matching is done in case-insensitive fashion
DIR=\"$1\" # root directory to start searching
OUT=~/Desktop/no_mp3_list.txt # output file
shopt -s nocasematch
while read -d $'\\0' f
do
[[ -e \"${f:0:${#f}-3}mp3\" ]] || echo \"$f\" >> \"$OUT\"
done < <(find \"$DIR\" -iname '*.ape' -print0)
EOF"
Hope this may help,
H -
Skip product allocation under certain conditions
Hi everyone. We are trying to use EXIT_SAPLQUOT_001 which is supposed to be running prior to product allocation, so we can set up parameter E_AFLAG so that this functionality is skipped under certain conditions.
Exit documentation says:
User Exit: SD Product Allocation, Enhanced Checks
Functionality
The user exit is called up before reviewing the confirmed quantities against discrete allocations (from 3.0F).
Before this happens, the availibilty check is carried out if this is switched on in Customizing (ATP or against pre-planning). The results of this are transferred to product allocation.
You can carry out the following tasks with this function module:
1. You can switch off or miss out product allocation (E_AFLAG). This can be general or depending on characteristic values. Other values to help make this decision can be imported from the order coding memory.
However, the exit doesn't seem to be triggered during sales order processing. It takes us straight into the product allocation screen, ignoring the breakpoint and the skipping instruction.
Any ideas? Anybody is using this exit for this purpose? We run product allocation without running ATP. Could this be the problem?
Thanks!sounds like this the problem.
as I understand,
if running ATP, EXIT_SAPLQUOT_001 is hit, based on your logic, prod alloc is skipped.
elseif ATP is turned off, EXIT_SAPLQUOT_001 is skipped, by default prd alloc is executed.
try setup break points on prod. alloc to see if you could have alternative flag to control...
go to debug mode and check call stacks to find another place to set break point. -
How to use breakpoint effectively
hi gurus,
could you please let me know how to use break ponit and watch point effectively.Hi,
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm
For debugging tutorial:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://www.sapdevelopment.co.uk/tips/debug/debughome.htm
http://www.sap-basis-abap.com/sapab002.htm
System Debugging
If you set this option, the Debugger is also activated for system programs (programs with status S in their program attributes). When you save breakpoints, the System Debugging setting is also saved.
Update Debugging
Update function modules do not run in the same user session as the program that is currently running in the ABAP Debugger. These function modules are therefore not included in debugging. Only if you select the Update Debugging option can you display and debug them after the COMMIT WORK.
Normal Debugging
Normal debugging is the one we do it by the normal dynamic break points or by /H or by using stattic break points.
You can switch to diffferent debuggin modes while processing.
BREAKPOINT
In the source code we set the Break-point there by clicking the stop button, the system will stop there when you execute the program.
Watchpoint
For watchpoints, we need to give some condition and when this condition is satisfied, program will stop
example : if you want to debug only
for matnr value 100 than set watch point
matnr = 100. when value reaches 100 than
program stops at that point.
more at
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm
regards,
keerthi -
Hi
I want to learn about NACE transaction. please guide me how to use it.
what are these tabs for CONDITION RECORDS
PROCEDURES
OUTPUT TYPES
ACCESS SEQUENCES.Hi
1. In simple words, it
is used for printing documents eg. purchase order, sales order etc.
2. eg.
For company1, there is purchase order A,
for company2, there is purchase order B,
for purchasing organisation 3, there is purchase order C.
Now, this type of MAPPING (which is totally dynamic and changeable)
cannot be HARDCODED in the standard sap program.
3. Hence, NACE,
provides this facility to MAP
as per users requirement.
ie. We can determine the OUTPUT using NACE.
Output means for eg. Printing of purchase order
Determine means = dynamically detecting which output (PO eg)
hence, it is also called OUTPUT DETERMINATION using NACE.
NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
You should know the Application of a document first Like:
for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
so first select the Application type (ex: EF) for PO and press OUtput types
then a list will come in that you should know the related output type for PO.
in this case it is NEU,
select that and click on the processing Routines button on the left side
it will display the Medium, Driver Program and the Script form or smartform related to that document..
All nace entries are stored in TNAPR table -
How to change the response of human task if we are using the skip rule
Hi,
We have developed the request workflow in OIM11g for this we are using the Beneficiary Manager approval composite to approve the request by his manager.
We are using the skip rule in the human task component to skip the user if the requester is beneficiary manager.
After the skip rule is executing the the request is going to failed state because of the response it is sending to the OIM
The skip rule is working as expected but the response sending to OIM is COMPLETED instead of APPROVE.
Please let us know the steps to change the response to Approve after the skip rule is executed or how to add the response COMPLETED in OIM.
ThanksYou will have to write a conditional block outisde the task where you would check if the skip condition is met and if yes then you will have to hard code the approved conditions into the payload for the task outcome.
<assign name="SetAutoApproveConditions">
<copy>
<from expression="string('APPROVE')"/>
<to variable="ApprovalTask_1_globalVariable"
part="payload"
query="/task:task/task:systemAttributes/task:outcome"/>
</copy>
<copy>
<from expression="string('COMPLETED')"/>
<to variable="ApprovalTask_1_globalVariable"
part="payload"
query="/task:task/task:systemAttributes/task:state"/>
</copy>
</assign>HTH,
BB -
How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?
Hello,
Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
Thank you,
Best regards,
paio
Maybe you are looking for
-
ITunes 11 hangs up on iMac looking for airport express.
Any help is appreciated, struggling with Apple issues. I have 3 airport express units set up to act as individual zones for a multi-channel amplifier in my home. The main iTunes library is housed both on my iMac running OSX Snow Leopard as well as an
-
Original Mac mini and LaCie firewire drive
Hi all, I've tried looking through previous posts but can't find anything that seems to relate to my problem. I've bought a LaCie 250Gb external drive and a DVD burner - both firewire and tried hooking them up to my mini but I can't get either to wor
-
Help maintaining portrait orientation in PDF
Does anyone know how I can save my iBook as a PDF and have it open in the portrait orientation? I have tried multiple different templates, but all of them reformat my work and display it as lanscape. Is it possible to open it in portrait? If so can a
-
The computer has had no problems and is well maintained: I switced the comuter on as usual, but it hung on early bootup. The only obvious warning I get is Raid Disassembled in red letters and each disk is listed in highlighted color. Following that i
-
ITunes crashes when I choose an artist
About 2 days ago, I started having a problem with iTunes on my Macbook Pro (mid 2010). Whenever I open iTunes, go into "Artists" and choose one, iTunes freezes and crashes a few seconds after I have no idea why this started to happen since I haven't