How to define the Structure and FCC parameters for EDI file format.

Hi All,
I have a  EDI file(FTP)-->XI-->IDOC
the source file content is as follows
PR H01PHUPS         
FH   SHP  0.0.5    
H1   S0022323                            
W6   7752508853                     D
PT   1Z58R7070341111111           
PT   1Z58R7070342222222           
PT   1Z58R7070353333333          
N1ST ZZ 142222                            
N3ST 8827 D OLD
N4ST MARCY                        
N1WH ZZ 2070                              
N3WH 401 QUALITY
N4WH HARRIS
DTENT20111206
DTSHP201112061754
N9LL BN20700033333333                               
N9NT
CD   CP      UPS
IT026
P1GD    VN A1111 
PD   Product ID 1                   
QTORD000000000000010CA
QTSHP000000000000010CA
AM U  000000000000000000M
AM X  000000000000000000
LTLT 1112811111                                       
AM G  000000000000000000
AM N  000000000000000000
AM TAX000000000000000000
AM SVC000000000000000000
AM COD000000000000000000
ST   00000000100000000010000000000000000000000000008500LB
Can any body share me how to declare the structure in DataType.
The first two characters in each record is constant , so this would be the keyfields right?
ex:- PR,FH,H1,W6,PT,AM,N1,N3,N4......
In Comm channel the FCC parameters
i need to go for fieldFixedLengths?
Thanks&Regards
Sai_SHA

Hi.
if you need to convert an EDI to XML you need to use an Adapter specific (e.g Seeburger) because PI doesn't support EDI files.
Also if you use a FCC , this configuration is for  two level Header and Detail.
Check this.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
Regards
Luis Ortiz

Similar Messages

  • XML structure and FCC parameters

    Hi Experts,
    Kindly help me with the XML structure and  FCC parameters for the following sample of text file
    I am new to Text Files and FCC.
    =================================================================================
    Header
    " name of the company " ,1   
    " abc 2,10/01/1972",4
    Line items
    "ADFERT",KARNATAKA,CHIPS,G,45.560000,72.190000,100.983000,76.266000,J
    "GHTJEN",KERALA,BANANAS,G,1.135000,0.714850,1,0.755000,J
    Trailer
    DDDDDDDDD,B
    ================================================================================
    It is a CSV
    Header 1st line , first field is Variable length and 2nd field is 1 char
    Header 2nd line , first field is Variable length and 2nd field is date and last field is 1 char
    Line items
    first field fixed length 6 char but
    2nd field can be of any length
    3rd field can be of any length
    4th field 1 char
    5th field can be of any length
    6th field can be of any length
    7th field can be of any length
    8th field can be of any length
    9th field 1 char
    and then the Trailer
    Please help in the structure and content conversion parameters
    also following questions :
    a)  I have to pick up this file and pass to a proxy in AbAP on target side , so do i just create a service interface and in ECC --> Sproxy and identify my SI and do a Create Proxy ? or is there anything else required ?
    b) The Date in the header needs to be passed onto ECC as a parameter so in my XML structure in the data type do i include that as a field in the mapping ..Can any one please guide me to create the Data type structure for the above file ?
    c) DO I NEED A MAPPING FOR THIS ?? THERE ARE NO CONVERSIONS required ? what are the IR and ID steps required
    if it is a FILE to Proxy scenario with no mappings 
    Please help
    thanks
    Dev

    Hi Dev,
    Full Data type is as follows
    Sender_DT
    order_recordset  0..1
    order_header                 0..1
      header-1    0..1
      date            0..1
    order_Item                      0..unbound
      item-1          0..1
      item-2          0..1
      item-3          0..1
      item-n          0..1
    order_Trailer                    0..1
      trailer-1  0..1
      trailer-2  0..1
      trailer-n  0..1
    > What about the File Content conversion parameters , can you help me with those
    order_header.fieldNames     : f1,date
    order_header.fieldSeparator : <give the fiels separater , [if it is comma])
    order_header.endSeparator   : 'nl' (if it is new line characters)
    order_item.fieldNames     : i1,i2,.....
    order_item.fieldSeparator : :
    order_item.endSeparator   : 'nl'
    order_Trailer.fieldNames     : t1,t2,.....
    order_Trailer.fieldSeparator : :
    order_Trailer.endSeparator   : 'nl'
    If any of the two structures (header, item or trailer) in the field name is same then we have to use the key field
    Check this link
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID1157374550DB11273870171440820710End?blog=/pub/wlg/3228
    > b) In FCC what will be the values for fieldnames ?
    Check this link
    https://wiki.sdn.sap.com/wiki/display/XI/XI_File_Content
    Regards
    Ramesh

  • How to read the date and time information of a file by labview

    how to read the date and time information of a file by labview? for example, created time and modified time.
    Solved!
    Go to Solution.

    if you need to know the last modification date of file:-
    "Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
    This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
    Thanks as kudos only

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • How to get the lock and block occured for the full day

    Hi,
         How to monitor the lock and blocks occurred for the full day? i need to get it by end of the day. is there any script for this?

    Hi,
         How to monitor the lock and blocks occurred for the full day? i need to get it by end of the day. is there any script for this?
    Why would you like to collect information about locks and let me tell you, you cannot collect information about ALL locks which were taken and even thinking about it is pointless.
    Coming to blocking if you have heavy system with huge concurrency there is bound to be blocking which is necessary and good for RDBMS but if the blocking remains for long time then this is a issue.
    There is DMV sys.dm_tran_locks which tell you what all locks are being taken. You can see various examples mentioned in DMV online documentation and can schedule the query to run every 5
    mins and insert its record in table which you can refer at end of the day.
    This task would be made very easy if you have Monitoring tool which gives you information in your mail every time blocking occurs I have Spotlight in my environment.
    If you are looking for doc for troubleshooting blocking  below is one you can refer
    http://support.microsoft.com/kb/224453
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • How to set the Mail and Fax options  for the Smartforms ???

    How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .

    >
    veera Karthik wrote:
    > How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .
    Hi
    Check this Link:
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm
    P.S: Never say reply me soon....people answer you here voluntarily and as everyone has their own desk to manage...sp replies may late or early..depending upon the availabality of the members.
    Vishwa.

  • How to define the same font size,color for a text field label

    hi all,
    In my project i need to define the same font size & color for all the text field lables in the application.how do we can achieve this?
    Thanks & regards,

    ...or you could use declarative components....
    Not sure if skinning would prevent developers from overriding a look and feel??? hmmm not sure..
    Grant

  • How to include the characters " " and " " in a XML properties file.

    hi
    including the following prop entry gives me the error "Element is not closed" error message.
    <entry key="test">can't include chars < and ></entry>
    But i need to include the chars "<" and ">" in my xml properties file.
    please help.
    thanks

    Try &lt; and &gt;
    Dave Patterson

  • How to save the variant and select it for displaying output

    For       ALV variant use the FM_REUSE_ALV_VARIANT_F4 and REUSE_ALV_VARIANT_DEFAULT_GET to allow the user to save the variant and select it for displaying output.If   any of the data (Z fields in VBAP) is blank,the cell in the column must be highlighted in red.

    Hi,
       Refer thsi code
    DATA : wa_variant  TYPE disvariant,       "Work area for variant
           wa_variant1 TYPE disvariant,       "Work area for variant
    *&      Form  sub_get_default_variant                                  *
    This form will initialize the variant                               *
    FORM sub_get_default_variant .
    *--Clear
      CLEAR wa_variant.
    *--Pass the report name
      v_repid = sy-repid.                     "Report ID
      wa_variant-report = v_repid.
    *--Call the function module to get the default variant
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save        = c_save
        CHANGING
          cs_variant    = wa_variant1
        EXCEPTIONS
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          OTHERS        = 4.
    *--Check Subrc
      IF sy-subrc = 0.
        p_varnt = wa_variant-variant.
      ENDIF.
    ENDFORM.                                  "sub_get_default_variant
    Regards,
    Prashant

  • How to define the DATE fields in itab for uploading the data?

    Hi Experts,
    Am uploading the data from Excel sheet to Z table via my_itab.
    So, there r 3 Date fields in Z table, which are defined as DATS(8).
    So, pls. let me know that, How I hv to define the itab-date_one, itab-date_second, itab-date_three, weather CHAR(10) or sy-datum or concatenation??
    thanq

    Hi Sri, follow like this.
    First Move that Excel Sheet Data to Internal Table Using Function Module ALSM_EXCEL_TO_INTERNAL_TABLE.
    And you can insert that internal table data to Database Table Using INSERT Command.
    First upload Data From Excel Sheet to ITAB with Required Structure. Once the Data Comes...
    And Declare another Internal Table (ITAB1) Type Database Table name.
    And Use Insert Database Table From ITAB1.
    Check this Example.
    TABLES:MARA.
    DATA:BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR,
    MBRSH LIKE MARA-MBRSH,
    MTART LIKE MARA-MTART,
    MEINS LIKE MARA-MEINS,
    END OF ITAB.
    DATA:ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    ITAB-MATNR = '123ABCDA'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    ITAB-MATNR = '123ABCDB'. .
    ITAB-MBRSH = 'C'.
    ITAB-MTART = 'FERT' .
    ITAB-MEINS = 'KG' .
    APPEND ITAB.
    LOOP AT ITAB.
    MOVE-CORRESPONDING ITAB TO ITAB1.
    APPEND ITAB1.
    ENDLOOP.
    LOOP AT ITAB1.
    INSERT MARA FROM ITAB1.
    MODIFY MARA .
    ENDLOOP.
    or,
    By using type pools TRUXS our problem my be solve.
    Take one internal table like your standard data base table and
    one internal table for truxs like
    DATA: it_raw TYPE truxs_t_text_data.
    DATA: itab like mara occurs 0 with header line.
    Use FM
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw " WORK TABLE
    i_filename = p_file
    TABLES
    i_tab_converted_data = it[] "ACTUAL DATA
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    Now looping that and updated to data base table.
    hope this helps.
    kindly reward if found helpful.
    cheers,
    Hema.

  • How to define the character set of an outbound EDI batch in BizTalk 2010?

    I have some EDIFACT files with a character set of UNOC though lowercase strings and umlaute should be allowed. These files should be batched in an outbound EDIFACT file. But the batching orchestration of the related send port throws some validation errors.
    If I convert the strings to uppercase characters everything's working fine. So it seems that the outbound batching orchestration uses the UNOA character set internally for the validation of the EDIFACT files...
    How can I change the character set of the outbound batching orchestration in BizTalk 2010? No settings found regarding the character set of outbound batching orchestration in the party and agreement configuration so far. Thank you

    Hi Philipp,
    To define a character set in EDIFACT,
    UNA segment is used. After defining see, How Validation of an EDI Interchange Is Configured and Outbound
    EDI batching in BizTalk Server 
    Maheshkumar S Tiwari|User
    Page | http://tech-findings.blogspot.com/

  • How to define the boolean - String value mapping for SelectBooleanCheckBox?

    I have a SelectBooleanCheckBox component whose value is bind to a bean property of type String.
    <af:selectBooleanCheckbox text="State" label="State" id="sbc1"
    value="#{viewScope.myBean.stateText}" autoSubmit="true"/>
    The expected value for the Bean property is "Accepted" (for true) and "Rejected" (for false).
    Currently, the component return String value "true" for checked and "false" for unchecked.
    How do I set up the component so the boolean value can map to my expected String value?

    Sumit,
    Thanks for the response.
    I read that post too. However, I don't have any binding in my case because the component is bind to a bean property instead of an attribute of a view object.
    Without the binding in the page definition, I can't find a place to define the mapping between the Boolean value and the expected String value.
    Pricilla

  • How to extract the size and date from a given file

    Hi,
    I want to extract the size and date of a file (it can be either a video, audio or text file) that the user points to the location of. But I am not sure how. Does Java have an api that can do this? If not is there some other way of doing this? Can anyone help? Thanks in advance.

    Have a look at java.io.File, specifically
    public long lastModified()
    This format returned (I find) is nasty, so then use java.util.Date (or java.sql.Date, look the same on the surface to me) to format it.
    Cheers,
    Radish21

  • How to create the IView and Roles ,User for WebdynPro Application in Portal

    Hi,
           I have one simple webdynpro application. i want to create the user,Role and Iview for my webdynpro application in the Portal . after that i need to assign the roles to the user and i want to see the different output for each user depends upon the Role.
      Can anyone give me Tutorial page(PDF) or Guide me How to do?
             Thanks in Advance
    Regards
    Ramkumar

    Hello Ramkumar,
    following please find the link to available documentation in SAP Help Portal:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/fa080514793ee6e10000000a1553f7/frameset.htm.
    Regards,
    SAP AG
    Gesine Raith

Maybe you are looking for