How to read the multipart/realted mime type message.
hello, sir
please tell me,
how to read the multipart/realted message.
which are the subpart are included in the "multipart/related" message
i know only "multipart/mixed" and i know how to read ,it contain the subpart ,
1)text / plain
2)text / html
3)multipart/alternative
a)text / plain
but i don't know which are the subpart included in the "multipart/related " please tell me.
thanks
Today we rely on Simulink to perform parameterization of your designs in two ways:
Parameterizable Subsystems and Blocks : Parameters themselves can be MATLAB expressions that need to be evaluated for which we need the MATLAB interpreter
The very useful Rate and Type propagation or Simulink compilation that allows us to specify types & rates in one location that gets systematically propagated to all.
To truly make the HDL Netlist that is generated from SysGen parameterizable, we would have to implement some of this capability in the HDL netlist itself by:
Using Generics(VHDL) or Parameters(Verilog) - We would have to capture the bit width(type) propagation through levels of hierarchies and finally parameterize the IP itself based on this value
Since IP itself does not have this capability through generics, we would have to package a separate tcl script that updates the IP parameterization appropriately in response to top level parameters(or GUI parameters)
Interpreting MATLAB expressions and translating them into VHDL/Verilog expressions (alternatively tcl expressions of IP). In simulink, mask parameters can be passed from one level to the next. Also parameterization of a block can be composed of Matlab expressions using variables from ancestor masks & the MATLAB interpreter – so we will need to somehow capture that as well.
Similar Messages
-
Hello everybody,
I am designing a general purpose block in system generator. I pass the user parameters to the block through masking it. Some user parameters can change the block configuration. The input port data type, width and rate can also affect the block configuration.
The problem is that these values (input port data type, width and rate) are subject to change. So I should read them dynamically, then change the block configuration through programming the "Initialization Commands" field. But unfortunately there is no straight way to read the input port information.
There are some methods in for example the "Black Box". these are:
input_width = this_block.port('din').width;
input_rate = this_block.port('din').rate;
But these methods are not applicable to a masked subsystem.
I have tried other ways also. You can find them below. None of them worked.
Does anybody know how can I solve this problem?
Other ways I tried:
1)
design_name([],[],[],'compile')
q=get_param(gcb,'PortHandles');
get_param(q.Inport,'CompiledPortDataType')
get_param(q.Inport,'CompiledPortWidth')
get_param(q.Inport,'CompiledPortDimensions')
design_name([],[],[],'term')
2)
ssGetInputPortDataType
3)
ts = Simulink.Block.getSampleTimes([gcb '/Input'])
Today we rely on Simulink to perform parameterization of your designs in two ways:
Parameterizable Subsystems and Blocks : Parameters themselves can be MATLAB expressions that need to be evaluated for which we need the MATLAB interpreter
The very useful Rate and Type propagation or Simulink compilation that allows us to specify types & rates in one location that gets systematically propagated to all.
To truly make the HDL Netlist that is generated from SysGen parameterizable, we would have to implement some of this capability in the HDL netlist itself by:
Using Generics(VHDL) or Parameters(Verilog) - We would have to capture the bit width(type) propagation through levels of hierarchies and finally parameterize the IP itself based on this value
Since IP itself does not have this capability through generics, we would have to package a separate tcl script that updates the IP parameterization appropriately in response to top level parameters(or GUI parameters)
Interpreting MATLAB expressions and translating them into VHDL/Verilog expressions (alternatively tcl expressions of IP). In simulink, mask parameters can be passed from one level to the next. Also parameterization of a block can be composed of Matlab expressions using variables from ancestor masks & the MATLAB interpreter – so we will need to somehow capture that as well.
-
How to read the content in one node of XML in Java? Pls help
My dear brothers,
I am a newbie of XML, I have a exercise which is creating a Tree View from XML file. But the trouble is I do not know how to read the content in one node of XML file. I decide to use the algorithm as following:
1. Create a GUI form which gives the ability for user to choose a XML file (ok)
2. Load XML and return the file (ok)
3. Read the file from node to node to create the node in Tree View (?!)
Please help me, and if you are enough kind, please give me an small example to easy understand. Thanks in advance.
Hoang Yen BinhI hope this one helps you.
<ABC Type="ProductBased" ProdName="One" Location="India">
<CEO>Raj</CEO>
<Finance>Vikram</Finance>
<HR>Karthik</HR>
<Technical>Satish</Technical>
</ABC>
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Attr;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.DOMException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import java.io.File;
import java.io.IOException;
public class XmlReading {
Document doc;
Element element;
public static void main(String[] args) throws Exception{
XmlReading xr = new XmlReading();
xr.getXmlParser(args);
public void getXmlParser(String[] args) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
if(args.length != 1) {
System.err.println("Argument Required");
try {
DocumentBuilder builder = factory.newDocumentBuilder();
doc = builder.parse(new File(args[0]));
}catch(ParserConfigurationException e1) {
}catch(SAXException e2) {
}catch(IOException e3) {
getAttributes();
public void getAttributes() {
// Retrive the entire Document from the Dom Tree
element = doc.getDocumentElement();
// System.out.println(element);
NamedNodeMap attrs = element.getAttributes();
// Get number of attributes in the element
int numAttrs = attrs.getLength();
// Process each attribute
for (int i=0; i<numAttrs; i++) {
Node node = attrs.item(i);
// Get attribute name and value
String attrName = node.getNodeName();
String attrValue = node.getNodeValue();
System.out.println(attrName + ": " + attrValue);
String s1 = element.getTagName();
System.out.println(s1);
// To get all the elements in a DOM Tree
NodeList nl1 = element.getElementsByTagName("*");
int i2 = nl1.getLength();
System.out.println(i2);
for(int i=0; i<i2; i++) {
System.out.println(nl1.item(i) + "\n");
} -
How to read the file from a folder.
Hi All,
How to read the file from a folder or directory from the non sap server / remote server.
Regards
Sathisopen dataset filename for input in text mode
encoding default.
filename is character type variable with the destination filename.
Edited by: Jino Augustine on Apr 19, 2010 1:31 PM -
How to read the check box value in alv report
hi experts,
i m working on one alv report where i m using the check box for field selection in alv display.
but i don't know how to read the only selected fields.
wa_fieldcat-fieldname = 'BOX'.
wa_fieldcat-tabname = 'IT_HEADER'.
wa_fieldcat-seltext_m = 'Box'.
wa_fieldcat-checkbox = 'X'.
wa_fieldcat-input = 'X'.
wa_fieldcat-edit = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'AUFNR'.
wa_fieldcat-tabname = 'IT_HEADER'.
wa_fieldcat-seltext_m = 'Sales Doc'.
wa_fieldcat-hotspot = 'X'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
it_fieldcat = i_fieldcat[]
i_save = 'A'
it_events = v_events
TABLES
t_outtab = it_header
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
*& Form USER_COMMAND
text
-->R_UCOMM text
-->, text
-->RS_SLEFIELDtext
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
when '&RELEAS'.
endcase
endform.
i gone through some already posted que for same problem i tried options like
loop at it_header.
endloop.
but i m getting box field empty.
is there i missed something? plz sugeest.. if u have any other solution plz post...Have this code in your user command fm:
* For capturing changed data
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = w_grid.
CALL METHOD w_grid->check_changed_data
IMPORTING
e_valid = w_valid.
IF w_valid = 'X'.
loop at itab where mark = 'X'.
endloop.
ENDIF.
Regards,
Ravi -
How to read the complete path in file upload UI
Hi,
I want to know how to read the complete path in file upload UI in java web dynpro.
I have created 1 file upload UI and than when i do browse and select some file say small.jpg from my local PC, desktop , its path is coming in file upload UI like E:\small.jpg,
I want to know how to get this path in java webdynpro code.
please let me know..Hi Satyam,
In webdynpro java, first file stores in server location then it reads from server.
Create a button with upload and write this code OnAction
Resource is the attribute name in context of type com.sap.ide.webdynpro.uielementdefinitions.Resource, this attribute is for Resource property for Upload UI Element.
Then in OnAction of button
InputStream text = null;
int temp=0;
try{
File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());
String path = file.getAbsolutePath();
wdComponentAPI.getMessageManager().reportSuccess(path);
}catch(Exception e){
e.printStackTrace();
//@@end
Regards,
Pradeep
Edited by: pradeep_546 on May 11, 2011 12:22 PM -
How to read the text file present in the Al11 server through our program?
My requirement is that , i have one file already present in the AL11 server. Now i want to take this file so that I can read this file .
So will you please help me , how to read the file from AL11 server in our program ?
Thankx in advanceHi..
I too agree to the above post .. SEARCH in SCN before posting..
DATA: lv_filename TYPE string, "File name
lv_line TYPE string. "One line entry in a file
lv_filename = iv_file_name.
IF iv_location = gc_application.
IF iv_record_count IS SUPPLIED.
Open file
IF gv_file IS INITIAL.
OPEN DATASET lv_filename FOR INPUT IN TEXT MODE
ENCODING DEFAULT.
ENCODING DEFAULT
IGNORING CONVERSION ERRORS.
IF sy-subrc <> 0.
RAISE file_open_error.
ENDIF.
gv_file = gc_check.
ENDIF.
Read data
DO iv_record_count TIMES.
READ DATASET lv_filename INTO lv_line.
IF sy-subrc <> 0.
Close file
CLOSE DATASET lv_filename.
IF sy-subrc NE 0.
RAISE file_close_error.
ENDIF.
CLEAR gv_file.
Exit from the loop
EXIT.
ENDIF.
Regards
Ansari -
How to read the Lead Selection in Search UIBB
Hello,
I have a Search UIBB implementation with the list from Search UIBB.
When the user double click any line in the List we want to call another program. Not sure how to read the Lead selection. I see the event ID FPM_RESULT_LEAD_SEL in Process_Event method and GET_DATA method but not sure how to get the actual line.
Thanks in advance for any help.
Regards,
PKHi ,
method IF_FPM_GUIBB_SEARCH~PROCESS_EVENT.
CASE IO_EVENT->MV_EVENT_ID.
WHEN IF_FPM_GUIBB_SEARCH=>FPM_RESULT_LEAD_SEL.
READ TABLE IT_RESULT_LIST into IS_RESULT_LIST index IV_LEAD_INDEX.
ENDCASE.
Where IT_RESULT_LIST -> is the internal table of ET_RESULT_LIST( This can be declared in attributes section and assigned value in GET_DATA method )
IS_RESULT_LIST-> is a structure of type table IT_RESULT_LIST.
IV_LEAD_INDEX has to be created at attributes section and the value of the selected row of type I can be assigned in IF_FPM_GUIBB_SEARCH~FLUSH method for the same event.
Regards,
Harsha -
How to read the selected row value of a table node
hi
i have a node of table type, displaying few records & with each record a NEXT button is there.
now i want to read the values of the selected row of the table & want to process next with NEXT button.
pls tell me how to read the values of the selected row only.
reds.data : lo_nd type ref to if_wd_context_node,
lo_nd1 type ref to if_wd_context_node,
lt_temp type wdr_context_element_set,
wa_temp type ref to if_wd_context_element,
ls_node1 type sflight,
lt_node1 type STANDARD TABLE OF sflight.
lo_nd = wd_context->get_child_node('CN_MAIN').
CALL METHOD lo_nd->get_selected_elements
RECEIVING
set = lt_temp.
loop at lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_node1.
APPEND ls_node1 TO lt_node1.
CLEAR ls_node1.
ENDLOOP.
'CN_MAIN' is the node whose selected values are to be picked and stored in internal table lt_node1.
Other option by Thomas :
DATA lo_nd_cn_main TYPE REF TO if_wd_context_node.
DATA lt_temp TYPE wdr_context_element_set.
FIELD-SYMBOLS <wa_temp> LIKE LINE OF lt_temp.
DATA lt_node1 TYPE wd_this->elements_cn_main.
FIELD-SYMBOLS <ls_node1> LIKE LINE OF lt_node1.
lo_nd_cn_main = wd_context->get_child_node( name = wd_this->wdctx_cn_main ).
lt_temp = lo_nd_cn_main->get_selected_elements( ).
LOOP AT lt_temp ASSIGNING <wa_temp>.
APPEND INITIAL LINE TO lt_node1 ASSIGNING <ls_node1>.
<wa_temp>->get_static_attributes( IMPORTING STATIC_ATTRIBUTES = <ls_node1> ).
ENDLOOP. -
How to Read the GUID of the current Transaction.
Hi
I am writing a new Function Module, which i will use in the Search Help. I need to process the data using this Function Module. For the same, i need to read the data from the current Transaction. I will be using CRM_ORDER_READ for the same. However, i need to READ the "Header_Guid" before.
Can anyone help. How to read the GUID of the current Transaction?
Thanks and Regards
JaideepHi Jaideep,
From where you are going to call this FM ? Are you planning to Implement some BADI or from some BSP application ? If from BSP application then code will look something like this.
DATA: current TYPE REF TO if_bol_bo_property_access.
DATA: dref TYPE REF TO data.
DATA: lv_guid TYPE crmt_object_guid.
FIELD-SYMBOLS: <l_data> TYPE data.
IF iterator IS BOUND.
current = iterator->get_current( ).
ELSE.
current = collection_wrapper->get_current( ).
ENDIF.
TRY.
dref = current->get_property( 'GUID' ).
CATCH cx_sy_ref_is_initial.
RETURN.
ENDTRY.
ASSIGN dref->* TO <l_data>.
CLEAR: lv_guid.
lv_guid = <l_data>.
and you will have the current transaction guid. Since I am not sure at what point of time you are trying to get the guid so I have given you the code at the context node BTADMINH level.
Hope this will give you some idea.
Thanks,
Vikash. -
How to read the BOL of confirmed BP on IC?
Hi Experts,
Could you tell me (or send me a piece of code) how to read the business partner number and address of the confirmed BP on Interaction Center?
What is the right BOL object? Where is this data stored? How can I gain this information in runtime?
Thank you for your reply!
Best regards,
Leventehi levente,
here my piece of code
data:
lv_number TYPE BU_PARTNER,
lo_gdc TYPE REF TO IF_CRM_UI_DATA_CONTEXT,
lo_customer TYPE REF TO if_bol_bo_property_access.
* get GDC
lo_gdc = cl_crm_ui_data_context_srv=>get_instance( me ).
check lo_gdc is bound.
* get confirmed customer of GDC
TRY.
lo_customer = mo_gdc->get_entity( if_iccmp_global_data_cont_con=>gdc_currentcustomer ).
lv_number = lo_customer->get_property_as_string( 'BP_NUMBER' ).
CATCH cx_root.
ENDTRY.
best wishes,
hakan -
How to get the split period wage type amount in payslip?
How to get the split period wage type amount in payslip?
Payroll period for 01.01.09 to 31.01.09.
1. Employee is active from 1.1.09 to 10.01.09
2. Employee is inactive from 11.01.09 to 20.01.09
3. Employee is again active from 21.01.09 to 31.01.09
In Result Table three split periods are created.
From 01.01.09 to 10.01.09 u2018Basic Salaryu2019 Wtype 1101 amt is 20.00
From 11.01.09 to 20.01.09 u2018Basic Salaryu2019 Wtype 1101 amt is 00.00
From 21.01.09 to 31.01.09 u2018Basic Salaryu2019 Wtype 1101 amt is 10.00
My requirement is to print only the last split period in payslip from 21.01.09 to 31.01.09. May you please help me in this regard.
Thanks in advance
Regards,
Rajesh.Hi
Try to read the below:
WPBPC : Distribute Lump Sum Wage Elements to WPBP Periods
Object
Operation
Use
Operation WPBPC distributes the amount of the current wage type to the
active WPBP periods in the payroll period.
Input
The current wage type in the header entry of table OT is used as input
for this operation.
Procedure
Within payroll, wage types are assigned to a fixed WPBP period by
infotype 0014 Recurring Payments/Deductions, for example. However, you
may want to distribute this payment to all active WPBP periods, which is
what would happen if the wage type were entered in basic pay. Therefore,
various specifications exist for parameter S:
o If the specification is 'A', and if several active WPBP periods
exist, the amount is simultaneously reduced on a calendar-day basis.
o If the specification is 'D', the wage type is distributed to all
existing WPBP periods without the amount being reduced.
o If the specification is 'S', and if the validity period starts or
ends during the period, the entry in table WPBP is split using this
date. The wage type is stored in table OT for the corresponding WPBP
period.
This parameter is only allowed if processing was accessed using
function P0014.
In this case, infotype 0014 must be processed before absence
valuation and function PARTT. Otherwise, rejections occur during
payroll processing.
o Specification 'X' is the combination of 'A' and 'S'.
This parameter is only allowed if processing was accessed using
function P0014.
o If the specification is 'W', and if the validity period starts or
ends during the period, the entry in table WPBP is split using this
date (as with option 'S'). Unlike 'S', the wage type is not stored
in table OT.
This parameter is only allowed if processing was accessed using
function P0014.
o If the specification is ' ', the wage type is stored in table OT for
each WPBP period in which the validity interval fits.
This parameter is only allowed if processing was accessed using
functions P0014 or P0015.
If the WPBP split is set for a wage type, the wage type is stored
without changes in table OT. If you specify a different wage type name
in the second parameter, the wage type is stored with this name in table
OT. Before you execute operation WPBPC, you may therefore need to delete
the split using operation ELIMI.
If a country-specific split (C1, C2, or C3 split) is set, the operation
interprets it as an error. The employee in question is rejected by
payroll. All other splits are transferred as they are.
Output
The processed wage type, or the wage type specified in the operation
call, is written to table OT (output table) with the appropriate split
indicator and reduced amount as operation output for each WPBP period.
Parameter specification 'W' is the only exception.
Syntax
OOOOOSVVVV
OOOOO WPBPC Operation name
S
blank distribute to all WPBP periods
S split and distribute WPBP
W split but do not distribute WPBP
A distribute to active WPBP periods
with calendar-day reductions
D distribute to all existing
WPBP periods
X combination of 'S' and 'A'
VVVV Results wage type
blank input wage type = results wage type
wage wage type name of input wage type is replaced
type by wage type name of results wage
name type
Wage type before operation:
Example
M100 02 3000
WPBP split
01 June 01 - June 20 active
02 June 21 - June 30 active
VVVV Results wage type
blank input wage type = results wage type
wage wage type name of input wage type is replaced
type by wage type name of results wage
name type
Wage type before operation:
Example
M100 02 3000
WPBP split
01 June 01 - June 20 active
02 June 21 - June 30 active
Wage type before operation:
WType WPBP Amount
M100 00 3000.-
M200 02 2000.-
Operation: WPBPCA
Wage type after operation:
WType WPBP Amount
M100 01 2000.-
M100 02 1000.-
M200 02 2000.-
Operation: WPBPC
Wage type after operation:
WType WPBP Amount
M100 01 3000.-
M100 02 3000.-
M200 02 2000.-
Regards
Team Member. -
In NodeList how to read the ERRTAB values
How to Read the NodeList ? I have an error table it has Type and message fields....
NodeList list = document.getElementsByTagName("ERRTAB");I assume you are using XML DOM inside Java mapping. Once you got the Nodelist object initialised, get the length of the node list and run in a for loop for each Node that it has.
VJ -
How to read the data in excel sheet
Dear sir,
How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
Cell A Cell B
A Apple
B Ball
C Cat
D Doll
when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on..Hi,
I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached.
Trust this would help you solve the issue.
Regards,
Sagar G Yadav | Application Engineer | National Instruments
Attachments:
read_from_excel.vi 10 KB
Book1.txt 1 KB -
How to change the default IDOC basic type from CREMAS05 to CREMAS04.
Hi All,
How to change the default IDOC basic type from CREMAS05 to CREMAS04 when sending Vendor Master Data.
When I generate partner profile, the system will add the latest version of IDOC type which is CREMAS05 to the Outbound message. In my project, I'm asked to use CREMAS04.
I want to use BD14 to send master data directly, but the program will generate IDOC using CREMAS05. Is there a way that I can change it to CREMAS04? And also for using Change Pointers, I want to use the report RBDMIDOC, but i have the same problem.
Thanks
Sai Krishnaexecute WE20 and edit the outbound parameters
here is a pretty good example: http://documentation.softwareag.com/webmethods/sapr3_gateway/sap231/pages/sapdist.htm
Edited by: Jürgen L. on Sep 7, 2011 9:49 PM
Maybe you are looking for
-
Is there any way to create new decorations in LabVIEW 7.1?
I've been reading the discussion threads, and now have a pretty good idea about how to programmatically manipulate the color and visibility of LabVIEW decorations. The available decorations, however, are fairly limited. Is there any way to create c
-
Photos taken with iPhone 3G syncing at low resolution
Something has changed with my iPhone 3G setup. I take a lot of pictures with it and now for some reason the picture files on my MacBook Pro are 360x270 instead of the 1600x1200 the phone is capable of. I know it didn't do this before, what's going on
-
I just got off the phone with apple support. I just received my new iMac. (well new to me bought a refurb.) This machine was originally built in July 2011. It shipped to me with 10.7 Lion installed, but was originally shipped with 10.6 in july 2011.
-
Default java / jsp file which gets executed before DAM asset rendering
Hi, I have a requirement to implement access control on DAM assets on the basis of a metadata property (tags). Is there a default JAVA / JSP file which gets executed before rendering a DAM asset? If yes, how can I override it? If no, how can I add a
-
This construct is not allowed as the origin of an assignment
Please help.. create or replace package testins as x number; y number; z number; end; create or replace procedure p5 as begin for i in 1..5 loop testins.x(i):=i; testins.y(i):=i+1; testins.z(i):=i+2; end loop; execute immediate 'begin forall i in 1..