Optional fields in sender FCC

Hi All,
my source file is a flat csv file,
ex:  10,20,30,40,50
       11,21,31,41,51
five fields in source structure.
fields 3 and 4 are optional .
in this case, when both the fields values are not coming ,how my source file looks like?
wat i mean is will it look like 10,20, , ,50    0r 10,20,50.
thanks and regards
jhansi

HI,
Yes your XML structure will be created with no value inside it.
This will be the output.
<Data>   </Data>
Yes you can define the occurance as 0-1 in data type.
Thnx
Chirag

Similar Messages

  • Specify Starting Position in Sender FCC

    Hi Experts Team,
    I wish to specify the starting position of field in sender FCC.
    can i????
    regards,
    kanda

    Hi,
    I think positions we can't identify with FCC statements.  fieldfixedlengths itself system will identify automatically.  If column have any specific character indication we can do easily.  Check it according to your requirement.

  • Error in sender FCC

    Hi,
    I am facing an error in sender fcc its:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'Pricebook_Data':java.lang.Exception: ERROR in configuration / structure 'Pricebook_Data.': More elements in file csv structure than field names specified!
    My source structure is :
    Pricebook_abc (root1)
                Pricebook_Data (root2)
                     field1
                     field2
    and my sender fcc is:
    Document name : Pricebook_abc
    Document namespace: urn:xxxxxxx
    Recordset name: pricebook
    Recordset structure: Pricebook_Data,*
    Recordsets per message: *
    Pricebook_Data.fieldNames     field1,field2
    Pricebook_Data.fieldSeparator     ,
    Pricebook_Data.endSeparator     'nl'
    ignoreRecordsetName     true
    I am unable to rectify the error. Please help me.
    Thanks & Regards,
    Pragathi.
    Edited by: Pragathi on Jan 15, 2010 1:40 PM
    Edited by: Pragathi on Jan 15, 2010 1:41 PM
    Edited by: Pragathi on Jan 15, 2010 1:41 PM

    Hi,
    The error was saying that.. the no of fields you are getting in the source are diff from that you have mentioned in FCC.
    Can you just copy and paste the source csv file? and the exact XML structure?
    Regards,
    Swetha.

  • Hierarchical Structure in Sender FCC

    Hi all,
    I am working on a file to file scenario.
    The sender data type is in following format -
    File_Header
    Record_ID
    Filler_S
    Batch_Header
    Record_ID
    Filler_S
    Payment_Node
    Record_ID
    Filler_S
    All the nodes are with key fields.
    File_Header Keyfield - 1, Batch_Header Keyfield - 2, Payment_Node Keyfield - 3.
    I want to know whether it is possible to have FCC on sender File adapter for this hierarchical structure.
    The source XML message should be in following format -
    <?xml version="1.0"; encoding="UTF-8"?>
    <Test>
    <File_Header>
    <Record_ID>1</Record_ID>
    <Filler_S>12</Filler_S>
    </File_Header>
    <Batch_Header>
    <Record_ID>2</Record_ID>
    <Filler_S>12</Filler_S>
    <Payment_Record>
    <Record_ID>3</Record_ID>
    <Filler_S>12</Filler_S>
    </Payment_Record>
       </Batch_Header>
    </Test>
    Currently I am getting source XML in this format.
    <?xml version="1.0"; encoding="utf-8" ?>
    <ns:Test xmlns:ns="urn:testhierarchy:fcc">
    <File_Header>
    --<Record_ID>1</Record_ID>
    --<Filler_S>01</Filler_S>
    </File_Header>
    <Batch_Header>
    --<Record_ID>25</Record_ID>
    --<Filler_S>20</Filler_S>
    </Batch_Header>
    <Payment_Record>
    --<Record_ID>6</Record_ID>
    --<Filler_S>22</Filler_S>
    </Payment_Record>
    </ns:Test>
    i.e. Payment_Record and Batch_Header are at same level. I want Payment_Record under Batch_Header.
    Kindly let me know if hierarchical structures can be handled in sender FCC. If yes then what should be the FCC parameters?
    Thanks i.

    Hi Minal,
    We have Source structure same as yours. I am trying to use FCC to handle multiple hierarchy levels at sender side.
    Can you please let me know if you have some solution for it?
    Thanks,
    Pooja.

  • File Sender FCC doesn't allow repetitive segments and unbounded together

    File Sender FCC give me error if I use the repeatitive structure and * (Unbounded) together. Here is the recordset  structure  UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,*,DTM,1 for which I am getting the error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 12: missing structure(s) before type 'DTM' "
    If I use the recordset structure UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,2,DTM,1 then I am able to parse the file. But My requirement is that I will expect variable no of RFF segments in my structure. If you guys could help me that would be great.

    Hi Mohammad
    In this case try to maintain the following in content conversion parameters.
    Key Field Name = Key
    <xml>.fieldFixedLengths      = 1,......................
    <xml>.fieldNames                 = Key,.................
    <xml>.keyFieldValue            = 1
    <xml>.keyFieldInStructure    = ignore
    <xml>.endSeparator            = ,
    Think this should solve your problem.
    Refer the following SAP help link :-
    [http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
    -Thanks
      Karthik

  • Sender FCC Details

    Hi,
    How to specify the sender fcc details for following structure
    <header>
       <Record>
             <field1>
             <field2>

    HI Guys,
    How about the sender file is of such format
    Header1,Item1 details
    Header1,Item2 Details
    Header2, Item1 Details
    Header2,item2 Details
    Header3, Item1 Details  
    I need to map this file format to IDOC strucutre, In Header there is a filed which is the Key value to identify the change in header.
    Eg: Order Number is the field in the following file which identifies the change in header: First three fields are header details and following are the item details:
    ABC,ON1,22,Item1,XX
    ABC,ON1,33,Item2,FF
    ABC,ON2,44,Item1,MM
    ABC,ON3,66,Item1,LL
    How would be the Data type strcuture to capture this type of falt file strcuture and FCC parameters?
    I need to send a single IDOC per one header with multiple Items. is it possible to achieve?
                                                                                    Thanks
    Rajeev

  • Avro schema - optional fields - gives "Not in Union" exception

    Hi all,
    I have a problem with using optional fields in an avro schema and using the JSONAvroBinding.
    If I have a User schema that has a first name field. The User can opt to provide the first name , or not. The field is optional from a readers perspective.
    (this is taken from  http://docs.oracle.com/cd/NOSQL/html/GettingStartedGuide/avroschemas.html which is nosql avro documentation)
      "type": "record",
      "namespace": "com.example",
      "name": "FullName",
      "fields": [
        { "name": "first", "type": ["string", "null"] },
        { "name": "last", "type": "string", "default" : "Doe" }
    Here if I supply this example as the Avro schema, and then omitt the first name when I write, it will work without problem. But when I attempt to write "John" it will fail with:
    Caused By: org.apache.avro.UnresolvedUnionException: Not in union ["string","null"]: "John"
             at oracle.kv.impl.api.avro.JsonBinding$JsonData.resolveUnion(JsonBinding.java:403)
             at org.apache.avro.generic.GenericDatumWriter.resolveUnion(GenericDatumWriter.java:144)
             at oracle.kv.impl.api.avro.JsonBinding$JsonDatumWriter.write(JsonBinding.java:599)
             at oracle.kv.impl.api.avro.JsonBinding$JsonDatumWriter.writeRecord(JsonBinding.java:695)
             at oracle.kv.impl.api.avro.JsonBinding$JsonDatumWriter.write(JsonBinding.java:565)
             Truncated. see log file for complete stacktrace
    This fails:
       "first" : "John",
       "last" : "Smith"
    This works:
       "last" : "Smith"
    It seems someone else had this problem and posted on AVROs site, where a response said it might be NoSQLs libraries fault:
    "The error is thrown from the Oracle's NoSQL library's use of Avro and is not clearly an Avro problem. You might be better off trying to get help for this from Oracle?"
    https://issues.apache.org/jira/browse/AVRO-1376
    Any thoughts? To me this seems like a bug in the JsonBinding class?

    According to this:
    http://www.oracle.com/technetwork/database/nosqldb/learnmore/nosqldb-faq-518364.html#HowtouseAvrounionstoencodeoptionalfields
    Sending in
       "first" : "John",
       "last" : "Smith"
    is not correct.
    Instead, sending in:
       "first" : {
         "string" : "John"
       "last" : "Smith"
    is working.

  • Programming Lgic Idea...? Thoughts for required/optional fields for HashMap

    hi all:
    Let me see if I can convey this thought clearly..
    I am having logic problems... not coding issues...
    My problem...
    I have a class called JobBuilder and another class called RegistrationFile. The idea is that RegistrationFile has a mehod to write a Registration File called writeRegistrationFile(HashMap regFileParams). Note that the registration file is constructed based on values in the RegistrationFile... However the registration file construction and hence required information is different depending upon the file type... Thus I have created another method called getRegFileParameters(String filetype) in class RegistrationFile which can be called before the write method which will construct a HashMap with the required parameters neccessary for the specified type and return it to the calling class (JobBuilder). The information in the returned HashMap will contain the required and optional fields needed to create a the specific registration file... My idea is that registration file class returns this HashMap to the calling class JobBuilder and it will use the information in the HashMap to construct the appropriatte HashMap which can be passed back to the RegistrationFile method writeRegistrationFile(HashMap params) method in order to construct the registration file...
    so for example say the calling class JobBuilder says ok I want to create a registration file that is of type 2d Drawing... so it will make the following call:
    RegistrationFile rf = new RegistrationFile();
    HashMap hm1 = rf.getRegFileParams("2d Drawing");
    the above will execute and a hashmap of optional and required values will be returned to JobBuilder and will look something like this...
    "GT_ATTRIB", "AFM_W,KEY;AFM_X,KEY;AFM_D,X;"
    "NTK", "X,X;"
    "FILE", "X,X,X;"
    etc...
    couple things to note...
    X = optional
    KEY = REQUIRED
    also there may be X number of required records for GT_ATTRIB, or NTK, etc... multi valued input is seperated by commas and varying value/parameter pairs by semicolons...
    Thus for GT_ATTRIB there may be some number of required fields like AFM_X, AFM_D, etc and each pair is seperated by a semicolon...
    thus AFM_X, AFM_D eventually will translate to seperate records
    i.e. in the registration file it might look like
    GT_ATTRIB|AFM_X|11
    GT_ATTRIB|AFM_D|Q.1
    NTK|3|6
    NTK|4|5
    FILE|/var/tmp|file1.txt|<optional comment>
    FILE|/var/tmp|file2.txt
    etc... all of this would have be turned into a HashMap that is constructed and returned to the RegistrationFile.writeRegistrationFile (HashMap hm) that was constructed like the following...
    HashMap hm2 = new HashMap();
    hm2.put("GT_ATTRIB", "AFM_X,11;AFM_D,Q.1;");
    hm2.put("NTK", "3,6;4,5;");
    hm2.put("FILE", "/var/tmp,file1.txt,<optional comment>;/var/tmp,file2.txt;");
    etc...
    rf.writeRegistrationFile(hm2); // send it to registrationFile class and use the write method...
    The logic problem i am having is that the they should be able to construct the previous by reading the HashMap that was returned earlier... specifying required and optional parameters... does anyone see how in the class JObBuilder I might accomplish this... somehow I need to read each "KEY", "VALUE" pair from the returned HashMap and then further break it down to distinguish the required attributes from the optional ones...
    it seems that they will have to get the KEY (i.e. "GT_ATTRIB", "NTK", etc... and tear apart the "VALUE" (multi valued key) and determine what is required vs. optional and then to reconstruct it so that I can read it in RegistrationFile class.... i.e.
    They may tear it apart as
    "GT_ATTRIB", "AFM_X", "11";
    "GT_ATTRIB", "AFM_D", "Q.1";
    "NTK", "3", "6";
    etc...
    but in the end needs to be reconstructed like...
    HashMap hm2 = new HashMap();
    hm2.put("GT_ATTRIB", "AFM_X,11;AFM_D,Q.1;");
    hm2.put("NTK", "3,6;4,5;");
    hm2.put("FILE", "/var/tmp,file1.txt,<optional comment>;/var/tmp,file2.txt;");
    etc...
    rf.writeRegistrationFile(hm2); // send it to registrationFile class and use the write method...
    does any of this make sense?
    I need a way to tell what is required and optional based on the returned hashmap so that I can construct the correct hashmap which will be used in generation of the registration file...
    I really do hope that makes sense and truly appreciate any time and help anyone can provide... pseudocode would be great.. to convey the idea if anyone has the time or desire...
    thanks again..
    echardrd

    Yeah, you want to learn XML for ways to do this.

  • How can i (de)activate a single option in an option field programmatically?

    To deactivate a control in the front panel i can use the deactivate property node.
    Can i also deactivate single options in an option field or in a menu this way?

    mathan wrote:
    Hai,
    It seems you can only deactivate the whole menu ring(Create 'visible' property node and wire a true constant to it and also in FP right click and select 'disabled' from 'advanced' ) and not a single item in it.
    Really?
    Message Edited by smercurio_fc on 04-22-2008 09:16 AM
    Attachments:
    disabled.PNG ‏26 KB

  • Creation of multiple nodes in target IDOC as per field from sender file

    Hi SapAll.
    here i have  got a requirement in an File To Idoc Interface.
    the requirement is there will be one field under sender  file which will be repeating for multiple records(ItemCount),here pi need to check the value of this field for each record and if the value is 'x' THEN it should create the target node under idoc for the same no .of times as the occurance of this field(if the condition is true).
    i just used the if Condition,text function(Equals) in the message mapping but it was not working for the
    Case 1 :
    if the condition in the first record fails  but if it passes for the remaining records its not creating for the remaining records as it fails for the first record itself
    Case 2: it is only working when the condition for the first record is sucess .
    can any body help me in this.
    regards.
    Varma

    Could be a problem of context, are you queue display is in one context or different context. You can use the SplitByvalue
    regards,
    lpbuff

  • Tax Jurisdiction in SAP CRM 7.0 B2C Webshop as an optional field.

    Hi Everyone,
    We are  trying to register a user in B2C Webshop .In the process of registering, On entering the postal  Code and  corresponding city , the application shows an error message which says " Tax Jurisdiction could not be detremined" .
    Going ahaed, we could like some clarity on the same .It would  also be relevant if we could make this postal code/City as an optional filed in the System.We need clarity  on making this as an optional field.
    KIndly give your inputs if any one has worked on the same functionality.
    Thanks in advance.
    Regards
    Sanjib paul

    See if the configuration settings at (Tcode SPRO)
    CRM--> Master Data --> Business Partner --> Specify handling of error messages helps.
    Also see my replies in other threads on suppressing or showing CRM messages in the web (ISA) layer.
    Re: Product not viewable in catalog nor in search function but still orderable
    Re: Minimum order quan - CRMC_MSGC
    Re: Minimum order quan - CRMC_MSGC

  • Tax Jurisdiction In B2C Webshop (SAP CRM 7.0) as an optional field.

    Hi Everyone,
    We are trying to register a user in B2C Webshop .In the process of registering, On entering the postal Code and corresponding city , the application shows an error message which says " Tax Jurisdiction could not be detremined" .
    Going ahaed, we could like some clarity on the same .It would also be relevant if we could make this postal code/City as an optional filed in the System.We need clarity on making this as an optional field.
    KIndly give your inputs if any one has worked on the same functionality.
    Thanks in advance.
    Regards
    Sanjib paul

    See if the configuration settings at (Tcode SPRO)
    CRM--> Master Data --> Business Partner --> Specify handling of error messages helps.
    Also see my replies in other threads on suppressing or showing CRM messages in the web (ISA) layer.
    Re: Product not viewable in catalog nor in search function but still orderable
    Re: Minimum order quan - CRMC_MSGC
    Re: Minimum order quan - CRMC_MSGC

  • Invalid value in OPTION field of value table for IN itab operator. operato

    Hi,
    I am working on SELECT-OPTIONS to accept single and multiple values for company code. I am using CREATE_RANGE_TABLE and ADD_SELECTION_FIELD and all is good but I was prompted with error "Invalid value in OPTION field of value table for IN itab operator. operator"  when I enter 2 single value.
    SIGN OPTION LOW  HIGH
        |      |CN01|    |
        |      |SG02|    |
    However, below combinations working good for me and I don't get the above error.
    SIGN OPTION LOW  HIGH
    I   |BT   |CN01|CN02|
         |     |SG02|    |
    SIGN OPTION LOW  HIGH
         |     |SG02|    |
    I am using below coding.
      DATA:
        ls_cmp_restrictions TYPE if_wd_select_options=>t_complex_restrictions,
        ls_rsoptions        TYPE rsoptions.
      CLEAR ls_rsoptions.
      ls_rsoptions-bt = abap_true.
      ls_rsoptions-cp = abap_false.
      ls_rsoptions-eq = abap_true.   " for enable only single value*
      ls_rsoptions-ge = abap_false.
      ls_rsoptions-gt = abap_false.
      ls_rsoptions-le = abap_false.
      ls_rsoptions-lt = abap_false.
      ls_rsoptions-nb = abap_false.
      ls_rsoptions-ne = abap_false.
      ls_rsoptions-np = abap_false.
      ls_cmp_restrictions-m_exclude = ls_rsoptions.
      CLEAR ls_rsoptions .
      ls_rsoptions-bt = abap_true.
      ls_rsoptions-cp = abap_false.
      ls_rsoptions-eq = abap_true.   " for enable only single value*
      ls_rsoptions-ge = abap_false.
      ls_rsoptions-gt = abap_false.
      ls_rsoptions-le = abap_false.
      ls_rsoptions-lt = abap_false.
      ls_rsoptions-nb = abap_false.
      ls_rsoptions-ne = abap_false.
      ls_rsoptions-np = abap_false.
      ls_cmp_restrictions-m_include = ls_rsoptions.
    * Create a reference to range table
      lr_field = wd_this->m_helper->create_range_table( `BUKRS` ).
    * Add the select-option to the group
      wd_this->m_helper->add_selection_field(
        i_id                         = `BUKRS`
        i_value_help_structure       = 'P0001'
        i_value_help_structure_field = 'BUKRS'
        it_result                    = lr_field
        i_no_intervals               = abap_true
        i_no_extension               = abap_false
        i_complex_restrictions       = ls_cmp_restrictions
        i_use_complex_restriction    = abap_true ).
      FREE lr_field.
    Edited by: Girish Nabar on Jul 22, 2011 12:35 PM

    Hi Girish,
    People are answering not for points, just to share the knowledge.
    And I think the way of structure is wrong.  i think we cannot pass two single values in your way. am not sure about .
    low means it will accept single value. for one record in sign structure.
    wait for other replys.
    Regards
    Srinivas

  • How do I create a dropdown in the Subject Line field while sending emails.

    How do I create a dropdown in the Subject Line field while sending emails as I send more than 300 emails with the same subject line everyday.

    Which webmail service do you use, gmail may have problems currently see thread
    '' Subject autofill feature stopped working in gmail for new subjects only - and I'm not the only one - help! {[https://support.mozilla.com/en-US/questions/793610 link]]''
    For general information see [[form autocomplete]] and [[Form autocomplete entries are not saved ]]

  • How to hide the select-options fields on radiobutton select in webdynpro

    hi
    Could you please help how to hide the select-option fields in webdynpro
    there are four radio buttons
    for every radiobutton there is corresponding the select_option filed is associated to it
    user as only provision select  one radio button and reset of the select-option fileds should be hidden
    which ever the radio button is selected corresponding the select-options fileld should be displayed
    please find the attachement below

    Hi Nine,
    To hide select options you should use interface method REMOVE_SELECTION_SCREEN_ITEM of IF_WD_SELECT_OPTIONS.
    Sample code :
    Write the below code in the Event handler of Radio Button.
    DATA lv_r_helper_class TYPE REF TO if_wd_select_options.
    lv_r_helper_class = lo_interfacecontroller->init_selection_screen(
    lv_r_helper_Class->REMOVE_SELECTION_SCREEN_ITEM(exporting i_id = 'Select_option1_id1').
    This will hide first select option of your screen.Similarly pass select_option_id2 to hide it and so on.
    Regards,
    Ravikiran.k

Maybe you are looking for

  • Viewing PR CS6 sequence on NTSC monitor?

    Hi, anyone know how I can view my PR CS6 sequence on my NTSC HD monitor? Thanks!!

  • Programs for papers and presenations

    What programs are avialble for writing papers on mac? Are they free?  What programs are their to make presentations are they similiar to power point?

  • Redhat 9.... need to link to mozilla 1.2.1

    Im using: mozilla 1.2.1 and i installed j2re-1_4_2_01-linux-i586-rpm.bin i have it installed in /usr/java mozilla is located at /usr/lib/mozilla-1.2.1 What do I put in the command line while SU to mke the link between the two? I just did a complete i

  • What datadtype is a SQL Plan to be loaded?

    Is the SQL Plan to loaded the pls_integer datatype? See the following script. It define a SQL Plan as the pls_integer (similar with the integer datatype). I can not imagine how can the a SQL plan be defined as the integer datatype? To load plans from

  • Can i change/improve the graphic equalizer display?

    Hi, I was just wondering if it's possible to download a better ore nicer looking graphic equlaizer display in iTunes? I'm talking about the one at the top middle of the window where you can flick between song title, tracks importing, how long left an