on 02-03-2010 1:24 PM
Hi
This is regarding a FCC in receiver File Adapter
My requirement is as follows :
I have the following source structure
DT_Source
Structure
Field 1
Field 2
Field 3
The target file to be created will contain all the 3 fields mapped directly from the source.
but in additional to these 3 fields it will also contain 3 constants ..which aren't coming from the source.
Do I need to include that in the Target data type and map them as constant values in the mapping or can the addition of constant values be taken care of in the File Content conversion ?
thanks
Dev
Hi,
you need to add them to your target data type and pass constant values to those fields...if needs to be populated for every record in the target file...
HTH
Rajesh
Edited by: Rajesh on Feb 3, 2010 6:57 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think better to try at mapping level and then add in FCC at receiver adapter. Because I dont think any parameter is there for adding extra fields in FCC of receiver adapter.
check this link for FCC in receiver adapter:
http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Regards,
Nutan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Do I need to include that in the Target data type and map them as constant values in the mapping or can the addition of constant values be taken care of in the File Content conversion ?
>
> thanks
> Dev
Never force such requirement on to the source since this can always be handled in the mapping. Also it is anyway not possible to add additional constants to your source XML using FCC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Shabarish
So you mean once i get a sample file , according to the blank spaces in the resultant i should have a corresponding field in my target Message type and map it toa constant white spaces ??
ok I have one last question
Can the FIle(on the receiver side ) be a mix of values which are fixed as well as variable lenghs ??
i.e
a typical line item in the file will be like this
Field1,Field2,Constant1, ,Constant2,Field3, ,Constant3,Field4,Constant4
where Field1 and Field3 are fixed length fields with the constants and field 4 and field5 are of variable lengths ????
thanks
Dev
>
> Can you please reply me on this ...regarding blank spaces
>
> So you mean once i get a sample file , according to the blank spaces in the resultant i should have a corresponding field in my target Message type and map it toa constant white spaces ??
>
> Is that the way to deal with them
>
> thanks
> DEv
yes Dev. that is correct
Hi Dev,
So you mean once i get a sample file , according to the blank spaces in the resultant i should have a corresponding field in my target Message type and map it toa constant white spaces ??
Is that the way to deal with them
If you are sure that the target field say X, Y and Z will not have value from input and should always be blank then you can map them in message mapping with a constant value of blank
else if you are not sure and want to make them blank at runtime, if say source fields a, b and c doesn't exists, then use mapwithdefault node function in the graphical mapping
Regards
Suraj
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.