on 05-18-2012 1:39 PM
Hi
I am having a multiple mapping because of that i am using Variable substituion . for that i am using an extra field Time stamp for using in the variable substituion . this field should not be part of the the target payload when it is finally transmitted to the target system. i used a workaround in the FCC to remove the particular field or value from the file, in a FCC using the Parameter Name <Node>.fixedLengthTooShortHandling and using the value Cut.
The hurdle with that is it leaves an empty line for that particluar record after the FCC is done. Now the customer doesn't want this blank line in the target file. i am not using dynamic file configuration because of multiple mapping.
One of the XML file is like this :
<
<ns 1:MT_BaanSO850_1 xmlns:ns1="xxxAN_SO">
- <BaanSO850_1>
<Ouefrence>"C1221205180001"</OurRefrence>
<OurIdentification>"sap122"</OurIdentification>
<PurchaseOrder>4200000356</PurchaseOrder>
<NetworkAddress>"sap122"</NetworkAddress>
<CodeInMessage>"SAP"</CodeInMessage>
<CodeInMessage1>"850"</CodeInMessage1>
<OrderType>"PUC"</OrderType>
<Constant>""</Constant>
<Currentdate>120518</Currentdate>
<currentTime>0901</currentTime>
</BaanSO850_1>
- <DummyTimeStamp>
<Timestamp>120518 _09</Timestamp>
</DummyTimeStamp>
</ns1:MT_BaanSO851>
T Target file is like this but with blank line
"C1221205180001":"sap122":4200000355:"sap122":"SAP":"850":"DD1":"":120518:0703
----------------------------BLANK LINE------------------------------------------------------------------------
"C1221205180001":"sap122":4200000356:"sap122":"SAP":"850":"PUC":"":120518:0704
PLEASE LET ME KNOW how to remove this blank line
Regards
Rahman
Hi
Content Conversion parameters are like ths
Record set Structure: BaanSO850_1,DummyTimeStamp
BaanSO850_1.fieldSeparator | : |
BaanSO850_1.fieldNames | OurRefrence,OurIdentification,PurchaseOrder,NetworkAddress,CodeInMessage,CodeInMessage1,OrderType,Constant,Currentdate,currentTime |
BaanSO850_1.endSeparator | 'nl' |
BaanSO850_1.fixedLengthTooShortHandling | Ignore |
| 0 |
| Cut |
| 'nl' |
Regards
Rahman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just wondering why it isn't working! as i have encountered such situations and resolved with these parameters.
Another option i could see here is to make use of the Currentdate, currentTime field value from the BaanSO850_1 segment to derive the Time stamp.
eg,
var1: payload: MT_BaanSO850_1,1,BaanSO850_1,1,Currentdate,1
var2: payload: MT_BaanSO850_1,1,BaanSO850_1,1,currentTime,1
and make %var1%_%var2% in file name scheme
this way you can avoid the extra segment DummyTimeStamp in the target structure itself.
Hi Zameer,
As i said in my original Question , i am having multimapping with different sets of fields , the one whihc i have given has those two fields but in others its not .but the requirement is same for all 6 files . 6 files has to be genrated with those mappings. Thats why i used this dummy timestamp field /node
Regards
Rahman
Hi,
The problem is caused by this node:
<DummyTimeStamp>
<Timestamp>120518 _09</Timestamp>
</DummyTimeStamp>
The FCC generates the empty line because of this node. So in order to get rid of this, you will have to add one more Recordset Structure: DummyTimeStamp, and the parameters that Zameer already mentioned.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please add the below parameters along with <Node>.fixedLengthTooShortHandling cut
<Node>.fieldFixedLengths 0
<Node>.endSeparator '0'
Hope this helps
-Zameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.