Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

IDOC Segment scan mapping issue.

$
0
0

Hi Experts,

 

I am working on a Idoc to JDBC mapping and meet some issue. Here is the source strcture.  plant.

-<ZMARAM SEGMENT="1">

<MATNR>000000000001006960</MATNR>

<ERSDA>20100428</ERSDA>

<MTART>LG01</MTART>

<MATKL>003015</MATKL>

<ZMBEWM SEGMENT="1">

  <MATNR>0000087H5944</MATNR>

  <BWKEY>0154</BWKEY>

  <VERPR>0987</VERPR> </ZMBEWM> 

  </ZMBEWM>

  <ZMBEWM SEGMENT="1">

  <MATNR>0000087H5944</MATNR>

  <BWKEY>0112</BWKEY> <PEINH>1</PEINH>

  <VERPR>0987</VERPR> </ZMBEWM>

  <ZMARCM SEGMENT="1">

  <MATNR>0000087H5944</MATNR>

  <WERKS>0110</WERKS>

  <PSTAT>DEAVQ</PSTAT>

  <ZPLOC>CN01</ZPLOC>

  </ZMARCM>

  <ZMARCM SEGMENT="1">

  <MATNR>0000087H5944</MATNR>

  <WERKS>0112</WERKS>

  <PSTAT>DEAVQ</PSTAT>

  <ZPLOC>CN01</ZPLOC>

  </ZMARCM>

 

first we need to filter one segment ZMARCM with WERKS = XXXX and convert corresponding lines to JDBC line one by one. So we mappe the ZMARCM to JDBC corresponding table. but now we have a new requirement for get the corresponing filelds of ZMBEWM add to the same JDBC table by ZMBEWM-BWKEY = ZMARCM-WERKS. How to do this. My question is if we can get the right content from ZMBEWM using starnd funtion. If not do we need to using UDF to do this? How to write this code for scan the ZMBEWM one by one?

 


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>