Flatten a single field
Is it possible to flatten just a single field in a document? I sometimes want to hide part of a page and put a button with a white background over the area;flattening it would finish the job.There are often other fields or hyperlinks on the same page that I want to keep.
You can flatten a just certain fields by manipulating which ones are printable or not when using the doc.flattenPages method. Just restore the original settings of the remaining fields after you do so. You can also set which pages you want to flatten and include/exclude fields that way.
Similar Messages
-
Passing multiple values for a single field in URL to call sap Transaction
Hi All,
I need to pass multiple values for a single field to SAP transaction .
means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
Let me know pls.
Regards,
Sirisha.R.S.Hi Satyajit,
I need to call a transaction with multiple values which gives me the report based on those values.
So I need to pass multiple values for a single parameter.
I hope u got it.
Regards,
Sirisha.R.S. -
F4 help for a single field in interactive form
Hi Experts,
I am working in HRAS process.I created a Form Scenario and an Adobe Form. I linked my interactive form in portal using standard Start Processes iView . Now I have to create a value help(F4 help) for 'STATE' field based on 'COUNTRY' field value in adobe form. I filled the Input value Help in the corresponding Form Scenario field. But in portal the adobe form shows the field as a single field only.
How I can I attach the manual F4 help to 'COUNTRY' field?
The how to vary the F4 help values in 'STATE' fied based on 'COUNTRY' field?
Do I need to code in Java script for this?
Please provide some inputs with code sample
Thanks in advance,Lek,
Check Nikhil's reply in this [thread|Re: Reg: value help from BADI is not displayed in the HCm form;. It should probably help you.
Chintan -
Deleting a single field from existing Layout - Update
Hi,
We need to amend our custom integrator's layout by removing a field from the layout.
However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
(Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
Is there any option to remove a single field from integrator layout?
Thanks much in advance,
Rgds,
SumanthDuplicate post - Deleting a single field from existing Layout - Update
Srini -
Deleting a single field from existing WebADI Layout (Update)
Hi,
We need to amend our custom WebADI integrator's layout by removing a field from the layout.
However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
(Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
Is there any option to remove a single field from integrator layout?
Thanks much in advance,
Rgds,
SumanthDuplicate post - Deleting a single field from existing Layout - Update
Srini -
Display values of a single field in a multiple rows in a table region
Hi Tech-Gurus,
I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
xxxxxx
yyyyyy
Reg.No
1234
5678
7654
I need to display the values of REG.NO in different rows like,
1234
5678
7654
and also need to validate as well against Decimal values.
Please help me with the code how i will iterate ?Hi,
I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
Regards
Sumit -
How to update a single field in Word macro
Hello,
I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field. There
are other fields in the document, so I do not want to update all the fields. Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
Thank youStefan's response is correct.
Here is a macro that should update only filename fields.
Sub FileNameFieldUpdateAllStory()
' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
' repaired by Jezebel
' All Story Field Updater - Filename fields
Dim oField As Field
Dim oStory As Range
' On Error Resume Next
For Each oStory In ActiveDocument.StoryRanges
' This goes into headers and footers as well as the regular document
Do
For Each oField In oStory.Fields
If oField.Type = wdFieldFileName Then
oField.Update
End If
Next oField
Set oStory = oStory.NextStoryRange
Loop Until oStory Is Nothing
Next oStory
End Sub
See Installing Macros for help in using this.
Charles Kenyon Madison, WI -
How to change the screen element of a single field in a table control
Hi Gurus,
I want to change the screen element of a single field (or the whole row) in a table control according to a condition.
I have 2 columns in the table control. One is an input column and one output only. When user enters values into the input column, they need to be compared against the values in the other column, and if there is a discrepancy, the row where the discrepancy is needs to be highlighted.
I have tried the following code which highlights the whole column ...
CONTROLS: TC_ZVOYG_BINS TYPE TABLEVIEW USING SCREEN 0500.
DATA: wa_tc_zvoyg_col LIKE LINE OF TC_ZVOYG_BINS-cols.
LOOP AT G_TC_ZVOYG_BINS_ITAB
INTO G_TC_ZVOYG_BINS_WA.
if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
loop at screen.
IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
wa_tc_zvoyg_col-screen-intensified = 1.
MODIFY tc_zvoyg_bins-cols FROM wa_tc_zvoyg_col TRANSPORTING
screen-intensified WHERE screen-name = screen-name.
endif.
endloop.
endif.
endloop.
And also the following code which makes no change ...
LOOP AT G_TC_ZVOYG_BINS_ITAB
INTO G_TC_ZVOYG_BINS_WA.
if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
loop at screen.
IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
screen-intensified = '1'.
modify screen.
endif.
endloop.
endif.
endloop.
Thanks in advance.Hi,
The modification of a screen element attribute (LOOP AT SCREEN...MODIFY SCREEN) must always be done in the PBO (for a dynpro, it will be in a PBO module, i.e. declared by MODULE ... OUTPUT)
About the loop at the internal table, it is done automatically by the system, also during the PBO, you'll find something like LOOP [AT itab] ... WITH CONTROL ... in the PBO part of the screen flow logic (note: you may have to complete with a supplementary READ TABLE if you don't use AT itab). So you don't need an additional loop.
Best regards
Sandra -
How to prevent the logging of a single field in XI ?
Hi Guys,
we have developed the interfaces for payment card services using the Enterprise services and the major problem what we are facing is to prevent the logging of the 3 digit security code in XI.
According to the payment card industry standards you should not store it as well as you should not encrypt this 3 digit CVV code.
Is there any way we can prevent the logging of this single field in XI ?
Is it possible if we develop our own custom adapters then we can acheive this ? Do we have full control over the DB in the custom adapters?
any help or suggestions or other alternatives would be really appreciated. I want to hear some solution from the experts.
Thanks in advance,
SriniHi Beena,
You can encrypt the credit card no and SSN and that should not be a problem, but you should not store or encrypt the CVV no.
as i said we have our own tools many customers are using with respect to RFCs where you can encrypt and decrypt the card numbers and also not storing the values of CVV.
The above scenario works fine with no issues and it is according to the PCI standards. If you use PI 7.1 and use adaptive controlling the values are stored at a single place ie you can acheive single persistance and even this will not be our solution.
Advanced Adapter Engine Configuration in PI 7.1
with the single persistsnce, if there is a adapter module or custom adapter which takes the payload and prevents the stroage of the value of a single field then it would be our solution.
Thanks,
Srini
Edited by: Srinivas Reddy on Aug 20, 2008 7:42 PM
Edited by: Srinivas Reddy on Aug 20, 2008 7:57 PM -
Changing the color of a single field in a row of a table
Is it possible to change the color of text of a single field within a single column. If field 'C' in a row is negative number change the text color to red. Is this possible?
Hi Champion,
Please Do search before posting.. you get lots of threads here...
Re: color for a particular column in table
Re: Color a table row
Please go through this..
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1?QuickLink=index&overridelayout=true -
Displaying data from a list into a single field with comma separated values
Hi,
I have a requirement to change a report with an XML structure (simplified version) as below
<Protocol>
<ProtocolNumber>100</ProtocolNumber>
<SiteName>Baxter Building</SiteName>
<ListOfActivity>
<Activity>
<Description>Communication Memo Description.</Description>
<Name>James</Name>
</Activity>
<Activity>
<Description>Visit 4</Description>
<Name>James</Name>
</Activity>
<ListOfActivity/>
</Protocol>
On the report I need to display all the 'Names' for each of the Child (Activities) in a single field at the Parent (Protocol) level, with each Name separated by a comma.
How do I go about getting this to work?
ThanksTake a look at this: http://blogs.oracle.com/xmlpublisher/entry/inline_grouping
You could do this (ofcourse, you will need to add extra logic to ensure that there is no comma added after the last name..)
<?for-each@inlines:Name?><?.?><?', '?><?end for-each?>
Thanks,
Bipuser -
How to delete data from single field in a database table?
Hi guys,
Plz suggest me How to delete data from single field in a database table?
thnks,
pavanhi
in addition to abv details..chk this:
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
regards,
madhu -
Hi All,
I hve a scenario like this ERP->XI->Monitoring system
In the mapping, I need to assign the outbound payload (whole xml) to a field in the target
message field since the (Target) Monitoring system wants to receive the whole xml message in single field.
How can i achieve this?
Thanks
Denotry this.. some of the imports are not required.. however I just copied from my code..
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import com.sap.aii.af.mp.module.Module;
import com.sap.aii.af.mp.module.ModuleContext;
import com.sap.aii.af.mp.module.ModuleData;
import com.sap.aii.af.mp.module.ModuleException;
import com.sap.aii.af.ra.ms.api.Message;
import com.sap.aii.af.service.trace.Trace;
import java.util.Hashtable;
//XML Parsing and Transformation classes
import javax.xml.parsers.*;
import org.w3c.dom.*;
import java.io.InputStream;
import java.io.ByteArrayOutputStream;
import java.io.StringWriter;
import com.sap.aii.af.ra.ms.api.XMLPayload;
import com.sun.org.apache.xml.internal.serialize.OutputFormat;
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
import javax.xml.transform.*;
import javax.xml.transform.Source;
import javax.xml.transform.Result;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
Object obj = null; //Handler to get principal data
Message msg = null;// Handler to get message object
String getXMLtoField = null;
try {
obj = inputModuleData.getPrincipalData();
msg = (Message)obj;
XMLPayload xmlpayload = msg.getDocument();
DocumentBuilderFactory factory;
factory =DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
// parse the XML Payload
Document document = builder.parse((InputStream)
xmlpayload.getInputStream());
OutputFormat format = new OutputFormat(document); // Serialize DOM
StringWriter stringOut = new StringWriter(); // Writer will be a String
XMLSerializer serial = new XMLSerializer(stringOut, format);
serial.asDOMSerializer(); // As a DOM Serializer
serial.serialize(document.getDocumentElement());
String FileContent = stringOut.toString();
return getXMLtoField; -
I can actually pass multiple values in the IN statement of select query using multiple dictionary fields in the data retrieval rule of the AFC in Cisco cloud portal like
#dictionary.field1# = 1 and
#dictionary.field2#=2
select col1,col2 from table1 where col3 in (#dictionary.field1#,dictionary.field2#).
but I want to pass mutiple values in a single field as
#dictionary.field1#=1,2
select col1,col2 from table1 where col3 in (#dictionary.field1#) and the query gives no data because it is taking as '1,2' instead of '1','2'.
Please give the solution for passing multiple values in a single variable to use in IN operator of WHERE clauseOk, I now understand what you are trying to do. Unfortunately, you cannot inject parts of a SQL statement into a DDR through a dictionary field, which always represents a specific value (the comma in your case is attempting injection of a SQL construct to refer to multiple values). One possible solution is to arbitrarily consolidate your list of values using a delimiter that you know will not be in the values themselves such as a colon (:). Let's use 3 values as it serves as a better example.
Set your dictionary field to a single reference to all 3 values of interest, say 'a', 'b', 'c' as:
:a:b:c: (you can use javascript to create this consolidated dictionary field)
Now your query would look something like the following:
select col1,col2 from table1 where #dictionary.field1t# like '%:'+col3+':%'
This should achieve the desired result. -
Need to assign a multi datatype struct to a single field in Unicode system
Hi all,
I had posted an earlier question related to this to understand what the issue is. Few responses helped. Then now I have gone thru the conversion rules in Unicode systems related to assigning a structure (with different data types) to a single field and looking for a solution for my case. The current code written in 4.6 says
l_bapiparex-valuepart1 = l_bape_vbap
where
l_bape_vbap is a structure of type bape_vbap and
l_bapiparex of type bapiparex.
So according to the rules, when I do this kind of an assignment in ECC , the first field's length (i.e. VBELN) must be min 240 characters long. Only then this assignment will be error free, am I right ?
Or Is this an inadmissable assignment situation ?
If not then is there any other way how I can achieve the same result by fixing this issue ? I am not able to think of any !! Has any one come across this kind of an issue during upgrade? Please do suggest.
Just for your reference I have pasted the rule details from SAP help..
Conversion in Unicode Programs
The following rules apply in Unicode programs when converting a flat structure to a single field and vice versa:
If a structure is purely character-like, it is processed during conversion like a data object of the type c (Casting). The single field can have any elementary data type.
If the structure is not purely character-like, the single field must have the type c and the structure must begin with a character-like fragment that is at least as long as the single field. The assignment takes place only between this fragment and the single field. The character-like fragment of the structure is treated like a data object of the type c (Casting) in the assignment. If the structure is the target field, the remaining character-like fragments are filled with blanks and all other components with the initial value that corresponds to their type.
No conversion rule is defined for any other cases, so that assignment is not possible.
Note
If a syntax error occurs due to an inadmissible assignment between flat structures and single fields, you can display the fragment view of the corresponding structure when displaying the syntax error in the ABAP Editor by choosing the pushbutton with the information icon.
thanksTry this way
call method cl_abap_container_utilities=>fill_container_c
exporting
im_value = l_bape_vbap
importing
ex_container = l_bapiparex-valuepart1
exceptions
illegal_parameter_type = 1
others = 2.
a®
Maybe you are looking for
-
How does one submit a complaint to Apple UK about a serious lack of customer support?
HI, The problem I'm having is finding an addess (e-mail, postal or phone) to complain to Apple about the abysmal customer experience I've had with them. I've been a loyal customer to Apple; having spent in excess of £10,000 over the past 10 years on
-
OCI connect error reported to cause core dump
I use OCI in my developped library. Other developers use my library for their development purposes. Last night, the oracle server went down for patching, and a user reported a core dump that I recognized it is comming from my OCI section of library.
-
hi... urgent I want a monthly report in which MIRO and MIGO Documents no.s come. I want to track MIRO document no.s with the MIGO Document No.s for a month. The main purpose is to know out of how many GRNs (migo) done by store, MIRO has been done by
-
Hiya folks. Setup is, 2 global nodes running 3.3 and a zone cluster setup among them. NFS share from a Netapp filer that could be mounted on both the global zones. I'm not aware of way how I can present this NFS share to the zone clusters. This is a
-
Which job refreshes Snapshot Queries?
Does anyone know which job in the Automation Server refreshes the cached used by Snapshot Queries? The Admin Guide states "These cached search results are refreshed at the same interval as many other end-user caches, every 15 minutes.". Does that cor