Mapping prob
Mapping issues:
File to Multiple IDOC (propagation)
Each record in file creates N number of IDOCS
So no of records in file is less than number of IDOCS generated.
Problem: A particular field in source record needs to be replicated to the IDOCS it generated. Suppose the value in that field changed in second record ,the IDOCS spurned by it should reflect the changes.
Need help.
Thanks
Hi,
Follow the steps
1. Define a UDF duplicateContent (with 2 parameters a and b and with the cache set to Context):
for (int i = 0; i < a.length ; i++){
for (int j = 0; j < Integer.parseInt(b[0]); j++){
result.addValue(a[0]);
2.Address-> SplitByValue \
duplicateContent ->removeContent -> IDoc
State -> Fix value /
FixValue :-
US=10
UK=5
Note--Splitbyvalue and Fixvalue are input to DUplicateContent UDF
3.Mapping for Address field in the Idoc
State \
duplicateContent -> SplitByValue -> Address(Idocs field)
State--> FixValue /
Note --State and Fixvalue is the input to the Duplicate content UDF
Regards,
Ashwin M
Reward if helfpul
Similar Messages
-
Hello,
I have created a value map. Now there is one problem in that I have two different source value but there target values are same.
PI is not taking the value. But if source value are different it should take the same target value.
Can any help me how to come out this problem or any other way around.
Thanks and Regards
HemantHi,
Hemant, PI will not accept value for value mapping group even if there are two differnet source values.
This is because when you add data into value mapping table there is nothing like source and target.
The only thing is, each value is identified by Context, Agency and Scheme. These parameters define the target value at the run time to decide your target value for a particular combination of
1) Source Agency
'2) Source Schemae
3) Source Value
4) Target Agency
5) Target Schemae
You will find lots of Blogs and documents on the SDN.
Thanks
Ajay -
BPM and own container variables and their usage in transform
Hi folks,
I have a question about the usage of own container variables within the transform step of a BPM.
I want to know whether I can get the actual content of such a container variable within the mapping being done in the transform step.
I have been looking into this forum upon related topic(s) but somehow they all seemed to go about being able to get standard values like messageID etc within the transform step and NOT about getting your own variables ... It is clear that getting those standard variables will not work directly ( not without actually getting them into an XML payload before entering the BPM) ...
So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
Regards,
StevenHi,
>>>So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
no, this is not possible
you can only compare those varabiels with some of your message tags (in a loop step for example)
Regards,
michal -
ACE 4710 VIP not pingable even with "always" selected.
Hello, I have a somewhat complicated setup in order to allow one particular VIP to answer for the same serverfarm on two different ports (this was a previous question here.) Here is the scrubbed config below. The setup works, but the issue is that the VIP does not reply to pings. We use both the servers and the vip for monitoring internally. It is still operational on the ports it is balancing, but no setting for ping seems to work (Active, Primary, or Always.) What am I doing wrong here? The other sites I use stickys with respond for their VIPs. I'm assuming this one does not due to the more complicated policy map.
probe http HTML-Site-Up_200
description This probe is to verify HTTP operation via site-up.html check
port 80
interval 5
faildetect 2
passdetect interval 10
request method get url /site-up.html
expect status 200 200
open 2
probe icmp ICMP-Ping
interval 5
faildetect 2
passdetect interval 10
probe tcp RAW-TCP-81
port 81
interval 10
faildetect 2
passdetect interval 20
connection term forced
open 1
rserver host psc-us-EQUIPprd1
description EQUIP Prod, server 1
ip address 10.1.1.84
inservice
rserver host psc-us-EQUIPprd2
description EQUIP Prod, server 2
ip address 10.1.1.85
inservice
serverfarm host EQUIPPROD
description EQUIP Prod Server Pool
predictor leastconns
probe HTML-Site-Up_200
probe ICMP-Ping
probe RAW-TCP-81
rserver psc-us-EQUIPprd1
probe ICMP-Ping
probe HTML-Site-Up_200
probe RAW-TCP-81
inservice
rserver psc-us-EQUIPprd2
probe ICMP-Ping
probe HTML-Site-Up_200
probe RAW-TCP-81
inservice
serverfarm host EQUIPPROD-CUSTOMER-81
description EQUIP Customer Site Server Pool, port 81
predictor leastconns
probe RAW-TCP-81
rserver psc-us-EQUIPprd1 81
probe RAW-TCP-81
inservice
rserver psc-us-EQUIPprd2 81
probe RAW-TCP-81
inservice
sticky ip-netmask 255.255.255.255 address source Sticky_EQUIPPROD
timeout 180
replicate sticky
serverfarm EQUIPPROD
class-map type http loadbalance match-all EQUIP_81_Redirect
2 match http header Host header-value ".*equiponline.com"
class-map type http loadbalance match-all EQUIP_81_Redirect_Full
2 match http header Host header-value ".*www.equiponline.com"
class-map match-all VIP-EQUIPPROD
2 match virtual-address 10.1.1.97 any
policy-map type loadbalance first-match VIP-EQUIPPROD-l7slb
class EQUIP_81_Redirect
serverfarm EQUIPPROD-CUSTOMER-81
class EQUIP_81_Redirect_Full
serverfarm EQUIPPROD-CUSTOMER-81
class class-default
sticky-serverfarm Sticky_EQUIPPROD
policy-map multi-match global
class VIP-EQUIPPROD
loadbalance vip inservice
loadbalance policy VIP-EQUIPPROD-l7slb
loadbalance vip icmp-reply
nat dynamic 13 vlan 1000
interface vlan 1000
nat-pool 13 10.1.1.97 10.1.1.97 netmask 255.255.255.0 patOutput from that class from the show service-policy command. And no, it doesn't appear to be pingable from the ACE.
class: VIP-EQUIPPROD
nat:
nat dynamic 13 vlan 1000
curr conns : 361 , hit count : 116690
dropped conns : 5
client pkt count : 4815293 , client byte count: 739114009
server pkt count : 7281612 , server byte count: 8753101386
conn-rate-limit : 0 , drop-count : 0
bandwidth-rate-limit : 0 , drop-count : 0
VIP Address: Protocol: Port:
10.1.1.97 any
loadbalance:
L7 loadbalance policy: VIP-EQUIPPROD-l7slb
Regex dnld status : SUCCESSFUL
VIP ICMP Reply : ENABLED
VIP State: INSERVICE
VIP DWS state: DWS_DISABLED
Persistence Rebalance: ENABLED
curr conns : 392 , hit count : 134300
dropped conns : 431
client pkt count : 4869950 , client byte count: 741545220
server pkt count : 7281612 , server byte count: 8753101386
conn-rate-limit : 0 , drop-count : 0
bandwidth-rate-limit : 0 , drop-count : 0
L7 Loadbalance policy : VIP-EQUIPPROD-l7slb
class/match : EQUIP_81_Redirect
LB action :
primary serverfarm: EQUIPPROD-CUSTOMER-81
state: UP
backup serverfarm : -
hit count : 12602
dropped conns : 0
compression : off
class/match : EQUIP_81_Redirect_Full
LB action :
primary serverfarm: EQUIPPROD-CUSTOMER-81
state: UP
backup serverfarm : -
hit count : 0
dropped conns : 0
compression : off
class/match : class-default
LB action: :
sticky group: Sticky_EQUIPPROD
primary serverfarm: EQUIPPROD
state:UP
backup serverfarm : -
hit count : 107831
dropped conns : 5
compression : off
compression:
bytes_in : 0 bytes_out : 0
Compression ratio : 0.00%
Gzip: 0 Deflate: 0
compression errors:
User-Agent : 0 Accept-Encoding : 0
Content size: 0 Content type : 0
Not HTTP 1.1: 0 HTTP response error: 0
Others : 0
pscaceinside01/Prod# ping 10.1.1.97
Pinging 10.51.221.97 with timeout = 2, count = 5, size = 100 ....
No response received from 10.1.1.97 within last 2 sec
No response received from 10.1.1.97 within last 2 sec
No response received from 10.1.1.97 within last 2 sec
No response received from 10.1.1.97 within last 2 sec
No response received from 10.1.1.97 within last 2 sec
5 packet sent, 0 responses received, 100% packet loss
For what it's worth, none of my VIP's are pingable from the ACE. I think that has to do with me being in one-arm configuration, and using the NAT addresses per VIP. But all other VIPs are pingable from other sources on the subnet. With the exception of this VIP. -
Hello Gilles,
One question about something I was not able to find in the documentation.
Lets say I have one class-map which includes 2 ports (in this case https and 5061).
Can I associate this class-map to just 1 generic serverfarm and probe for both ports or I have to specify 2 serverfarms/rservers/probes?
So, by not specifying the ports on the rserver, if a request is received on port 443 (or 5061), it is sent to the same respective port on the rserver?
The same way is valid for the generic probe. ACE module is able to probe both ports based on the class-map?
Thanks and have a great day!!
Giulio.
probe tcp PROBE_GENERIC_TCP
description This probe works for all TCP services by inheriting the VIP port.
interval 15
faildetect 2
passdetect interval 15
passdetect count 2
open 2
rserver host SERVER1_ACCESS
ip address <1AC>
inservice
rserver host SERVER2_ACCESS
ip address <2AC>
inservice
serverfarm host ACCESS-SFARM
probe PROBE_GENERIC_TCP
rserver SERVER1_ACCESS
inservice
rserver SERVER2_ACCESS
inservice
class-map match-any OCS_L4ACCESS
2 match virtual-address x.x.x.176 tcp eq https
2 match virtual-address x.x.x.176 tcp eq 5061
policy-map type loadbalance first-match OCS_L4ACCESS
class class-default
sticky-serverfarm ACCESS_STICKY
policy-map multi-match POLICY
class OCS_L4ACCESS
loadbalance vip inservice
loadbalance policy OCS_L4ACCESS
loadbalance vip icmp-reply active
connection advanced-options OCS_VIPTIMEOUT
nat dynamic XXX vlan 503Even if you use the 4710 appliance or expect the inheritance in the module software, it's worth considering if this is really what you want. If you keep multiple ports in the L3/L4 class-map you can't handle the services independently. You will have a common serverfarm for both https and 5061. If https service stops on one rserver, the ACE will place that rserver (and not that service) in out-of-operation state and it won't receive any 5061 traffic either. (You have the fail-on-all probe option but I wouldn't say it's a better choice. In that case, https traffic would be sent to the rserver even if https port is closed as long as there is at least one working service on it.) That's why I prefer a separate class-map and separate serverfarm for each service. (They can contain the same rservers, no need to duplicate.) BUT if the software supports probe port inheritance, you can benefit from it even in this scenario: serverfarm-443 and serverfarm-5061 can both use your PROBE_GENERIC_TCP.
-
Hi there,
I'm trying to make all my traffic from SSL VPN clients flow through an Inline Traffic probe. From what I can see, I should use the VLAN mapping feature. But I can't figure out how the feature works. The documentation from ASA not very informative or extensive.
Currently my ASA has a Interconnect network on a VLAN to my Core router, and all my internal networks are routed to the Core IP address. My Core router's default gateway is the ASA. My ASA provides the IP addresses to the remote SSL VPN clients, and is the default router for them. Remote Traffic flows from the remote client to the ASA, then through the interconnect, to my internal networks. My single ASA is working as both my Edge firewall and the SSL VPN concentrator.
I undestand VLAN mapping will make all the traffic from remote clients to egress on a particular VLAN. So, I have created a new VLAN and added that to a trunk on the ASA. Then, I enabled the "Restrict Access to VLAN" and set it to my VLAN. My Inline Traffic probe is connected to the VLAN and can provide DHCP.
If this was a regular network, I would make the Inline Traffic probe the default gateway for that VLAN, and provide the IP and Gateway addresses with it's DHCP server. But how does it work with ASA? I can captive the egress to that VLAN, but can't figure out how to make the traffic pass through the monitor. As ASA does not support source-based routing I can't make the traffic next-hop to the Probe.
I can make the Probe bridge (L2) the interconnect network and the remote client VLAN. But the IP address of the ASA on the VLAN is not within the same range as the interconnect, so I can't understand if and how this would work.
Can someone help me with the configuration or explaing me better how VLAN mapping works?
Thanks.What you are trying to achieve is configurable via the "tunneled" default route, and it would force all traffic from VPN through to this particular default route.
eg:
If your Inline traffic probe is between the ASA inside interface and your CORE, then you can configure:
route inside 0.0.0.0 0.0.0.0 tunneled
That would force all VPN traffic to route to CORE-IP which would go through your inline traffic probe
Here is the command reference for your info:
http://www.cisco.com/en/US/docs/security/asa/asa83/command/reference/qr.html#wp1840612
Hope that helps. -
Prob. in challan de mapping
When de map the challan of March month
It shows
Unable to save challan mapping due to negative entry in Total Number of Employees Partially MappedHello
Regarding your query, the issue reported by you basically happens due to inconsistent mapping or unmapping of the employees to the Challan.
We would suggest you to kindly delete of the negative entry from the table 'T7INTE'. You also need to delete the entries from the table PCL4 as well for the corresponding challan for which the negative entry has been created. Performing the above suggested steps will remove the reported inconsistencies. After deleting the entries completely, kindly perform the Challan mapping for the employees again. Please make sure that you are not deleting the entry from the table for which Form24Q
has already been generated.
The deletion process can be explained as such:
1. Execute the transaction 'se16'. Go to the tables mentioned above. You can execute the table 'T7INTE' with the TAN number. On execution,a negative entry will be displayed for a particular challan. Select that entry and delete of the entry from the table.
2. Go to table PCL4. Execute the table with relid as 'I1' to 'I2' and the TAN number in the field 'SRTFD' as 'TAN number'. On Execution, you will find all the employees mapped to that particular TAN with the corresponding period dates. Delete of the entries for the period for which there existed a negative entry in the table 'T7INTE'.
3. After deleting the entries successfully from both the above tables, kindly performing the mapping action again.
Thanks and Kind Regards
Ramana -
Nokia HERE! Maps WP8 - Removing Maps - Memory Prob...
Hi All,
I have a Nokia Lumia 820 with approximately 500 MB of memory free.
I am trying to download an offline map (approximately 100 MB) but I am always getting an error stating: "Not Enough Room, you need at least 1,137 MB of free space on your phone to get this map".
I get the same message when I try to delete a previously downloaded map to free up memory!
Anyone had this issue before? Any help wuld be appreciated.If its absolutely necessary to have the maps, the only solution I can think of is full reset of your device ..(setting-->about-->reset your phone). This should bring the phone back to Out-of-Box state. You may want to back-up /sync your data before doing this. All the applications downloaded / installed from the MarketPlace will need to be re-installed. Not to worry as even the paid applications will also be available for redownload without paying for them again ..
-
Prob in mapping per ofcr field
Hi Experts,
I hav created personnel officer in the table T526 but when I am trying to map that in PB10 it was not showing the drop down list for that particular personnel officer field. "No values selected Maintain entries?" pop-up msg is coming.
Plz let me know your thoughts.Fetature PINCH says that for Transaction class B (recruitment) the group will be APPL, and that is why only APPL entries will appear in the drop down search help.
Please check whether Fetaure PINCH is maintained correctly or pointing elsewhere.
Normally this will be the standard delivered entry and is not necessary to maintain again. -
MAP LOADER PROB :Storage device connection interup...
Hi, Iam trying to download India map. After downloading about 100 MB, the Maploader shows 'Storage device connection interuppted'. the phone is properly connected by PCSUITE, the data lights are green and Iam able to transfer 'voices'. Why doesn't map loading work? Any pointers? thanks in advance
Storage device connection interuppted
Normally is down to a connection error between phone and PC .
Charge phone fully leave on charger if you have a very slow connection .
Make new USB connections and start again .
Maps download exactly the same as previous version .
You can always remove maps loader from PC and start with a fresh copy .
jje -
My Map App has decided to place me in Southampton, 600 miles away from me on the East Coast of Scotland. Haven't been there ! Planned routes impossible to make, same thing when I go to the AA Routefinder Site. How do I clear this and re-establish my correct home position ?
Hello there, Hughjrw1.
The following Knowledge Base article has some good information on general Location Services troubleshooting:
iOS 6: Understanding Location Services
http://support.apple.com/kb/HT5467
Particularly:
Improving GPS accuracy2,3
GPS accuracy varies depending on the number of visible GPS satellites. Locating all visible satellites can take several minutes, with accuracy gradually increasing over time. Use these tips to improve GPS accuracy:
Ensure the date, time, and time zone are correctly set on the device in Settings > General > Date & Time. If possible, use Set Automatically.
Important: Incorrect settings on your computer can sync to your device. Verify the date, time, and time zone on any computer that syncs with your device.
Restart your device.
Verify that you have a cellular or Wi-Fi network connection. This allows the Assisted GPS (A-GPS) on the device to locate visible GPS satellites faster, in addition to providing initial location information using the Wi-Fi or cellular networks.
Note: Microcells (sometimes called Femtocells) are not supported with Location Services.
Maintain a clear view of the horizon in several directions. Keep in mind that walls, vehicle roofs, tall buildings, mountains, and other obstructions can block line of sight to GPS satellites. When this occurs, your device will automatically use Wi-Fi or cellular networks to determine your position, until the GPS satellites are visible again.
Additionally, you may want to use the following Troubleshooting Assistant if the issue persists:
Apple - Support - iPad - Applications Assistant
http://www.apple.com/support/ipad/assistant/application/
Cheers,
Pedro D. -
Not able to install BB Maps on 8520
Hi frnds !
New to this community,
I got BB 8520 just few days back, I am trying to install MAPS on it, it get installed but when i try to run it i found an error saying: " Error starting net_rim_bb_lbs: Class'net.rim.device.apps.api.quickcontact.QuickCont actlcons' not found."
I have tried all the ways but i cant get rid of it... i removed battery when it was on after installing the application, i unistalled the OS and re-installed it at factory stage, then i update it the same way, but i am stuck to the same prob again and again.
Can anyone guide me for the same ?
I have tryied both the versions, my
Platform Version: 4.2.0.122
Application Version: 4.6.1.286
IMEI/MEID:
Networks Supported: NIL
Radio Type: GPRS
Screen Resoultion: 320x240
Total Application Space: 252.5M
Free Application Space: 130.5M
Battery Level: 99%.
I checked both the ways in Available Updates in Application loader
BB 4.6 for 8520 (Current) 4.6.1.286 & also tried with
BB 4.6.1 (Preferred) 4.6.1.272
Which one should i use to start the MAPS ?
Kindly requested to guide me further
Thank you,
Rumitrumit wrote:
dose it require to have complete internet plan to activate the MAPS services ?
Yes. It does.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Problem in message Mapping SAP PI 7.1
Hi Experts,
I have a problem in my Message Mapping,
Design: [Design|http://www.life-4-music.de/prob.jpg]
Messagemapping: [MappingTest|http://www.life-4-music.de/probII.jpg]
The Problem is, that ElementC from SourceMessage occours "0 to n" times in Element A, but I need to check every ElementC in ElementA to TargetElementA with a IF Statement.
I tried a lot of things, like change the CONTEXT of the ELEMENT or use SPLIT BY VALUE but without success.
Rgds,
SteffenHello, thanks a lot for the fast awnser. I tried this allready to change the Context of the Elements "system" in this Mapping: Changed Context
For Example in one field I check for Entry "ERP" in Source Field "system" , if "ERP" is in the first ELEMENT then it will be mapped correctly: Example ERP works
But If "ERP" is in an element below, then it doesn´t work, so it seems to be, that he only map the first occurrence of the Elements. : Example SCADA don´t work
Here is the View of the QUEUE from the don´t working Example: Show QUEUE of not working Example
maybe u have a tip for me again , because I´m allready desperate
Thanks a lot.
Rgds,
Steffen -
Hi ,
I am working with a scenerio where i have 2 diff system to send the data depending upong the sending payload data.
I am using ABAP mapping where i am able to send accros the data, below is my code
METHOD IF_MAPPING~EXECUTE.
BREAK-POINT.
* initialize iXML
TYPE-POOLS: IXML.
CLASS CL_IXML DEFINITION LOAD.
DATA: L_IXML TYPE REF TO IF_IXML.
*creating the Interface by calling the create method in class C_IXML
CALL METHOD CL_IXML=>CREATE
EXPORTING
TYPE = 0
RECEIVING
RVAL = L_IXML.
create stream factory
DATA: STREAMFACTORY TYPE REF TO IF_IXML_STREAM_FACTORY.
CALL METHOD L_IXML->CREATE_STREAM_FACTORY
RECEIVING
RVAL = STREAMFACTORY.
create input stream
DATA: ISTREAM TYPE REF TO IF_IXML_ISTREAM.
CALL METHOD STREAMFACTORY->CREATE_ISTREAM_XSTRING
EXPORTING
STRING = SOURCE
RECEIVING
RVAL = ISTREAM.
*This iXML factory can create an empty XML document object named IDOCUMENT.
initialize input document
DATA: IDOCUMENT TYPE REF TO IF_IXML_DOCUMENT.
CALL METHOD L_IXML->CREATE_DOCUMENT
RECEIVING
RVAL = IDOCUMENT.
parse input document
DATA: IPARSER TYPE REF TO IF_IXML_PARSER.
CALL METHOD L_IXML->CREATE_PARSER
EXPORTING
DOCUMENT = IDOCUMENT
ISTREAM = ISTREAM
STREAM_FACTORY = STREAMFACTORY
RECEIVING
RVAL = IPARSER.
IPARSER->PARSE( ).
DATA: EL_ELEMENT TYPE REF TO IF_IXML_ELEMENT,
VALUE TYPE STRING.
DATA: ROOT TYPE REF TO IF_IXML_ELEMENT.
get message content of tag
DATA: INCODE TYPE REF TO IF_IXML_NODE_COLLECTION,
INCODE1 TYPE REF TO IF_IXML_NODE_COLLECTION,
INCODE2 TYPE REF TO IF_IXML_NODE_COLLECTION,
INCODE0 TYPE REF TO IF_IXML_NODE_COLLECTION.
CALL METHOD IDOCUMENT->GET_ELEMENTS_BY_TAG_NAME
EXPORTING
DEPTH = 0
NAME = 'MANDT'
NAMESPACE = 'urn:sap-com:document:sap:rfc:functions'
RECEIVING
RVAL = INCODE0 .
CALL METHOD IDOCUMENT->GET_ELEMENTS_BY_TAG_NAME
EXPORTING
DEPTH = 0
NAME = 'EMPNO'
NAMESPACE = 'urn:sap-com:document:sap:rfc:functions'
RECEIVING
RVAL = INCODE.
CALL METHOD IDOCUMENT->GET_ELEMENTS_BY_TAG_NAME
EXPORTING
DEPTH = 0
NAME = 'EMPNAME'
NAMESPACE = 'urn:sap-com:document:sap:rfc:functions'
RECEIVING
RVAL = INCODE1.
CALL METHOD IDOCUMENT->GET_ELEMENTS_BY_TAG_NAME
EXPORTING
DEPTH = 0
NAME = 'DEPARTMENTNAME'
NAMESPACE = 'urn:sap-com:document:sap:rfc:functions'
RECEIVING
RVAL = INCODE2.
DATA: URI TYPE STRING.
URI = 'urn:sap-com:document:sap:rfc:functions'.
* build up output document =============================================
create output document
DATA: ODOCUMENT TYPE REF TO IF_IXML_DOCUMENT.
CALL METHOD L_IXML->CREATE_DOCUMENT
RECEIVING
RVAL = ODOCUMENT.
DATA: RET_VALUE TYPE I.
**At this point you can add the nodes (elements, attributes) into the document. First you have to declare the root element node.
DATA: L_ELEMENT_ROOT TYPE REF TO IF_IXML_ELEMENT.
DATA: NODE_LIST_COLLECTION TYPE REF TO IF_IXML_NODE_COLLECTION.
add node to the output document
DATA: OUTCODE0 TYPE REF TO IF_IXML_NODE.
DATA: OUTCODE TYPE REF TO IF_IXML_NODE.
DATA: OUTCODE1 TYPE REF TO IF_IXML_NODE.
DATA: OUTCODE2 TYPE REF TO IF_IXML_NODE.
DATA: INDEX1 TYPE SY-INDEX.
DATA: INDEX TYPE SY-INDEX.
DATA IRC TYPE I.
TYPES: BEGIN OF TY_IMPORT,
MANDT TYPE MANDT,
EMPNO TYPE STRING,
EMPNAME TYPE STRING,
DEPARTMENTNAME TYPE STRING,
END OF TY_IMPORT.
DATA: IT_IMPORT TYPE STANDARD TABLE OF TY_IMPORT.
DATA: WA_IMPORT TYPE TY_IMPORT.
CALL METHOD IDOCUMENT->GET_ELEMENTS_BY_TAG_NAME
EXPORTING
DEPTH = 0
NAME = 'MANDT'
NAMESPACE = ''
RECEIVING
RVAL = NODE_LIST_COLLECTION.
DATA: LENGTH TYPE I.
CALL METHOD NODE_LIST_COLLECTION->GET_LENGTH
RECEIVING
RVAL = LENGTH.
WHILE INDEX < LENGTH.
CALL METHOD IDOCUMENT->FIND_FROM_NAME
EXPORTING
DEPTH = index
NAME = 'EMPNO'
NAMESPACE = ''
RECEIVING
RVAL = EL_ELEMENT .
CALL METHOD INCODE0->GET_ITEM
EXPORTING
INDEX = INDEX
RECEIVING
RVAL = OUTCODE0.
EL_ELEMENT = IDOCUMENT->FIND_FROM_NAME( 'MANDT' ).
VALUE = OUTCODE0->GET_VALUE( ).
WA_IMPORT-MANDT = VALUE.
CLEAR: VALUE.
CALL METHOD INCODE->GET_ITEM
EXPORTING
INDEX = INDEX
RECEIVING
RVAL = OUTCODE.
EL_ELEMENT = IDOCUMENT->FIND_FROM_NAME( 'EMPNO' ).
VALUE = OUTCODE->GET_VALUE( ).
WA_IMPORT-EMPNO = VALUE.
CLEAR: VALUE.
CALL METHOD INCODE1->GET_ITEM
EXPORTING
INDEX = INDEX
RECEIVING
RVAL = OUTCODE1.
EL_ELEMENT = IDOCUMENT->FIND_FROM_NAME( 'EMPNAME' ).
VALUE = OUTCODE1->GET_VALUE( ).
WA_IMPORT-EMPNAME = VALUE.
CLEAR: VALUE.
CALL METHOD INCODE2->GET_ITEM
EXPORTING
INDEX = INDEX
RECEIVING
RVAL = OUTCODE2.
EL_ELEMENT = IDOCUMENT->FIND_FROM_NAME( 'DEPARTMENTNAME' ).
VALUE = OUTCODE2->GET_VALUE( ).
WA_IMPORT-DEPARTMENTNAME = VALUE.
CLEAR: VALUE.
APPEND WA_IMPORT TO IT_IMPORT.
CLEAR WA_IMPORT.
ADD 1 TO INDEX.
ENDWHILE.
TYPES: BEGIN OF TY_DATA,
DATA TYPE STRING,
END OF TY_DATA.
DATA: IT_DATA TYPE STANDARD TABLE OF TY_DATA,
WA_DATA TYPE TY_DATA.
DATA: SSSS TYPE STRING.
IF SOURCE IS NOT INITIAL.
CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
EXPORTING
IM_XSTRING = SOURCE
IM_ENCODING = 'UTF-8'
IMPORTING
EX_STRING = SSSS.
ENDIF.
render document ======================================================
create output stream
DATA: XX TYPE STRING.
DATA: XX_1 TYPE STRING.
DATA: XX1 TYPE STRING.
DATA: XX2 TYPE STRING.
DATA: T1 TYPE STRING VALUE ''.
DATA: T TYPE STRING VALUE '<DATA><MANDT>'.
LOOP AT IT_IMPORT INTO WA_IMPORT.
CLEAR: XX1.
IF SY-TABIX = 1.
IF WA_IMPORT-EMPNO = '000000000022'.
CONCATENATE T WA_IMPORT-MANDT '</MANDT>'
'<EMPNO>' WA_IMPORT-EMPNO '</EMPNO>'
'<EMPNAME>' WA_IMPORT-EMPNAME '</EMPNAME><DEPARTMENTNAME>'
WA_IMPORT-DEPARTMENTNAME '</DEPARTMENTNAME></DATA>'
INTO XX1 .
IF SY-TABIX = 1.
ELSE.
CONCATENATE XX1 XX_1 INTO XX_1.
ENDIF.
ELSE.
CONCATENATE T WA_IMPORT-MANDT '</MANDT>'
'<EMPNO>' WA_IMPORT-EMPNO '</EMPNO>'
'<EMPNAME>' WA_IMPORT-EMPNAME '</EMPNAME><DEPARTMENTNAME>'
WA_IMPORT-DEPARTMENTNAME '</DEPARTMENTNAME></DATA>' INTO XX1 .
CONCATENATE XX1 XX INTO XX.
ENDIF.
ENDIF.
AT LAST.
CONCATENATE '<?xml version="1.0" encoding="UTF-8"?><ns1:ZTEST1 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">'
XX_1 INTO XX_1.
CONCATENATE XX_1 '</ns1:ZTEST1>' INTO XX_1.
CALL FUNCTION 'ECATT_CONV_STRING_TO_XSTRING'
EXPORTING
IM_STRING = XX_1
IM_ENCODING = 'UTF-8'
IMPORTING
EX_XSTRING = RESULT.
EX_LEN = .
CONCATENATE '<?xml version="1.0" encoding="UTF-8"?><ns1:ZTEST1 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">'
XX INTO XX.
CONCATENATE XX '</ns1:ZTEST1>' INTO XX.
CONCATENATE XX_1 XX INTO XX.
CALL FUNCTION 'ECATT_CONV_STRING_TO_XSTRING'
EXPORTING
IM_STRING = XX
IM_ENCODING = 'UTF-8'
IMPORTING
EX_XSTRING = RESULT
EX_LEN =
ENDAT.
ENDLOOP.
ENDMETHOD.
here above result parameter will have the target data..But it sends the that same data to both the system , If i will be able to recursively call this method, then i be able to solve the prob easily as first time result will send one data to one system and next time to other system,Hi munish,
I dont think there is any thing wrong with the ABAP code.
Try testing your ABAP mapping using transaction code SXI_MAPPING_TEST in XI.
Enter the Details asked and then enter TEst data in XML format..
Also, you can make use of the Trace element to find out if there is any thing wrong with the code.
Include the following Statements after every step in the ABAP code to ensure that the particular step is completed successfully.
data : l_trace type string.
concatenate l_trace '<Message you want to display>' into l_trace.
trace->trace(level = '<level>'
message =l_trace).
The trace is visible in SXMB_MONI (click on "Trace" in the left pane to view).
using this you will get to know i the code is functioning as desired.
Regards,
Yashaswee. -
Interface Mapping not found in interface determination
Hello experts,
I am facing a very basic problem in my scenario which is stoping me from moving forward.
In interface determination when i select the inbound interface and then try to select the interface mapping, nothing is shown in the value help.
this is happening for all my scenarios even though the IR configurations are correct and I have also refreshed the cache.
What can be the problem? some installation problem, SLd prob or IR??? Please help as i am stuck!!
Thanks a lot in advance.
YashHi Yash,
This is really very strange despite of most probable solutions.
Can you do one thing delete all configuration objects in Directory and activate. Now in repostiory remove mapping programs(message mapping and interface maaping) and activate.
Check the message types and data types and message interfaces.
Specially in message interfaces check whether correct message types are assigned. If so proceed with new mapping programs and activate the objects.
Also do a fresh configuration in ID, activate and execute your scenario.
One question, can you give a arrow diagram of scenario(e.g. file>xi>JMS)
Thanks,
Gujjeti
Maybe you are looking for
-
Oracle 10g (10.1.3.1.0) ant-oracle-classes.jar
Hi, I dint find Ant Task for stopping/starting/restarting the Oracle Application Server, but the http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm#BEIHFIIC specifies that you can do so with the Ant Tasks. I went through "an
-
Adobe X compatibility with Office 2002
Hi everyone, I have a «PDFMaker file» error using Acrobat X. We currently have Office 2002 here. From what I saw here, those two aren't working together : http://kb2.adobe.com/cps/333/333504.html Beside using PDF Printer to create PDF files, is there
-
Hi, I downloaded the VM "Database App Development VM" from http://www.oracle.com/technetwork/community/developer-vm/index.html and executed, on this installation, upgrade to APEX 4.2.4.00 .08 through patches. My problem is that converting an oracle f
-
How do I recover my apps?
I formated my computer without backing up my iPhone Applications (I know, silly me). I had 2 Applications on my computer which are no longer available on the apps store... Netshare and the original phone saber, both of these are still on my iPhone. M
-
I have a image background set and i imported a logo. I cant seem to bring my Logo image to front. Please help..